The init hook enigma, part 2

I struggled a few days with some functionality on the new CarChannel site where visitors are offered a splash page the first time they visit the site. I needed to built in some exceptions, like the special msn page, the xml calls and the game pages. Testing when you are logged in always worked, but when browsing anonymous and with normal caching on, things went wrong, especially with url aliases. Reading source code and documentation - or now when you are reading this article - can save your life, so when you have an init hook and you need the know the 'q' variable, add


at the top of your hook before doing anything else. This will save you many sleepless hours and frustrating tests!

Being the only *nix sysadmin (or at least, the only guy at work who knows a little more then just opening an ssh-session) also made me very stressed out the last couple of weeks because services suddenly died without leaving any information in logs. I spent the whole afternoon yesterday setting up extra monitoring services on 2 higly imported webservers which check apache, mysql, ssh and load average every five minutes and , if needed, takes the appropriate action (restart, renice etc). It was the first night in a week I finally slept the whole night through, so fingers crossed!


drupal, work, linux, hooks

Drag and drop

To all my mac-colleagues at work: I can finally stop bugging you over msn asking me to put your drag-and-dropped attachments in your e-mail into my transit. Since I switched from evolution to thunderbird, I can actually see, read and save them ... a life-saver for everybody! With this said, back to coding - which is the only thing I seem todo nowadays.


work, email

My predictions for 2008

Back from France and into a new year, time for some bold predictions for 2008:

  • I'll make some cool trips, one being to the USA. check!
  • The second (maybe the third, we'll see) of my triplet tattoo project on my arm will be finished. check!
  • I will at least attend one geek conference and maybe speak at one - probably about Drupal. check!
  • Time for daring stuff: a parachute or a bunguee jump or anything that makes my heart go much faster
  • I'll start jamming again, but now with the Canisters and buy that beer I promised to some people Partially check!
  • I'll meet one famous person - preferably Scarlett Johansson - and share a beer with him/her
  • My living room will be reorganised with a big mediashelve where I store all my books and cd's
  • I will create the coolest door to my bureau ever, a bit like this.
  • Rethink my complete pc/media/audio/jukebox setup in my house
  • I will be able to do the Michael Jackson's moonwalk by the end of year. check!



Vegany time

I'm pretty sure it was the first time in my life I ate a complete vegan meal yesterday. Eva made dinner on christmas evening and since she switched to veganism not long ago, we were the first persons to test her new kitchenmagic. I don't have proof of it, but you can believe me on my word, the lasagna she made (no cheese, no meat!) was wonderfull and there was actually nothing left over, so kudo to her! Maybe I should try this more often, but you won't hear me saying that I'll quit my appetite for a good decent piece of meat ;)




How cool is this: I'm typing this story directly in Ubuntu (Feisty Fawn) installed on my Playstation 3. To answer my question for you, Sony made it very easy to install a second OS on their latest console, you only need to follow like 5 easy steps to get things going, so ok, it ain't thàt groovy. There are a few things I need to figure out though:

  • My mobile phone recognizes the playstation when I try to connect with Bluetooth, but I can't seem to get any connection. 'hcitool inq|scan' always times out. If anyone is able to connect and send files with his phone, drop a line!
  • I want the sound from another receiver, not coming from my television, so I can listen to either webradio's, cd's or music stored on my other computer without having the tele on.
  • I'll probably experiment wth other window managers than gnome right now, because I can clearly see sound and video isn't always syncronized perfectly.
  • Video modes is also something I'll have to experiment with, because the extreme low refresh rate is killing my eyes (but then again, this ain't my desktop rigt?)

But now, back to Assassin's Creed!


Subscribe to RSS