- 博客(13)
- 资源 (7)
- 收藏
- 关注
原创 springmvc配置不拦截静态资源
mvc:resources mapping="/js/**" location="/js/"/>mvc:resources mapping="/styles/**" location="/styles/"/>mvc:default-servlet-handler />
2015-12-30 20:04:51 3501 1
原创 linux查看连接数
要查看某个服务的连接数,可以查看该服务的端口的tcp连接数,比如查看redis服务的连接数,redis开在6379端口上:netstat -n| grep 6379 | grep ^tcp|awk '{print $NF}'|sort -nr|uniq -c
2015-12-30 18:16:37 2145
原创 mahout math中相关matrix和vector的用法DEMO
创建一个2x3稀疏矩阵: Matrix x = new SparseRowMatrix(2, 3, false); x.set("newsId1","c0", 0,0, 1.0); x.set("newsId2","c1", 1,1, 1.0); System.out.println(x); System.out
2015-12-29 18:54:57 896
原创 配置使用连接池的httpClient
httpclient版本: org.apache.httpcomponents httpclient 4.5.1spring配置如下:bean id="pollingConnectionManager" class="org.apache.http.impl.conn.PoolingHttpClientConnectionManag
2015-12-29 14:38:24 8019
转载 Mybatis Generator最完整配置详解
转自:http://www.jianshu.com/p/e09d2370b796<!DOCTYPE generatorConfiguration PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN""http://mybatis.org/dtd/mybatis-generator-config_1_0.
2015-12-25 11:52:55 4232
转载 搜狗词库解码
转https://github.com/JaHIY/sougou-cell-dict-decodersougou-cell-dict-decoder$ main.sh -l 化学化工词汇大全【官方推荐】.scel词库名:化学化工词汇大全【官方推荐】 词库类型:化学描述信息:官方推荐,词库来源于网友上传!词库示例:奥济
2015-12-23 17:20:54 4904
转载 使用IntelliJ IDEA分享、获取Github项目
使用IntelliJ IDEA分享、获取Github项目:· 1.在IDEA中配置Git:·选择菜单”File — Settings”,找到”Version Control — Git”:到Git的安装目录下的Git.exe执行文件所在地· 其次,配置你在Github上注册的账户:填入你的Github账户信息,点击”Test”按钮测试连接,若链接成功
2015-12-23 16:07:29 23458 1
转载 43种语言的停用词库都在此了~
https://github.com/6/stopwordsstopwordsStopwords for various languages in JSON format. Per Wikipedia:Stop words are words which are filtered out prior to, or after, processing of n
2015-12-22 17:13:29 4779
转载 Spark + ansj 对大数据量中文进行分词
目前的分词器大部分都是单机服务器进行分词,或者使用hadoop mapreduce对存储在hdfs中大量的数据文本进行分词。由于mapreduce的速度较慢,相对spark来说代码书写较繁琐。本文使用 spark + ansj对存储在hdfs中的中文文本数据进行分词。 首先下载ansj源码文件,下载地址为https://github.com/NLPchina/ansj_seg,同时需要下载
2015-12-21 10:10:16 6146
原创 中国自然语言处理开源组织https://github.com/NLPchina
中国自然语言处理开源组织:https://github.com/NLPchinamark一个,最近在用word2vec
2015-12-18 12:02:50 5516 2
原创 各种获取Resource资源的方法
import java.io.File;import java.io.IOException;import java.io.InputStream;import java.io.InputStreamReader;import java.io.Reader;import java.net.URL;import java.net.URLConnection;import java.ni
2015-12-17 13:35:38 7424
原创 解决gson将Integer默认转换成Double的问题
首先javascript只有这些个类型:1、Number 在JavaScript中的双精度浮点格式 2、String 双引号的反斜杠转义的Unicode 3、Boolean true 或 false 4、Array 值的有序序列 5、Value 它可以是一个字符串,一个数字,真的还是假(true/false),空(null )等 6、Object 无序集合键值对 7、W
2015-12-09 09:36:47 29088 3
转载 Spark读取配置
转自:https://github.com/keepsimplefocus/spark-sourcecodes-analysis/blob/master/markdowns/Spark%E8%AF%BB%E5%8F%96%E9%85%8D%E7%BD%AE.mdSpark读取配置我们知道,有一些配置可以在多个地方配置。以配置executor的memory为例,有以下三种方式: 1. s
2015-12-02 10:00:33 5460
delphi写的DLL子窗体生成为主程序的TabSheet
2008-09-26
Dephi写的用IdUDP实现的P2P聊天软件
2008-09-26
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人