Category Archives: Uncategorized

Ruby connection pooling made easy

If you ever want to have a connection pool, you need not reinvent the wheel because Mike Perham has done all the work for you already. Browse on over to connection_pool on github.

Posted in Uncategorized | Tagged , | Leave a comment

Write your own custom RSpec formatter

Earlier this year I spent some time writing a custom RSpec formatter. The purpose in my case was to be able to automatically update a remote service with the results of testing some code. You can find that project here, … Continue reading

Posted in Uncategorized | Tagged , , | 2 Comments

Require a Gemfile from a Gemfile

It is probably best I don’t bother explaining how or why I ended up wanting to reference an existing Gemfile from another Gemfile, but suffice to say it is something I sort of needed to do. After a bit of … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

Ruby segfault with net/http and openssl

I was attempting to push a new gem this evening and ruby 1.9.3 segfaulted. The dump indicated openssl and net/http as the issue. Pushing gem to https://rubygems.org… /Users/bjones/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/http.rb:799: [BUG] Segmentation fault After a bit of googling I found a nice … Continue reading

Posted in Uncategorized | Tagged | Leave a comment

Updated safe_attributes now works with devise

After getting someone interested in using devise with safe_attributes to post a little information on the issue to github, I investigated and found something new. The model validators in ActiveRecord can be used on things other than attributes of the … Continue reading

Posted in Uncategorized | Tagged , , , | Leave a comment

Oracle vs Google

From http://news.cnet.com/8301-30684_3-20013546-265.html, I give you this statement by someone unfamiliar with Java and the reasons for other implementations of the technology. Of course, Java has been forked and fragmented many times over the years, destroying the “write once run anywhere” … Continue reading

Posted in Uncategorized | Leave a comment