Recent Blog Posts

When working with VirtualBox, sometimes its useful to clone a OS by just duplicate the *.vdi hard disk file and create a new OS with this hard drive. When you just copy and paste the .vdi file you'll get an error because the uuids of the partions on the already in use by VirtualBox. The correct way to do this is:
This example converts ISO-8859-1 to UTF

Goodie

September 4th, 2010  Read more ...

Some values are not allowd as name for php_ini settings. Read more about which are this.
Sometimes it is useful in bash scripts to resolve an IP address to a mac address. Here comes a simple script that perfroms this action:
Trying to establish a PPTP VPN Connection via Gnome NetworkManager (Ubuntu 9.10) I encountered some problems. While the connection not establish I got the following lines in my syslog.
While playing a bit with Doctrine ORM (1.2.1) for PHP, I encountered problems with autoloading my model classes. The autoload mechanism is described here. But as far as I see they changed this behaviour in doctrine 1.2.x but they didn't updated the documentation yet. So it took me a while to find a solution. Here are the steps to reproduce the problem and my solution for this. I have simplified the original steps from the doctrine documentation a bit.
An example how to use the ExtJs classes Ext.Ajax and Ext.util.JSON to load json encoded data into a javascript object from a remote source.
Using /dev/random to create randomness in shell scripts
I never tried it before: It's possible to override the javascript built-in functions alert() and confirm(). I think this can be a useful feature in some cases. For instance you can write a function to display all alerts in the Firebug console with this code:It's possible to override the javascript built-in functions alert() and confirm(). I think this can be a useful feature in some cases. For instance you can write a function to display all alerts in the Firebug console with this code: