Dezember 28th, 2012 - 

nice cover artwork )

List syntax and array filtering

November 21st, 2012 - 

The problem :

A string that represents a sentence ( e.g. user input ) needs to be split into parts (words ) , the delimiter should be  the blank space ” ” .

However, multiple blanks should not produce “empty” words in the end . Therefore, only words != “” should be kept in the final list / array of words .


[w for w in sentence.split(" ") if w!='']


array_filter(explode(" ", $sentence), create_function('$x', 'return $x!="";'))

commit activity , generated by statSVN

September 3rd, 2010 - 

I let statSVN ( ) generate some..  well ,  stats  , which was quite interesting and not that much hassel. Still, the git guys tell me that these are not very impressive and that I should switch VCS .. Certainly considering this – for the next projects.

php5 start-session issue on ubuntu

September 3rd, 2010 - 

Sometimes this error would pop up

“Fatal error: Uncaught exception ‘Zend_Session_Exception’ with message ‘Zend_Session::start()”

With the crucial line: “ps_files_cleanup_dir: opendir(/var/lib/php5) failed: Permission denied”

An explanation and solution is posted here

The source states that for  Debian and Ubuntu, the automatic garbage collection must be set to “off” , for the various php5 packages in use ( e.g. , php-cli ) .

So we have to take care of this in the  php.ini files for the packages in question.