- 博客(10)
- 收藏
- 关注
原创 Jena + spring boot + tomcat: Class path contains multiple SLF4J bindings错误及解决
调用Jena库函数的war包部署到tomcat,tomcat重启后logs/catalina.out中提示, SLF4J: Class path contains multiple SLF4J bindings. Detected both log4j-over-slf4j.jar AND slf4j-log4j12.jar on the class path.
2016-02-02 11:31:50
7687
原创 docker run 一次执行多条命令的方法
有时在启动docker container时需要同时运行不止一条命令,这时在command处使用:sh -c ' cmd1 && cmd2 '即可。如,docker run -it myimage sh -c 'service mysql start && python test.py'
2015-06-18 14:29:25
27182
原创 wget/curl命令行设置代理的方法
一、使用代理的方法: 1)wget wget -Y on -e "https_proxy=192.168.1.1:9527" https://bootstrap.pypa.io/get-pip.py 2)curl curl -x 192.168.1.1:9527 www.baidu.com 二、不使用代理的方法:
2015-06-18 14:13:31
1703
原创 docker “FATA[0162] ... connection timed out" 错误改正方法
在ubuntu14.04下面安装docker后,运行sudo docker run hello-world,提示下面的错误,Unable to find image 'hello-world:latest' locallyPulling repository hello-worldFATA[0162] Get https://index.docker.io/v1/repositorie
2015-06-12 09:31:47
4493
原创 git远程共享库push代码出错
今天在服务器端搭建完git远程共享库,在本地clone后,按照常规套路执行git add, git commit都没有问题,但执行git push origin master命令后,文件死活push不上去,出现了一大堆错误。remote: error: refusing to update checked out branch: refs/heads/masterremote: error
2015-06-02 13:22:27
782
原创 简单理解混淆矩阵
混淆矩阵(confusion matrix)刻画一个分类器的分类准确程度。“混淆”一词也形象地表达了分类器面对多个分类时可能造成的混淆。 实际值 样本总数 NPositiveNegative预测值Positive实际是Posit
2015-02-15 13:57:32
16657
1
原创 JSP页面UTF-8格式中文字符串乱码问题解决方法
JSP页面使用utf8格式保存中文字符串到文件或进行socket传送接收数据时,常常会出现乱码。这里给出了一个解决方法,实践检验行之有效。0) 页面属性设置 ......1)保存至文件指定UTF-8编码格式。String str = "中文字符串";FileOutputStream fileout = new FileOu
2015-02-02 14:06:42
11154
原创 Hadoop+Mahout安装手记
最近一直捣鼓Mahout,终于在Hadoop下成功跑起来了。由于涉及的点比较多,这里先记录整理一下,做参考备忘使用。一、操作系统Ubuntu Desktop 13.04 (RaringRingtail)官网地址:http://releases.ubuntu.com/13.04/国内镜像地址:中科大 http://ubuntu1304.cdn.mirrors.ustc.
2013-05-07 08:13:02
2019
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人