-
Reminder Trick With Quicksilver
I have a few tools for making and keeping myself more productive. One of those tools is Quicksilver. I know it is a widely used tool so I won’t spend time talking about everything it can do. However, from the Blacktree website, it is: A unified, extensible interface for working with applications, contacts, music, and…
-
Setting Up DKIM and Postfix on CentOS 5.2
I spent a while trying to set up DKIM with Postfix on CentOS 5.2. I read the HOWTOs on HOWToForge written by Andrew Colin Kissa (aka TopDog) who subsequently helped me towards getting this setup working. My setup is that I have a mail spooler and multiple mail senders. This is to say that the…
-
Testing For A Number
Although you generally don’t have to worry about types in Perl, it is occasionally necessary to ensure that you are working with numbers. Your test cases should notify you that something is amiss when you didn’t get a number (when you were expecting one). Thankfully Scalar::Util provides a method to deal with this. 1234567use Scalar::Util…
-
Cleaning Up Long Conditionals With Grep
Every so often I am faced with testing a few conditionals before dropping into another control structure. If you have to test out a few conditionals, then its likely a dispatch table won’t be useful. If you have a lot of conditionals to test, you’ll likely not want to deal with an ugly expression like…
