Posts tagged with

Checking if an option exists in an MySQL enum column

January 23, 2012 -

Although using MySQL enums is often discouraged I sometimes use them for their simplicity. Today however I stumbled upon one of the problems with enums. There is no simple method to determine all possible values of an enum column.more


PHP: Capture vs Closures

January 18, 2011 -

A colleague brought up an interesting question today, he asked which was better performance-wise using closures or using capturing with output control (ob_start() / ob_get_clean()). I expected closures would be better since there's a bit more going on behind the scenes when using output buffering, but I wasn't sure so I decided to make a little test.more


Converting a simple XML snippet to an array

December 14, 2010 -

The need to convert a snippet of XML to a PHP array is something you are bound to encounter if you develop in PHP and are making calls to web services. Since everything has to be mashable these days, this includes more or less every PHP developer out there.more


Splitting up your Habari plugin in smaller logical modules

November 23, 2010 -

Today I'll show a way of splitting up a plugins logic into multiple files without losing all the magic that makes writing habari plugins so easy and more importantly without making the plugin overly complex.more


Civilization 5 addiction

October 18, 2010 -

On September 24th (21th in North America) of this year something horrible happened, Firaxis released Civilization V. You are probably wondering why this is so bad. Well, if you are a recovering civilization addict like myself, a new Civ game can be devastating to your productivity and social life. Unfortunately for me the new game did have exactly that effect, …more