Randomness for you since 1976
One of the ways I prefer to debug is to print things to standard out and watch a console window. The problem is, in Rails, I get a lot of spam to sift through that I usually don’t need: SQL statements, routing and rendering info, etc. It makes finding your output difficult. Today I came up with this convenience method, which makes all of my output a nice orangish/yellow color thats easy to pick out.
Below is a partial screenshot of what my output looks like. Everything I output with the ppp method is very easy to see.

This blog is a dumping grounds for my experiences as a web developer, a parent, an artist, a writer and a human being. Maybe someday there will be something here that is worth your time, some sort of useful information or words that piece your very soul. Probably not though.
Catherine
May 15th, 2008 at 8:39 pm
It makes me a wee bit sad you refer to SQL as spam. Not saying you’re wrong, just saying I’m a wee sad.
Michael DeCandia
June 19th, 2008 at 5:06 am
I found a really nice way to upload color coded code to my site, you may want to use it here.
http://code.google.com/p/syntaxhighlighter/
F. Morgan Whitney
June 19th, 2008 at 7:39 am
DeCandyland!
I actually use the Coolcode plugin for Wordpress. You can see it in the numbered code block at the top of this post. The second one was just a screen shot of my terminal output