随笔分类 - python
1
摘要:python-magic点击打开链接https://github.com/ahupp/python-magic/
阅读全文
摘要:git update-index --assume-unchanged -- path/to/file# 启用忽略git update-index --no-assume-unchanged -- path/to/file# 停用忽略点击打开链接https://help.github.com/art...
阅读全文
摘要:sample :点击打开链接http://www.yihaomen.com/article/python/221.htm如果出现怎么切换语言都不翻译的情况,要确保在settings里设置了LOCALE_PATHS = ( '/home/lein/git/paaam/locale',)不然的话,...
阅读全文
摘要:密码认证 和 公私钥 只是2种不同的方式而已。但是每次pull or push 代码的 时候 都要输入密码,让人很头疼。所以还是用公钥私钥的验证方便。2台机器:local & remote//在local上生成公钥私钥对:cd ~/.ssh && ssh-keygen//在.ssh目录下建一个文件夹...
阅读全文
摘要:http://andylin02.iteye.com/blog/508963
阅读全文
摘要:注册一个developer帐号A后,paypal会建议你建两个test account,一个buyer,一个seller。这没什么。但是如果你想测试一个买,一个卖的流程,只用一个帐号是做不了的。你需要再申请一个新的developer帐号B,再建test account。用A的buyer去买B的sel...
阅读全文
摘要:https://docs.djangoproject.com/en/1.4/howto/legacy-databases/
阅读全文
摘要:python + mysql,数据库文件已导入。# check versionpython -c "import django; print(django.get_version())"#install pipsudo apt-get install python-pip#install newes...
阅读全文
摘要:git修改提交的用户名和Emailhttp://blog.chinaunix.net/uid-26997997-id-3231891.html
阅读全文
摘要:pg_list 是一个list,str是转换成string的函数map是把第一个参数指定的方法作用于第二个参数指定的列表的每一个元素上面sql = """select placementgroup_placements.placement_id from placementgroup_placeme...
阅读全文
摘要:http://bbs.chinaunix.net/thread-1283789-1-1.html
阅读全文
摘要:select * from INFORMATION_SCHEMA.columns where COLUMN_NAME Like '%placement%';
阅读全文
摘要:http://developer.51cto.com/art/201003/187933.htm
阅读全文
摘要:http://linuxshow.blog.51cto.com/1572053/949717
阅读全文
摘要:http://stackoverflow.com/questions/373812/rollback-file-to-much-earlier-version
阅读全文
摘要:当value是列表的时候,要用getlist
阅读全文
摘要:http://www.cppblog.com/deercoder/archive/2011/11/13/160050.html
阅读全文
摘要:安装地址http://www.webmin.com/tgz.html
阅读全文
摘要:错误信息:warning: You appear to have cloned an empty repository.或者fatal: destination path '.' already exists and is not an empty directory.解决办法:ls -arm .g...
阅读全文
1

浙公网安备 33010602011771号