Running Shell Commands in Ruby

One of the major benefits of unix is the quantity of many simple programs that one thing great. As a developer for unix, you must learn how to leverage these commands into your own scripts. Here is how to do this in Ruby. Say you script wants to call on the unix command to view …

Read more

Server Status Plugin

I just got a new sidebar plugin developed for Typo here. It shows the uptime and load average of the server it is running on. It should work on any server that allows the “uptime” command to work. I have tested it on OSX(Darwin) and Debian 3.1 so far and it works on both. I …

Read more

Back on Typo

Well I am back on Typo after going to WordPress for a bit. The reason I left was because after about 12 hours of being up my website would stop responding. Lighttpd was the only thing that logged it but it was a weird log message 2005-09-20 11:59:12: (server.c.937) connection closed - write-request-timeout: 9 And …

Read more

Choosing Names in Your Database

At work I was working on a simple Ruby on Rails project that is basically going to use CRUD to store, edit, and view information, something simple. I kept getting really weird errors with my scaffolding. After much mangling done with my database and code I found the problem was that I named a field …

Read more