put following beyond
Continue reading “get rid of blogger navbar”
Good Blog Example
namedrive dns server
pycurl example: pycurl frequently used options
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”
HTTP User Agent Examples
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 “汉字域名 两个词”
emacs resource
指定html文件的编码
<meta http-equiv=’"Content-Type"’ content=’"text/html;’ charset=’utf-8"’ />
也就是把meta编码放在title之前,这样在IE下才会先读取meta指定的编码。
py2exe usage
py2exe是什么?
py2exe是一种python发布工具,可以把python脚本转换成windows下的可执行程序,不需要安装python便可运行。
Continue reading “py2exe usage”
汉字 字音 共407个
汉字的字音,共407个,全部罗列如下
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
Continue reading “汉字 字音 共407个”