-
posts
-
How to Hide Inactive Branches by Default with Mercurial
mercurial usually shows inactive branches when running “hg branches” but
that’s kind of annoying if you have lots of old inactive branches. So I
recently set up my personal .hgrc to hide inactive branches by creating
an alias.
[alias]
branches = ...
-
Importing an svn repository into mercurial
Recently I’ve been forking Subversion (SVN) repositories by converting them to
mercurial repositories and uploading them to
Bitbucket. It’s fairly easy with the
Mercurial convert
extension. Convert
is distributed with Mercurial so if you have a re...
-
Testing using a mocked HTTP server
Recently I got some tests working for my
django-lifestream
project. The lifestream imports data from RSS/Atom feeds so there isn’t
a good way to run tests without creating a test HTTP server to serve up
your RSS/Atom.
The tests start up an HTTP s...
-
Parsing email with attachments in python
Recently I needed to be able to parse out attachments and body from
multipart emails and use the resulting data to post to a service. So I
wrote the code below to parse out text and html portions of the email
and also parse out attachments.
The c...
-
Annoying things about Django
Since I’ve been using it for a while now I’ve gotten a good idea about what is
good and what is annoying about development with django. This might seem a
little trite at parts since some of these gripes are with features that don’t
exist in other ...
-
Custom Admin Views and Reversing Django Admin URLs
I recently used the new feature in Django 1.1 for reversing django
admin
URLs
and specifying custom admin
views
in my project
django-lifestream.
django-lifestream has a custom admin
view
which allows users to update the lifestream manually. The c...
-
Using Mercurial MQ
I recently started using mercurial’s mq
extension at work as I
found myself switching between changes a lot. I often had to set changes
I was currently working on aside to do a merge or fix something that was
more urgent. The mq extension makes th...
-
Google App Engine SDK 1.2.3
The Google App Engine
SDK 1.2.3
was just released and contains some often asked for goodies such as
Django 1.0 support and support for a task queue
API.
I haven’t found much information about the Django 1.0 version in
App Engine but here are some...
-
Preview blog posts within the django admin.
I
implemented
blog post previews for my blog using the technique described here:
http://latherrinserepeat.org/2008/7/28/stupid-simple-django-admin-previews/
It’s very simple as it is simply a view using an existing record. I’d
prefer something th...
-
Connecting Sortables in jQuery UI
jQuery has a UI framework called
jQueryUI which provides a number of UI controls and
widgets that you can use to create cool user interfaces. I’ve been using
jQueryUI a fair bit for work recently and wanted to share a pretty cool feature
that jQue...