Archive

Archive for the ‘Uncategorized’ Category

Mirror your Android Phone on Mac/PC

February 1, 2016 Leave a comment

Vysor is a Chrome add-on that allows you to mirror your Android phone on your Mac or PC when doing presentation through your mobile phone.

So far this is the easiest way as it does not require installation of any application whatsoever, plus it allows you to mirror multiple devices as long as it is connected to your machine.

  1. Launch your Chrome browser and go to Chrome webstore

2. Search for Vysor and click “Add to Chrome” button

Screen Shot 2016-01-20 at 11.08.20 am

3. Connect your Android phone to your Mac/PC via USB

4. Launch the Vysor via the Chrome webstore or Chrome App Launcher

Screen Shot 2016-01-20 at 10.49.45 am

5. Choose the device that you want to share

Screen Shot 2016-01-20 at 10.50.55 am

6. Now you can navigate through your mobile phone and project all the user actions in your desktop.

Screen Shot 2016-01-20 at 10.55.00 am

Advertisements
Categories: Uncategorized

Ruby: Using URI and HTTPClient

February 25, 2015 Leave a comment

HTTPClient provides API library for user to access web resource using HTTP

This would be helpful if you need to access a different web URL other than your base URL that you used in your automation and validate the content of the page.

Here’s a snippet of how to use HTTPClient in this particular scenario


require “httpclient”

my_url = “http://CheckThisOut:8080”

##method to access my_url using URI

def accessPage

begin

uri_parsed = URI.parse(my_url)

client = HTTPClient.new()

client.ssl_config.verify_mode = OpenSSL::SSL::VERIFY_NONE

client.no_proxy = uri_parsed.host

uri = my_url

#invoke url to take the page content

puts “Accessing: #{uri}”

resp = client.get uri, :header => {’Accept’ =>‘application/json’}

rescue

puts(“Error encountered: #{$!.inspect}”)

end

end

puts "response: status = #{resp.status}"

puts "response: body = #{resp.body}"

fail "bad response #{resp.status} #{resp.reason}" unless resp.status == HTTP::Status::OK

page_content = resp.body

return page_content

end

For more functions and complete library you may refer to http://www.rubydoc.info/gems/httpclient/2.1.5.2/HTTPClient

Categories: Uncategorized Tags: , ,

What Drives You?

May 11, 2012 Leave a comment
Image

What drives you?

I’m consolidating great ideas I bump along the way that would somehow motivate us in our work place. I’ll be needing your help on this one, please feel free to add more on the list.

1. “Do whatever you want” Day

Inspired from Atlassian’s “Fedex” Day. This is a time(24 hours) given to their developers to work on whatever they want as long as it is related to their products. This activity fosters creativity and fun.

2. Late Mo, Earning Ko

I heard this during one of my RX morning routines. This is company perks where employees tardiness deductions will be collected and distributed as reward to employees who have no tardiness. Cool huh!

Categories: Uncategorized Tags: ,