Getting Git

I recently converted all of my professional projects over to github and switched my dev workflow to use git. Oh, what a difference a tool makes. First off, git just works. It’s awesome to be able to switch branches super easily… and even create a branch after you’ve begun work on it. Realizing that you’ve started a new feature and need it to be in it’s own “silo” is great. What you want is for it not to be a pain to merge it back together. Honestly, I wish we had this at my old job where having multiple levels and several branches would have been highly beneficial. ...

January 25, 2010 · 2 min · Mark Simoneau

Installing memcached 1.4.4 on Mac OS X 10.6 Snow Leopard

Wincent.com has a great article on how to install memcached 1.4.1 on Mac OS X 10.6 Snow Leopard. Now that memcached 1.4.4 is out, I thought it would be nice to update it: curl -O http://www.monkey.org/~provos/libevent-1.4.13-stable.tar.gz tar xzvf libevent-1.4.13-stable.tar.gz cd libevent-1.4.13-stable ./configure make make verify sudo make install curl -O http://memcached.googlecode.com/files/memcached-1.4.4.tar.gz tar xzvf memcached-1.4.4.tar.gz cd memcached-1.4.4 ./configure make make test sudo make install #!/usr/bin/env ruby require 'pathname' # memcached requires an absolute path for the -P switch root = (Pathname.new(__FILE__).dirname + '..').realpath pidfile = root + 'tmp' + 'memcached.pid' if not pidfile.exist? puts "memcached not running: starting" system 'memcached', '-d', '-P', pidfile, '-l', '127.0.0.1' else puts "memcached running: stopping" pid = pidfile.read.chomp system 'kill', pid # it appears that memcached doesn't clean up its pid file # unless you send it a QUIT signal (TERM, KILL, HUP don't) # unfortuantely, QUIT on Mac OS X causes memcached to crash pidfile.delete end

December 2, 2009 · 1 min · Mark Simoneau