Category Archives: python

Challenge 1

After staring at the mess sentence at the end for a while, I realize there’s not too mucy “k,o,e” in it so the idea yesterday won’t work.
Look again at the pic and I think I found what’s in it: int(k)+2 = m, int(o)+2 = q, int(e)+2 = g. I think this is it.
It took me […]

Challenge 0

OK, this is marked as “warming up” so it should be easy.
The hint is “look at the URL address.”. OK, this is challenge 0 and the url is 0.html. So I changed it to 1.html.
There is a page there! It shows “2**38 is much much larger.”. OK I know what the “238″ in the pic […]

sqlobject in one file

Looks if two SQLObject class got reference to each other, i.e,
ForeignKey
, they should stay in the same file. Else the generated reference column name will get messed up and causing problem. This is where I wasted 3 hours today
Also the column name should be in mixedCase instead of
MixedCase
. This should be a bug […]

some comments on Python web frame work

Zope is easy if it does what you want out of the box, Quixote is good for sites that are big on calculations and small on eye candy, Twisted is good for high-demand sites

Share This

Python, Ipython, and Emacs

While there are several python mode for Emacs, I can’t get them work all together. And the most important thing I want to do is intergrate Ipython in Emacs. So the easiest way is to start an ansi-term, and run Ipython in it. This saved me all the efforts of patching python-mode and so on. […]

_q_index can’t return a callable

Only _q_lookup can

Share This

Close
E-mail It