SpringCross avklarat!

Vi var tre tappra B3IT:are som ställde upp i årets upplaga av SpringCross. 6km var distansen som gällde, och själv hade jag som mål att spring på under 36 minuter. Det lyckades jag med, den officiella tiden blev 35:23, vilket jag är väldigt nöjd med! För att vara första gången på denna tävling och första […]

Cykling i Prag

För några veckor sedan var jag med företaget till Prag och tog en cykeltur. Här kan ni se turen på Google Maps! Tyvärr glömde jag slå på GPS:en efter några pauser, därav ”genvägarna”. GPX-filen finner du här! Foton finns på Flickr! View Larger Map

Log File Roller For Microsoft Windows

A simple log file roller, that rolls/rotates a file from FILENAME.0, to FILENAME.1, onwards to FILENAME.9. If FILENAME.9 exists, it is deleted. Can be used to keep log files small and managable, and delete old ones. The code is not pretty, I could not get it work with loops. If anyone has a better way […]

HOWTO Restart shoutcast if inbound stream is lost

This is a simple way to get Shoutcast restarted (tested in Ubuntu 8.04) if the inbound stream is lost. You need Lynx installed for this to work, there might be better ways of achieving the same result though. To install Lynx: $ sudo apt-get install lynx Put in file shoutcast_supervisor.sh in /usr/bin: #!/bin/bash ONLINE=$(lynx -dump […]

HOWTO Edit your crontab with Emacs

Another ”wee” tip. I had a hard time doing this right… Put emacs in the EDITOR shell variable: $ EDITOR=emacs $ export EDITOR and add the following to your ~/.emacs: (set ’temporary-file-directory ”/tmp”) Now, edit the crontab file via: $ crontab -e Edit and save the file, and you should get a response from crontab: […]

lotus.com/ldd no more :-(

IBM has removed the old redirect for the Lotus Developer Domain, I only get to Lotus Software using that old URL. Now is time to remember this: http://www.ibm.com/developerworks/lotus

MySQL Commands Cheat Sheet

Another memory-dump. The manual contains more information (that’s a surprise :-). mysql> delete from TABLE where id=X Removes the specified row mysql> describe TABLE; Shows the structure of the specified table mysql> select * from TABLE; Shows all rows in the specified table :-O mysql> show procedure status; Shows stored procedures mysql> show table status; […]

Bash Variables Cheat Sheet

For a complete list, see Bash Reference Manual – Bash Environment Variables. This is just my own memory-dump. To get the value of a variable, you can use: echo $OLDPWD OLDPWD previous current directory PWD current directory LANG the language used by programs, check with locale -a for available locales. Can be set in .bash_profile […]