Archive for the ‘Ruby on Rails’ Category

PostGIS psqlostgis ERROR could not load library /usr/lib/postgresql/8.4/lib/postgis-1.5.so

Trying to install PostGIS and you can’t get past this error?
psqlostgis.sql:57: NOTICE:  type “spheroid” is not yet defined
DETAIL:  Creating a shell type definition.
psqlostgis.sql:57: ERROR:  could not load library “/usr/lib/postgresql/8.4/lib/postgis-1.5.so”: /usr/lib/postgresql/8.4/lib/postgis-1.5.so: undefined symbol: GEOSHausdorffDistance
psqlostgis.sql:63: ERROR:  current transaction is aborted, commands ignored until end of transaction block
psqlostgis.sql:68: ERROR:  current transaction is aborted, commands ignored until end of [...]

Posted on March 10, 2010 at 12:44 pm by Jordan Carter · Permalink · One Comment
In: Ruby on Rails, Server Config · Tagged with: , , , ,

Fetch Email Attachments with Ruby on Rails

This snippet is used in one of my projects to automatically import a csv into the database. It uses cron to check an email account via IMAP. When a unread email is found it will try to match it to subject lines in the database. If there is an entry it will [...]

Posted on December 28, 2009 at 8:34 am by Jordan Carter · Permalink · Leave a comment
In: Ruby on Rails · Tagged with: , , , , ,

Xapian & Ruby Enterprise in Ubuntu

How to fix ‘No Ruby bindings for Xapian installed’ on Ubuntu after upgrading to RubyEnterprise

Posted on October 14, 2009 at 3:48 pm by Jordan Carter · Permalink · One Comment
In: Ruby on Rails · Tagged with: , , , ,

Git Bisect – The Developers Wet Dream – Binary Bug Search

and I used git-bisect for the first time yesterday.  We had a bug in our rails code which was preventing an ajax call to work properly.  We had both spent a few hours to find the bug but with no luck had to divert traffic from that page.
It was daunting as we had no [...]

Posted on October 13, 2009 at 9:10 am by Jordan Carter · Permalink · Leave a comment
In: Ruby on Rails