Registered: 2009-01-21
Update: 5 months ago
Problems: 58
Solutions: 55
References: 102
Problem views: 248827
Unsolved problem views: 9705
yliu
User
O(n) person in an O(log n) world.
刘一鸣
Recent problems
Atom Feed#20: Subversion: ignore a version controlled file on commit
on February 18, 2009, 11:02 PM UTC — from yliu
( 614 views )
For my project, I have several runtime configuration files that differs on each machine it's installed on. Each developer that works on the project needs to make changes to the conf file, but I don't want the developer-dependent, custom settings in their individual...
#14: Setting up trac under mod_wsgi returns NULL result error
on February 12, 2009, 12:29 PM UTC — from yliu
( 815 views )
When accessing the trac URI, a text/plain document is returned with Python errors, ending with
SystemError: NULL result without error in PyObject_Call
#13: Compiling mod_wsgi fails with relocation error
on February 12, 2009, 08:09 AM UTC — from yliu
( 886 views )
/usr/bin/ld: /usr/local/lib/python2.5/config/libpython2.5.a(node.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/python2.5/config/libpython2.5.a: could not read symbols: Bad...
#12: Find all words that end in...
on February 11, 2009, 09:07 AM UTC — from yliu
( 628 views )
Given a list of words in a text file, one word per line (such as, /usr/share/dict/words on OS X) there should be a quick way to find all words that end in a substring.
Example:
Find all words that end in "me"
assume
consume
presume
...
#11: Python formencode doesn't run validations when input is None
on February 07, 2009, 11:29 AM UTC — from yliu
( 817 views )
Using FormEncode 1.0.1, validations don't seem to run when an input value of None is provided to the FancyValidator.to_python or Schema.to_python method.
Example
validation schema:
class ValidToken(formencode.FancyValidator):
def _to_python(self, value...