摘要: maven安装下载后解压配置环境变量:MAVEN_HOME=/usr/local/apache-maven-3.3.3export MAVEN_HOMEexport PATH=${PATH}:${MAVEN_HOME}/bin命令:cleancompilepackageinstallmvn inst... 阅读全文
posted @ 2015-10-16 11:36 充实自己 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 一、单节点安装1、下载解压tar -zxvfzookeeper-3.4.6.tar.gz2、创建配置文件$ZOOKEEPER_HOME/conf/下创建zoo.cfg配置tickTime=2000dataDir=/usr/local/soft/job/zookeeper-3.4.6/datadata... 阅读全文
posted @ 2015-09-23 15:31 充实自己 阅读(348) 评论(0) 推荐(0) 编辑
摘要: host-only模式 1、主机设置网络共享 2、虚拟机网络设置 [root@localhost ~]# cd /etc/sysconfig/network-scripts/ [root@localhost network-scripts]# ls ifcfg-enp0s3 ifdown-ppp i 阅读全文
posted @ 2015-09-05 16:29 充实自己 阅读(234) 评论(0) 推荐(0) 编辑
摘要: [root@localhost trunk]# makegcc word2vec.c -o word2vec -lm -pthread -O3 -march=native -Wall -funroll-loops -Wno-unused-resultgcc word2phrase.c -o word... 阅读全文
posted @ 2015-08-28 12:58 充实自己 阅读(372) 评论(0) 推荐(0) 编辑
摘要: python 结巴分词算法:基于前缀词典实现高效的词图扫描,生成句子中汉字所有可能成词情况所构成的有向无环图 (DAG)采用了动态规划查找最大概率路径, 找出基于词频的最大切分组合对于未登录词,采用了基于汉字成词能力的 HMM 模型,使用了 Viterbi 算法 阅读全文
posted @ 2015-08-24 14:34 充实自己 阅读(261) 评论(0) 推荐(0) 编辑
摘要: #encoding=utf-8import jiebaseg_list = jieba.cut("明天不上班啊",cut_all=True)print ("Full Mode:", "/ ".join(seg_list))seg_list = jieba.cut("明天不上班啊",cut_all=F... 阅读全文
posted @ 2015-08-22 15:26 充实自己 阅读(872) 评论(0) 推荐(0) 编辑
摘要: #include #include #include "zmalloc.h"#include "testhelp.h"typedef char *sds;struct sdshdr { unsigned int len; unsigned int free; char buf[];... 阅读全文
posted @ 2015-05-23 15:19 充实自己 阅读(445) 评论(0) 推荐(0) 编辑
摘要: 指针测试代码:#include #include int main(int argc, char **argv) { char *a,*b,*c; a=argv[0]; b=&a[strlen(a)]; c=b+2; printf("***aaaaaa=%s***\n"... 阅读全文
posted @ 2015-05-22 18:55 充实自己 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include "zmalloc.h" 4 5 #define AL_START_HEAD 0 6 #define AL_START_TAIL 1 7 #define listLength(l) ((l)->len) 8 ... 阅读全文
posted @ 2015-05-21 10:31 充实自己 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 1、定义class类,最后需要分号。2、头文件引用避免重复,需要使用#ifndef #define #endif否则错误信息:error: conflicting declaration3、编译需要包含所有的cpp文件否则错误信息:undefined reference to4、map查找 MAP_... 阅读全文
posted @ 2015-05-08 18:54 充实自己 阅读(229) 评论(0) 推荐(0) 编辑