Disappearing Spaces in Lion

I just realized that if you have your Dock on the left edge of the screen you cannot create a Space in Mission Control, the option disappears. Move it to the botton or right and you will be fine.

Weird.

May 2, 2012: update, the Space tab appears on the opposite side from the dock, so don’t go looking for it on the left side if your dock is on the left. :)

Overcoming an IMDbPY installation issue on Ubuntu 11.04

IMDbPY is a Python module to enable backend search and retrieval of information from the IMDB. To install IMDby on Ubuntu you’ll need to download the module here. Then you’ll need to extract the module and run (as root):

$ sudo python setup.py install

You may get an error complaining about a ‘gcc’ compiler, I did, even though a quick:

$ which gcc

returns a live ‘gcc’ compiler on my box. The trick I found here is to install ‘python-dev’ through your Ubuntu package manager.

$ sudo apt-get install python-dev

Then you should be able to run the earlier module installation without errors. Fire up python and check it out to make sure.

$ python
>>> import imdb

Things should be fine!

NLTK on Mac OSX

I’ve found myself being drawn into Python recently. First, with what seems to be an experimental software dream, IBEX (Webspr), and now I’ve returned to take a look at the Natural Language ToolKit (NLTK). Both are Python-based and both underline the wide support that Python is getting in language research.

I’ve just completed the NLTK install, including some of the optional packages. It took a little poking around on the net to find the right process to get things up and running on my system: OSX 10.7.2 MacBook Air.

If you are an academic it’s much easier, here’s what I did:

1. Get a worthy Python instance: download Enthought Python by adding your .edu email address here. Once downloaded follow the installer instructions.

2. Get the latest versions of the following NLTK packages: PyYAML and NLTK (note: pick up the source code, when I downloaded the .dmg package Enthought could not find the NLTK package.)

3. Install PyYAML. Extract the compressed file, start up Terminal and cd into the PyYAML directory. Then run:

sudo python setup.py install

3. Install NLTK. Extract the compressed file, start up Terminal and cd into the NLTK directory. Then run:

sudo python setup.py install

4. Enjoy!

Pianobar on Mac OSX

I stumbled across a great post on how to install pianobar, the command-line interface to Pandora, on OSX. http://happygastropod.com/2011/01/pianobar-on-mac-osx

The basic rundown and few notes:

1. Install Homebrew
2. Install pianobar (Note: I had to use use the –HEAD flag in order to get the dependencies to update)


brew install pianobar --HEAD

If you want to trick-out your installation, you can go on to add automatic login and growl support in a configuration file (that you’ll need to create in ~/.config/pianobar/config). Make sure you are running the latest version of Growl (or the correct version for your OS), if not you will meet a series of errors!

You can even go beyond, and add a custom image to your Growl notification using the growlnotify –image flag. For more on that just run


growlnotify --help