在Linux下,全局代理是很容易的:
export http_proxy=localhost:8000
即可,
windows就没这么简单了,推荐一个软件:Proxifier,很好用。
这里全局的意思就是:不止是浏览器(包括IE和Firefox),而是所有联网的软件,比如iTunes。[......]
在Linux下,全局代理是很容易的:
export http_proxy=localhost:8000
即可,
windows就没这么简单了,推荐一个软件:Proxifier,很好用。
这里全局的意思就是:不止是浏览器(包括IE和Firefox),而是所有联网的软件,比如iTunes。[......]
对于Clubuptime无语了,肯定是这台母鸡又被国人占领了,模板的Locale居然被设置成了GBK。。。。。。
导致python部署webpy时候出现如下诡异的错误:
if sys.getdefaultencoding() != 'utf-8':
<type 'exceptions.UnicodeDecodeError'> at /
'ascii' codec can't decode byte 0xe4 in position 44: ordinal no[......]
换了一个Openvz的vps,可能同母鸡的人发Ticket要求换locales来着,原来都是UTF8,用的很好,非要改成gbk,我就无语了。
这样在tab自动补全时候经常出现类似的错误如下:
-bash: warning: setlocale: LC_CTYPE: cannot change locale (zh_CN.UTF-8)
解决方法,编辑/etc/profie,添加一行,如下:
sudo vim /etc/profile
#添加一行
export LC_ALL=[......]
摘录自官网:
Perhaps the most common misconception about Django is that it’s a content management system. It’s not. It’s a web framework. It is a tool in which to build a CMS, like Drupal or other systems, but not one in itself.
原来Django的初始目的是建一个CMS站[......]
感谢这篇文章:http://liushuai-238.iteye.com/blog/362610
1、获得服务器上的字符集
首先登录上sqlplus,查看服务器上的字符集。
sqlplus user/pass@ip/sid
#得到如下结果:
SQL> select userenv('language') from dual;
USERENV('LANGUAGE')
--------------------------------------------------[......]