-
Recent Posts
Recent Comments
- tb on Pre-compiled binaries for PyCrypto 2.6.1 (py27) on Win7
- Dominik on Pre-compiled binaries for PyCrypto 2.6.1 (py27) on Win7
- admin on Package dk
- admin on django :: list_display can’t sort on attribute of foreign key field…
- Anika Dejong Butler on django :: list_display can’t sort on attribute of foreign key field…
Archives
Categories
Meta
Monthly Archives: November 2006
Django :: i18n
What’s up with so many languages? E.g. in Switzerland there are four official languages, and in Norway there are two: bokmÃ¥l and nynorsk (details). I’ll be describing what I had to do to get a good user experience with these … Continue reading
Posted in django
Leave a comment
Python :: flatten
Although it can seem like a CS excercise, everyone will sooner or later have to write a “flatten” function — a function that takes a nested “list” and makes it one-dimensional: [sourcecode language=”Python”] >>> flatten([1,2, [3,4], 5]) [1, 2, 3, … Continue reading
Posted in Python
Leave a comment
Django :: making a date dropdown field
It seems like it is hard to input valid dates in a free-form text format for a significant portion of users. Personally, I don’t like many of the popup calendar widgets since they usually rely on Javascript for rendering — … Continue reading
Posted in django
Leave a comment
Python :: defprop – a very simple idiom for defining properties
Most attempts at making it easier to define properties in Python seem to quickly descend into metaclass obscurity. Metaclasses can surely solve the problem for an appropriate definition of solve, but “Explicit is better than implicit”, and “Simple is better … Continue reading
Posted in Python
Leave a comment