An haptic notification device for Grails (but not only)

I am a commuter and during my commuting I often work on some Grails projects. As Grails users knows, there are tasks that requires a rather big amount of time (re-run an app in non-interactive mode, run a test suite etc…) even on fairly recent hardware. Instead of watching the screen during these interval of time I prefer to lay my eyes somewhere else for at least a couple of good reasons: the first one is that programmer’s eyes are always greedy for some rest, the second one is that I live (and commute through) one of the most beautiful place in the world and taking some relaxing view of the sight is amazing!...

May 10, 2015 · 4 min · Fepede

Jawbone UP24 with Samsung Galaxy Nexus

In case someone is wondering: yes, the jawbone UP 24 works perfectly with the Gnex, but only if you are running CyanogenMod on it. The (old) Galaxy Nexus has a BLE (Bluetooth 4 Low Energy) device, but, as far as I know, the BLE feature is not enabled with stock Android, as it seems to be with CyanogenMod. I bought my UP24 today and so far I had any issue at all to make it work with my Samsung Galaxy Nexus....

August 1, 2014 · 1 min · Fepede

Dropbox hint: enabling LAN mode (in Linux)

If you are using Dropbox with multiple machines living in the same network, you can get advantage from the so-called LAN mode. Basically, if you need to sync some Dropbox’s content between those machines, they’ll talk directly each one with the other instead of talking with the Dropbox servers. This will drastically decrease the time to finish the operation (and reduce your Internet bandwidth usage) A typical Fedora GNU/Linux installation won’t make use of the Lan mode feature because by default the needed network ports are close by the firewall....

November 1, 2011 · 2 min · Fepede

Grails: how to test a rolling back service’s method

A few day ago I was writing a financial service involving several related domain classes. Under some circumstances I wanted the entire transaction to rollback. According to the documentation, a Grails transaction is rolled back whenever a RuntimeException is thrown during its execution (this is the default behaviour in Grails, but you can configure it to rollback a transaction for whatever exception you want). When I finished I wrote some integration tests to make sure that everything worked as expected....

October 15, 2011 · 2 min · Fepede