Archive for April, 2007

How to record and convert real audio streams to mp3

Tuesday, April 17th, 2007

I came up with this one a long time ago - its a nice little hack. It requires mplayer (and the right codecs) and lame. It might work on windows if you have cygwin installed. It should work with any type of stream that mplayer can play, not just real audio streams.
This approach uses a [...]

Lighttpd on ubuntu

Sunday, April 15th, 2007

Lighttpd is a great web server. It manages resources frugally, and still manages to be fast. If you have a dedicated super duper server, lighttpd is probably not for you. But perhaps you need your machine to do more than just be a web server, or perhaps you are using a virtual dedicated server (vds, [...]

Quick and dirty debug logging in ruby on rails

Sunday, April 15th, 2007

Typically I just to render :text=> “Yo the value is #{debug_me}” and return
But sometimes this doesn’t work. Maybe you are in a model file, or a method that gets returned to another method. If that is the case you can always get some debug by raising an exception:
raise “Yo the value is#{debug_me}”
Since exceptions can come [...]

ok