Monday, June 13, 2011

OSX: Open With messed up with super long names

Sometime after I installed Photoshop CS5, I notice that after I control-click on a file that Photoshop can open, its all messed up with super long names.

In the screenshot you see I get this for Photoshop CS4. You might ask well why don't I just uninstall PS 4? Well I would, but its part of Creative Studio 4, and I need that for Acrobat and Illustrator. (Oh dear Adobe integrated installer).

The answer is that the applications .plist has too much information.

Two methods to get to the .plist:

1. Find the application, and control-click

and select Package Contents.

2. In the finder, do "command-shift-6" and type (or copy and paste) changing as required

"/Applications/Adobe Photoshop CS4/Adobe Photoshop"

Both of these methods open the correct folder.

You need to open the info.plist, TextWrangler will do, and remove the extra text you see. You should backup the old file first because otherwise Adobe updater will break.

Monday, June 6, 2011

OSX: suddenly cannot get onto the network / internet

I had a problem where without warning I couldn't get onto the network, internet WiFi, anything. DHCP just wasn't getting an address.

Using my phone to search Google, it seemed the answer was to download the combo updater and run it. Well yeah like I'm going to download a 1Gb file on my phone.

Anyway, turns out that there's a much simpler way: clear your caches

In the finder do shift-apple-g and then type


and OK.

When this folder opens, delete EVERYTHING! You might need to supply your password.

Then, same again:

In the finder do shift-apple-g and then type

~/Library/Caches - spot the "~" ?

and OK.

Again, delete EVERYTHING!

and reboot.


If the Macs battery goes completely, the clock gets reset. Even after you reset the clock, the certificates and the firewall get out of sync and suddenly all your applications, including DHCP no longer have network access.

Re-applying the combo updater also resets the firewall, which is why that works.

Wednesday, June 1, 2011

Howto: Using encfs with DropBox on OSX

Update: If you have OSX Lion, use this installer. Works well for me.

If you've been following the controversy on DropBox not encrypting files in the manner they claimed, then you might like to encrypt your files on DropBox yourself.

To do this, whats needed is a way to place files into the DropBox folder already encrypted, but access the files unencrypted. Here's how.

First though, a note.

The files you store in this manner will be encrypted and only on a session by session basis will you access them unencrypted. This means that if you lose your password, you lose you data. Simple as. The unencrypted presentation you get with this Howto is only a presentation: your files are shown decrypted, as soon as you log out, shutdown, the unencrypted presentation dies.

  1. Download and install MacFuse (file system in user space)
  2. Download and install encFS for Leopard (works great with Snow Leopard). If this link doesn't work try Google Code - look for "EncFS for Leopard"
  3. run the command "encfs ~/Dropbox/encfs ~/Documents/encfs"

This creates a folder in your Dropbox folder called "encfs" (this is where the encrypted documents will be stored) and a symbolic link in your Documents folder, into which you put the documents you want to be encrypted on DropBox.

The first time you this command you are asked to make a choice:

    Please choose from one of the following options:
    enter "x" for expert configuration mode,
    enter "p" for pre-configured paranoia mode,
    anything else, or an empty line will select standard mode.

p is a good option unless you really know what you're doing.

Some more message and you're good to go. You'll notice that you get a new drive on your desktop - this is the decrypted portion.

Doubleclick to open, and also the encrypted folder in your DropBox folder, and you'll see whats happening. To use, drag your files into this UNENCRYPTED folder / drive! They will be magically copied, encrypted into the 'enfs' folder in your DropBox folder.

Some Notes:

  1. One thing I noticed is that files take a bit longer to sync, even comparing to unencrypted files that aren't already in DropBox somewhere.
  2. The mounting of the unencrypted folder doesn't happen automatically when you login, so run this command again.
  3. CAVEAT: If you have any programs that auto-start and expect their data to be in the unencrypted folder, make sure this command is run first, else corruption and data loss may results.
  4. Before the command is run, there is no plain text data available, because encFS and MacFUSE are decrypting the copy thats in your DropBox. If you lose the password, you lose your data. The folder created in your Documents folder will be empty.
  5. If you delete this folder, next time you run the command you'll be prompted to create it.
    The directory "/Users/user/Documents/encfs" does not exist. Should it be created? (y,n) y EncFS Password:
    You can repeat this process on any computer that is linked to your DropBox account, and you'll be prompted to (re)create this folder.