.

Coffee Powered

code and content

Category Archives: Uncategorized

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 [...]

Serving files out of GridFS

counter_cache for MongoMapper

Safe action caching with Memcached

Multibyte string slicing for fun and profit

System date considered important

Sweet-ass performance hacks: better_assets

Fine tuning your garbage collector

Quick tip: Strip URLs before parsing!

Things to do when upgrading to Rails 2.3