How to: Install Multiple Versions of Python 3 on Mac

Was needing to test some code against multiple versions of Python 3. Namely: 3.2.x and 3.3.x and 3.4.x. Installing 3.5.x was easy using homebrew (brew install python3). But I couldn’t find brew packages for python3.2 and python3.3 and python3.4!

I ended up doing it the manual way, which wasn’t that hard.

  1. Download the installer from:
  2. Run the installer, I chose to do a “custom” install and only selected the command line tools (leaving out the docs and the GUI).
  3. Re-link your homebrew installation and fix permissions
~$ brew unlink python3 && brew link --overwrite python3
~$ sudo chown -R damon:admin /usr/local/bin

Now you should be set with python3.2, python3.3, python3.4 and python3 will run python3.4!

Note: this will cause a warning when using brew doctor that reads:

Warning: Python is installed at /Library/Frameworks/Python.framework
Homebrew only supports building against the System-provided Python or a
brewed Python. In particular, Pythons installed to /Library can interfere
with other software installs.

So far I have been able to safely ignore this warning. That’s the location the Python installer writes to.

How To: Store iMovie ’09 Events and Projects on a Network Volume (NAS)

Purpose: while iMovie ’09 allows you to store your events and projects on physically attached hard drives (external or internal) it doesn’t offer an out-of-the-box way to store them on a network attached storage (NAS) device. I have a file serve and I want to use it.

Read the rest of this entry »

How To: Test Connection Speed Between Two Machines

Purpose: as a quick diagnostic tool, sometimes it’s nice to know exactly how fast two machines can (theoretically) be connected.  I was having some slow downs on my NAS and using these command line tools, was able to determine that it was my NIC (and not my hard drives) that was causing the slow down.  I learned this from a thread at slashdot.

Read the rest of this entry »

How To: Automated Encrypted Incremental Backups on Amazon S3 with Duplicity (OS X or Ubuntu)

Purpose: setup an automatic encrypted off-site backup system that utilizes Amazon S3 with incremental backups by duplicity on the Mac (Leopard) or Ubuntu. Currently, I do have my own on-site backup system in place (nightly backups via rsync to external hard drive), but I am wary that some day my house may explode and I’ll have nothing left. Enter my new friend: the encrypted off-site backup.

Read the rest of this entry »

Bash Script: Incremental Encrypted Backups with Duplicity (Amazon S3)

Update (5/6/12): I have not been actively developing this script lately. Zertrin has stepped up to take over the reins and offers a up-to-date and modified version with even more capabilities. Check it out over at github.

This bash script was designed to automate and simplify the remote backup process of duplicity on Amazon S3. After your script is configured, you can easily backup, restore, verify and clean (either via cron or manually) your data without having to remember lots of different command options and passphrases.

Most importantly, you can easily backup the script and your gpg key in a convenient passphrase-encrypted file. This comes in in handy if/when your machine ever does go belly up. Code is hosted at github.

Read the rest of this entry »

How To: Install MacPorts on OS X Leopard (10.5)

Purpose: install MacPorts on OS X Leopard (10.5) to gain access to a host of open source applications and tools that make working on the Mac as cool as can be. Using MacPorts makes it easy to install applications you would otherwise have to build from source — which can be difficult for folks like me, who don’t understand what the hell they are doing in the first place.

Read the rest of this entry »

How To: Network Trash on Ubuntu File Server (NAS) with SFTP (SSH + Fuse) and AFP (netatalk)

Purpose: create a Network Trash functionality for a Ubuntu Linux file server (NAS). Reason being: by default, files deleted from the command line on file server go away permanently. If I am connected to my file server from my Mac via AFP (through netatalk) or SSH (SFTP through Fuse) and delete a file, that file is gone forever! This is a problem, because often I find I want them back. Enter: libtrash!

Read the rest of this entry »

How to: Install Netatalk (AFP) on Ubuntu with Encrypted Authentication

Purpose: Install Netatalk (AFP) on Ubuntu with encrypted authentication (using OpenSSL), which is not enabled by default with the Ubuntu netatalk package. By default, the package installed from the Ubuntu universal repositories will transmit your password via clear text (you’ll know this because Mac OS X Tiger will throw a warning and Leopard won’t do anything useful at all).

Read the rest of this entry »