How to use rsync on OSX

I don’t really want to copy dot files (eg. .DS_Store), and I want to avoid the bug that rsync exhibits with time-capsule where it loops creating multiple ..DS_Store.xxxx files. rsync -vrW --ignore-existing --exclude ".*" --progress ~/Movies/ /Volumes/Backup/Movies/ ...

PostgreSQL & Python on Mac

I've been playing with Django & MySQL for a while but for my next project I wanted to integrate it with a PostgreSQL database. Everything went well until I wanted to install Psycopg as my python adapter to PostgreSQL. After a bit of blundering about here's what it eventually took: Download and install PostgreSQL one-click installer from http://www.postgresql.org/download/macosx. Remember to read the README file before actually running the installer. Download the psycopg2 source from http://initd....

JPasskeep and Command-Q on Mac

I've released a new version of my long-running password keeper application: JPasskeep. This new release is now able to handle a Command-Q keystroke on the Mac, giving a user (i.e. me) an chance to save any updated entries. No more mousing around to close a window. The actual mechanism to do this was to reflectively call Apple's EAWT application classes to allow me to register the correct event listener. Hmm, run anywhere with java GUI apps....

Using a Samsung TV as an external monitor

Here's a weird bug. I connected my macbook pro to my Samsung widescreen TV - it was detected but I had to select 59.9 as the refresh rate (rather than then autodetected 60) otherwise the TV just sat there with a message that I was using an unsupported display setting. That's fine but how to do this in clamshell mode as macs seem not to share monitor settings between dual monitor mode and clamshell mode (or for that matter a mac mini connected to the same TV)?...

How to resize iTunes on OSX

I've updated to a smaller macbook - unfortunately iTunes remembered its previous size. Usually you can go to the Window Zoom menu bar option and resize a wayward mac application, but iTunes just turns itself into a little application - not quite what I wanted. However, if you hold Alt/Option key while you click on Window Zoom in the menu bar, iTunes will resize itself to fit the available screen area....

JPasskeep Update

Just finished a new version of my long-running password keeper application. You can download the cross-platform version, the mac dmg image, and the source code. New changes include the ability to export entries to an encrypted HTML page (see my previous post on javascript cryptography) and bundling the cross-platform version as a single JAR file using one-jar. As usual this version does not rely on javax.crypto APIs to function so it should work wherever a JDK5 compatible VM can run....

What is using my USB drive?

For a while I’ve been trying to find out what is using my external USB hard disk on my mac when I want to eject it. Its been driving me batty and I usually resort to a few choice expletives before pulling out the cable anyway. Recently I read about the lsof terminal command - for example: lsof /Volumes/BACKUPHD This shows you what processes are currently busy stuffing around the specific volume....

Flickering screensaver on Leopard

Since switching over to mac I've been using both a Quicksilver trigger, and right-clicking on the little padlock icon in the toolbar, to kick off my screensaver and lock my computer. After updating to Leopard I started to have a flickering screensaver, as if more than one screensaver was active at the same time. This has been bugging the heck out of me, but I've finally come across a solution on Mac OSX Hints (http://www....

New line in Excel on Mac

Excel drives me nuts. I have to keep on searching the web just to remember that in a spreadsheet cell you need to press <CTRL><ALT><ENTER> to type in a new line, since simply pressing enter moves you out of the cell. Now that I've blogged about it, I may actually remember how to do it later....