Tag Archives: Python

Python 2.5 to 2.4

Last night we ran into a slight problem.  We are running Python 2.5 on our Macbook’s, but our server is running a very stable 2.4.  No problem right? Well kind of.

The first problem we encountered is related to PEP 308.  Someone who had written a RSS parsing plugin for Django, failed to mention that it minimally needed Python 2.5 to run correctly.  But this is one of the greatest advantages of open source.  I rolled up my sleeves and removed what the PEP calls conditional expressions.  I’ve always referred to these as the Ternary operator [or operation]. Continue reading

Django 1.0 install on Mac OS X 10.5.5

I initially used this guide, but made some changes:

1) Downloaded Django-1.0.tar.gz from here.

2) Created and extracted the contents of the tar.gz:

mkdir ~/sandbox
cd ~/sandbox
tar xzf ~/Downloads/Django-1.0.tar.gz

3) Make the following soft-links:

cd /Library/Python/2.5/site-packages/
ln -s ~/sandbox/Django-1.0/django django
cd /usr/local/bin/
sudo ln -s ~/sandbox/Django-1.0/django/bin/django-admin.py django-admin.py

Google Calendar Command Line Interface

Wow, its not every day you see a new command line interface that takes advantage of new online services.  This one I just discovered will let you interact with your Google calendar.

I use Google calendar religiously for home and business when I am away form my day time job (don’t quit your day job!).

Gcalcli is written in Python as well.  Which led me to find the Google data API for Python.  Very nice!