Eclipse 3.7, SVNKit, Ubuntu 64bit

Maybe it is my impression, but the combination mentioned in the title just does not work. After a successful synchronization with the repository Eclipse will insist that there are still local changes, but SVN will refuse to commit them. When forcefully committed (overwrite and commit) the repository will claim to have changes which however don't … Continue reading Eclipse 3.7, SVNKit, Ubuntu 64bit

Spring @PathVariable mapping incomplete path when dots are included

In all my projects this happens at least once, and I'm surprised over and over again: a controller will not map just anything to @PathVariable by default. Contrary to intuition, the annotation's argument is a regular expression which excludes some characters per default. For instance the url http://localhost:8080/myapp/api/user/testuser@example when mapped to a controller: @RequestMapping(value = … Continue reading Spring @PathVariable mapping incomplete path when dots are included

Speeding up initial page view of Ajax applications with static HTML

Many Ajax applications build the UI programmatically, i.e. think of GWT's UI builder or one of the many convenient jquery widgets which incurs a visible delay between the time of the initial page load and the time the page has finished rendering. The delay can be mitigated by a static "please wait while loading" message … Continue reading Speeding up initial page view of Ajax applications with static HTML

Reducing HP 4720s power consumption under Ubuntu Linux 11.10

Mainly annoyed by the loud fan I looked into ways of reducing power consumption of the HP Probook 4720s and came up with this script: #!/bin/sh -e # Increase filesystem write cache timeoutecho 1500 > /proc/sys/vm/dirty_writeback_centisecs # Enable power management on all PCI devices find /sys/devices/pci* -path "*power/control" -exec bash -c "echo auto > '{}'" … Continue reading Reducing HP 4720s power consumption under Ubuntu Linux 11.10