11/13/2011

how to enable AIRDROP on your old mac

just a simple command to go:
defaults write com.apple.NetworkBrowser BrowseAllInterfaces 1
restart your Finder, or your mac, there you have it!

11/04/2011

Rspec won't run - Error: In `bin_path': can't find executable spec for rspec-2.x (Gem::Exception)

here is a useful tip for people who just migrate from rspec 1.x to 2.x
first of all, the 'spec' command was renamed to 'rspec' in 2.x.
if you're still able to run it, that may because the 1.x gem is still
on your system, it's just "hidden" by bundler when you specify 2.x in
your 'Gemfile'
in this case, you may use the 'rake spec' command instead
for people who are working with outdated projects suffering from this
problem, you can fix this error by doing:
'which spec'
then open that file in your favorite file editor and change line 11
which looks like
version = '>= 0'
TO
version = '< 2'
and your spec command will work again :)