How to find open files on a volume
This shows what files are open on volumename.
Handy if you’re trying to unmount volumename and it won’t unmount due to open files.
# sudo lsof | grep /Volumes/volumename
Compress .sparseimages
I use SuperDuper! to make sparse image backups of all of my physical hard drives.
Only thing is that, even if you clean up a hard drive so there’s less to backup, the .sparseimage files never shrink to reflect the reclaimed space.
To reclaim space, just make sure the image is not mounted, pull up a terminal window, and:
hdiutil compact /the/path/to/your.sparseimageThis will squish all the air out of the sparseimage bundle.
Make a backup first, obviously, and make sure there's enough room on the drive to make a copy of the image since I'm pretty sure it works by making a copy, then deleting the original.
Transmit Favorites
I was working on syncing my laptop with my desktop in a ‘deeper’ sort of way this morning as things have gotten a bit random with all the new apps I’ve been installing (1Password rocks!).
I went into the .Mac sync panel (MobileMe just makes me want to puke) and the Transmit favorites weren’t there to sync.
A quick visit to the Panic site yielded this:
I no longer use Transmit. How can I remove Transmit from my .Mac Sync preferences?
Awkwardly, Apple doesn’t provide a way to remove these items. But, if you’re running Transmit 3.5.1 or newer, type this into Terminal:
# ~/Library/Application\ Support/Transmit/TransmitSync.app/Contents/MacOS/TransmitSync --unregisterClient
That should remove Transmit from the list.
Well, I figured that, since I had the opposite problem, I should just remove the ‘un’ from the –unregister… and that’d do it.
Did. Yay.
Setting up Perforce command line
Set up your client (Mac OS X)
If you’ve been following along, you’re running a publicly accessible server
To set up the client on your local machine (mine’s OS X).
Add the following lines to the end of .bash_profile.
# Perforce Settings
export P4PORT=yourdomain.com:1666
export P4CLIENT=a_workspace_you_ve_set_up
export P4USER=your_user_name
Quit and restart terminal and type p4.
You shouldn’t get any errors, just a helpful list of commands you might want to use.
Mac OS X Conveniences
These are a few of the things I’ve installed on my desktop and laptop that I consider pretty indispensable.
- Firefox
- ExpanDrive
- TextMate
- Transmit (though much less used since ExpanDrive)
Essential add-ons: