Rails, Firefox, Anime, Mac
Quick notes for installing libmemcached and Evan Weaver’s memcached gem, in case I forget (again):
Get libmemcached source from http://tangent.org/552/libmemcached.html. Configure, make, make install. Make sure you get a version compatible with the Ruby memcached gem by opening the COMPATIBILITY file in the memcached gem files.
gem install memcached
Create a symlink ln -s /usr/local/lib/libmemcached.so.2 /usr/lib/.
Try it out [...]
In: Edge Rails| Open Source| Ruby| Ruby on Rails
27 Mar 2008It’s time again for some edge Rails love. If you haven’t listened to it yet, be sure to check out this week’s Rails Envy podcast
This week’s report covers changes from 17 Mar 2008 to 23 Mar 2008 (the day the corresponding Rails Envy podcast was recorded).
script/plugin install works for Git repositories
Yup you can now install [...]
After seriously giving Firefox 3 Beta 4 a try due to Safari 3.1 breaking the Shift key in Gmail (update: as kindly pointed out by some of my readers in the comments, it was Gmail that was broken, not Safari 3.1, doh), I’ve converted to using Firefox 3 Beta 4 as my primary browser. Before, [...]
In: Edge Rails| Open Source| Ruby| Ruby on Rails
20 Mar 2008This week’s report covers changes from 10 Mar 2008 to 16 Mar 2008 (the day the corresponding Rails Envy podcast was recorded).
Custom JavaScript and stylesheet symbols
Remember how you can do something like:
javascript_include_tag :defaults
and Rails would load all the Prototype JavaScript files and your application.js?
You can now register your own custom expansion symbol too:
# In a [...]
In: Ruby
15 Mar 2008Just a quick note to self. If you need to store Unicode and are using Sequel, make sure you:
Create the database with a default charset of UTF8: CREATE DATABASE my_db DEFAULT CHARSET utf8;. I think then any tables you create uses the default charset of utf8 unless otherwise specified.
Pass an :encoding option to Sequel’s MySQL [...]