
While developing a Rails apps using PostgreSQL (unlike MySQL) I often run out of db connections and see errors like “FATAL: remaining connection slots are reserved for non-replication superuser connections” and when I do, my Rails app stops working. Restarting Postgres fixing the problem, but it was harder to restart postgres that I expected. Here’s how I do it. Read more…

I would like my Facebook Connect app to publish stories to my users’ Facebook news stream. I went looking for how do this with Facebooker and figured out an answer.
Read more…
Categories: code Tags: authlogic, authlogic facebook connect plugin, facebook, facebook connect, facebooker, news feed, open streams api, ruby, ruby on rails, stream, stream.publish
Rake tasks contained in a gem are not automatically available to a rails app that requires the gem. Whether that’s the right way to do things is under debate, but in the mean time there are a couple workarounds.
Read more…

I too ran into some trouble before discovering that my beloved AuthLogic is validating my email field. The validation is a good thing overall, but I want to support blank email addresses as well as properly formatted ones.
Read more…