Recent Blog Posts
Clone a VirtualBox Hard Disk
April 20th, 2011 Read more ...
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:
A basic iconv example in C
Januar 13th, 2011 Read more ...
This example converts ISO-8859-1 to UTF
Goodie
September 4th, 2010 Read more ...
PHP parse_ini_file „NO“
September 3rd, 2010 Read more ...
Some values are not allowd as name for php_ini settings. Read more about which are this.
Reverse ARP in a shell script
Juli 11th, 2010 Read more ...
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:
Ubuntu 9.10: NetworkManager PPTP failed to connect: ‚No VPN secrets!‘ – Solution
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.
doctrine 1.2.x – autoload model classes
Januar 31st, 2010 Read more ...
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.
Load json with ExtJs.Ajax and Ext.util.JSON
September 23rd, 2009 Read more ...
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.
Howto generate a 128 bit key using dd
August 3rd, 2009 Read more ...
Using /dev/random to create randomness in shell scripts
Override alert() && confirm()
Februar 17th, 2009 Read more ...
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: