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
September 2009
1 post
making snow leopard + selenium + firefox 3.5 happy →
June 2009
1 post
I have some strange friends…
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...
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])...
multi-line strings in javascript
var myString = '
first line \
second line \
third line \
';
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
August 2008
1 post
delete a remote git branch
git push origin :branch
July 2008
1 post
June 2008
2 posts
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 ...
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...
Allow custom javascript/stylesheet expansion... →
Firefly Media Server →
drop dead simple way to share music from a linux server to itunes
January 2008
5 posts
mounting ext2/3 drives in leopard →
wow →
November 2007
4 posts
best ipod ever →
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!
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\$ ‘
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
fixing leopard's dock
defaults write com.apple.dock no-glass -boolean YES && killall Dock
Lessons in Spec'ing →
be careful…
Totally plan on whipping that out.
– Dave Bishop
Amazon Patents Including a String at End of a URL →
wtf?
work expands to fill the time available
– http://en.wikipedia.org/wiki/Parkinson’s_law
hello world…