`
nathan.wu
  • 浏览: 48718 次
  • 性别: Icon_minigender_1
  • 来自: 南京
最近访客 更多访客>>
文章分类
社区版块
存档分类
最新评论
文章列表
CFLAGS="-liconv" ./configure && make && make install or ./configure --with-iconv=/usr/local && make && make install
ldconfig /usr/local/lib
http://www.moppeblog.net/2008/12/09/getting-started-with-python-and-eclipse-on-windows/ pydev eclipse window python how to
On the other hand a quick list for myself in case the blog post disappears:    1. using “assert False” in your views will raise the default debug output in the browser we all know when something goes wrong    2. using “print” statements will print to the terminal (didn’t know that, woah!)    3. usin ...
quixote app with nginx fastcgi redirect problem if you want to run quixote app with nginx fastcgi you need patch the publish.py file search with "request.get_environ('PATH_INFO', '')" then add below code after that code if 'nginx' in request.get_environ('SERVER_SOFTWARE', '') and reques ...
from quixote.http_response import HTTPResponse HTTPResponse.DEFAULT_CHARSET = 'UTF-8' or import quixote quixote.DEFAULT_CHARSET = 'UTF-8'
#!/usr/bin/env python import inspect def current_fun_name(): return inspect.getframeinfo(inspect.currentframe())[2] if __name__ == '__main__': print current_fun_name()
Q. I'd like to rebuild a Debian / Ubuntu package called foo with additional option. How do I recompile .deb packages? A. To build a Debian package, you need the following packages / software installed on system [a] fakeroot : fakeroot package - runs a command in an environment wherein it appears to ...
recently i'm working on quixote. the default template for quixote is ptl. but if seem that ptl cannot work with mysqldb. import MySQLdb from quixote import enable_ptl enable_ptl() i don't know why maybe ptl can not work with egg. so i switch to qpy, as fast as ptl, another template engine.
make sure all files save as unix format otherwise you'll get some thing wrong with ptl
how does mysql create temporary table? if you running GROUP BY and some other kinds of queries MySQL needs to create temporary tables, which can be created in memory, using MEMORY storage engine or can be created on disk as MYISAM tables. Which one will be used depends on the allowed tmp_table_size a ...
ror app server thin "unable to delete epoll event" that bug is cause by eventmachine you need upgrade to eventmachine 0.11 version here is upgrade code sudo gem install eventmachine --source http://code.macournoyer.com terminate called after throwing an instance of 'std::runtime_error'   ...
do you know tee? sample cat access.log | grep -i 'bot' | tee ~/bot.log
peace
ok ubuntu 7.10 gutsy cannot disable ipv6 add this text to the end of /etc/modprobe.d/blacklist install ipv6 /bin/true then reboot normally disable ipv6 on linux add this text to the end of /etc/modprobe.d/blacklist blacklist ipv6 then reboot but that code can not work with 7.10 gutsy version oops h ...
Global site tag (gtag.js) - Google Analytics