Mysql Too many connections? No problem!

摘要: 使用gdbgdb -p $(cat mysqlxxxx.pid) -ex "set max_connections=5000" -batch查看修改结果select @@global.max_connections; 阅读全文
posted @ 2014-11-04 18:43 学而知之者 阅读(152) 评论(0) 推荐(0) 编辑

nginx 正向代理http 和 https

摘要: 正向代理httpserver {listen 81; location / { resolver 8.8.8.8; proxy_pass http://$http_host$request_uri; }... 阅读全文
posted @ 2014-10-23 18:08 学而知之者 阅读(7223) 评论(1) 推荐(0) 编辑

下载 chrome 插件

摘要: http://chrome-extension-downloader.com/ 阅读全文
posted @ 2014-09-11 14:22 学而知之者 阅读(88) 评论(0) 推荐(0) 编辑

点赚app接口

摘要: Host:http://xxx.xxx.xxx:8000test case:https://www.getpostman.com/collections/dbb94a25d79e5c1edc031、检查系统更新:/check/updaterequest method post:{"user_id":... 阅读全文
posted @ 2014-09-04 10:44 学而知之者 阅读(501) 评论(0) 推荐(0) 编辑

pyCurl example

摘要: #!/usr/bin/pythonimport pycurl,StringIOdef crawl(name): crl = pycurl.Curl() crl.setopt(pycurl.VERBOSE,0) # No verbose info print crl.seto... 阅读全文
posted @ 2014-08-15 09:50 学而知之者 阅读(163) 评论(0) 推荐(0) 编辑

install scikit-learn

摘要: >>pip install scikit-learnError:sklearn/svm/libsvm.c:346:31: fatal error: numpy/arrayobject.h>>zypper in python-numpy-devel 阅读全文
posted @ 2014-08-15 09:38 学而知之者 阅读(257) 评论(0) 推荐(0) 编辑

xpath learn

摘要: Error:Invalid predicatereason:1、//node[@class= 'a']/text() --> //node/[@class= "a"]/text() must use "2、//node[@class= "a"/text() -->//node[@class= "... 阅读全文
posted @ 2014-08-15 08:58 学而知之者 阅读(117) 评论(0) 推荐(0) 编辑

solr中文分词

摘要: IK是solr常用的中文分词,其配置比较难搞,试了好多次才搞定:将jar放入tomcat下WEB-INF/libconfig.xml,ext.dic,stopword.dic放入WEB-INF/classes下另外,solr4+需要使用IK_2012_ff,不要使用IK_2012_u6IK实际的效果... 阅读全文
posted @ 2014-07-15 08:47 学而知之者 阅读(451) 评论(0) 推荐(0) 编辑

solr suggestion case insensitive

摘要: solrconfig.xml 配置 default FuzzyLookupFactory DocumentDictionaryFactory cat price text_spell ... 阅读全文
posted @ 2014-05-31 21:26 学而知之者 阅读(895) 评论(0) 推荐(0) 编辑

solr DIH 数据配置文件的理解

摘要: Thequerygives the data needed to populate fields of the Solr document in full-importThedeltaImportQuerygives the data needed to populate fields when r... 阅读全文
posted @ 2014-05-22 21:49 学而知之者 阅读(210) 评论(0) 推荐(0) 编辑