- 博客(5)
- 资源 (1)
- 收藏
- 关注
原创 推广Gentoo
Gentoo Linux官方网站:http://www.gentoo.orgGentoo 香港同步源:rsync://rsync.asia.gentoo.org/gentoo-portageGentoo 厦门大学软件下载源:http://mirrors.xmu.edu.cn/gentooLinuxsir Gentoo讨论区:http://www.linuxsir.org/bbs/forum59.html希望大家能从Gentoo Linux中体会到自由和选择带来的快乐,如果在使用Gentoo的过程中遇到了什么
2010-09-17 13:51:00 1874 3
原创 搜索引擎中的文档划分
对于大规模文档索引,因为无法存储在单机中,所以需要在分布式环境下进行一个划分,划分方法有两种term partition和doc partition。Doc partition已经被证明更适合在搜索引擎中使用(Google也使用这种划分),简言之Doc partition就是把大规模的文档集合分成很多小的文档集合,每台索引服务器仅仅索引一个小的文档集,当Query到来时,把query分发到各个索引服务器上,索引服务器在自己的索引文件上检索并返回结果,最终把这些结果整合返回给前台用户。上面的描述忽略了一个问题
2010-09-15 20:18:00 974
原创 Fuck the Editor of Eclipse
<br /> <br />今天用Eclpise编辑Java程序,其中有个步骤要用OutputStream往文件里写东西,其中包括'/0'字符,大概意思就像下面的代码片段:<br />public class Test { public static void main(String[] args) throws IOException { OutputStream out = new DataOutputStream( new FileOutputStream("data.txt"));
2010-09-13 20:32:00 934 1
原创 ibus输入法不跟随光标的解决办法
<br />vim /etc/gtk-2.0/gtk.immodules<br /> <br />修改ibus相关的为:<br /><br />"/usr/lib/gtk-2.0/2.10.0/immodules/im-ibus.so"<br />"ibus" "X Input Method" "gtk20" "/usr/share/locale" "en:zh"
2010-09-08 19:34:00 6097
原创 Openmp简单例子
<br />/* * Compile: * g++ a.cpp -fopenmp * * 速度明显提升一倍(双核) */#include <iostream>using namespace std;static long long num_rects = 1000000000;int main(int args, char** argv){ double mid, height, width, sum = 0.0; int i; d
2010-09-04 21:38:00 1486
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人