To completely delete the Older Posts and Newer Posts links locate this line of code in the Blog Posts widget after putting a check in the Expand Widgets Template check-box :
Continue reading “DELETE THE OLDER POSTS AND NEWER POSTS LINK”
工作-生活-记录
To completely delete the Older Posts and Newer Posts links locate this line of code in the Blog Posts widget after putting a check in the Expand Widgets Template check-box :
Continue reading “DELETE THE OLDER POSTS AND NEWER POSTS LINK”
put following beyond
Continue reading “get rid of blogger navbar”
c = pycurl.Curl()
c.setopt(pycurl.VERBOSE,1)
c.setopt(pycurl.FOLLOWLOCATION, 1)
c.setopt(pycurl.MAXREDIRS, 5)
#c.setopt(pycurl.AUTOREFERER,1)
#c.setopt(pycurl.COOKIEJAR,"dasfa")
c.setopt(pycurl.CONNECTTIMEOUT, 60)
c.setopt(pycurl.TIMEOUT, 300)
if proxy:
c.setopt(pycurl.PROXY,proxy)
c.setopt(pycurl.NOSIGNAL, 1)
Continue reading “pycurl example: pycurl frequently used options”
agence = [
"""Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.7) Gecko/20070914 Firefox/2.0.0.7""",
"""Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)""",
Continue reading “HTTP User Agent Examples”
import string
zz = string.split("a ai an ang ao ba bai ban bang bao bei ben beng bi
bian biao bie bin bing bo bu ca \
cai can cang cao ce cen ceng cha chai chan chang chao che chen cheng
chi chong chou chu chuai chuan \
chuang chui chun chuo ci cong cou cu cuan cui cun cuo da dai dan dang
dao de dei deng di dia dian diao \
Continue reading “汉字域名 两个词”
<meta http-equiv=’"Content-Type"’ content=’"text/html;’ charset=’utf-8"’ />
也就是把meta编码放在title之前,这样在IE下才会先读取meta指定的编码。
py2exe是什么?
py2exe是一种python发布工具,可以把python脚本转换成windows下的可执行程序,不需要安装python便可运行。
Continue reading “py2exe usage”