`
zhanyingle_1981
  • 浏览: 325490 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论
文章列表

git whatchanged -n 1

    博客分类:
  • git
git whatchanged -n 1

exc_info=True

exc_info=True
down vote See: http://code.google.com/p/modwsgi/wiki/FrequentlyAskedQuestions#Apache_Process_Crashes The message 'premature end of script headers' is usually indicative of your code crashing the daemon process. You can verify this by looking for segmentation fault o ...
SyntaxError: 'return' outside function 一般是由于缩进不对引起的,比如tab 和空格混合使用.........
TypeError: 'NoneType' object is unsubscriptable    x = None 然后你使用了x[0],就会出现这个错误。   If a list a is none, and you use a[1], it will throw this error
too many values to unpack 这种错误是指一个tuple值赋给一个tuple变量时,变量个数不够造成的。如: a, b = (1, 2, 3)   for example: if ditc_a is dict, following code will get this error for key, value in ditc_a:     ...     Correct: for key, value in ditc_a.items():     ...
Traceback (most recent call last): File "/Library/Python/2.7/site-packages/django/core/servers/basehttp.py", line 283, in run self.result = application(self.environ, self.start_response) File "/Library/Python/2.7/site-packages/django/contrib/staticfiles/handlers.py" ...
Install psycopg2 for python, got "unable to execute llvm-gcc-4.2: No such file or directory error: command 'llvm-gcc-4.2' failed with exit status 1"   Download "GCC-10.7-v2.pkg", install, ok...
  今日Windows下通过命令行python django-admin.py startproject test, 结果Can't open file 'django-admin.py': [Errno 2] No such file or directory   记得以前就是这么干的,好奇怪。 看了path设置包含C:\Python27;C:\Python27\Scripts,django-admin.py已经在path中了,???   试了试 django-
http://luugiathuy.com/2011/02/setup-opencv-for-python/   http://www.opencv.org.cn/index.php/Debian%E4%B8%8B%E5%AE%89%E8%A3%85 Resotre Now
最近这几天被python的调试给折腾的无语了。。。。。。。。。   1. 在apache下log调试,出的比较明显的错,在log中根本看不出来,最后只能一步一步log,才找到出错的地方,诚心折腾人 2. 发现在交互命令时,因为我自己的代码中有个叫collection的module,结果import riak时出错: >>> import riak Traceback (most recent call last):   File "<stdin>", line 1, in <module>   File "/u ...

django-groundwork

今天看到 Django 实战 中提到了Djaongo中模仿 ruby on rials 中的 scaffold功能的一个django app: django-groundwork,有点意思     Resotre Now
from django.core import management;import mip_server.settings as settings;management.setup_environ(settings) from mip_server.shares import riak_dal import riak client = riak.RiakClient("10.135.81.229", port=8081, transport_class=riak.RiakPbcTransport) flag=riak_dal.share_bucket.get(&quo ...

backup 2012 0330

-- insert into license_types(pro_partner_id, name, resource_policy) values ( 3970 , 'Direct Web Upload', 'enabled');   insert into license_types(pro_partner_id, name, resource_policy) values (3970, 'Desktop, 'enabled');   insert into license_types(pro_partner_id, nam ...
RIAK_SERVER=settings.CONFIG.get('riak_db', 'server', None) RIAK_PORT=settings.CONFIG.getint('riak_db', 'port')   如果在配置文件中如果没有报错 [riak_db] server= port=   甚至写成 [riak_db] #server=127.0.0.1 #port=8081 也报错   有点搞,还需要看看细节   2.  HTTP 中错把method的值写成了POST,应该是PUT,报错信息如下:   error: [Errno 104] C ...
Global site tag (gtag.js) - Google Analytics