.

Coffee Powered

code and content

Serving files out of GridFS, part 2

Since my initial experiments with GridFS and nginx-gridfs, I discovered a rather downer of a dealbreaker: compiling Passenger and nginx-gridfs into the same nginx binary makes nginx very unhappy. It hard-freezes (as in, blocks forever) when you request a GridFS file with Passenger enabled. Oops.

So, I sat down and fixed gridfs-fuse. You can grab my branch at GitHub. I made a few changes that make it ideal for serving files out of a GridFS DB, with a few caveats.
Read More »

Serving files out of GridFS

counter_cache for MongoMapper

Safe action caching with Memcached

Eight tips for getting the most out of your Rails app

When you have to store user passwords…

Multibyte string slicing for fun and profit

System date considered important

Sweet-ass performance hacks: better_assets

Fine tuning your garbage collector