摘要:http://parkmy.javaeye.com/blog/423440然后上网一查,虽然没有查出上述规则到底是什么地方出问题了,但是查出了一个解决办法,经过一试,果然可以匹配包括换行符在内的任意字符,以下为正确的正则表达式匹配规则: ([\s\S]*) 同时,也可以用 “([\d\D]*)”、“([\w\W]*)” 来表示。
阅读全文
浙江省高等学校教师教育理论培训微信搜索“毛凌志岗前心得”小程序 |
|
07 2010 档案
摘要:http://parkmy.javaeye.com/blog/423440然后上网一查,虽然没有查出上述规则到底是什么地方出问题了,但是查出了一个解决办法,经过一试,果然可以匹配包括换行符在内的任意字符,以下为正确的正则表达式匹配规则: ([\s\S]*) 同时,也可以用 “([\d\D]*)”、“([\w\W]*)” 来表示。
阅读全文
摘要:http://www.whatsmyip.org/http_compression/http://www.gidnetwork.com/tools/gzip-test.php
阅读全文
摘要: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
阅读全文
摘要: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...
阅读全文
摘要:file(path.basename(url), 'wb').write(httpc.get(url))
http://ulaluma.com/pyx/archives/2008/12/lxml_eventlet_m.html
阅读全文
摘要:http://oddments.org/?p=494
阅读全文
摘要:sudo apt-get install meld
阅读全文
摘要:默认是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/httplib.py...
阅读全文
摘要:这个python的一个难题,大部分开源的python包或是其它的程序,目前和未来都会采用utf8,因此建议你用utf8,但是我们又用到gb2312,因为我们要做面向百度友好的站,因此我们只要保证,程序的输入和输出是gb2312内部还是utf8这样会比较简单,之前使用gb2312做默认文件编码,但是各个输入输出及库之间调用就搞混了,这个问题搞了两三天了,
阅读全文
摘要:$sudo apt-get install libpcre3 && \$sudo apt-get install zlib1g && \$sudo apt-get install libpcre3-dev && \$sudo apt-get install zlib1g-dev && \$sudo apt-get install li...
阅读全文
摘要:netstat -tlnp|grep 80
http://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.html
kill -9 $(netstat -tlnp|grep 80|awk '{print...
阅读全文
摘要:in template first line type code as follows:%# -*- coding: gb2312 -*-in controller writeresponse.content_type = 'text/html; charset=gb2312'感觉到阅读代码的能力增强了,最近的问题都是通过阅读代码,修改代码,揍活代码,优雅改良,解决问题的reference:htt...
阅读全文
摘要:in template first line type code as follows:%# -*- coding: gb2312 -*-in controller writeresponse.content_type = 'text/html; charset=gb2312'感觉到阅读代码的能力增强了,最近的问题都是通过阅读代码,修改代码,揍活代码,优雅改良,解决问题的reference:htt...
阅读全文
摘要:in template first line type code as follows:%# -*- coding: gb2312 -*-in controller writeresponse.content_type = 'text/html; charset=gb2312'感觉到阅读代码的能力增强了,最近的问题都是通过阅读代码,修改代码,揍活代码,优雅改良,解决问题的
阅读全文
摘要:关于百度收录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...
阅读全文
摘要:你下载的.egg包就可以运行./easy_install xxx.egg来安装了reference:http://bigtoy4boy.com/blog/tag/python/
阅读全文
摘要:i use solr1.4.1 version,and the return xml is changed,the original return xml is like this 0 12 test ... ... document_id some test text ... 2 ... some test text ... ... in responseHeader node has para...
阅读全文
摘要:i use solr1.4.1 version,and the return xml is changed,
the original return xml is like this
0
12
test
...
...
document_id
some test text
...
2
...
some te...
阅读全文
摘要:参看:IKAnalyzer 中文分词器 V3.2 使用手册
IK Analyzer 安装包包含:
1. 《IKAnalyzer 中文分词器 V3.X 使用手册》
(即本文档)
2. IKAnalyzer3.X.jar(主 jar 包)
3. IKAnalyzer.cfg.xml(分词器扩展配置文件)
4. ext_stopword.dic(扩展的 stopword 词典,3.2 以上版本提供)
...
阅读全文
摘要:How to set up Solr on Ubuntu 10.04 (or whatever)
0 Comments | Tags: solr search
Apache Solr is a fast, open-source search solution. People are doing some very cool things with Solr. I personally hav...
阅读全文
摘要:How to set up Solr on Ubuntu 10.04 (or whatever)
| Tags: solr search
Apache Solr is a fast, open-source search solution. People are doing some very cool things with Solr. I personally have only begu...
阅读全文
摘要:根据/etc/tomcat6/Catalina/localhost/solr.xml中部署的solr.home的位置上创建mkdir solrmsudo chgrp mlzboy solrmsudo chmod 777 solrmchange tomcat port:Tomcat runs on the port defined $CATALINA_HOME/conf/server.xml, co...
阅读全文
摘要:i cost one day and half to accomplish it.i read all relevent articles in internets.finally get success.there are two great articles ,thanks a lot.1)http://charlesleifer.com/blog/how-to-set-up-solr-on-...
阅读全文
摘要:无 法获得锁 /var/lib/dpkg/lock - open (11: 资源临时不可用) 问题: 运行程序更新时出现报错: 无法获得锁 /var/lib/dpkg/lock - open (11: 资源临时不可用) 解决:其实这是 因为有另外一个程序在运行,导致锁不可用。原因可能是上次运行更新或安装没有正常完成。解决办法是杀死此进程sudo rm /var/cache/apt/a...
阅读全文
摘要:gvim file:set fileencodinghttp://wrsuifeng.javaeye.com/blog/560632
阅读全文
摘要:http://www.derivante.com/2009/05/05/solr-performance-benchmarks-single-vs-multi-core-index-shards/
阅读全文
摘要:eZ Publish — Enterprise Open Source Web Content Management http://ez.no/ezpublish/use_ez_publish
阅读全文
摘要:http://www.derivante.com/2009/05/05/solr-performance-benchmarks-single-vs-multi-core-index-shards/
阅读全文
摘要:Securing Solr administrative consolehttp://drupal.org/node/658466sudo apt-get install gufw
阅读全文
摘要:也是一个内存型数据库,支持sql,bdb是商业的,另外新版的sql支持,还没有python的wrap,加上我的c/c++功力一点也没有,也没法写wrap,所以这个或许可以做为一个代替,万不利己可以用用.
阅读全文
摘要:i found two python wrap of solr,http://github.com/toastdriven/pysolrhttp://code.google.com/p/solrpy/currently i use bottom one,it's more offical,but not support any more,if found some issue,i can chan...
阅读全文
摘要:整个一个爱情剧了,里边的黛西来处hk,hk真是出风尘的地方,导演选人太强了,整个作品一般,但是导演能够借<杜拉拉>的名声来上位,也是不错的选择,就像张纪中,虽然感觉拍的很烂,像天龙八部,还有倚天什么的,但是反正名声也赚了,呵呵发现义乌和杭州的电视节目不好看,没北京的好,另外还是数字电视交的钱多,还慢,bs淘宝和华数
阅读全文
摘要:first download stable version uwsgi from http://projects.unbit.it/uwsgi/then follow the article http://projects.unbit.it/uwsgi/wiki/RunOnNginxCAUTION:the offical site support nginx 0.7x ,not the newes...
阅读全文
摘要:sudo apt-get install git-core
阅读全文
摘要:first download stable version uwsgi from http://projects.unbit.it/uwsgi/then follow the article http://projects.unbit.it/uwsgi/wiki/RunOnNginxCAUTION:the offical site support nginx 0.7x ,not the newes...
阅读全文
摘要:solr 周边的一些开发与扩展http://code.google.com/p/solr-side/http://code.google.com/p/solrmarc/solr python clienthttp://code.google.com/p/solrpy/gui查看工具,类似memcached的查看请求次数的图形化工具http://code.google.com/p/solrmeter...
阅读全文
摘要:solr 周边的一些开发与扩展http://code.google.com/p/solr-side/http://code.google.com/p/solrmarc/solr python clienthttp://code.google.com/p/solrpy/gui查看工具,类似memcached的查看请求次数的图形化工具http://code.google.com/p/solrmeter...
阅读全文
摘要:IKAnalyzerlinliangyi2007.javaeye.comhttp://code.google.com/p/ik-analyzerreference:http://www.unixmen.com/linux-tutorials/985-how-to-install-java-run-time-environment-in-ubuntu-1004-lucid-lynxhttp://ww...
阅读全文
摘要:IKAnalyzerlinliangyi2007.javaeye.comhttp://code.google.com/p/ik-analyzerreference:http://www.unixmen.com/linux-tutorials/985-how-to-install-java-run-time-environment-in-ubuntu-1004-lucid-lynxhttp://ww...
阅读全文
摘要:IKAnalyzerlinliangyi2007.javaeye.comhttp://code.google.com/p/ik-analyzerreference:http://www.unixmen.com/linux-tutorials/985-how-to-install-java-run-time-environment-in-ubuntu-1004-lucid-lynxhttp://ww...
阅读全文
摘要:IKAnalyzerlinliangyi2007.javaeye.comhttp://code.google.com/p/ik-analyzerreference:http://www.unixmen.com/linux-tutorials/985-how-to-install-java-run-time-environment-in-ubuntu-1004-lucid-lynxhttp://ww...
阅读全文
摘要:IKAnalyzerlinliangyi2007.javaeye.comhttp://code.google.com/p/ik-analyzerreference:http://www.unixmen.com/linux-tutorials/985-how-to-install-java-run-time-environment-in-ubuntu-1004-lucid-lynxhttp://ww...
阅读全文
摘要:IKAnalyzerlinliangyi2007.javaeye.comhttp://code.google.com/p/ik-analyzerreference:http://www.unixmen.com/linux-tutorials/985-how-to-install-java-run-time-environment-in-ubuntu-1004-lucid-lynxhttp://ww...
阅读全文
摘要:从发贴量上可以看出345三个月的量大,是我使用ubuntu学习的见证,基本上都是和使用ubuntu相关的奇技淫巧2010年7月 (14) 2010年6月 (40) 2010年5月 (121) 2010年4月 (102) ...
阅读全文
摘要:http://forum.ubuntu.org.cn/viewtopic.php?f=126&t=221850sudo apt-get install nvclocknvclock -S +10nvclock -S -10
阅读全文
摘要:义乌中心医院也有网上挂号了http://yw.51yibao.com/home.htm
阅读全文
摘要:在义乌看了一些比较成功的企业,还是有很多的感触在杭州参观了赛伯乐创业工厂滨江大学生创业园东方电子商务还是长了很多的见识和爸爸的一些学生一块聚餐,发现30来岁的人的阅历确实和我这个年龄段是不一样的,对一些事情的理解,都更加的清晰,已经能把事情看透了.冯仑讲多和成功的人一起交流你就慢慢的从0变成1了
阅读全文
摘要:http://www.evilchuck.com/2008/02/tell-python-to-shove-it.html
阅读全文
摘要:之前没有看过,这两天看了一些发现,现实中长得一般得,经过造型师处理上台好,能变成很好看,很有味道,反思化过妆的女主持,不怎么样的,那么实际当中就更可见一般了.电视有放大优点和漂亮的作用,因为妆化得太多了,看不到本质了
阅读全文
摘要:最近老打广告,估计是要大手笔接项目了
阅读全文
摘要:以前一直挺好的,我都不太相信后来一搜索 http://tieba.baidu.com/f?kz=812952613原来我并不是第一个这个感受现在土豆,酷6都还行的,
阅读全文
摘要:sudo apt-get install ubuntu-tweak sudo apt-get install vim vim-gnomesudo apt-get install unrar p7zip-fullreference:http://forum.ubuntu.org.cn/viewtopic.php?f=48&t=268688&start=0
阅读全文
摘要:sudo apt-get install python-setuptools
阅读全文
摘要:twisted(in order to fix bug for twisted install pywin32)easy_install Zope.Interfaceeasy_install pyopenssllibxml2 binding for windowsinstall scrapy
阅读全文
|