kids
resume
links
jbum
jblog
recommendations
about
Bob's musings... (cc:world)        bob@jadn.com all.rss
Monopoly Rare - Friday, 22 October 2010 Category: all 

I put together a quick Android application to display which stamps are rare in the McDonalds Monopoly game. I dont visit McD's often, but I wouldnt want to throw away a million dollars either.

Snapshot of Rare Monopoly Stamp application

Geb, Gradle, Groovy Console - Tuesday, 19 October 2010 Categories: all, groovy 

Quite pleased with my short time with Geb (a groovy browser automation solution.) All 76 permutations of form filling now automated!! (took about 2 hours.) Now integration testing is going to be a breeze.

I used this short gradle script:

apply plugin: 'groovy'
apply plugin: 'idea'
repositories {
    mavenRepo urls: ["http://repo1.maven.org/maven2"]
    mavenCentral()
}
dependencies {
     groovy group: 'org.codehaus.groovy', name: 'groovy', version: '1.7.5'
     compile "org.codehaus.geb:geb-core:latest.release",
        "org.seleniumhq.selenium:selenium-firefox-driver:latest.release"
     testCompile 'junit:junit:4.7'
}
task(console, dependsOn: 'classes', type: JavaExec) {
    main = 'groovy.ui.Console'
    classpath = sourceSets.main.runtimeClasspath
}
Which lets you bring up a groovy console to test out groovy/geb code. Like so
     $ gradle console
And then noodle with a script until it's ready to be knighted as a unit test....
import geb.*
import org.openqa.selenium.firefox.FirefoxDriver

Browser.drive( new FirefoxDriver(), "http://google.com" ){
    go()   
    assert title == "Google" 
    $("input", name: "q").value("wikipedia")
    $("input", value: "Google Search").click()
}
Extra sweet!!

If you need a Grails/Gradle/Griffon/Android/Java hacker, I'm seeking my next gig right now!!

Build Failure popup on Ubuntu - Thursday, 15 July 2010 Category: all 

My current project uses cruise control, but it doesn't send emails on breakage.... so I put together this quick 3 line cron script script to popup a little notification when the build breaks... sweet!
# cron entry to put up notifications when the build fails. DISPLAY=:0
*/5 * * * * /bin/sh -c "if wget -q -O - http://cruisecontrol/rss/project|grep ''|grep -v Summary|head -1|grep -i fail > /dev/null; then notify-send -t 15000 -i /home/bob/bin/exclamation.png 'Project' 'Build Problem'; fi"
Note the full path on the image is important. You Mac people can use Growl instead of notify-send.

Groovy web server using only the JDK in 8 lines please - Thursday, 08 July 2010 Categories: all, groovy 

// Groovy web server using only the JDK in 8 lines please
import com.sun.net.httpserver.*;
HttpServer server = HttpServer.create(new InetSocketAddress(2222),0)
server.createContext('/', { HttpExchange exchange ->
    exchange.sendResponseHeaders(200,0);
    exchange.responseBody.write('hello from groovy land.'.bytes)
    exchange.responseBody.close();
}  as HttpHandler)
server.start();

Monoprice - Wednesday, 07 July 2010 Category: all 

Crystal misplaced her phone charger, but we still had one for the car.... I was thinking how nice it would be to have a 12 volt car adapter for the wall... Hello monoprice.com!!!, I love those guys...

Car Cast Pro - Friday, 18 June 2010 Category: all 

I created and placed in the market Car Cast Pro. I also updated the web page with a little more information about Car Cast. Car Cast Pro is $2.99 (about the cost of a beer.)

iPad apps that I recommend - Wednesday, 09 June 2010 Category: all 

iPad apps that I recommend

Swapping Droids for Nexus One's - Tuesday, 30 March 2010 Categories: all, android 

I'm very lucky to get a free phone from google as a part of the Developer Seeding program.

Alas I didnt get the one I wanted. Hopefully the Android Device Exchange can help everyone in this situation!

YES, THERE IS MORE!!!
To read my older drivel, CLICK HERE    Don't say I didnt warn you.
Made using jblog.sf.net