Thursday, April 26, 2012

Conditionally load ruby-debug gem

At the time of this post ruby-debug isn't available on for 1.9.3. I can't code ruby without it, well I can but I wont. If not everyone on the team wants to do this ruby-debug-on-ruby-193 to get it working you can conditionally load the gem like so:
# for all you ruby-debug haters out there
  if (Gem::Specification::find_by_name "ruby-debug-base19", ">= 0.11.26")
    gem 'linecache19',       '>= 0.5.13'
    gem 'ruby-debug-base19', '>= 0.11.26'
    gem 'ruby-debug19'
rescue Gem::LoadError
  puts "no debug for you"

Monday, April 23, 2012

"No Xcode folder is set" when attempting "brew install macvim"

xcode-select: Error: No Xcode folder is set. Run xcode-select -switch to set the path to the Xcode folder.

This fixed it
sudo xcode-select -switch /Applications/

If you're on a non-upgraded x64 version of Lion don't use Homebrew to install MySQL

At least for me I couldn't get gem install mysql or gem install mysql2 to compile. Kept bitching about missing header files and the like. Instead use this .dmg

mysqld: Table 'mysql.plugin' doesn't exist

If you installed MySQL 5.5 using Homebrew and you're getting this when trying to execute mysqld you probably just need to run mysql_install_db from your /usr/local directory.

From the instal directory run scripts/mysql_install_db

Solution to clipboard sharing when running Mac OSX 10.7 as a VMWare Workstation Guest OS

Install Synergy on both the guest and host. Stand back and watch it work.

Friday, April 20, 2012

Tuesday, April 17, 2012

I can never remember this url since I only need it about once a year. Great little site for building a custom installer.