Archive for september, 2010
oculusd 0.18
maandag, september 27th, 2010A few weeks passed, and I sat down for some hacking. Here is oculusd version 0.18: the command function prototype has changed; it now also takes a struct connection pointer. This way, the command handler knows a little of the client connected. The ‘alarm’ plugin changed its ever-changing id to a unique id (uid), consisting [...]
Hybride wagens en meer marketing onzin
donderdag, september 16th, 2010Het is hip om goed voor het milieu te zijn. Dat was een paar jaar geleden wel anders. Toen was het alleen weggelegd voor de geitewollensokken Greenpeace jongens en meisjes. Bomenknuffelen en walvisvaarders torpederen. Nee, nu is het big business. Politici buitelen over elkaar heen om de ene na de andere hybride, lage uitstoot mileuvriendelijke [...]
oculusd 0.17
maandag, september 13th, 2010Oculusd 0.17 is here. Fixed a few bugs; the se server could crash on certain configuration errors. Also, repaired a design mistake: hardcoded arguments (which have to be configured, otherwise the event-action connection is not made) are now bound to “actions” instead of “events”. Where they belong. Now I can start implementing the action bodies. [...]
9/11 and modern journalism
zaterdag, september 11th, 20109/11 today. Nine years ago the earth stood still in the Western world. Nothing would be the same ever again. The world changed. Of course, nothing would be the same after 23 of october 2003 as well. Or after 2nd of april 1998. Things change. And sometimes, the world changes more than other times. We [...]
Return value of a CakePHP Shell
vrijdag, september 3rd, 2010Another one I had to figure out by reading the source code: how to make your CakePHP Shell return something else than 0 in $?. It is very easy, if you let your main() return false, your Shell will return 1 in the console. Unfortunately it is not possible to return any other value, the [...]
Removing the “Welcome to CakePHP…” message in a Shell
woensdag, september 1st, 2010It is quite easy, but I had to ask on IRC (the very good #CakePHP channel on FreeNode) and browse the CakePHP source code to find it. The welcome message is output by the protected _welcome() call (in cake/console/shell.php). This method is called by the startup() call, which can be overridden in your Shell. As [...]