Comments

If you have non-ASCII characters eg. chinese in your python source code, you would encounter the following error:

Python Error: Non-ASCII character in file but no encoding declared

Python by default does not allow Non-ASCII characters in the file. You have to insert the following at the top of the Python file.

#!/usr/bin/env python
# -*- coding: utf8 -*- 

This works on a per file basis.

Mac
Comments

It took me a few months before I decide “All My Files” is a useless feature for Mac OS Lion.

I was irked that it is the default view when you create new Finder window. And I was even more irked that the default arrangement by Kind shows my Adium chat log right at the top..

Continue reading →