Ruby
Parsing HTTP Responses in Ruby
Normally handling HTTP responses in Ruby is rather straight forward. There is a native library in Ruby that handles HTTP requests which parses the responses …
Sharing Context Between Dependent Rake Tasks
I use Rakefiles quite a bit like traditional Makefiles, in that I specify immediate dependencies for an individual task and Rake will execute all of them. If a …
Ruby Code Quality Metrics
I like getting unopinionated feedback on the quality of the code I write. Sometimes I can get this from other developers but they tend to get annoyed being …
PG::Error: ERROR: Type 'Hstore' Does Not Exist
I've been using the PostgreSQL's hstore extension in a Rails application lately and kept encountering the error that is this post's namesake. It would …
Calculating RSA Key Fingerprints in Ruby
I regularly find myself working on projects that involve the manipulation and storage of RSA keys. In the past I've never had to worry about identification or …
Finding Ruby Subclasses
While working through a problem I found it would be immensely useful to be able to enumerate all of the current subclasses of a particular class. After thinking …
Creating Crypt Style SHA512 Passwords With Ruby
I needed to generate crypt-style SHA512 passwords in ruby for an /etc/shadow file. After a bunch of Googling and messing around with the OpenSSL library I …
Running Emails Through Ruby
Following up on my earlier post where I covered how to backup your Gmail account using "fetchmail" and "procmail"; I wanted to cover how I …
Ruby's Option Parser - a More Complete Example
found top level header in "/blog/2012/12/rubys-option-parser-a-more-complete-example/" that didn't match meta title ("Ruby's Option Parser - …