上一页 1 2 3 4 5 6 7 8 9 ··· 21 下一页
摘要: 遇到java里的URLEncoder.encode方法编码后与javascript的encodeURIComponent方法的结果有点不一样,找了一下资料,原来URLEncoder实现的是HTML形式的规范,jdk文档里这么说: Utility class for HTML form encodin 阅读全文
posted @ 2017-12-07 10:18 liqipeng 阅读(1683) 评论(0) 推荐(0) 编辑
摘要: 初衷是用正则来写一个Unicode字符串转码的方法,一开始是打算结合StringBuilder写的,但是看到 "jdk7的Matcher.appendReplacement文档" )中一段示例代码用了Matcher.appendReplacement,原来已经有专门做替换用的方法了。 但是印象中St 阅读全文
posted @ 2017-11-21 21:18 liqipeng 阅读(1219) 评论(0) 推荐(0) 编辑
摘要: 并发场景下使用HashMap的问题分析: "疫苗:Java HashMap的死循环" "http://bugs.java.com/bugdatabase/view_bug.do?bug_id=6423457" 源码来自: "HashMap.java" / Copyright (c) 1997, 20 阅读全文
posted @ 2017-11-04 11:36 liqipeng 阅读(353) 评论(0) 推荐(0) 编辑
摘要: 想到了解一下GUI主要是想用来做点小工具,记录一些笔记。 文本框自动换行和滚动条 private static JTextArea addJTextArea(JPanel panel, int x, int y, int width, int height, String text) { JText 阅读全文
posted @ 2017-10-26 23:40 liqipeng 阅读(289) 评论(0) 推荐(0) 编辑
摘要: 官方文档 "http://www.daterangepicker.com/ examples" 与angular结合 html js 阅读全文
posted @ 2017-10-19 19:37 liqipeng 阅读(900) 评论(0) 推荐(0) 编辑
摘要: 使用spring data遇到了一些问题,记录一下。 spring data elasticsearch版本选择 这里有一份官方github上的spring data elasticsearch与elasticsearch的对应关系表,但是不太完整,但是还是比较有参考价值的 | spring dat 阅读全文
posted @ 2017-10-12 20:11 liqipeng 阅读(19206) 评论(1) 推荐(4) 编辑
摘要: 参考: "zookeeper在windows下的伪集群模式" 踩到的坑: 1. 注意windows下路径需要使用\\ dataDir=D:\\Program Files\\Java\\zookeeper 3.4.10 cluster\\data\\1 阅读全文
posted @ 2017-09-29 16:03 liqipeng 阅读(290) 评论(0) 推荐(0) 编辑
摘要: "junit4 Assertions" 命令行中运行测试 多参数测试 "Parameterized tests" 测试多线程问题 https://github.com/junit team/junit4/wiki/Multithreaded code and concurrency http://w 阅读全文
posted @ 2017-09-28 20:26 liqipeng 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 1. "How to add more to Git Bash on Windows" Download the lastest wget binary for windows from https://eternallybored.org/misc/wget/ (they are availabl 阅读全文
posted @ 2017-09-27 19:34 liqipeng 阅读(346) 评论(0) 推荐(0) 编辑
摘要: 实验基于Ubuntu 16.04下的docker 1. 安装docker:apt get install docker,启动docker服务:sudo service docker start 2. 如果启动了docker,但是执行其他命令时遇到“Cannot connect to the Dock 阅读全文
posted @ 2017-09-22 02:41 liqipeng 阅读(367) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 21 下一页