Server Woes

Posted by Skip Fri, 14 Apr 2006 01:35:00 GMT

We have been having a lot of issues with keeping our lighttpd sites up and running on TextDrive (even with a @reboot cron job set). There is a ruby script called daedalus that can continually check for your lighttpd process, and if it’s not found attempt to restart it, but due to overuse the TextDrive admins banned it from their servers.

We decided that the easiest thing to do was just use Ruby’s own Net::HTTP module to request the headers for our blog every 10 minutes or so. If we don’t get back a ‘HTTP 200’ we know something’s wrong and run a shell script that SSHs into our server and restarts lighttpd. Since we’re just requesting the headers the bandwidth won’t be a problem and the resource load on TextDrive is no more than a regular web request.

If you’d like to use it for yourself, feel free.

Tags , , ,  | no comments | no trackbacks

Single Table Inheritance

Posted by Skip Wed, 12 Apr 2006 20:46:00 GMT

Skip drops Rails science

Last night I gave a talk on Single Table Inheritance to the Austin on Rails user group. Single Table Inheritance (STI) is a way to have several Rails models all extend from a base class sharing properties and behavior. If y’all haven’t checked out the Rails phenomenon, I wholeheartedly recommend drinking the kool-aid. It’s a fabulous framework and Ruby is a joy to program in.

The presentation went great and I got a lot of good questions from the audience. I used Eric Meyer’s fantastic S5 slideshow code to present with and the slides are up on my personal site (twelvelabs) if anyone wants to take a peek.

Tags , ,  | no comments | no trackbacks

Skip On Rails

Posted by Kristina B Fri, 07 Apr 2006 20:44:00 GMT

Skip will be speaking at the next Austin on Rails meeting Tuesday, April 11th at Frog Design’s Austin office.

Tags , ,  | no comments | no trackbacks