Thursday, January 26, 2012

Easy search of Stackoverflow in Chrome (and Firefox)

To easily search opensearch enabled sites (like StackOverflow) in Chrome, just start typing the name of the site in Chromes address bar, when the site name is matched, press TAB, it will then convert into a site search for that site and you can then keep typing in your search query.

To do something simliar with Firefox "awesome bar" using a feature called  "Add a keyword for this search" its a slightly different procedure. Thought the nice thing with firefoxes method is it works with any search input field and not just opensearch enabled sites.

And don't forget that if you want to access your local dev machine from an app running in the emulator, you need to use 10.0.2.2.

Thursday, January 12, 2012

Android testing with ant

When running android tests using ant, you can specify a specific device to run the tests on when you have more than 1 device available to adb on your system. The property is: adb.device.arg so you can do:

ant -Dadb.device.arg="-s emulator-5554"

Or even better use a script like this gist.



Monday, January 9, 2012

Jenkins, adb, ant, oh my!

So this bug, who's root cause is this bug (yes reported in Jul '09 and still not fixed!), means that if you want to have a unit test failure cause your whole Ant build to fail and thus show up on your Jenkins/Hudson CI server, you need to do put this macro override into your build.xml.