Rails and Postgres with MacPorts on OS X 10.4.8

I just got a new computer and one of the first things is to install rails and postgresql. For some reason this worked smoothly on my old Powerbook but I installed everything clean on my MacBookPro and for some reason it didn’t work so well. I install everything with MacPorts and the location of Postgres is a litte weird. Thanks to google I found the magic command line to install the ruby postgres gem with the proper parameters on »Tron Jonathans« Weblog. Just for those folks who find my post instead of his I give you the command line to install the gem for postgres8.2:

sudo gem install postgres -- --with-pgsql-include-dir=/opt/local/include/postgresql82/ --with-pgsql-lib-dir=/opt/local/lib/postgresql82/

Still no art for you dot com!

On short notice:

click me!

Continue reading

Note to myself: Useful Regular Expressions

Find all opening and closing font tags with any given attribute to replace them with nothing:

regular expression search and replace screenshot

This looks for a “<” followed by zero or one “/” followed by the string “font” followed by zero or any character followed by a “>”. This means you shouldn’t have “<” or “>” in your attributes.

If you need to find all files that contain these font tags you can use the following command in the directory containing the suspected files:

grep "<font>" * | cut -d':' -f 1 | sort | uniq

Lovely.

Lost my Jabber Contact List

This is a weird one. For some reason I lost my entire Jabber contact list. So if you still want to have (at least) virtual contact with me all you have to do is to re-add me to your contact list and re-request authorization from me. In exchange you get authorization back from me and everything should work again. I have two Jabber accounts now, just to be safe. You can re-add me with my hukl@jabber.berlin.ccc.de address which will remain my primary Jabber account and for redundancy purpose you can also add my hukl@jabber.ccc.de account.

The question is: How many of my jabber contacts are reading my blog?

So on and snow fnord!

Magic Snowflake

Quote from the Principia Discordia, page 69.