mac

SE P1i iSync synchronization tips

Pebe KitI've been reinstalling my P1i again (experimenting too much...). Next step is to sync it with my Mac. But there is a glitch with Sony's iSync plugin: connection lost with the phone when syncing for a first time. I think the problem is with amount of contacts you have in your Address Book. I have over 500 and it never worked for me straight away.

A small hint to deal with the situation: backup your Address Book (File -> Export -> Address Book Archive) then delete all the contacts in your Address Book (don't be scared, you have a backup). Sync your P1i again with empty Address Book. The process should go fine now. Right after that restore your Address Book archive (File -> Import -> Address Book Archive) and sync devices again. Here you go: all contacts transfered smoothly.

Delete .svn folders on your Mac

Sometimes you need to get rid of .svn hidden folders on your Mac. In my case it was about resyncing my local working copy with client subversion repository. Everything was broken at both ends.

A couple of terminal commands to get rid of unneeded svn tracks:

cd /some/of/your/folders/
rm -rf `find . -type d -name .svn`

It will delete any .svn folders under your current.

For lazy typists: don't forget that you can drag and drop folder from finder to terminal to populate path.

Configuring terminal to work with MAMP mysql on Leopard

I've decided to try MAMP on new Mac OS X 10.5. Mostly because PHP bundled with Leopard doesn't have GD library (otherwise it has quite cool set of modules). The other reason that is better Marc Liyanage's PHP installer is not yet ready for Leopard.

But after backing up all my MySQL databases (around 200Mb dump) it turned out that you can't acces MAMP's mysql via terminal to restore it (or I was something terribly missing from FAQs).