.

Coffee Powered

code and content

Author Archives: Chris Heald

Chris is 25 year-old a web developer and entrepreneur. He is the CTO of blippr, LLC, a startup providing a discovery and recommendation platform for various media. He’s been in the web development business for about 8 years, and dabbles in about as many languages as he can get his hands on. He began working in Ruby and Rails in late 2006.

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

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