Archive for the 'mac' Category

Versions: A new Mac Subversion Client

I downloaded the beta of Versions a few days back and I really like it. It just feels… well.. Mac like. It’s easy to setup Working copy bookmarks, as it calls them, for your existing projects and just links right in.

I still use Subclipse within Eclipse for most things but I find it tends to hang when doing large commits so Versions is a real help.

Well worth a look

Testing from Blogo

Just trying out a Blogo, a desktop blogging tool for Mac. I know I haven’t been blogging much recently but maybe this could be a way to get some of those quick posts online easily.

It has a nice preview feature and fullscreen mode that hides those other distractions and lets you get on with the post.


Remove hidden .svn folders

Occasionally I want to copy some folders from one project to another using Finder, however, this also copies hidden .svn folders over which can cause problems later on. So after a little googling I found a nice way to recursively remove all .svn folders via the Terminal.

1 .Fire up Terminal.app and move to the folder you just copied:

$ cd Sites/mynewsite

Please double check you’re in the right folder with pwd before proceeding

2. You can check for the existence of .svn folders with the command:

$ find . -type d -name .svn

3. You can now pass this search into rm using grave accents (the backwards slanting ones to the left of the Z key)

$ rm -rf `find . -type d -name .svn`

Nice. If you were being really clever you could put this lot into a nice shell script to avoid having to remember the commands.

Fix for Authentication Failed in Apple Remote Desktop 3.2

Not specifically linked to the Leopard upgrade, but I got a call today from a client and needed to connect via Apple Remote Desktop (ARD) to a co-located XServe to check something out. I fired up ARD as usual but kept getting the message “Authenitcation Failed to (computer name)”. No passwords had changed the only difference is the recent update to ARD 3.2. I upgraded the client to 3.2.1 thinking that could be it - but no joy. Anyway to cut a long story short… after lots of googling and banging my head against a brick wall, I found out you can configure ARD using SSH and kickstart. And this little lot in the Terminal seemed to do the trick.

Due to the long lines, I’ve split a couple of cd commands. Each new command starts with $

$ ssh username@host.com
$ cd /System/Library/CoreServices/RemoteManagement/
$ cd ARDAgent.app/Contents/Resources/
$ sudo ./Resources/kickstart -activate -configure -access -on -users username -privs -all -restart -agent -menu

Bingo! The funny thing is that most of the noise about Leopard was UI related, however, I seem to have spent more time in Terminal since upgrading than I have in a long time :-)

Leopard workarounds for CF8, MySQL, PHP

I know many others have blogged about this, but more for my records than anything I thought I’d jot down the tips to get my development environment working in Leopard. I’m sure in time new releases will make all this redundant but for now…

ColdFusion 8
I got this to work after trying all sorts of things. I’m pretty sure that I was close getting the Standalone version to working, but now I have it running I think I’ll leave it alone for the time being. Big thanks to Geoff Bowers, Mark Drew, Ray Camden, and a whole host of others for providing tips on this.

PHP
It’s rare that I develop anything in PHP these days but I still use phpMyAdmin a lot as my hosts use it and it seems to do everything I need. To enable PHP 5.24 in Leopard simply remove the comment from the start of this line in “/etc/apache2/httpd.conf”:

#LoadModule php5_module libexec/apache2/libphp5.so

MySQL
This ran fine, but the Preference Panel didn’t work and I couldn’t connect via phpMyAdmin, so in a Terminal just type:

sudo mkdir /var/mysql/
sudo ln -s /tmp/mysql.sock /var/mysql/mysql.sock
sudo apachectl restart

I spent quite a while getting all this to work so I haven’t had much time to enjoy Leopard yet, but it seems petty slick and I’ve already got into the habit of using Spaces.

Leopard pre-ordered

I’ve bitten the bullet and pre-ordered my copy of Leopard today. There’s loads of great new features I hope will streamline my workflow even more, such as Stacks and Spaces and I know that I’d be installing it at some point so might as well jump aboard early.