MacBook Pro Development Environment

October 1, 2010 | 6 Comments

This article covers the steps I went through to setup my MacBook Pro for Google App Engine (GAE) development. I am using the Python runtime in GAE so the focus here is on a Python development environment.


Setting Python 2.5 as Default

My MacBook Pro is running Snow Leopard. I am planning to host my projects on Google App Engine and it requires Python 2.5. Snow Leopard ships with Python 2.6 as the default. You can switch to Python 2.5 using a few simple commands, as follows:

$ defaults write Version 2.5
$ sudo defaults write /Library/Preferences/ Version 2.5

After issuing these commands you should logout and login, launch a Terminal window and issue the command

$ python --version

It should report Python 2.5.4 as the result. If it still says Python 2.6.1 then your change did not take effect. To troubleshoot the problem start with man python. It includes information on how to switch the default version of Python on your system.

Additional Python Modules

Google App Engine expects that the ssl module is installed. This is so it can verify the identity of the GAE servers when trying to deploy your projects. Install it like this:

$ curl --output ssl-1.15.tar.gz
$ tar xvf ssl-1.15.tar.gz
$ cd ssl-1.15
$ sudo python install

If you want to use the GAE image manipulation classes while running on the local development server you will need to install PIL using the following command.

$ sudo easy_install pil

The following will be necessary for building some other python libraries later in the process.

$ sudo easy_install docutils

The following modules are necessary if you choose to install IPython (see next section). If you are planning on skipping the IPython installation these can be skipped as well.

$ sudo easy_install readline
$ sudo easy_install nose
$ sudo easy_install pexpect


The IPython interactive interpreter is a good addition to your Python development environment. It does not come pre-installed on Snow Leopard. You can download the latest stable version using this command:

$ curl --output ipython-0.10.tar.gz
$ tar -xzf ipython-0.10.tar.gz
$ cd ipython
$ sudo python install

Google App Engine SDK

The Google App Engine SDK for Python is available at As of this writing you can use the following command to grab the latest version:

$ curl --output GoogleAppEngineLauncher-1.3.7.dmg

Once you download the dmg file open it in Finder and run the installer. It will place all of the necessary files on your machine. Once complete locate the icon in Finder and double-click on it. This application provides a nice UI for managing your GAE projects.

Source Code Management Tools


I am planning on managing the source code for my projects with git and will store my master repositories on Apple does not include a copy of git on the machine by default. An installer is available at While you are at it also create an account on github if you don’t already have one. It is useful for social coding in the wider open-source community.


Some of the Django open source software I plan on using is maintained using a distributed source control management tool called Mercurial. An installer for this is available at Download and install the software.

$ curl --output mercurial-1.6.3.tar.gz
$ tar xvf mercurial-1.6.3.tar.gz
$ cd mercurial-1.6.3
$ make PREFIX=/System/Library/Frameworks/Python.framework/Versions/2.5 all
$ sudo make PREFIX=/System/Library/Frameworks/Python.framework/Versions/2.5 install
$ hg version


I plan on implementing my web applications on top of the Django framework. Some modifications are required in order for this framework to run properly on GAE since Google uses Big Table for data storage instead of a relational database. Everything necessary to get Django working in GAE is included as part of the Django-nonrel project. Specific instructions for GAE are available at

Use the commands listed below to install copies of all the necessary components onto your machine. Everything will be stored in a folder called DjangoStuff under your home directory.

$ mkdir $HOME/DjangoStuff
$ cd $HOME/DjangoStuff
$ hg clone
$ hg clone
$ hg clone
$ hg clone
$ hg clone

Now, pick another folder where you want to setup a practice application. I am calling mine cs-practice since this is also the name of my Google App Engine application.

Use the following commands to configure the practice application for Django-nonrel development.

$ mkdir $HOME/cs-practice
$ cd $HOME/cs-practice
$ ln -s $HOME/DjangoStuff/django-nonrel/django django
$ ln -s $HOME/DjangoStuff/djangoappengine djangoappengine
$ ln -s $HOME/DjangoStuff/djangotoolbox/djangotoolbox djangotoolbox
$ ln -s $HOME/DjangoStuff/django-dbindexer/dbindexer dbindexer
$ cp -r $HOME/DjangoStuff/django-testapp/* .

Once you have the practice folder setup you need to edit the app.yaml file and change the application name to reflect the Google App Engine application name you selected when registering on

RESTful .NET by Jon Flanders

June 9, 2009 | Comments Off

RESTful .NET is the first book that teaches Windows developers to build RESTful web services using the latest Microsoft tools. Written by WFC expert Jon Flanders, this hands-on tutorial demonstrates how you can use WCF and other components of the .NET 3.5 Framework to build, deploy and use REST-based web services in a variety of application scenarios. No prior knowledge of REST or WCF is required to get started.

Kindle: Amazon’s 6″ Wireless Reading Device (Latest Generation)

June 9, 2009 | Comments Off

For a while the idea of a Kindle has intrigued me. In early May I took the plunge and purchased one of the new and improved models from Amazon. The main thing I was looking for was a way to reduce the number of technology books I lug back and forth to work each day.

Adobe Creative Suite 4 – Web Premium

June 9, 2009 | Comments Off

Tackle websites, applications, user interfaces, and other digital experiences with complete confidence in the power of Adobe® Creative Suite® 4 Web Premium software. From world-class image editing prowess to sophisticated code-handling capabilities to multiplatform deployment options, Web Premium is the comprehensive solution for the professional web designer and developer.

Web Premium combines Adobe Dreamweaver® CS4, Flash® CS4 Professional, Photoshop® CS4 Extended, Illustrator® CS4, Fireworks® CS4, Acrobat® 9 Pro, Soundbooth® CS4, and Contribute® CS4 with additional tools and services.

Web Premium CS4

WS_FTP Professional

June 9, 2009 | Comments Off

WS_FTP Professional delivers industry-leading security, automation, and customization capabilities, offering the highest level of encryption available for files and a superior range of features that enhance productivity and communication.

With more than 40 million users worldwide, the award-winning WS_FTP Professional is the world’s most popular file transfer client. It boasts the fastest transfer speeds and highest level of reliability and security of any file transfer client on the market.

USA: NEW! WS_FTP Professional 12 no support is Stephen Fry proof thanks to caching by WP Super Cache