Recent Blog Posts
The following functions are good friends for logging. You can use format strings parsed by printf and several log levels.
When devoloping PHP applications that handle binary data it is useful to to be able to hexdump that data for debugging or logging. This is a hexdump() implementation for PHP.
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:
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:
Februar 2nd, 2010 Read more ...
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.
Using /dev/random to create randomness in shell scripts