I Recently was working on building some Selenium tests and needed to compare a string after being saved to a database and returned to the user interface. Because of the interface plugin that does some syntax highlighting, the string was being displayed with some non printable characters. Because the non printable characters were not breaking the app, I decided that it would be OK for me to remove them to compare the strings in my selenium test.
To remove the non printable characters or only return the printable characters I used the following ruby:
For a project that I am starting I wanted to use Rails and MySQL so I decided to install for source that I compile myself for both. It was amazingly easy and satisfying to have both compiled and installed on my machine for development. Hivelogic has some really simple easy to follow blog posts on how to do both. If you are wanting to compile and install either Rails or MySQL on your Mac from source code then I recommend you check them out.