Odd and evil things

Today I learned it's possible to add an extra submit handler when using hook_form_alter() in Drupal. En concreto, I can for example create new nodes when someone adds a new language in the locale module. If I were very evil, I could write a contributed module which would be very interesting for the community, but if someone doesn't take a look at my code, he wouldn't see I've added an extra submit function that deletes all nodes after he changes his files settings. Luckily I'm a decent person, I'll never do that :) I'm just very happy I found a solution without messing on the core files!

Evil also seems to be the combination of PHP5, apache and APC: the thing simply crashes every minute, especially when heavy calculations take place leaving nothing but segfault lines in your error log and dumping core in your directory. I've been running a server with lighttpd and XCache (xcache.lighttpd.net) now for a week and I haven't had any phone calls from people seeing the white screen of death, let's hope things stay that way, otherwise, well, I dunno what else for now ...

I also learned something - rather stupid - today: if you enter 0.0 (or 00.00, 0000.000000, etc) in your address bar, the browser takes you to your localhost. I'm not sure what happens if you don't run a local webserver, because I simply don't have any computer without it - and I'm to lazy right now to stop my lighty service.

Anyway, it has been a very interesting and stressy month and I can finally chill out a bit, maybe (finally) get to record some songs again, whatever and of course counting the days untill the first of march when I leave for the upcoming DrupalCon in Boston and a few days wandering around in New York, yay!

You are here