Git SVN Error in SourceTree for Mac after upgrading to OS X Mavericks 10.9

I upgraded my Mac to OS X Mavericks 10.9 yesterday evening and everything has been going well, except for one thing with SourceTree and Git SVN repositories. When attempting to synchronize SVN repositories with SourceTree via Git, the following error occurs:

Can't locate SVN/Core.pm in @INC (@INC contains: 
/Applications/Xcode.app/Contents/Developer/usr/share/git-core/perl 
/usr/../Library/Perl/5.12/darwin-thread-multi-2level 
/usr/share/git-core/perl /Library/Perl/5.12/darwin-thread-multi-2level 
/Library/Perl/5.12 /Network/Library/Perl/5.12/darwin-thread-multi-2level 
/Network/Library/Perl/5.12 /Library/Perl/Updates/5.12.4 
/System/Library/Perl/5.12/darwin-thread-multi-2level 
/System/Library/Perl/5.12 /System/Library/Perl/Extras/5.12/darwin-thread-multi-2level 
/System/Library/Perl/Extras/5.12 .) at /usr/libexec/git-core/git-svn line 61.

So something’s wrong with OS X’s Perl installation. I couldn’t figure out what exactly, but configuring SourceTree to use your system’s Git installation (instead of SourceTree’s built-in version) seems to do the trick. Here’s how:

  1. Open SourceTree Preferences
  2. Click the “Git” tab
  3. Click the “Use System Git” button

SourceTreePreferences

SourceTreeSystemGit

Advertisements

How to use your computer’s keyboard with the Windows Phone emulators

It’s a little known fact (at least, it was to me) that you can actually use your computer’s keyboard when interacting with the Windows Phone 7 & 8 emulators. This feature is somewhat hidden and differs slightly between the major OS versions:

  • Windows Phone 8: Page-Down enables computer keyboard, Page-Up disables it
  • Windows Phone 7: Page-Up enables computer keyboard, Page-Down disables it

Funny how this is inconsistent between versions. In any case, it eliminates the need for clumsily clicking keys on the on-screen keyboard.

How to find and delete duplicate files in Ubuntu/Linux

Massively duplicated files are oftentimes a problem with music and movie collections. Because hunting for dupes by hand is definitely not the way to go, you may want to look to command-line tools like fdupes for help.

fdupes is available via apt-get in Ubuntu, so install it first:

sudo apt-get install fdupes

This is the basic syntax for looking up duplicated files:

fdupes -r [target-directory]

How to delete all duplicates and generate a report at the same time:

fdupes -rdN [target-directory] > textfile.txt

A quick overview of what the options mean:

  • -r recursive, traverse subdirectories
  • -d delete, delete duplicates
  • -N keep the first file, remove other (duplicate) files

Needless to say: use this with caution! Files will be deleted forever.

Find more information on fdupes here (UbuntuGeek).

How to install JungleDisk on Ubuntu 11.10

Had trouble installing JungleDisk (‘junglediskdesktop’) on Ubuntu again. This time it’s version 11.10. Mike Jennings from gmjjavadesigns.com has a complete guide on how to get libnotify.so.1 linked correctly and make the tray icon appear. The latter part in particular was of interest to me:

gsettings set com.canonical.Unity.Panel systray-whitelist “[‘all’]”

Find his post here.

Thanks Mike!

How to eject your Kindle (so it keeps charging) in Linux

Ejecting your Kindle reading device is different from ‘unmounting’ because it allows you to keep using the reader while it charges over USB. In most distros, you’ll need the command-line to achieve this. Here’s how.

First, find out where your device is mounted:

fdisk -l

Then, use the ‘eject’ command

sudo eject /dev/sdb1

 

 

How to access better/more advanced power settings in Ubuntu/Linux Mint with Gnome 3

Gnome3 on Linux Mint/Ubuntu comes with a pretty bare-bones power manager. Luckily, there’s a better alternative and it’s called dconf-editor. Here’s how to get it and use it for power management purposes:

$ sudo apt-get install dconf-tools
$ dconf-tools

The relevant settings can be found in org/gnome/settings-daemon/plugins/power

How to get JungleDisk Desktop running on Ubuntu 11.10 and Gnome 3

JungleDisk is broken for Ubuntu again. It won’t start when selected from Gnome 3’s Activities dashboard, nor will it start when calling it manually from the command line.

$ junglediskdesktop
junglediskdesktop: error while loading shared libraries: libnotify.so.1: cannot open shared object file: No such file or directory 

As suggested by JungleJason (http://askubuntu.com/a/84499), you’ll need to symlink libnotify.so.4 to libnotify.so.1. The latest version of Ubuntu (11.10) apparently only comes with the former variant.

If you’re running a 32-bit Ubuntu: 

$ cd /usr/lib/i386-linux-gnu/ ; sudo ln -s ./libnotify.so.4 libnotify.so.1

If you’re running a 64-bit Ubuntu: 

$ sudo ln -s /usr/lib/x86_64-linux-gnu/libnotify.so.4 /usr/lib/libnotify.so.1