A pseudo IDE for Google App Engine – Komodo Edit

I signed up last week for the Google App Engine, and tried out the tutorial for creating a guest book. It is a pretty simple tutorial, but one of the things I noticed about the App Engine is that there is no add-on for any IDE/editor at the moment, unlike the Android SDK which has its own eclipse plug-in or even the Web Toolkit which has a utility to generate an eclipse project.

Initially, I tried using Notepad++ which I have installed as my basic text editor, but I didn’t get much support beyond basic syntax highlighting. It does have a built in run command, but is not very configurable. This is when I decided to give Komodo Edit a try (it is open source). It is a lightweight version of the Komodo IDE, but has support for a variety of languages along with a useful set of tools. Incidentally, it is based off the Mozilla code base, and has support for add-ons just like Firefox, Thunderbird and Flock.

You can organise files into projects, which comes in handy for the Google App Engine applications, which is typically composed of a set of files based in a folder. The editor also has some basic syntax checking in addition to syntax highlighting. However, the code intelligence/auto-complete is limited to the base Python installation, and so will not be able to help with the Google App Engine.

image

In addition to this, the editor also has a customisable run command, which can be used to launch the development server. Shown below is my customised run command which can be used on the main .py file of the application (E.g. helloworld.py form the tutorial), and launches the development server in a new console (set using the “Run in” option). The “Start in” parameter is also important as the server needs to be launched from the parent folder of the folder in which the application is stored, i.e., if the application files are stored in “D:\Dev Stuff\gAppEng\helloworld”, the server needs to be launched from “D:\Dev Stuff\gAppEng”. Here, I have used the “ask” option with a default value for the “start in” location, so that I am prompted for the path at the time of server launch.

Komodo IDE Run config

There are quite a few other tools available in the editor, like file compare, spell checker, templates etc, which I haven’t tried out yet. Now, if I could only think of my own project for the App Engine. Suggestions anyone?

Update: Just noticed that another person has posted instructions for using Komodo Edit as an IDE for Google App Engine (on Linux it seems), including steps for setting up the uploader among others. (via)

The data: URI scheme

The data: URI (RFC 2397) allows the inclusion of small data items like images, text etc inline. It is quite useful for embedding small bits of data into scripts, as no external source needs to be referenced. In fact, I had come across the data: URI through a Greasemonkey script named Smilize which substitutes the usual smiley texts with images (embedded in the script using the data: URI).

There are a few sites which convert small images, html etc to the data URIs. There is one major drawback with the usage of the data: URI – it is not supported in Internet Explorer. So, for the time being its utility is mostly restricted to Greasemonkey and Opera scripts, till IE support is available (maybe in version 8?).


P.S.:
I came across a new addon for IE 7 – IE7Pro – which provides userscripting functionality plus some other features like Ad blocker, mouse gestures etc.