Disable store links in iTunes 8

The preference to remove these links in iTunes 7 seems to have disappeared in version 8. You can turn them off, however, in the terminal : $ defaults write com.apple.iTunes show-store-arrow-links -bool FALSE Restart iTunes, and the links should be gone.

August 17, 2008 · 1 min · Dave Perrett

Filesystem path is neither a file nor a directory 160013 - SVN / Trac Error

Recently I had an SVN repository with a couple of corrupt revisions that I couldn’t figure out how to fix, which caused Trac to stop displaying revisions after the corruption. Trying trac-admin resync was no help, throwing this exception : ...

July 27, 2008 · 2 min · Dave Perrett

Installing Trac on CentOS

Before you do anything, go ahead and install subversion . Install the python easy install tool: ...

July 27, 2008 · 3 min · Dave Perrett

svn: Can't find a temporary directory: Internal error

If you’re getting a ‘svn: Can’t find a temporary directory: Internal error’ error while using subversion, check the disk space on the server : $ df You’re more than likely out of space. [dave@dev2:~/]$ df Filesystem 1K-blocks Used Available Use% Mounted on /dev/vg0-rootvol 73608360 73605908 0 100% /

July 14, 2008 · 1 min · Dave Perrett

Browser detection with PHP

You can use PHP’s get_browser() function to find out information about user’s browsers, but it takes a little setting up. ...

June 23, 2008 · 2 min · Dave Perrett

Force MySQL Encoding to UTF8

Often MySQL will need to be forced to return results in UTF8 encoding. There are two ways to do this: ...

June 23, 2008 · 1 min · Dave Perrett

Setup 64bit CentOS (PHP5, MySQL, memcached, ketama)

I recently had to set up a few CentOS servers with PHP , MySQL , memcached and ketama, and ended up writing this script to do it. You can grab the whole thing from subversion (you’ll need the php folder as well). ...

June 23, 2008 · 3 min · Dave Perrett

Subversion Server on CentOS

Install a couple of packages via yum : $ sudo yum install httpd subversion mod_dav_svn ...

March 27, 2008 · 2 min · Dave Perrett

OS X zsh shell config

Here’s a zsh shell configuration file for OS X, based almost entirely on a post at Fried CPU . All i changed was the ls and ll aliases because Fried’s didn’t work for me. To use it, save it in a file called .zshrc in your home directory. You might also want to set zsh as your default shell . ...

July 25, 2007 · 4 min · Dave Perrett

Set OS X Default Shell

You need to use Niutl to change your shell. In the terminal : $ sudo niutil -createprop . /users/dave shell /bin/zsh Alternatively, you can use the NetInfo Manager utility (in the Utilities folder). Select your user in the navigator, and change the value of the shell property. ...

July 25, 2007 · 1 min · Dave Perrett