Showing posts with label tech. Show all posts
Showing posts with label tech. Show all posts

Saturday, 15 October 2011

Android validation (decompilation) tools

So Jenkins is building and archiving lovely APKs with timestamps in versionName!  People are testing directly out of DropBox.  Got a bug report but need to see which APK it came from!
Goal: Extract human-readable versionName from APK.
Two-liner answer after the break!

Sunday, 30 January 2011

update-alternatives and the Chrome takeover quash

Finally got round to understanding Ubuntu's /etc/alternatives a little more after installing Chrome made it my default browser!?  More details after the jump (another first!) but briefly:
  • List all alternative-able things:
    sudo update-alternatives --get-selections
  • Choose which browser:
    (these present menu to select from)
    sudo update-alternatives --config x-www-browser
    sudo update-alternatives --config gnome-www-browser

Wednesday, 3 November 2010

hg rebase or how to move trunk/default changesets to a branch

Scenario:
One wishes to move changesets on trunk (starting with revision A onwards) to a new branch B.

  1. Enable the Rebase extension for you / the repository per the RebaseExtension docs
  2. If outstanding changes, commit or shelve them!
    (otherwise next step will generate merge request)
  3. hg update <A-1>
    (the one before you wish to move to branch B)
  4. hg branch B
  5. hg status
    confirm output has no actual changes (branch change won't be shown)
  6. hg commit -m 'create B'
  7. hg branches
    get actual revision for B, we'll call it C
  8. hg rebase -s A -d C
That's it.  If insufficiently clear, I can post some screenshots, etc.  Do ask but expect delayed response unless you tweet me!

Tuesday, 5 January 2010

RESTlet deployment woes (from GlassFish v2 to AppServer v2)

Some incomplete notes on deploying our RESTlet-based application (tested on GlassFish) to our Sun AppServer v2.1.

Monday, 7 December 2009

Async FlexUnit 4 testing

So the JSONCallHelper() of the last post needs better testing.
I gave it the following signature...
public static function JSONCall(urlQuery:String, responder:IResponder):void
...but then went looking for how to test in FlexUnit 4.

Sunday, 6 December 2009

Flex HTTP header customization problems again

So, again I hit Flex's HTTP networking constraint -- HTTPService rather than URLRequest this time.
HTTPService does not seem to allow modification of certain headers, amongst them the "Accept" header (it was "Cookie" last time for URLRequest).  Specific need: to call a RESTful webservice with "application/json" before "text/html" in the list (otherwise, I get back HTML!).