A programming weblog by Hao Lian. • A long walk through an angry forest. • A series of memory leaks brought on by senility.


$ python /usr/local/google_appengine/
    -a -p 9091
    --disable_static_caching .


$ make serve

[(August 21, 2010) .]

There’s an open call by Tav, looking for people to break the security boundaries on safelite.FileReader—a file reader—and write a file. As pointed out by seul on reddit, this is basically a window into how really smart Python programmers think.

[(February 24, 2009) .]

Google App Engine’s datastore API is a continuation of a trend that the outstanding Python SQLAlchemy started, namely to re-purpose the class, an object-oriented concept, as a declaration of a table. Take, for example, the SA example

Base = declarative_base()
class User(Base):
    __tablename__ = 'users'
    id = Column(Integer, primary_key=True)
    name = Column(String)
    fullname = Column(String)
    password = Column(String),

which by all standards seems primitive. I have to call declarative_base? And what are those underscores doing in my pristine class? Can’t you pluralize the table for me? I have to sit down, I have a headache now. SQL is hard.


[(January 2, 2009) .]