Git file history

View the commit history for a particular file with git on the command line: git log --follow -p -- filename

March 10, 2017 · 1 min · Paul

Updating git on OS X Mavericks

The easiest way to update git to 2.2.1 or higher is to use homebrew. brew install git If you get a command not found error, you can install homebrew from brew.sh (scroll down for a one liner, i won’t copy it here in case it updates). If you get a different error, check out Updating homebrew on yosemite.

January 13, 2015 · 1 min · Paul

Updating Homebrew on Yosemite

The Error $ brew /usr/local/bin/brew: /usr/local/Library/brew.rb: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby: bad interpreter: No such file or directory /usr/local/bin/brew: line 21: /usr/local/Library/brew.rb: Undefined error: 0 $ brew doctor /usr/local/bin/brew: /usr/local/Library/brew.rb: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby: bad interpreter: No such file or directory /usr/local/bin/brew: line 21: /usr/local/Library/brew.rb: Undefined error: 0 The Fix Make homebrew think /System/Library/Frameworks/Ruby.framework/Versions/1.8 still exists until you successfully update: cd /System/Library/Frameworks/Ruby.framework/Versions sudo ln -s Current 1.8 brew update sudo rm 1.8

January 13, 2015 · 1 min · Paul

OS X pg gem install or bundle install issues

If you’re getting errors like: Building native extensions. This could take a while... ERROR: Error installing pg: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb checking for pg_config... yes Using config values from /usr/local/bin/pg_config checking for libpq-fe.h... yes checking for libpq/libpq-fs.h... yes checking for pg_config_manual.h... yes checking for PQconnectdb() in -lpq... no checking for PQconnectdb() in -llibpq... no checking for PQconnectdb() in -lms/libpq... no Can't find the PostgreSQL client library (libpq) *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby --with-pg --without-pg --with-pg-config --without-pg-config --with-pg_config --without-pg_config --with-pg-dir --without-pg-dir --with-pg-include --without-pg-include=${pg-dir}/include --with-pg-lib --without-pg-lib=${pg-dir}/ --with-pqlib --without-pqlib --with-libpqlib --without-libpqlib --with-ms/libpqlib --without-ms/libpqlib Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/pg-0.17.1 for inspection. Results logged to /Library/Ruby/Gems/2.0.0/gems/pg-0.17.1/ext/gem_make.out Try: ...

August 16, 2014 · 1 min · Paul

Bonjour issues cause problems with teleport

Common issues caused by bonjour with Teleport: Teleport not connecting Teleport not showing the accept prompt Teleport only able to connect in one direction and not the other Teleport can’t reconnect Making sure Bonjour is working Messages.app > Preferences > Accounts > Bonjour > Enable Bonjour instant messaging (on both computers) Locate your other computer in the buddy list (⌘1) and send a message between computers. Disable Teleport on both computers Restart both computers (sorry) Enable Teleport on both computers and hopefully connect

November 25, 2013 · 1 min · Paul