`
brxonline
  • 浏览: 61680 次
  • 性别: Icon_minigender_1
  • 来自: 苏州
社区版块
存档分类
最新评论
文章列表
1.ISO c 2.IEEE POSIX 3.Single UNIX Specification (XSI) 4.查看系统限制的函数 #include <unistd.h> long sysconf(int name); long pathconf(const char *pathname, int name); long fpathconf(int filedes, int name); 例:打印所有可能的sysconf和pathconf的值 #include "apue.h" #include <errno.h> #includ ...
1.登陆名 登陆名放在/etc/passwd口令文件中,口令文件中的登陆项由7个以冒号分隔的字段组成,他们是:登陆名,加密口令,用户ID,用户组ID,注释字段,起始目录,shell程序 daemon:x:2:2:daemon:/sbin:/sbin/nologin 2.文件和目录 例:列出 ...
mysql忘记root密码处理重置 如果 MySQL 正在运行,首先结束mysql进程: killall mysqld 启动 MySQL (非正常方式起动):/usr/local/mysql/bin/mysqld_safe –skip-grant-tables & 这样就可以不需要密码进入 MySQL :/usr/local/mysql/bin/mysql -u root -p (要求输入密码时直接回车即可) mysql> update user mysql.set password=password(”新密码”) where user=”root”; mysql&g ...
javac -classpath hadoop-*-core.jar -d playground/classes ➥ playground/src/WordCount.java jar -cvf playground/wordcount.jar -C playground/classes/
1. 安装JDK1.6+ 2. 安装eclipse3.5+ 3. 下载sdk http://developer.android.com.nyud.net/sdk/index.html 我下载的是android-sdk_r11-windows.zip 地址:http://dl.google.com/android/android-sdk_r11-windows.zip 下载完后解压到D:\android目录下 4.安装android的eclipse开发插件ADT. 在eclipse的Help->Install new Software…打开的对话框里点击右上角的add按钮,添加ADT的下载地 ...
1. 准备机器: 总共三台机器 192.168.200.102  xen(namenode,jobtracker) 192.168.200.88   vps79(datenode,tasktracker) 192.168.200.88 vps78(datenode,tasktracker) 2. 修改hosts 文件 三台机器的hosts(/etc/hosts)添加如下内容 192.168.200.78  vps78 192.168.200.88  vps79 192.168.200.102 xen 3. 配置ssh   在三台机器上分别创建用户:useradd hadoop 在xen ...
1.导出 select * from test  outfile '/tmp/reg.xls' 将导出数据放在/tmp目录下 2.编码转换 因为excel默认编码是GB3212,数据中有中文是需进行转换,转换命令 iconv -futf8 -tgb2312 -oreg2.xls reg.xls 转换如果失败: iconv: illegal input sequence at position 1841 类似于这样的错误,先把reg.xls下载下来,这个时候文件是utf-8编码的,用excel打开,乱码。把reg.xls以文本方式打开,然后另存为,在编码选择ANSI编码,保存。乱码问题就解决了. ...
dismax 的几个配置的说明 1.tie,增加得分的,一般值为0.1 2.<str name="qf"></str> 3.pf 4.bf 5.qs 6.ps
函数查询就是导入一个计算得分的组件。他不是用来代替lucene的得分算法,而是增加到现存的得分。 函数查询的两种方式: 1.用standard request handler和_val_ 假字段 可以使用函数查询的字段的注意事项 1)字段必须indexed 2)字段不能是multi-valued 3)在文本分析中不超过一个词被索引 4)仅数字字段的值可以直接被函数引用 5)如果被索引的字段无值,则在函数查询用会用0代替 2.用dismax request handler 和bf 参数
solr查询请求参数: 1.q:查询字符串 2.q.op: and 或者or,说明是所有的词都必须匹配还是只要其中一个词匹配。如无说明,则缺省在schema.xml中设置。 3.df:缺省的搜索field,如无说明,则在schema.xml中设置 4.deftType:查询解析器,缺省lucene 5.fq:查询过滤 6.qt:查询类型,指定查询hanlder 7.start:从搜索结果开始文档跳过的数量,即开始索引 8.rows:结果集中返回文档的数量 9.fl:返回的文档中包含的字段 10.sort:排序 11.wt:返回查询结果的格式。有xml,javabin,json,phthon,ph ...
一.solr 创建索引所需文件的格式: 1.xml格式 test.xml <add allowDups="false"> <doc boost="2.0"> <field name="id">5432a</field> <field name="type" ...</field> <field name="a_name" boost="0.5"></field> <!-- the d ...
<?xml version="1.0" encoding="UTF-8" ?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licen ...
1.安装JDK1.5+ 2.下载solr solr下载地址:http://www.apache.org/dyn/closer.cgi/lucene/solr/,目前最新版本1.4.1 3.解压apache-solr-1.4.1至/usr/local下。 4.启动 首先切换目录到example目录下,命令:cd /usr/local/apache-solr-1.4.1/example 然后启动,命令:java -jar start.jar 5. 确认启动成功 访问下面三个链接无报错,则启动成功: http://localhost:8983 http://localhost:8983/solr ...

状态模式

Allow an object to alter its behavior when its internal state changes. The object will appear to change its class

观察者模式

Define a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically.
Global site tag (gtag.js) - Google Analytics