04 2016 档案

摘要:1.换行符 2.生成带换行的字符串 3.按行读取字符串 阅读全文
posted @ 2016-04-29 14:40 無限大 阅读(144) 评论(0) 推荐(0)
摘要:需求: 天走势图,周走势图,月走势图 天走势图需要每十分钟(或者其他时间间隔)。周走势图和月走势图为一天。时间和数据对应,并且需要排序。 需要数据: 天走势图的原始数据每五分钟存在一次数据。(或者其他时间间隔) 周以上的走势图按照每天聚合一次数据。 使用数据库: mongodb 做法: 先生成排好序 阅读全文
posted @ 2016-04-29 10:53 無限大 阅读(525) 评论(0) 推荐(0)
摘要:1.**和* conf/** conf/* 的区别 如果有 conf/admin/a.xml conf/a.xml **写法可以包含上面两个,而*写法只能选中conf/a.xml这个 阅读全文
posted @ 2016-04-25 10:24 無限大 阅读(503) 评论(0) 推荐(1)
摘要:jps jps -mvl --查看java的ps进程。 jstack 打印一个线程堆栈信息 top -H -p pid1 -> 得到占用资源大的pid2 jstack pid1 | grep "nid=0x printf "%x\n" pid2" -A 100打印后面100行(-C 打印前后100行 阅读全文
posted @ 2016-04-18 16:58 無限大 阅读(292) 评论(0) 推荐(0)
摘要:安装工具 debian =》 apt-get (In Debian like OS) red hat=》 yum -y (In Red Hat like OS) mac =》 brew sl 火车命令 toilet 好玩的文字命令 cowsay 牛说 cmatrix 自动掉文字 阅读全文
posted @ 2016-04-16 23:23 無限大 阅读(194) 评论(0) 推荐(0)
摘要:1.centos 版本 下载最新稳定版 https://www.nginx.com/resources/wiki/start/topics/tutorials/install/# 2.执行语句: 如碰到./configure: error: the HTTP rewrite module requi 阅读全文
posted @ 2016-04-16 22:45 無限大 阅读(235) 评论(0) 推荐(0)
摘要:1.mvnrepository上搜索 guava。并引用其jar包 类似compile "com.google.guava:guava:18.0" 测试代码 阅读全文
posted @ 2016-04-15 13:23 無限大 阅读(1320) 评论(0) 推荐(0)
摘要:public static Integer getInfo(String name) { HttpResponse httpResponse = null; try { httpResponse = Unirest.get(url) //url网址 .queryStri... 阅读全文
posted @ 2016-04-14 11:13 無限大 阅读(1289) 评论(0) 推荐(0)
摘要:第一步:在Mac上安装Remote Desktop Connection 进入Microsoft Remote Desktop Connection下载安装包。 下载完成之后,双击安装包进行安装。 第二步:在Windows电脑上设置“远程设置” 右键“我的电脑”,单击“属性”,单击“远程设置” 勾选 阅读全文
posted @ 2016-04-09 18:45 無限大 阅读(4632) 评论(0) 推荐(0)