- 浏览: 48718 次
- 性别:
- 来自: 南京
最新评论
-
nathan.wu:
gem install thinas far as i kno ...
new rails app server thin -
crag:
兄弟,来点详细点的安装、配置介绍呀
new rails app server thin
文章列表
CFLAGS="-liconv" ./configure && make && make install
or
./configure --with-iconv=/usr/local && make && make install
- 2009-10-10 10:48
- 浏览 2018
- 评论(0)
ldconfig /usr/local/lib
- 2009-10-09 15:26
- 浏览 624
- 评论(0)
http://www.moppeblog.net/2008/12/09/getting-started-with-python-and-eclipse-on-windows/
pydev eclipse window python how to
- 2008-12-09 21:50
- 浏览 815
- 评论(0)
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 ...
- 2008-08-02 02:44
- 浏览 659
- 评论(0)
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 ...
- 2008-07-23 01:33
- 浏览 1502
- 评论(0)
from quixote.http_response import HTTPResponse
HTTPResponse.DEFAULT_CHARSET = 'UTF-8'
or
import quixote
quixote.DEFAULT_CHARSET = 'UTF-8'
- 2008-07-20 03:31
- 浏览 853
- 评论(0)
#!/usr/bin/env python
import inspect
def current_fun_name():
return inspect.getframeinfo(inspect.currentframe())[2]
if __name__ == '__main__':
print current_fun_name()
- 2008-07-20 01:54
- 浏览 1092
- 评论(0)
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 ...
- 2008-07-20 00:56
- 浏览 1550
- 评论(0)
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.
- 2008-07-16 14:18
- 浏览 703
- 评论(0)
make sure all files save as unix format
otherwise you'll get some thing wrong with ptl
- 2008-07-16 00:38
- 浏览 547
- 评论(0)
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 ...
- 2008-06-02 00:14
- 浏览 1976
- 评论(0)
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'
...
- 2008-05-29 14:52
- 浏览 863
- 评论(0)
do you know tee?
sample
cat access.log | grep -i 'bot' | tee ~/bot.log
- 2008-05-25 22:18
- 浏览 839
- 评论(0)
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 ...