对nutch添加中文网站抓取功能。1、中文网页抓取
A、调整mysql配置,避免存入mysql的中文出现乱码。修改 ${APACHE_NUTCH_HOME}
/runtime/local/conf/gora.properties ################################ .....
分类:
Web程序 时间:
2014-05-19 17:44:52
阅读次数:
326
Unix(包含Linux)的初学者,常常会很困惑,不明白目录结构的含义何在。举例来说,根目录下面有一个子目录/bin,用于存放二进制程序。但是,/usr子目录下面还有/usr/bin,以及/usr/local/bin,也用于存放二进制程序;某些系统甚至还有/opt/bin。它们有何区别?长久以来,我...
分类:
其他好文 时间:
2014-05-19 17:29:19
阅读次数:
242
//#define LOCAL#include#includeusing namespace
std;int const MAX_N=100001;int const INF=10000000;int N,M,x[MAX_N];void init(){
for(int i=0;i1) {...
分类:
其他好文 时间:
2014-05-19 17:20:45
阅读次数:
204
//#define LOCAL#include#include#include#includeint
const MAX_N=101;typedef struct Point{ int x,y; bool operatorVec[i].y) { ...
分类:
其他好文 时间:
2014-05-19 17:08:45
阅读次数:
253
FreeBSD下使用ezjail管理jails虚拟机很方便,公司有多台ezjails服务器,运行n多jails虚拟机,一次硬盘故障,做了一次整机恢复,将方法归纳如下:
备份准备:
建议ezjails服务器安装2块同样大小的硬盘,一块作为备份。我是通过cron每日rsync备份需要的文件
需要备份的文件:
/etc/rc.conf
/etc/rc.local
/etc/fstab.*...
分类:
其他好文 时间:
2014-05-18 18:27:21
阅读次数:
263
Notification的用法 --- 状态栏通知
发送一个状态栏通知必须的两个类:
1. NotificationManager --- 状态栏通知的管理类,负责发通知,清除通知等
NotificationManager : 是一个系统Service,必须通过 context.getSystemService(NOTIFICATION_SERVICE...
分类:
移动开发 时间:
2014-05-18 09:13:46
阅读次数:
471
安装STS报错
1、具体报错如下
Failure to transfer org.codehaus.plexus:plexus-archiver:jar:1.2 from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted...
分类:
其他好文 时间:
2014-05-18 07:41:32
阅读次数:
230
本文参考《Android系统源代码情景分析》,作者罗升阳
一、测试代码:
~/Android/external/binder/server
----FregServer.cpp
~/Android/external/binder/common
----IFregService.cpp...
分类:
移动开发 时间:
2014-05-18 06:08:05
阅读次数:
494
mysqldumpslow报错:Died at /usr/local/mysql/bin/mysqldumpslow line 161, 总结:是因为top数目太多了,mysqldumpslow遍历不过来的缘故。/usr/local/mysql/bin/mysqldumpslow -s -t 15 /root/db01-102-slow.log 1,把r去掉试试,还是报错,参数不识别。[root@...
分类:
数据库 时间:
2014-05-18 04:40:51
阅读次数:
456
本文参考《Android系统源代码情景分析》,作者罗升阳
一、测试代码:
~/Android/external/binder/server
----FregServer.cpp
~/Android/external/binder/common
----IFregService.cpp
...
分类:
移动开发 时间:
2014-05-18 02:54:20
阅读次数:
552