I learned late of Mockito [1], even so more I love it. Walking a little farther away from the basics, a frequent needs presents itself to match method parameters (either when specifying or verifying behaviour) based on properties of complex objects which do not implement the java equals contract. Such an example would be verifying … Continue reading A better eq() when matching method arguments with Mockito
Author: George Georgovassilis
Reducing power consumption on the HP Probook 4720s and Ubuntu 12.04
As said earlier, Ubuntu 12.04 does a good job with power management on the 4720s. With some manual settings power consumption can be further decreases, albeit not much this time. I wrote this script which takes a parameter: on: enable power management settings off: disable power management settings extra: on + enable extensive power management … Continue reading Reducing power consumption on the HP Probook 4720s and Ubuntu 12.04
Ubuntu 12.04 LTS on the HP ProBook 4720s
Update: Ubuntu 12.10 is out; check how it does on the HP Probook 4720s. Canonical releases just a few days ago Ubuntu 12.04, which according to their roadmap [1] will be supported until 2017. If you have been following this blog or even tried out Ubuntu on your 4720s you know that the ride [2] … Continue reading Ubuntu 12.04 LTS on the HP ProBook 4720s
Missing history update when clicking on links in GWT and HtmlUnit unittests
I'm still pretty enthusiastic about the benefits of templating [1] GWT UIs with HTML as it turns out to be a productive way for altering UIs without going through a tedious compilation and deployment procedure. HtmlUnit 2.9 is a great java browser for integration-testing Ajax applications. It works fine with GWT and we use it … Continue reading Missing history update when clicking on links in GWT and HtmlUnit unittests
Installing a local DNS cache on Ubuntu 11.10
A while ago I noticed that Firebug would report 40-100ms DNS lookups for sites that could not possibly not be in the local DNS. When reloading a page that had just been rendered, the same DNS lookup delays would show up over and over. I could not verify whether it's an issue with my ISP … Continue reading Installing a local DNS cache on Ubuntu 11.10