Ian Ward's email:
first name at this domain
wardi on OFTC, freenode and github
This is part one of a talk I gave January 24, 2013 at the Ottawa Python Authors Group
Part Two is now also available.
Both parts of this presentation are also available as a single IPython Notebook which you can download and run locally, or view with nbviewer.ipython.org. The complete source is available at https://github.com/wardi/iterables-iterators-generators
I gave a 20-minute talk running through 7 great Urwid Applications at PyCon Canada in Toronto this past weekend.
The "Console Applications with Urwid" video is now available. Huge thanks to the conference organizers for great, first, PyCon Canada. I look forward to the next one.
The programs I covered were:
This post covers some basic Python syntax that tends to trip up people just starting with the language.
Literal tuple, list, dict and set definitions have some edge cases you need to be aware of when reading and writing Python code. Unfortunately some of these cases aren't consistent or obvious, but once you understand why they exist, they are easy to remember.
Gerbi CMS (nee django-page-cms) is a multilingual content management system written in Python and based on the Django web framework. It's currently my favourite CMS software and use it for a number of web sites I administer.
If you've ever wanted to know if a Django template is using a variable it shouldn't be, or not using a variable it should, this code will make both cases fail loudly. Django's default template behaviour is to silently replace missing variables with an empty string, and ignore unused variables.
To use this code you can either:
I'll be giving a introductory-level presentation on Urwid at the Python Malaysia February Meetup in two weeks. I'm covering the basics with a short presentation and there should be plenty of time for questions or digging in deeper on any aspect.
[Update 2012-02-04]: Slides now available
[Update 2012-02-06 added some photos]
The Humble Indie Bundle #4 was nice enough to bring Super Meat Boy and a bunch of other great games to Linux. The SMB people however seem to want to punish you for playing on a keyboard and leave you with SPACE as jump, SHIFT as run, and no way to reconfigure the keys.
Here is a little xmodmap script that makes playing on a keyboard much more enjoyable:
keysym x = space keysym z = Shift_L
Just save this as
xmodmap.meat and then run
xmodmap -pke > xmodmap.orig to save your original key settings.
xmodmap xmodmap.meat before starting the game, and
xmodmap xmodmap.orig when you're done.
« page 1 2 3 4 5 6 … 10 11 12 page »