It works by taking advantage of the fact that Rack apps (and middleware) take as their sole parameter a hash containing the environment - all the CGIish stuff like user agent, HTTP method and the path information. Apps and middleware can add information to this hash so it can be shared.
I also have the middleware in a Github repo, along with unit tests and a Rails plugin which adds the middleware to the Rails middleware stack and provides a nice API for adding log entries.
Since I wrote this, it turns out my little middleware was a finalist! I didn’t place, but I’m still pretty pleased that people liked it. Thanks to everyone who voted!
23 Oct 2009
I’ve decided to share more items in Google Reader. I’ve added a link to the resulting “link blog” to the sidebar, along with a link to my twitter account.
15 Sep 2009
Wandering what to watch? Give this a go.
tell first document of application "Delicious Library 2" activate set movieCount to the count of every movie set chosenMovie to random number from 1 to movieCount set selected media to movie chosenMovie end tell
10 Sep 2009