Archive for the ‘mac os’ tag
Install PIL (Python Imaging Library) in Leopard
Installing modules when using pip, virtualenv and virtualenvwrapper is a breeze, but it took some time before I realized what was the easiest way to install PIL.
I do it this way:
pip -E PATH_TO_VIRTUALENV install http://dist.repoze.org/PIL-1.1.6.tar.gz
This installs a slightly repackaged version of PIL. The latest PIL version is 1.1.7, but as far as I know it’s not available in this form.
Make SSHKeychain work in Leopard
Here’s how I set up SSHKeychain on my Mac:
- Modify the package content as described
- Add stuff to .bashrc/.profile
- Add keys to SSHKeychain: Preferences > SSH Keys
- Check Manage (and modify) global environment variables (this probably has no effect, ref 2.)
Open Finder for current directory from command line
I just learned how to open a Finder window directly from the command line.
open .
Yes, it’s actually that easy, and the open command is quite handy some times. This is from the open man page.
The open command opens a file (or a directory or URL), just as if you had double-clicked the
file’s icon. If no application name is specified, the default application as determined via
LaunchServices is used to open the specified files.
This means that you can actually open anything from the command line with the open command. Go ahead and try it out!