Friday, 8 October 2010


I desided to move away from

Any still relevant entries will be migrated or get stored on my website:

You can find my blog again at:

Reasons behind this choice a) I am a BSDLike person and think you need to eat your own dogfood, b) I really need more central information storage, c) like to gain more control over my content and layout.

Thanks to for hosting my blog for almost three years.

Monday, 30 August 2010

HTC Desire blogger

HTC Desire blogger

Published with Blogger-droid v1.5.7

Sunday, 20 June 2010

Archive your CD collection using the CLI

Yes, there are programs around called abcde which turns out to be a very handy CD ripper. And using a small while loop you can basically rip your whole CD collection automatically. Apart from inserting the CD's of course ;-).

$ sudo apt-get install abcde id3v2
$ while true; do abcde -a cddb,read,encode,tag,move,playlist,clean -d /dev/cdrom -o mp3 -V -x -N; sleep 5; done
# Now insert your CD's if your trays open and close it to continue ripping
# Press CTRL+C when done ripping

Note: The recent version of Ubuntu seems to have those 'smart' popup screen on CD inserts, tell them to do-nothing-and-never-prompt-again as they can be annoying while you continue working on your computer while ripping the CD's.

Now you are done you can make yourself a playlist in a breeze:
$ find -P . -type f  -iname '*.mp3' > fullList.m3u

And while we are working on the CLI anyway, use the nvlc (part of $ sudo apt-get install vlc) to play your music in Random mode:
$ nvlc -Z fullList.m3u

Enjoy your music!

Saturday, 10 April 2010

Tomcat6 + hsqldb deployment made easy

For quick and dirty development setup for an Servlet and embedded database the following steps could be used:

Tomcat 'install'

  1. Download

  2. Unpack zip file

  3. Alter apache-tomcat-6.0.26/conf/tomcat-users.xml to include your favorite username/password (mine HVDZWET/FOOBAR)

    <?xml version='1.0' encoding='utf-8'?>
    <role rolename="manager"/>
    <user username="HVDZWET" password="FOOBAR" roles="manager"/>

  4. Start your tomcat appliance using:
    apache-tomcat-6.0.26/bin/ (UNIX) or
    apache-tomcat-6.0.26/bin/startup.bat (WINDOWS)

  5. DONE!

HSQLDB 'install'

  1. Download

  2. Unpack zip file

  3. Alter hsqldb/demo/runServer.bat (WINDOWS):

    cd ..\data
    REM @java -classpath ../lib/hsqldb.jar org.hsqldb.Server %1 %2 %3 %4
    %5 %6 %7 %8 %9
    @java -classpath ../lib/hsqldb.jar org.hsqldb.Server -database.0 file:wk2010 -dbname.0 wk2010

  4. Start server

    hsqldb/demo/ -database.0 file:wk2010 -dbname.0 wk2010 (UNIX) or hsqldb/demo/runServer.bat (WINDOWS)

  5. Working HSQLDB Server with database wk2010

Tuesday, 27 October 2009

Unix myip

Always been missing a quick way (read: UNIX CLI util) of revealing the IP currently show to the global internet, which using NAT could be quite cucumbersome to find out.

The trick below will do the trick :-)

$ cat bin/myip
if [ -n "`whereis curl`" ]; then
IP=`curl -s`
IP=`fetch -qo -`

if [ -n "$IP" ]; then
HOST=`dig +short -x ${IP}`
echo "$IP ($HOST)"

$ cat /var/www/playground/ip.cgi
#!/usr/bin/perl -w

print "Content-length: " . length($ENV{'REMOTE_ADDR'}) . "\n";
print "Content-type: text/html\n\n";
print $ENV{'REMOTE_ADDR'};

Sunday, 27 September 2009

Poor mans (DIY) duplex printing

Saving the environment is always a good thing. So using half the amount of paper needed by printing on two sides is in general always a good this. But as duplex feeding (two sided printing) printers are in general pretty expensive machines, we need some cheaper method to have two sided printing going.

The trick is use is very easy, but it requires some playing around to get it going nicely. You first print the odd pages in normal order. Move the printed pages from the output back into tray. Then the even pages in reverse order needs printing.

You first needs to play around with the paper a bit on how-to put the pages back properly into the input tray in order to get the 2nd output printed on the right side.

NOTE: When printing an odd number of pages in total (3,5,7,9,...). Make sure to remove the last sheet before putting the printed pages back into the printer else your pages will be miss-aligned.

For Mac users, please look at the attached picture on how-to select the proper output. Windows/Linux users, please post a link in the comments on how-to do this kind of stuff on your OS and I will include it.

Friday, 11 September 2009


I started college again, after a nicely deserved holiday period. Which brings me back to a place full of engineering minded persons, leading to the somehow funny joke, shown at the picture :-).

As I am in the middle of my bachelor thesis about programming with NVDIA CUDA, posting frequencies will remain pretty low. BTW if you wanna keep track of the progress of the bachelor thesis. Visit the briareus project page (Do you like the catchy name? ;-))