A New Approach to China于昨天下午发布在google的官方博客上,讲的大概意思是,由于诸多与google所崇尚的目标相违背的事件,最终使他们决定放弃中国市场,google.cn将退出中国,中国大陆的办公室也将关闭.
假如Google退出中国,估计首先大量的gmail用户不能用了,当然还有google的许多免费但要高效好用的服务,比如Greader,google heath,app Engine,etc.同时,还有大量的使用gmail邮箱来注册的其他服务,也相应的不能使用。还有android手机的大量应用,中国移动中国电信也是联盟的一部分,也许我们将没有真正开放的服务,保护隐私的供应商,也许…………….
失去Google,我将无法真正的找到需要的内容,国内的搜索服务,搜索的内容大量的是付过钱的广告内容,掺杂着大量的虚假信息,对于这种没有企业道德的企业,我的选择的屏蔽它.
Evernote作为一款非常不错的笔记软件,在我之前使用Blackberry 8320的时候已经在使用了,对它的喜爱在我的两篇文章“优化时间使用的GTD工具”和“ The International,BB8320,EVERNOTE ”已经在说明了,但是它一直没有linux版本的桌面端,但是可以使用wine非常顺畅的在linux一上使用它。在后来换G1的过程中,也是因为这个软件,而纠结过一会儿,现在终于看到推出了这个Beta版本,就迫不急待下来试一下。
Super Baozi, being tired of being in Catering,is longing for developeing in Recreation. With intense enthusiasm and strong perseverance, he has learned to sing songs and to play nunchakus.Here are two short films of Super Baozi,please enjoy them.
Help on class ProxyHandler in urllib2:
urllib2.ProxyHandler = class ProxyHandler(BaseHandler)
| Methods defined here:
| __init__(self, proxies=None)
| proxy_open(self, req, proxy, type)
| ———————————————————————-
| Data and other attributes defined here:
| handler_order = 100
| ———————————————————————-
| Methods inherited from BaseHandler:
| __lt__(self, other)
| add_parent(self, parent)
| close(self)
这样就方便来操作代理了,代码如下:
importurllib2
proxy_info = {'user' : 'username',
'pass' : 'password',
'host' : "secproxy.test.com",
'port' : 8080}# build a new opener that uses a proxy requiring authorization
proxy_support = urllib2.ProxyHandler({"http" :
"http://%(user)s:%(pass)s@%(host)s:%(port)d"% proxy_info})
opener = urllib2.build_opener(proxy_support, urllib2.HTTPHandler)# install iturllib2.install_opener(opener)
最近评论