December 2008

Posted by luciferous
luciferous's picture

During one interview I was asked to write an algorithm to reverse a singly-linked list. This is a data structure that can only be traversed in one direction, kind of like driving down a one-way street.

It is important to know how a linked list differs from an array. An array can also be used as a list, so when are linked lists more appropriate?

Continue reading...

Drupal and msmtp

21 Dec 2008
Posted by luciferous
luciferous's picture

I've been working on a Drupal module to allow me to send mail with msmtp. I call it Mailer, which is a terribly creative name, I know. I'm so clever!

Mailer can be extended to work with any SMTP client, but for now has an interface for msmtp. I use msmtp for transmitting mail to the Google SMTP server.

Mailer works by opening a process with popen, and the writing the email into this handle.

Continue reading...