Monthly Archives: July 2010

A Datamapper is remixable example

I struggled a bit this afternoon getting Datamapper’s dm-is-remixable plug-in as there aren’t too many posts out there and some are out of date. Hopefully this quick overview will spare you my pain
Many sites allow you to comment on blog posts, images, videos, status, etc. having one comments table with post_id, image_id, etc. [...]

A Sinatra before only filter

In a Sinatra application you can use the ‘before’ filter to run something before every each event.

before do
puts “I will run all the time…”
end

Here’s a module that will allow you to run code only before certain routes:

module Sinatra

module BeforeOnlyFilter
def before_only(routes, &block)
before [...]

Getting Netbeans 6.9 to work on OS X 10.5.8

After downloading and installing Netbeans 6.9 I launched the app. It bounced a couple of times in my dock as dreams of exciting new features danced in my head. Then… nothing, well not quite nothing, I received a message informing me that:
“Java 6 Standard Edition or newer required. Cannot run on older versions of Java [...]