Friday, 8 October 2010

Goodbye blogger.com

I desided to move away from blogger.com


Any still relevant entries will be migrated or get stored on my website:
   http://rickvanderzwet.nl


You can find my blog again at:
   http://rickvanderzwet.nl/trac/personal/blog




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 blogger.com 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 http://apache.mirrors.webazilla.nl/tomcat/tomcat-6/v6.0.26/bin/apache-tomcat-6.0.26.zip

  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'?>
    <tomcat-users>
    <role rolename="manager"/>
    <user username="HVDZWET" password="FOOBAR" roles="manager"/>
    </tomcat-users>


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

  5. DONE!




HSQLDB 'install'



  1. Download http://sourceforge.net/projects/hsqldb/files/hsqldb/hsqldb_1_8_1/hsqldb_1_8_1_2.zip

  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/runServer.sh -database.0 file:wk2010 -dbname.0 wk2010 (UNIX) or hsqldb/demo/runServer.bat (WINDOWS)

  5. Working HSQLDB Server with database wk2010