How to Automagically Sync Directories Across Multiple Macs with Git & Launchd

In an effort to minimize my downtime when the funny noises this MacBook Pro is making finally amount to something – I’ve wired up a git repository to OS X’s native launchd service. The git repository hold all of my active projects – whether development projects with their own repos, research projects, consulting project. Everything. …

Passenger + Sinatra Tip: DocumentRoot is Always /public

I was getting 403 errors after deploying my newest Sinatra app with Passenger. Turns out Passenger assumes and requires a /public folder. This app is so tiny and new, it didn’t have one yet – so I was pointing Passenger at the app’s root. Resulting in the 403 errors. Solution: Create an empty /public folder …

Sphinx Config Problem on OS X Leopard 10.5.8

I bumped into a very strange bug trying to compile Sphinx on OS X Leopard today. After running ./configure for Sphinx 0.9.8-rc2, things looked good until: configure: error: cannot run C compiled programs. . Then nothing. Now, I’m positive that my computer is advanced enough to run C compile programs. So I peaked into the …

How To Cache Highly Dynamic Data in Rails with Memcache – Part 3

In part 1 and part 2, I laid out my initial approaches on caching and performance in Cullect. While both of them pointed in the right direction, I realized I was caching the wrong stuff in the wrong way. Since then, I tried replicating the database – one db for writes, one for reads. Unfortunately, …

How To Cache Highly Dynamic Data in Rails with Memcache – Part 2

In my part 1, I laid out my initial approach on caching in Cullect. It had some obvious deficiencies; This approach really only sped up the latest 20 (or so items). Fine if those items don’t change frequently (i.e. /important vs /latest) or you only want the first 20 items (not the second 20), The …

I started building up new project today, one of the 2 initial revenue generating

I started building up new project today, one of the 2 initial revenue generating projects on my 2009 list. While it’s a way from launching, much of the heavy lifting was completed today. Conceptually, I’ve been using a proof-of-concept of this project for a couple years now. Oh, and I spent waaaay to long looking …