摘要: redis如何查看所有的key:keys * 阅读全文
posted @ 2017-05-08 17:02 任国强 阅读(3016) 评论(0) 推荐(0) 编辑
摘要: 昨天抽时间阅读Spring源码,先从spring 4.x的core包开始吧,除了core和util里,首当其冲的就是asm和cglib。 要实现两个类实例之间的字段的复制功能: 多年之前用C#,因为阅读源码少,项目也比较小,自己使用反射机制就封装一个类似的方法来完成了(反正微软有钱有时间)。 前一段 阅读全文
posted @ 2017-05-08 17:02 任国强 阅读(252) 评论(0) 推荐(0) 编辑
摘要: http://stackoverflow.com/questions/11001252/running-out-of-heap-space issue: I am having a heap space problem. My program is simple. There are two act 阅读全文
posted @ 2017-05-04 15:40 任国强 阅读(3372) 评论(0) 推荐(0) 编辑
摘要: 如何查看所有的key:keys * 如何查询某个key的value:get keyname 阅读全文
posted @ 2017-05-04 12:11 任国强 阅读(138) 评论(0) 推荐(0) 编辑
摘要: d3js : http://animateddata.co.uk/lab/d3-tree/# javaFx2 : https://docs.oracle.com/javafx/2/animations/img/tree-only.jpg https://docs.oracle.com/javafx/ 阅读全文
posted @ 2017-05-03 09:46 任国强 阅读(374) 评论(0) 推荐(0) 编辑
摘要: 参考这篇文章:https://lzw.me/a/mysql-charset.html 还有一篇官方文档:https://dev.mysql.com/doc/refman/5.7/en/charset.html 阅读全文
posted @ 2017-04-28 16:50 任国强 阅读(431) 评论(0) 推荐(0) 编辑
摘要: 1.Google Doc,Office Online虽好,但是小企业如果涉及一些客户的敏感时效性数据,还是没法放心地直接基于这些公有云模式开发系统的。 Office Online 不再基于讨厌的ActiveX技术 Microsoft Office Web Apps的百度百科有这么一句: 对于想在想要 阅读全文
posted @ 2017-04-27 09:47 任国强 阅读(86) 评论(0) 推荐(0) 编辑
摘要: http://stackoverflow.com/questions/2559616/javascript-true-form-reset-for-hidden-fields 把input type="hidden" 修改为 : type="text" style="display:none;" 阅读全文
posted @ 2017-04-25 16:48 任国强 阅读(1375) 评论(0) 推荐(0) 编辑
摘要: Adding two numbers concatenates them instead of calculating the sum JavaScript里两个变量 var a = 2; var b = 1; var c = "(" + a + b +")"; alert(c); 结果输出:(21 阅读全文
posted @ 2017-04-17 19:06 任国强 阅读(2209) 评论(0) 推荐(0) 编辑
摘要: WIN10快捷键 多桌面切换:WIN + CTRL + ←/→ 桌面横竖屏转向:ALT + CTRL + ←/→ 阅读全文
posted @ 2017-04-14 13:28 任国强 阅读(197) 评论(0) 推荐(0) 编辑
摘要: package org.springframework.beans; public abstract class BeanUtils 我们会遇到场景:将某个Bean实例的字段全部或者拷贝到另一个Bean的实例中。 如果是项目没有使用Spring框架,我们只能免为其难,自己写了(当然我们可以把这套代码 阅读全文
posted @ 2017-04-14 10:03 任国强 阅读(519) 评论(0) 推荐(0) 编辑
摘要: This is a paragraph. 复制每个 p 元素,然后追加到 body 元素 阅读全文
posted @ 2017-04-06 15:02 任国强 阅读(256) 评论(0) 推荐(0) 编辑
摘要: transien的翻译adj.(形容词)1.短暂的,一时的,瞬间的,瞬变的,匆匆而过的,易逝的,暂时的,短短的,暂态的,瞬态的2.路过的,过路的,留一会儿就走的3.<美>暂住的4.过渡的5.虚幻的,无常的我觉得最后一种翻译比较贴切,因为本质就是修饰的字段不可序列化。 用途:user里带passwor 阅读全文
posted @ 2017-03-11 12:14 任国强 阅读(318) 评论(1) 推荐(0) 编辑
摘要: 转载自:http://www.cnblogs.com/kenyang/archive/2013/04/09/3011447.html 我们都知道用聚合函数count()可以统计表的行数。如果需要统计数据库每个表各自的行数(DBA可能有这种需求),用count()函数就必须为每个表生成一个动态SQL语 阅读全文
posted @ 2017-03-07 14:39 任国强 阅读(2095) 评论(0) 推荐(0) 编辑
摘要: 正在博客园在线写东西,因为从网页上拷贝文字样式的问题,启动了一下Notepad++,然后Notepad++开始自动跟新(GUP.exe),点击同意了。 小风波从此开始,WIN7系统卡死无响应了,任务管理器都调不出来了,实在没辙,可惜了一大段文字啊。 想看看进程,是哪个在占用CPU,但是命令行也进不去 阅读全文
posted @ 2017-03-02 23:12 任国强 阅读(366) 评论(0) 推荐(0) 编辑
摘要: this article picked from:http://viralpatel.net/blogs/setting-tomcat-heap-size-jvm-heap-eclipse/ Recently while running Tomcat under Eclipse for one of 阅读全文
posted @ 2017-02-28 16:57 任国强 阅读(277) 评论(0) 推荐(0) 编辑
摘要: 下载jenkins.war,放入tomcat 启动tomcat,如果console报错java.lang.OutOfMemoryError: PermGen space,则修改startup.bat(sh)里Jvm内存(占用内存还是挺大的) set JAVA_OPTS=-Xms1024m -Xmx1 阅读全文
posted @ 2017-02-28 15:52 任国强 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 本质是宏(Macro)理念 Marco概念的广泛应用: 1、Office的Excel里的任何操作的 可以都可以用VBA编程记录下宏,然后把记录的宏,可以回放。当然也可以生成代码,比如给Excel设置单元格样式等。 2、Notepad++里的宏的概念,可以吧在Notepad++里的执行的任何操作记录成 阅读全文
posted @ 2017-02-28 12:26 任国强 阅读(687) 评论(0) 推荐(0) 编辑
摘要: https://blog.sixeyed.com/hadoop-and-net-core-a-match-made-in-docker/ 阅读全文
posted @ 2017-02-24 09:33 任国强 阅读(389) 评论(0) 推荐(0) 编辑
摘要: 兼容参数类型为Number和String 阅读全文
posted @ 2017-02-20 15:51 任国强 阅读(718) 评论(0) 推荐(0) 编辑
摘要: 问题关键:根据HTML规范,hidden是非ui类元素,不接受用户处理。所以form的 reset并不影响它。 http://stackoverflow.com/questions/6367793/why-does-the-reset-button-on-html-forms-not-reset-h 阅读全文
posted @ 2017-02-20 11:24 任国强 阅读(2019) 评论(0) 推荐(0) 编辑
摘要: 这是单元测试代码:TESTTITLECASE.sql 这是仿照MyBatis的功能实现:TITLECASE(这个是从Sublime里的Edit的Case下借鉴过来的) 这是一个副产品:单词首字符大写:FIRSTLETTERUPPERCASE.sql 阅读全文
posted @ 2017-02-08 10:23 任国强 阅读(886) 评论(0) 推荐(0) 编辑
摘要: Window下执行步骤: D:\apache-tomcat-7.0.57\bin\catalina.bat D:\apache-tomcat-7.0.57\conf\jmxremote.access D:\apache-tomcat-7.0.57\conf\jmxremote.password # 阅读全文
posted @ 2017-02-04 11:04 任国强 阅读(566) 评论(0) 推荐(0) 编辑
摘要: /** * Bug绕过去方案WorkAround * Bug描述: * JQuery的Validation的和form的input元素设为readonly,一对不可调和的矛盾: * 一个设置为required的input元素,永久设置为readonly,表单提交时,如果该字段值为空, * Validation功能就不能正常工作;反之,如果不设置readonly,又没法限制用户胡乱粘贴非... 阅读全文
posted @ 2017-01-22 17:52 任国强 阅读(249) 评论(0) 推荐(0) 编辑
摘要: ABSTRACT摘要Reliability at massive scale is one of the biggest challenges weface at Amazon.com, one of the largest e-commerce operations inthe world; ev 阅读全文
posted @ 2017-01-20 12:00 任国强 阅读(214) 评论(0) 推荐(0) 编辑
摘要: Pick up from http://demojava.iteye.com/blog/800204 阅读全文
posted @ 2017-01-20 11:28 任国强 阅读(204) 评论(0) 推荐(0) 编辑
摘要: use notepad++ find:(.*) replace: public static final String \U\1 = "\L\1";// Comment:\U \L转义,U->Upper Case;L->Lower Case. Thanks:http://www.cnblogs.co 阅读全文
posted @ 2017-01-11 18:03 任国强 阅读(671) 评论(0) 推荐(0) 编辑
摘要: Visual Studio (box selection 区块选择) ALT 鼠标点选 Eclipse(Toggle Block Selection Mode) Alt+Shift+A 鼠标点选 Notepad++ ALT Column Mode Tip Please use "ALT+Mouse 阅读全文
posted @ 2017-01-11 17:31 任国强 阅读(1027) 评论(0) 推荐(0) 编辑
摘要: public Long getCreationCounter() { String host =PropertyUtils.getPropertyValue("redis.server.host"); String port =PropertyUtils.getPropertyValue("redis.server.port"); Stri... 阅读全文
posted @ 2017-01-11 11:32 任国强 阅读(1434) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-12-29 17:11 任国强 阅读(2824) 评论(0) 推荐(0) 编辑
摘要: What is a reasonable order of Java modifiers (abstract, final, public, static, etc.)? http://stackoverflow.com/questions/16731240/what-is-a-reasonable 阅读全文
posted @ 2016-12-22 23:05 任国强 阅读(896) 评论(0) 推荐(0) 编辑
摘要: 师傅。。。,师傅。。。。,我的金箍棒要快递给东海龙王。。。。孙悟空:前台MM唐僧:快递收件的小哥 相声舞台剧:《21世纪》北京人:我记得曾经有一部比较经典的电视剧《北京人在纽约》,你看过吗?外地人:看过,我记得我看的那个叫《外地人在北京》,讲得是一个农民工讨薪的故事。北京人:打住打住,没法跟你沟通, 阅读全文
posted @ 2016-12-21 16:00 任国强 阅读(260) 评论(0) 推荐(0) 编辑
摘要: has_content It is true if the variable exists (and isn't Java null) and is not "empty", otherwise it is false. The meaning of "empty" depends on the c 阅读全文
posted @ 2016-12-21 10:59 任国强 阅读(3705) 评论(0) 推荐(0) 编辑
摘要: What Is Apache Hadoop? The Apache™ Hadoop® project develops open-source software for reliable, scalable, distributed computing. Hadoop项目是为了开发可靠、可伸缩的分布 阅读全文
posted @ 2016-12-20 23:23 任国强 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 前端 1.表单提交方法与格式 <form class="form-horizontal" action="/biz/patent/edit" method="post" enctype="multipart/form-data"> 2.input注意不要写value="" <input type=" 阅读全文
posted @ 2016-12-20 17:36 任国强 阅读(326) 评论(0) 推荐(0) 编辑
摘要: XMLHttpRequest详解: https://xhr.spec.whatwg.org/ 阅读全文
posted @ 2016-12-16 14:06 任国强 阅读(334) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/ningheshutong/p/5828854.html http://www.2cto.com/database/201409/338155.html 总得来说,单个参数不用说,多个参数不是通过具体的Entity就是通过Map。 Q:能不能用逗号隔开传 阅读全文
posted @ 2016-12-15 11:37 任国强 阅读(205) 评论(0) 推荐(0) 编辑
摘要: Kitematic下载地址:https://download.docker.com/kitematic/Kitematic-Windows.zip 下载Kitematic,解压后运行,可以登录连接Docker Hub,但是我的Stars貌似没展示(也许是我还没找到)。 阅读全文
posted @ 2016-12-13 12:04 任国强 阅读(3046) 评论(0) 推荐(1) 编辑
摘要: 预安装条件,可以查阅官方文档,本人是Win10 x64(必要条件)教育版+开启Hyper-V(Feature特性),具体可参考云栖社区的文章: https://yq.aliyun.com/articles/62375?spm=5176.100238.rightba.9.voxsUC 下载地址:htt 阅读全文
posted @ 2016-12-13 10:16 任国强 阅读(1753) 评论(0) 推荐(0) 编辑