Jan 25, 2009

Happy 牛 Year, 2009


Happy New Year
Happy 牛 Year, 己丑年2009 is the Year of the Ox, and will fall on January 26th, which is also known by its formal name of Ji Chou, 己丑, shown in the photo.

Ox in Chinese is 牛, pronounced niú, very similar to NEW, so many Chinese have being sending the New Year greeting, Happy 牛 Year. I even received such greeting from a Japanese friend, who has been learning Chinese.

You may ask,"But why do you draw a snail?" This is also related to Chinese. In Chinese, snail is named 蜗牛. I guess the name is due to its tentacle looking like ox's horn. Anyway, the snail speaks Chinese, and he thinks he is some kind of "", and 2009 is his year:-)

The sentences in the picture mean

My 牛 year is coming.
Hope everyone will guard against conceit and rashness,
be down-to-earth,
grit your teeth,
take carefully your house,
and climb upward step by step.
One day the sunlight will shine on our faces,
and the blue sky will belong to us.

This is my first time to draw using my mobile phone X01HT, and also the only painting in last 3 years. It is really enjoyable to draw directly on the screen, much better than a mouse. I will try more.

There is a famous song Snail, by 周杰伦,Jay Chou.


Jan 7, 2009

Most Suggestive Traceback

Facing tracebacks,I am often totally confused。

In most cases, perhaps you can find which line errors are around according to tracebacks - yes, "perhaps" and "around" is used, since the true reason and related codes may be far from the line numbers proposed by tracebacks.

However, there is at least one exception.

Run the below command:
esn@esn-laptop:~$ python -c 'sum(["a","b","c"],"")'
Traceback (most recent call last):
File "<string>", line 1, in <module>
TypeError: sum() can't sum strings [use ''.join(seq) instead]

Hah, You see it! The most suggestive traceback!

If all of tracebacks were so intelligent, programing would be simple. But if so, is it necessary for humans to program?

Note:The version of Python
esn@esn-laptop:~$ python -V
Python 2.5.2