Archive for the ‘Apple’ Category
How to set up Google App Engine Automatic Code Completion for Python in Komodo IDE on Mac OS X
When I read the help posts on how to configure this, it seemed easy. But it practice, not everything was as simple as it was explained. I had to visit various sources before I understood what the problem was.
The steps documented on the web are:
- Open ‘Komodo’
- Open ‘Preferences’
- Select ‘Languages’
- Select ‘Python’
- In Additional Python Import Libraries, add the folder ‘/usr/local/google_appengine’. (This is generally the installation folder for Google App Engine)
But I can’t select ‘/usr/local/google_appengine’!! Where is it? Why can’t I find it?
The problem was, that on a Mac the folder you need to use is hidden and unhiding this folder is not that simple. For a start, it takes hours to download the appropriate piece of software. namely, the Mac Developer Kit from Apple.
Once this is installed you will have the commands necessary to unhide the folder by opening up a ‘Terminal’ window and typing:
sudo /Developer/Tools/SetFile -a v usr
Now you may follow the steps above to add the Google App Engine folder to the Python Import Libraries of Komodo.
The full set of configuration tweaks to set Komodo as a Google App Engine IDE can be found here.
Update:
You may also find an error in your logs similar to the following:
WARNING 2010-04-17 14:20:27,961 dev_appserver.py:3589] Could not initialize images API; you are likely missing the Python “PIL” module. ImportError: No module named _imaging
INFO 2010-04-17 14:20:27,966 dev_appserver_main.py:399] Running application kam-proxy on port 8080: http://localhost:8080
INFO 2010-04-17 14:20:31,768 dev_appserver_main.py:404] Server interrupted by user, terminating
You *may* be able to remedy it by running this command from a ‘Terminal’ window:
sudo easy_install –find-links http://www.pythonware.com/products/pil/ Imaging
Annoyingly Frequent Time Machine Backup Intervals
I like the idea of Time Machine but I dislike the frequency of it:
- Hourly for 24 hours
- Daily for the past month
- Weekly until the disk is full
The Time Machine options screen isn’t comprehensive enough to allow you change anything other than the folders you don’t want to back up and to switch the back up schedule on and off!
Enter the old open source program Lingon.
- Run Lingon and Look under “System Daemons”.
- Click on com.apple.backupd -auto
Lingon will give you the option to edit the frequency of backups!
Hoorary!