excess.org

Ian Ward

Consulting
Boxkite Inc.
Software
CKAN contributor/tech lead
PyRF primary contributor
Urwid author
Speedometer author

Presentations
Contributing to Open Source
IASA E-Summit, 2014-05-16
Urwid Applications
2012-11-14
Urwid Intro
2012-01-22
Unfortunate Python
2011-12-19
Django 1.1
2009-05-16

Writing
Moving to Python 3
2011-02-17
Article Tags

Home

Ian Ward's email:
first name at this domain

wardi on OFTC, freenode and github

Locations of visitors to this page

News rss icon

Sphinx logo
Sphinx Presentation at OPAG link
Posted on 2010-08-29.

I will be giving a talk at the September meeting of the Ottawa Python Authors Group covering some documentation work I have done recently using Sphinx domains and a custom Pygments lexer.

I am working on an embedded device for a client that includes a proprietary text command language. Sphinx supports documenting many common languages like C, Python and Ruby, but with the 1.0 release it now allows adding "domains" for new languages. I have used this feature to create a domain for this command language.

Sphinx uses Pygments to provide syntax hilighting for source code examples. None of the available options fit this command language so I also created a custom lexer for this command language in just a few lines of code.

My talk will cover creating these extensions for Sphinx and Pygments.

Tags: Ottawa Software Python OPAG


Non-trivial Django Forms slide
Posted on 2010-04-16.

This is the text from the Nontrivial Django Forms talk I gave last Tuesday at the April meeting of the Ottawa Python Authors Group.

This talk starts where the Django forms documentation leaves off.

Read More …

Tags: Django Ottawa Software Python OPAG


Urwid at OSCON and LinuxFest Northwest link
Posted on 2010-04-04.

Rob Lanphier will be giving talks relating to Urwid at OSCON and LinuxFest Northwest:

LinuxFest Northwest
Bellingham, WA, April 24-25 (Exact time TBD)
Using Urwid and Python Console Applications

O'Reilly's Open Source Convention (OSCON)
Portland, OR, July 22 (Thursday, 1:40pm)
Great User Interfaces in the Terminal Window

Tags: Urwid Software Linux Python


Crystalfontz preview
Posted on 2010-03-14.

The development version of Urwid now has support for display and input on a Crystalfontz 635 LCD panel. These are small LCD screens that fit in a PC's 5ΒΌ" drive bay. They have six buttons, four red/green LEDs and a 20x4 character display with an adjustable backlight.

Read More …

Tags: Urwid Hardware Software Linux Python


Posted on 2009-12-27, last modified 2010-01-21.

Something that has annoyed me for some time now (but not enough to google it, apparently) is Thunderbird's reply header. The default reply header has no date and time. Turning it on turns out to be pretty simple, it just hasn't been added to the configuration dialogs it seems. I need to do this on all the systems I check mail from so I'm documenting it here.

Read More …

Tags: Software Linux


Urwid palette_test.py on rxvt
Urwid 0.9.9 Released link
Posted on 2009-11-16.

This release includes many new features developed since the last major release. Urwid now supports 256 and 88 color terminals. A new MainLoop class has been introduced to tie together widgets, user input, screen display and an event loop. Twisted and GLib-based event loops are now supported directly. A new AttrMap class now allows mapping any attribute to any other attribute. Most of the code base has been cleaned up and now has better documentation and testing. Lots of other improvements are listed in the changelog.

Tags: Urwid Python


Posted on 2009-08-23, last modified 2012-04-09.

I set out to create a generic class that would extend a python list by adding a "focus". The focus is an index in the list, and it will be moved if any items are added or removed before the focus in the list. It could be used to keep track of where you are in a list that is changing while you are processing it, but I wrote it as part of making my Urwid container widgets more user-friendly.

The result is a little more complicated than I imagined.

Read More …

Tags: Urwid Software Python


Posted on 2009-07-25.

watch(1) is a very useful little tool when you want to see the results of a command changing over time.

Unfortunately it seems that it doesn't support Unicode or colours in its output. This is a short bash function that does much of what watch can do, but with no trouble handling Unicode or coloured output.

Read More …

Tags: Software Linux


Posted on 2009-07-21, last modified 2009-11-19.

Django's forms have fields like models, but you access them in a completely different way. I've found it hard to remember the correct way to access form field data properly, so this is a summary of the things I need to do with forms and how to do them. In particular these are useful in the form's __init__ method after calling super() to set up the form the way you want to.

Read More …

Tags: Django


Posted on 2009-07-18.

Another year another Linux Symposium. Here are links to some of the talks I enjoyed most (mainly so I can find them again later)

Read More …

Tags: OLS Software Linux


« page 1 2 3 4 5 6 7 8 910 11 12 page »