Entries by Stefan Helander

mysqldump to multiple files

It is a good idea to run mysqldump by cron to regurlarly make backups of your MySQL databases. An easy way to do this is by adding the –all-databases parameter.  This way you will have a backup of all your databases – in one file though. If the amount of data and the number of […]

FON 2.0n router sharing 3G over Wifi

When you’re travelling as a professional nerd, you regularly needs to access the Internet. Internet cafés can be expensive and 3G… don’t think about using it abroad. It ususally costs a fortune. I joined the FON network where you share your broadband connection at home to other FON-users and in return you are able to […]

ASCII animated Star Wars movie

To see it, you need a telnet client installed. In Linux and Microsoft Windows previous to Vista a telnet client is built in (obviously Microsoft figured no-one uses telnet anymore in Vista). To see the movie, just do telnet towel.blinkenlights.nl In Windows XP, click Start and then Run and type the line above in the run-command […]

Vivotek PT7137 network camera connection problems

I use the Vivotek PT7137 network camera connected through wifi/wlan to my network. Even though it is located only 7 meters from my accesspoint (with a couple of walls in between) the camera lost connection once in a while. And it wouldn’t reconnect unless I rebooted the camera. Upgrading to the latest firmware (v2.6 2009-04-14) […]

PHP htmlspecialchars_decode doesn’t handle nordic/german characters like å, ä and ö

The PHP functions htmlspecialchars and it’s reverse htmlspecialchars_decode only handles the following characters: ‘&’ (ampersand) becomes ‘&amp;’ ‘”‘ (double quote) becomes ‘&quot;’ when ENT_NOQUOTES is not set. ”’ (single quote) becomes ‘&#039;’ only when ENT_QUOTES is set. ‘<‘ (less than) becomes ‘&lt;’ ‘>’ (greater than) becomes ‘&gt;’ If you want to output html text containing nordic/german characters […]