8/24/11

There are a few libraries you can use to parse json but they can be a pain to initialize and setup when all you need is to grab a specific value given a parameter name and you don't have an array of data.

6/27/10

I am really impressed with how Ubuntu 10.04 has resurrected an old computer of mine. The computer was running Windows XP and it was too slow to even start up. Now with Ubuntu 10.04 on it I can develop MySQL/Apache applications/servers with ease. As an experiment, I am going to see how this old computer handles running Ruby on Rails as well. This post describes how to install ruby on rails on a Ubuntu 10.04 server.

"Mongrel is a small library that provides a very fast HTTP 1.1 server for Ruby web applications. It is not particular toany framework, and is intended to be just enough to get a web application running behind a more complete and robust webserver.

What makes Mongrel so fast is the careful use of an Ragel extension to provide fast, accurate HTTP 1.1 protocol parsing. "

3/16/10

This code will create a log file named --today's date--.log and append log messages to the file. Each log message has the current date and time before each message. To compile in linux use this command: