博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 2 3 4 5 6 7 ··· 12 下一页

2015年10月10日

摘要: public class Test { private static int calculate(int[] testcase) { int pLeft = 0; int pRight = testcase.length - 1; int maxLef... 阅读全文

posted @ 2015-10-10 14:29 钟悍 阅读(215) 评论(0) 推荐(0) 编辑

2015年5月25日

摘要: function setWinHeight() { setInterval(setIframeHeight, 2000);}function setIframeHeight(){ var ifm= document.getElementById("iframePage"); var... 阅读全文

posted @ 2015-05-25 13:10 钟悍 阅读(119) 评论(0) 推荐(0) 编辑

2015年5月22日

摘要: merge into table_c c using table_m m on(c.username = m.username) when matched then update set c.userId = m.id; ------将table_m中的id字段设置到table_c中userId字... 阅读全文

posted @ 2015-05-22 15:43 钟悍 阅读(409) 评论(0) 推荐(0) 编辑

2014年7月14日

摘要: public class TransactionSynchronizer { private final static Logger logger = LoggerFactory.getLogger(TransactionSynchronizer.class); public stati... 阅读全文

posted @ 2014-07-14 12:45 钟悍 阅读(5126) 评论(0) 推荐(0) 编辑

2014年7月10日

摘要: 在过去,每个应用都是单个程序,跑在单一CPU的单一服务器上。现在不一样了。在大数据和云计算的世界里,应用都是由许多独立的程序运行在一组不断变化的机器上。 协调这些独立程序的行为比起单一程序来困难的多。这样很容易导致开发人员陷入协调的逻辑而没有时间来实现正确的应用逻辑,或者反过来,花很少的时... 阅读全文

posted @ 2014-07-10 16:52 钟悍 阅读(313) 评论(1) 推荐(0) 编辑

2014年7月8日

摘要: UPDATE TA a SET name = b.nameFROM (SELECT id, name FROM TB) bWHERE b.id = a.id; 阅读全文

posted @ 2014-07-08 14:14 钟悍 阅读(308) 评论(0) 推荐(0) 编辑

2014年5月4日

摘要: 在Spring中,实现ApplicationContextAware并覆盖setApplicationContext方法, 就可以获得ApplicationContext了。public class SpringApplicationContextHolder implements Applicat... 阅读全文

posted @ 2014-05-04 13:06 钟悍 阅读(9110) 评论(1) 推荐(1) 编辑

2014年4月29日

摘要: 目的:本文描述怎么安装和配置一个单结点的Hadoop,以便搭建能快速简单操作和使用Hadoop的MapReduce和Hadoop的分布式文件系统(HDFS);先决条件:支持的平台GNU/Linux 可用作开发和生产平台. Hadoop 在2000台GNU/Linux 的集群上做过演示.Windows... 阅读全文

posted @ 2014-04-29 18:57 钟悍 阅读(746) 评论(0) 推荐(0) 编辑

2014年4月20日

摘要: 阅读全文

posted @ 2014-04-20 16:27 钟悍 阅读(1247) 评论(0) 推荐(1) 编辑

2014年4月19日

摘要: 本文翻译自:http://www.programcreek.com/2014/03/how-developers-sort-in-java/当分析大量开源JAVA工程的源码时,我发现JAVA开发者常用两种排序方式。一种是Collections或Arrays的sort()方法,另一种是似乎用有序的数据... 阅读全文

posted @ 2014-04-19 23:51 钟悍 阅读(825) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 ··· 12 下一页