Friday, March 25, 2011

Hudson vs Jenkins, which one should I use?

Hudson and Jenkins are continuous integration servers. They are both forks of the same codebase created by Kohsuke Kawaguchi, former employee of Oracle, the company which owns the Hudson name.

Since Kohsuke abandoned Hudson to work on Jenkins, we wondered which fork would be more actively maintaned and improved. We can draw some metrics analysing their repositories.

From GitHub perspective Jenkins is the clear winner with 630 vs 175 commits since the fork, 18k vs 12k pageviews, 401 vs 82 watchers and 160 vs 12 forks.

Accordingly to OhLoh Jenkins has fewer users (53 vs 344), but more active contributors (209 vs 131).

Sunday, March 13, 2011

How to configure your Android device to show up on "adb devices"

Installing the Google USB Driver package isn't enough to make your android device to show up in the "adb devices" list. You have to follow these instructions too:

Tuesday, March 8, 2011

Expanded version of Static Maps Creator

Wouldn't be easier to edit static maps on Google Maps' My Maps screen? Yes it is!
And since Pamela Fox published her "My Maps -> Static Maps converter" it became possible.

But it lacked many feature that I implemented in my version:

  • Polygon simplification
    When the generated URL exceeds 2048 characters, the polyline resolution is reduced to fit this limit. You can see that the following msid works in this version while it didn't in Pamela's: 204800902137920655010.000497ccb8f8082d2c1fd
  • Additional output formats for changes propagation
    With Pamela's version you had to copy the image URL and paste in your site. Any changes you made to your Map wouldn't replicate to your site. It accepts the following outputs:
    • HTML output: iframe it
    • URL output: retrieve the url
    • JSONC output: retrieve a XSS compatible JSON. It accepts the `callback` parameter indicating which function should be called. The default value is `callback`.
    • Image: a JS that inserts the map in the same position as the "script" tag is in the HTML
    • ImageTest: a live HTML demo for the /image output
  • Parameter forwarding
    The following parameters are now forwarded to the Static Maps API
    • sensor (default = false)
    • size (default = 640x640)
    • maptype
    • language
    • format
    • center
    • zoom

    The current implementation also forwards the `color` and `fillcolor` parameters, but those should be read from the KML in the future.