Recent Blog Posts
Iterative algorithm to remove a directory tree
Juli 11th, 2013 Read more ...
When it comes to deleting a directory tree most solutions that have been posted around are recursive functions, like the following: ... While this is easy to implement it has some disadvantages when it comes to large trees ...
PHP IPC Signal Example
Mai 24th, 2013 Read more ...
There are several pitfalls when using POSIX signal handling with php. The following example should help to get around them.
The example forks a child process and afterwards sends the `SIGTERM` signal to the child. I'll guide you through the important sections:
Dump Source Code of Closure in PHP
Mai 22nd, 2013 Read more ...
Recently I was required to dump the source code of a closure in php, for debugging purposes. Here comes my first working approach:
Howto generate a 128 bit key using dd
August 3rd, 2009 Read more ...
Using /dev/random to create randomness in shell scripts