Using SendGrid for Email

Email can be a pain in the gazoo. Your code works, you've set up dovecot and postfix correctly, and email recipients... are not receiving emails from your application. The most common cause of failure, of course, is spam filters. Depending on the nature of the spam filter, the email might be automatically deleted!

Create a URL shortener

URL shorteners are all the rage. At their core, they have two functions. First, encode an existing complete URL. Second, decode a shortened version of a URL and redirect to the (restored) URL.

PHP Sendmail under Mountain Lion

With an upgrade to Mac OS X 10.8 (Mountain Lion), PHP's sendmail() inexplicably ceased working. I knew that a number of things got re-defaulted (like /etc/paths) but this seemed a bit different.