自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Eric.Net的专栏

help me help you

  • 博客(81)
  • 问答 (2)
  • 收藏
  • 关注

正则tips

http://parkmy.iteye.com/blog/423440然后上网一查,虽然没有查出上述规则到底是什么地方出问题了,但是查出了一个解决办法,经过一试,果然可以匹配包括换行符在内的任意字符,以下为正确的正则表达式匹配规则: ([\s\S]*) 同时,也可以用 “([\d\D]*)”、“([\w\W]*)” 来表示。 ...

2010-07-31 13:31:00 50

正则tips

http://parkmy.iteye.com/blog/423440然后上网一查,虽然没有查出上述规则到底是什么地方出问题了,但是查出了一个解决办法,经过一试,果然可以匹配包括换行符在内的任意字符,以下为正确的正则表达式匹配规则: ([\s\S]*) 同时,也可以用 “([\d\D]*)”、“([\w\W]*)” 来表示。 ...

2010-07-31 13:31:00 56

online gzip test tool

http://www.whatsmyip.org/http_compression/http://www.gidnetwork.com/tools/gzip-test.php

2010-07-31 10:52:00 60

online gzip test tool

http://www.whatsmyip.org/http_compression/http://www.gidnetwork.com/tools/gzip-test.php

2010-07-31 10:52:00 90

solr tip

http://localhost:8080/solr/core0/select?q=收纳&rows=0&facet=true&facet.field=price&facet.query=price:[*+TO+20]&facet.query=price:[20+TO+*]当使用rows=0时没有返回结果,只进行facet query...

2010-07-31 10:01:00 46

solr tip

http://localhost:8080/solr/core0/select?q=收纳&rows=0&facet=true&facet.field=price&facet.query=price:[*+TO+20]&facet.query=price:[20+TO+*]当使用rows=0时没有返回结果,只进行facet query...

2010-07-31 10:01:00 55

python tip

a="2" if False else "3"

2010-07-30 21:04:00 75

python tip

a="2" if False else "3"

2010-07-30 21:04:00 52

gthread-2.0 install

http://ubuntuforums.org/showthread.php?t=857320You need libglib2.0-dev (use synaptic to install it).pygobject-2.0libglib2.0-devpycairohttp://cairographics.org/pycairo/http://www.pygtk.org/downloads.ht...

2010-07-29 23:49:00 451

gthread-2.0 install

http://ubuntuforums.org/showthread.php?t=857320You need libglib2.0-dev (use synaptic to install it).pygobject-2.0libglib2.0-devpycairohttp://cairographics.org/pycairo/http://www.pygtk.org/downloads.ht...

2010-07-29 23:49:00 728

python tips

file(path.basename(url), 'wb').write(httpc.get(url))http://ulaluma.com/pyx/archives/2008/12/lxml_eventlet_m.html

2010-07-29 15:39:00 48

python tips

file(path.basename(url), 'wb').write(httpc.get(url))http://ulaluma.com/pyx/archives/2008/12/lxml_eventlet_m.html

2010-07-29 15:39:00 51

Scale Stack vs node.js vs Twisted vs Eventlet

http://oddments.org/?p=494

2010-07-29 15:22:00 50

Scale Stack vs node.js vs Twisted vs Eventlet

http://oddments.org/?p=494

2010-07-29 15:22:00 54

比较工具on ubuntu

sudo apt-get install meld

2010-07-28 16:58:00 68

比较工具on ubuntu

sudo apt-get install meld

2010-07-28 16:58:00 73

pool=eventlet.GreenPool(20)

默认是1000,可能是我在 ubuntu下unlimit -n没有调 ,或是python的httplib有问题,抓同一个站就抱错    r = h.getresponse()  File "/usr/lib/python2.6/httplib.py", line 986, in getresponse    response.begin()  File "/usr/lib/python2.6/ht...

2010-07-28 15:04:00 71

pool=eventlet.GreenPool(20)

默认是1000,可能是我在 ubuntu下unlimit -n没有调 ,或是python的httplib有问题,抓同一个站就抱错    r = h.getresponse()  File "/usr/lib/python2.6/httplib.py", line 986, in getresponse    response.begin()  File "/usr/lib/python2.6/ht...

2010-07-28 15:04:00 224

utf8库,gb2312心得

这个python的一个难题,大部分开源的python包或是其它的程序,目前和未来都会采用utf8,因此建议你用utf8,但是我们又用到gb2312,因为我们要做面向百度友好的站,因此我们只要保证,程序的输入和输出是gb2312内部还是utf8这样会比较简单,之前使用gb2312做默认文件编码,但是各个输入输出及库之间调用就搞混了,这个问题搞了两三天了,...

2010-07-27 23:40:00 62

utf8库,gb2312心得

这个python的一个难题,大部分开源的python包或是其它的程序,目前和未来都会采用utf8,因此建议你用utf8,但是我们又用到gb2312,因为我们要做面向百度友好的站,因此我们只要保证,程序的输入和输出是gb2312内部还是utf8这样会比较简单,之前使用gb2312做默认文件编码,但是各个输入输出及库之间调用就搞混了,这个问题搞了两三天了,...

2010-07-27 23:40:00 57

nginx最新部署

<span style="color: rgb(194, 12, 185); font-weight: bold;">sudo</span> <span style="color: rgb(194, 12, 185); font-weight: bold;">apt-get</span> <span style="color: rgb

2010-07-27 01:30:00 70

nginx最新部署

<span style="color: rgb(194, 12, 185); font-weight: bold;">sudo</span> <span style="color: rgb(194, 12, 185); font-weight: bold;">apt-get</span> <span style="color: rgb

2010-07-27 01:30:00 60

ubuntu查看进程占用端口命令

netstat -tlnp|grep 80http://fly5.com.cn/t/t-chicken/linux-%E6%9F%A5%E7%9C%8B%E8%BF%9B%E7%A8%8B%E5%8D%A0%E7%94%A8%E7%AB%AF%E5%8F%A3%E5%91%BD%E4%BB%A4.htmlkill -9 $(netstat -tlnp|grep 80|awk '{print...

2010-07-26 20:53:00 148

ubuntu查看进程占用端口命令

netstat -tlnp|grep 80http://fly5.com.cn/t/t-chicken/linux-%E6%9F%A5%E7%9C%8B%E8%BF%9B%E7%A8%8B%E5%8D%A0%E7%94%A8%E7%AB%AF%E5%8F%A3%E5%91%BD%E4%BB%A4.htmlkill -9 $(netstat -tlnp|grep 80|awk '{print...

2010-07-26 20:53:00 139

bottle support gb2312

in template first line type code as follows:%# -*- coding: gb2312 -*-in controller writeresponse.content_type = 'text/html; charset=gb2312'感觉到阅读代码的能力增强了,最近的问题都是通过阅读代码,修改代码,揍活代码,优雅改良,解决问题的reference:htt...

2010-07-25 23:44:00 48

bottle support gb2312

in template first line type code as follows:%# -*- coding: gb2312 -*-in controller writeresponse.content_type = 'text/html; charset=gb2312'感觉到阅读代码的能力增强了,最近的问题都是通过阅读代码,修改代码,揍活代码,优雅改良,解决问题的reference:htt...

2010-07-25 23:44:00 47

bottle support gb2312

in template first line type code as follows:%# -*- coding: gb2312 -*-in controller writeresponse.content_type = 'text/html; charset=gb2312'感觉到阅读代码的能力增强了,最近的问题都是通过阅读代码,修改代码,揍活代码,优雅改良,解决问题的reference:htt...

2010-07-25 23:41:00 49

bottle support gb2312

in template first line type code as follows:%# -*- coding: gb2312 -*-in controller writeresponse.content_type = 'text/html; charset=gb2312'感觉到阅读代码的能力增强了,最近的问题都是通过阅读代码,修改代码,揍活代码,优雅改良,解决问题的reference:htt...

2010-07-25 23:41:00 50

bottle support gb2312

in template first line type code as follows:%# -*- coding: gb2312 -*-in controller writeresponse.content_type = 'text/html; charset=gb2312'感觉到阅读代码的能力增强了,最近的问题都是通过阅读代码,修改代码,揍活代码,优雅改良,解决问题的...

2010-07-25 23:39:00 48

bottle support gb2312

in template first line type code as follows:%# -*- coding: gb2312 -*-in controller writeresponse.content_type = 'text/html; charset=gb2312'感觉到阅读代码的能力增强了,最近的问题都是通过阅读代码,修改代码,揍活代码,优雅改良,解决问题的...

2010-07-25 23:39:00 53

seo

关于百度收录gb2312页面http://www.baidu.com/s?wd=tag%3A%B0%D9%B6%C8&pn=10#!/usr/bin/env python#encoding=gb18030a="百度主题推广"import urllibprint urllib.quote(a)print "============"b="%B0%D9%B6%C8"print urllib.u...

2010-07-25 21:31:00 54

seo

关于百度收录gb2312页面http://www.baidu.com/s?wd=tag%3A%B0%D9%B6%C8&pn=10#!/usr/bin/env python#encoding=gb18030a="百度主题推广"import urllibprint urllib.quote(a)print "============"b="%B0%D9%B6%C8"print urllib.u...

2010-07-25 21:31:00 63

.egg文件安装

你下载的.egg包就可以运行./easy_install xxx.egg来安装了reference:http://bigtoy4boy.com/blog/tag/python/

2010-07-25 08:38:00 115

.egg文件安装

你下载的.egg包就可以运行./easy_install xxx.egg来安装了reference:http://bigtoy4boy.com/blog/tag/python/

2010-07-25 08:38:00 79

solrpy pagnator batch

i use solr1.4.1 version,and the return xml is changed,the original return xml is like this<response><br><lst name="responseHeader"><br><int name="status">0</in

2010-07-24 19:52:00 56

solrpy pagnator batch

i use solr1.4.1 version,and the return xml is changed,the original return xml is like this<response><br><lst name="responseHeader"><br><int name="status">0</in

2010-07-24 19:52:00 81

solrpy pagnator batch

i use solr1.4.1 version,and the return xml is changed,the original return xml is like this<response><lst name="responseHeader"><int name="status">0</int><int name="QT

2010-07-24 18:48:00 69

solrpy pagnator batch

i use solr1.4.1 version,and the return xml is changed,the original return xml is like this<response><lst name="responseHeader"><int name="status">0</int><int name="QT

2010-07-24 18:48:00 71

solr中使用IKAnalysizer的自定义词典的配置

参看:IKAnalyzer 中文分词器 V3.2 使用手册IK Analyzer 安装包包含:1. 《IKAnalyzer 中文分词器 V3.X 使用手册》 (即本文档)2. IKAnalyzer3.X.jar(主 jar 包)3. IKAnalyzer.cfg.xml(分词器扩展配置文件)4. ext_stopword.dic(扩展的 s...

2010-07-24 17:01:00 74

solr中使用IKAnalysizer的自定义词典的配置

参看:IKAnalyzer 中文分词器 V3.2 使用手册IK Analyzer 安装包包含:1. 《IKAnalyzer 中文分词器 V3.X 使用手册》 (即本文档)2. IKAnalyzer3.X.jar(主 jar 包)3. IKAnalyzer.cfg.xml(分词器扩展配置文件)4. ext_stopword.dic(扩展的 s...

2010-07-24 17:01:00 84

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除