Autoversioning Filesystem using WebDAV and Subversion

Posted by dacc on October 13, 2009

Ever wish you could go back several saves in a document or piece of code? You can mount Subversion repositories using WebDAV to generate a new revision each time you save a file!

I run into this during exploratory programming a lot. I’ll break something while hacking away, and not have a means of going back should I lose my undo buffer, etc. My exploratory code changes rapidly as I thrash out the API or technique I’m trying apply, and so explicit version control would be a real drag.

Enter Subversion! If you flip on SVNAutoversioning in your Apache config, you can mount your repository as a WebDAV share, and a new revision will be created for each file save:

Continue reading…

AppEngine Environment in IPython 1

Posted by dacc on October 05, 2009

While developing BikeJibe, I wanted to do exploratory programming from IPython. Googling “appengine ipython” turns up a cool post on a modified version of the Django “manage.py shell” for the AppEngine environment, but nothing for those using other frameworks.

Here is a script I wrote called “gae-env-setup.py” Basically I culled code from the nosetest project and stuck it in a script you can pass to IPython to setup your app for exploration from the shell.

Continue reading…