Archive for the ‘Python’ Category
Monday, May 26th, 2008
Check their Measles Initiative site. Obviously they also consider we have situation twice worse than Afghanistan.
To give little context: UNF-sponsored vaccine already killed one child in Ukraine and let another 60+ children to hospitals. Only 60'000 dozes of vaccine (out of ~8M) where used so far.
Posted in Python | 2 Comments »
Saturday, May 24th, 2008
Posted in Python | No Comments »
Saturday, May 24th, 2008
Posted in Python | No Comments »
Tuesday, May 13th, 2008
Last night, enhancing the Chytach, I've again come across
a feeling that standard nose asserts and decorators are not quite useful when testing exceptions.
For example, when I'm checking a django form validation, I'd like to make sure that my form throws a ValidationError (easy part) with a particular message (oops).
Nose proposes ...
Posted in Django, Python | No Comments »
Wednesday, March 19th, 2008
If you massively use python feedparser, sooner or later you'll encounter a feed with non-ascii symbols that tracebacks with somethings like
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 10: ordinal not in range(128)
or even
IndexError: pop from empty list
Using latest version from svn helps, but even it has some bugs ...
Posted in Python | 3 Comments »
Monday, December 3rd, 2007
It appears to be quite easy (from technical side) to do a coup refactoring an application from webware to django.
As a first step could be substituting default webware url mapper from url-maps-to-file-hierarchy to django-like regexp matcher.
url map would look like familiar django file:
from django.conf.urls.defaults import patterns
from Pages import Main
urlpatterns ...
Posted in Django, Python | No Comments »
Monday, October 1st, 2007
I'll start with warning. Now it's just a pure thoughts, none of code is tested or ever written and is just a dump of an idea came up at Python Exception.
For those who do not know the issue. MySQL replication syncs databases one way, from master(s) to slaves. This allows ...
Posted in Django, Python | No Comments »
Thursday, September 20th, 2007
Deliver fast.
Develop code with tests first and deliver only code 100% covered with tests.
Work in small iterations (biweekly, weekly or even less)
Scaleable - you may test with one-week part-time contract and scale as your ...
Posted in Business, Python | No Comments »
Monday, September 17th, 2007
Recently some feeds grabbed by chytach (and parsed by feedparser.py) started to traceback:
Failed parsing http://del.icio.us/tag/gtd with exceptions.UnicodeDecodeError: {'object': '/tag/\xe6\x97\xb6\xe9\x97\xb4\xe7\xae\xa1\xe7\x90\x86', 'end': 6, 'encoding': 'ascii', 'args': ('ascii', '/tag/\xe6\x97\xb6\xe9\x97\xb4\xe7\xae\xa1\xe7\x90\x86', 5, 6, 'ordinal not in range(128)'), 'start': 5, 'reason': 'ordinal not in range(128)'}
Traceback (most recent call last):
File "/home/akhavr/chytach/bin/feedupdate.py", line 97, in processfeed
...
Posted in Python | No Comments »
Friday, August 31st, 2007
Here's Guido's post to c.l.p verbatim:
From: "Guido van Rossum"
Subject: Python 3000 released as 3.0a1
To: python-announce-list@python.org
Date: Fri, 31 Aug 2007 10:17:05 -0700
[Bcc: python-list@python.org]
The first Python 3000 release is out -- Python 3.0a1. Be the first one
on your block to download it!
http://python.org/download/releases/3.0/
Excerpts:
Python 3000 (a.k.a. "Py3k", and released as Python 3.0) is ...
Posted in Python | No Comments »