What I Learned Today

I wrote a gigantic post about internationalization in Rails for the Viget Extend blog today. Go check it out to see what I've learned about that.

I also learned something simple today. I'm using MongoDB for something, and I wanted it to start up under OS X when I log in. I've created a LaunchDaemon before, but I'd forgotten where to start. Once I found and read this good article on creating your own daemons, it wasn't hard from there. I ended up with:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
 "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>Label</key>
    <string>org.mongodb</string>
    <key>ProgramArguments</key>
    <array>
        <string>/Users/cnixon/lib/mongodb/bin/mongod</string>
        <string>run</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
</dict>
</plist>

If you drop that under ~/Library/LaunchAgents, you'll be in business.

Published: 02 Jul 2009