Development

Sharing Context Between Dependent Rake Tasks

2 min read

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

2 min read

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 …

Extracting Content From Markdown

2 min read

Recently I've been playing around with building a pure javascript full text search engine for static content sites like this one. One of the challenges with …

Calculating RSA Key Fingerprints in Ruby

3 min read

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 …

Creating Crypt Style SHA512 Passwords With Ruby

1 min read

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 …

Access GET Parameters With Coffeescript

1 min read

I've been working on a pure JavaScript based search engine for this static website and needed to access a get parameter within the URL. I found a few solutions …

Ruby's Option Parser - a More Complete Example

4 min read

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 - …

Keep Your Gems Updated

3 min read

I recently went back through my backups recently and found quite a few old abandoned projects. Looking back on the code I see some things I'm impressed with, …

CarrierWave, S3 and Filenames

2 min read

This is going to be a real quick post. I'm using the "carrier_wave" gem with "fog" for one of my projects and found that when a file is …