Monthly Archive for November, 2008

Auto-generate toString() in Eclipse

Ever wondered why Eclipse provides generators for hashCode() and equals() but not for toString()? I don’t know why, but there is a very handy plugin which will relieve you from this task: JUtils toString.

VirtualBox filters ICMP Packets

VirtualBox’s NAT code doesn’t forward ICMP packets. Remember when you try to ping some destination from inside the virtual machine, this won’t work. See here for more information in german.

Quantom of Solace

I’ve just seen the latest Bond 007 movie, and it was fun. Not as good as a I expect it to be and a bit short, but it was a worthy successor to the Bond series. Too sad, that there were no interesting technical gadgets like in the other Bond movies. It seems like the movie was more serious and less funny than the precedssors.

Black Ice

AC/DC still rocks hard!

Their latest album is running in an endless loop in my music player :)

OSM Fun

Funny OSM Map

Funny OSM Map (c) OpenStreetMaps

Sometimes OpenStreetMaps can be quite funny.

KDE 4.1.3

Slowly the packages of KDE 4.1.3 arrive in experimental. I’m always desperately waiting for the latest release, because KDE 4.1 still has several small issues and each maintenance release improves the situation a bit. I expect the release announcement in a few days.

Update: There it is. The new release is named “Change”. Where that may come from … ;)

Garmin Forerunner on Linux

Recently I’ve got a Forerunner 305 from Garmin and, of course, I don’t want to have to use windows in order to communicate with this device. Fortunately it has been for sale some time now and Garmin seems to document their USB protocol well, so there are several tools which help you with this device.

  • Blacklist garmin_gps. Most tools (gpsbabel, garmin forerunner tools) have trouble with this. Add the following lines to /etc/modprobe.d/blacklist:

# stop loading of garmin_gps to serial module for Garmin USB devices
blacklist garmin_gps

  • Install gpsbabel and garmin-forerunner-tools: “apt-get install gpsbabel garmin-forerunner-tools”
  • Set proper permissions on the device node. Create a file named /etc/udev/rules.d/51-garmin.rules with this line in it:

SYSFS{idVendor}=="091e", SYSFS{idProduct}=="0003", MODE="666"

  • You want to import your track to Google Earth? Use garmin_save_runs which gives you a *.gmn file. Then use garmin_gpx on this file to get a gpx file and filnally use gpsbabel to convert the gpx to a kml file like this: gpsbabel -i gpx -f <inputfile>.gpx -o kml -F <outfile>.kml
  • To get a list of time, position and hearth rate use this command: gpsbabel -t -i garmin -f usb:0 -o garmin301 -F <outfile>. See also this post in the ubuntu forums.
  • If usb:0 as input file doesn’t work try a negativ number to get a list of recognized devices. If this command fails make sure that the module garmin_gps is NOT loaded.
  • Have a look at Trainingchart and PyTrainer
  • Reading waypoints can be done either by garmin tools or by gpsbabel: gpsbabel -t -i garmin -f usb:0 -o gpx -F <outfile>.gpx
  • Writing Waypoints to the Forerunner is easy as well: gpsbabel -i gpx -f <infile>.gpx -o garmin -F usb:0

Update:

  • Entering Waypoints (especially for geocaching): The Forerunner supports entering waypoints on the device. For you it may seem obvious, but it took me a long time to find out that this is possible at all. Just enter the Navigation menu, go to “save waypoint” and move the cursor to the position field. There you can <enter> the new values.
  • Display the current time: In the menus the Forerunner displays the current time. I think you can also display it on the main screen if you customize the layout.

MySQL: InnoDB won’t shrink

I just found out that the InnoDB Tablespace won’t shrink. I’m shocked! Seriously, that is annoying.

DCOP Trouble

DCOP is the former desktop communication (IPC) protokol of KDE before version 4. Several legacy applications still use DCOP, e.g. Amarok. Sometime Amarok told me that the dcopserver was not available. I didn’t care, but soon I found out that amarok kept spamming my .xsession-errors. This flodded my home partition in a few minutes and rendered the desktop unuseable. The solution was to fix DCOP. DCOPserver didn’t start because of stale files in /tmp. I did try to delete the content of /tmp, but rm wouldn’t let me do so because there were stale NFS references. Although I don’t use NFS at all. I didn’t want to waste time on this issue and just re-created the filesystem on my /tmp partition. Now everything is working fine again.