Wake up your display with Adium and Applescript
June 18th, 2008
I had a problem with Adium: After 3 minutes of inactivity, my monitor goes to sleep. With the laptops volume turned low I would not notice any incoming messages whenever I was playing a game or anything that made some level of noise.
Back when I used windows, Miranda woke up my display when it received a message. That was an option I missed from Adium. The solution to this was pretty simple though. Adium provides the possibility to execute an Applescript on events. So I wrote a litte script to wake up my display and bound that to the “Message received (initial)” event. The script? Not very impressive:
But it works! :)
(Key Code 59 is the CTRL key, so you don’t accidentally trigger anything by firing it)
AJAX vs. REST
December 15th, 2007
A small shop I’ve been writing for for fathers pharmacy was a welcome playground for modeling my domain RESTful. During my ventures, two big issues had me thinking quite hard for a while and there’s still no proper solution available. One of them was a DRY implementation of controllers for nested resources which I’ll describe later, the other one was the outdated inplace editor plugin in Rails.