svn and case-insentive file systems

10th November 2007

Another one to chalk up to a doh! moment...

I'm checking out my wife's website to my new MacBook and get this error message:

svn: In directory 'website/gallery/piccies'
svn: Can't move source to dest
svn: Can't move 'website/gallery/piccies/.svn/tmp/prop-base/IMG_0013-thumb.jpg.svn-base' to 'website/gallery/piccies/.svn/prop-base/IMG_0013-thumb.jpg.svn-base': No such file or directory

I'm pretty sure that there's no problem with the subversion repository as I've been using it for months with no problem so I asked a friend to check it out on his Windows box... which failed with the same error. We thought at first that linux was allowing something illegal to occur which Windows and Macs weren't. Then we thought about the other differences between Linux and Windows/Mac OS X.

After a while. It turns out that there are two files in the directory: IMG_0013.jpg and IMG_0013.JPG. One svn mv command later and the problem is solved.

It would have been nice to have had a better error message though!

The move to Mac

9th November 2007

A couple of days after Leopard came out, my wife and I found ourselves in the Apple store in Solihull and came away with an iMac for her and a MacBook Pro for me.

The main reasons we have been interested in Macs recently are:

  • Disappointed with Vista on my wife's brand new computer
  • Disappointed with our last two Inspiron laptops
  • Sleep that works
  • The hardware looks good!
  • Unix in the terminal

Interestingly, the biggest benefit we've noticed since purchase is how quiet they are. We didn't realise how noisy those PCs under the desk actually were til we got rid of them.

The biggest challenge has been adapting to the keyboard. The @, " and \ keys in particular are in the "wrong" place, and carat navigation is maddeningly inconsistent between applications. I've worked out that Option+left/right move per word and command+left/right is supposed to move to the start/end of the line. Command+up/down usually moves to the top and bottom of the document, but I haven't found page up/down yet but suspect it has something to do with function option and up,down left or right!

We haven't worked out when we need to quit applications vs just closing the window which leaves the app running.

PHP 5.2.4 was installed by Apple and just needed turning on in httpd.conf (it's in /etc... did I mention how nice having Unix underneath is?!) What's odd is that PDO isn't there and so I suspect that I'm going to have to compile my own PHP at some point.

Do it before goddamned breakfast

26th October 2007

jwz on 29th Oct 2007:

When (WHEN) your backup drive goes bad, which you will notice because your last backup failed, replace it immediately. This is your number one priority. Don't wait until the weekend when you have time, do it now, before you so much as touch your computer again. Do it before goddamned breakfast. The universe tends toward maximum irony. Don't push it.

Some very good advice. I just back up my "cannot afford to lose" data at the moment. If I lose my hard drive, I have a good day or so of reinstalling and re-setting-up to look forward to. It's probably worth the £100 or so for a new hard drive.