Rack API Middleware
A couple of Rack API middlewares for API versioning and API key authentication.










A couple of Rack API middlewares for API versioning and API key authentication.
This might be one of my lazier posts, but I wrote a straightforward programatic utility for starting and stopping Sidekiq workers. It’s honestly nothing special, but I find it useful. https://github.com/techwhizbang/sidekiq-bossman
Logging is arguably one of the best things you can do for your future self. Getting the best and clearest picture of what is happening inside your application isn’t always easy with the default Rails logger. In this post I will show you how to setup log4r in a Rails application. Specifically, a Rails 3 [...]
Running your Clojure app as a daemon is very useful especially when you’re ready to take it live for several reasons. You need a way to easily and consistently “background” or disassociate from the controlling tty for every deployment. Systems often start daemons at boot time (think about when your server is rebooted intentionally and more often…unintentionally). [...]
After experimenting and bouncing back and forth on several relatively new languages, I was undecided on what new language I wanted to commit myself to. It wasn’t until I began reading Clojure in Action that I really started to grok and see through its otherwise intimidating syntax. Admittedly, Clojure just looked and sounded too exotic [...]

Monitoring a remote JVM process has never been easier. As part of the default JDK installation you have a utility called jconsole at your fingertips. jconsole provides a simple way to attach to a running JVM process either locally or remotely. There are basically two ways to attach to the process, either choosing to attach [...]
I’m not referring to the runway model variety, I’m talking about code. Observation I’ve had the opportunity to work with many Ruby code bases the past few years. One reoccurring theme I keep seeing is bloated models. Fat chunky ugly bloated models. Literally thousands of lines, mixing in of modules, and extensions galore. All of [...]
I spent a little time tinkering with some of the “newer” RSpec 2 features while re-implementing the inject method that belongs to the Enumerable module. It is a fun and simple exercise because it reinforces the understanding of blocks and the sometimes confusing nature of the inject method. Here it is. require ‘rubygems’ require [...]
This is a presentation I gave recently on Object Oriented JavaScript. There is also source code that goes along with it that can be found here: https://github.com/techwhizbang/js_techtalk Object Oriented JavaScript View more presentations from techwhizbang
There are a lot of excellent JavaScript frameworks to choose from that provide some sort of MVC pattern. Of the most popular frameworks under this broad umbrella include Backbone.js, Sencha ExtJS, and SproutCore. All of these frameworks have their strengths, but I really crave simplicity. I really don’t want to have to read about a [...]