May 2010
1 post
installing mysql ruby gem with macports mysql on...
sudo env ARCHFLAGS="-arch x86_64" gem install mysql -- -with-mysql-dir=/opt/local —with-mysql-lib=/opt/local/lib/mysql5/mysql —with-mysql-include=/opt/local/include/mysql5/mysql
May 5th
September 2009
1 post
making snow leopard + selenium + firefox 3.5 happy →
Sep 24th
June 2009
1 post
WatchWatch
I have some strange friends…
Jun 5th
April 2009
2 posts
getting synergy to work on ubuntu login screen
Add these to the end of the specified files. I only needed the first one the last time I set this up, but I had done all three in the past. /etc/kde4/kdm/Xsetup /usr/bin/killall synergyc sleep 1 /usr/bin/synergyc <servier-ip-address> /etc/kde4/kdm/Xstartup /usr/bin/killall synergyc sleep 1 /etc/kde4/kdm/Xsession /usr/bin/killall synergyc sleep 1 /usr/bin/synergyc...
Apr 25th
Apr 9th
December 2008
2 posts
merb's provides/display in rails
DHH posted about merging merb’s provides/display into rails. He proposed used a dual of respond_to and respond_with, similar to merb’s provides/display, with a couple tweaks to allow each action to respond to different types. There are a couple things about the API he suggested which I don’t love: I don’t like the way respond_with(@deals, :to => [:html, :json, :xml])...
Dec 26th
multi-line strings in javascript
var myString = ' first line \ second line \ third line \ ';
Dec 3rd
October 2008
1 post
installing libxml-ruby on leopard
sudo port install libxml2 sudo env ARCHFLAGS=”-arch i386” gem install libxml-ruby — —with-xml2-include=/opt/local/include/libxml2 —with-xml2-lib=/opt/local/lib
Oct 15th
August 2008
1 post
delete a remote git branch
git push origin :branch
Aug 18th
July 2008
1 post
Jul 25th
June 2008
2 posts
Jun 29th
Jun 29th
March 2008
8 posts
time machine with samba share
enable unsupported network drives defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1 create a sparsebundle image file sudo hdiutil create -size 320g -type SPARSEBUNDLE -nospotlight -volname “Backup of ” -fs “Case-sensitive Journaled HFS+” -verbose ~/Desktop/_.sparsebundle copy the sparsebundle image file to the backup drive cp ...
Mar 25th
migrate from svn to git
pull the svn history into a new git repository: mkdir project_name.svn cd project_name.svn git svn init path/to/svn/repo —no-metadata echo “svn_username = Real Name <email.address@example.com>” > users.txt git config svn.authorsfile users.txt git svn fetch make an svn-free git repository: mkdir project_name.git  cd project_name.git git init git remote add...
Mar 22nd
3 notes
Mar 21st
Mar 21st
Mar 14th
Allow custom javascript/stylesheet expansion... →
Mar 13th
Firefly Media Server →
drop dead simple way to share music from a linux server to itunes
Mar 8th
Mar 6th
January 2008
5 posts
Jan 22nd
Jan 22nd
Jan 19th
mounting ext2/3 drives in leopard →
Jan 3rd
wow →
Jan 1st
November 2007
4 posts
Nov 30th
Nov 25th
best ipod ever →
Nov 13th
Nov 7th
October 2007
12 posts
fixing ruby inline in leopard
inside the ruby inline gem: lib/inline.rb:387 before: flags = @flags.join(’ ‘) after: flags = @flags.join(’ ‘)  + ’ -lruby’ all better!
Oct 31st
Oct 31st
Oct 31st
Oct 31st
fixing leopards terminal prompt
# normal font weight PS1=’\e[32m\u@\h\e[0m:\e[34m\w\e[0m\$ ‘ # bold PS1=’\e[1m\e[32m\u@\h\e[0m\e[0m:\e[1m\e[34m\w\e[0m\e[0m\$ ‘
Oct 30th
installing mysql gem on leopard
install mysql via package from mysql’s website  sudo env ARCHFLAGS=”-arch i386” gem install mysql — —with-mysql-config=/usr/local/mysql/bin/mysql_config
Oct 30th
fixing leopard's dock
defaults write com.apple.dock no-glass -boolean YES && killall Dock
Oct 30th
Lessons in Spec'ing →
be careful…
Oct 26th
“Totally plan on whipping that out.”
– Dave Bishop
Oct 23rd
Amazon Patents Including a String at End of a URL →
wtf?
Oct 23rd
“work expands to fill the time available”
– http://en.wikipedia.org/wiki/Parkinson’s_law
Oct 22nd
hello world…
Oct 21st