上一页 1 ··· 189 190 191 192 193 194 195 196 197 ··· 229 下一页
摘要: 今天在做报表查询的时候Oracle报错:信息为 ORA-01810: format code appears twice原因:由于想java一样转化时间格式,但是Oracle中是不区分大小写的,所以格式最终为select count(*) as k2 ,t.cityid as k1 fromportal_user t wheret.createtime >= to_date(#YbeginTime#,'yyyy-mm-dd HH24:mi:ss')and to_date(#YendTime#,'yyyy-mm-dd HH24:mi:ss')>=t.c 阅读全文
posted @ 2014-04-08 10:48 一天不进步,就是退步 阅读(853) 评论(0) 推荐(0) 编辑
摘要: Here Mudassar Ahmed Khan has explained how to pass value from child popup window to parent page window using JavaScript.The child popup window must be opened using JavaScript window.open function. And in such case we can access the parent page controls using JavaScript window.opener instance.In this 阅读全文
posted @ 2014-04-08 08:56 一天不进步,就是退步 阅读(404) 评论(0) 推荐(0) 编辑
摘要: In this tutorial we will discuss about different types of questions that can be used in a Java interview, in order for the employer to test your skills in Java and object-oriented programming in general.In the following sections we will discuss about object-oriented programming and its characteristi 阅读全文
posted @ 2014-04-08 08:50 一天不进步,就是退步 阅读(691) 评论(0) 推荐(0) 编辑
摘要: 命令输入:export LANG=zh_CN.GBKgrep匹配时高亮先执行:export GREP_OPTIONS='--color=auto';后执行:grep 匹配内容 文件;描述:匹配部分将高亮显示,export GREP_OPTIONS='--color=auto' 这条命令添加到 ~/.... 阅读全文
posted @ 2014-04-04 15:55 一天不进步,就是退步 阅读(361) 评论(0) 推荐(0) 编辑
摘要: 1. 你就是单例你呱呱落地到这个世界的时候,这就是单例的产生,你是世界上唯一无二的存在。此时,你是父辈、祖辈的宝贝。他们都想和你亲近。public class Singleton { private final static Singleton INSTANCE = new Singleton(); //婴儿呱呱落地 // Private constructor suppresses private Singleton() {} // default public constructor public static Singleton getInsta... 阅读全文
posted @ 2014-04-03 13:00 一天不进步,就是退步 阅读(1120) 评论(2) 推荐(2) 编辑
摘要: http://www.javaworld.com/article/2073352/core-java/simply-singleton.htmlJAVA DESIGN PATTERNSByDavid GearyThe Singleton pattern is deceptively simple, even and especially for Java developers. In this classicJavaWorldarticle, David Geary demonstrates how Java developers implement singletons, with code 阅读全文
posted @ 2014-04-03 11:13 一天不进步,就是退步 阅读(454) 评论(0) 推荐(0) 编辑
摘要: 1. 中介者进化一个公司,开始时大家都是平等关系的,例如ABC三人。开始,公司很小,他们都是多面手,每个人既做生产,也做销售,也做运输。如下图所示:随着生意越来越好,公司规模变大,然后他们就发现这样工作的话,要么生产跟不上,要么销售跟不上,要么运输跟不上。他们发现了问题,因此他们决定改变现状,每个人专攻一个,要么生成,要么销售,要么运输,那么他们就变成了如下图所示的状态:市场越来越大,公司也越来越大,在公司要抢占尽可能多的市场份额时发现他们要频繁的相互协调沟通,这耗费了他们大量的时间和精力,于是他们引入了外援。此时,他们可以放心的各司其职,剩下的工作就交给M来处理。M就是中介者模式的中介。上面 阅读全文
posted @ 2014-04-02 20:34 一天不进步,就是退步 阅读(1177) 评论(4) 推荐(0) 编辑
摘要: 原则,故名思议则是本质的意思。所谓擒贼先擒王,研究设计模式自然要先了解设计原则,所有的模式都是在这些原则的基础之上发展起来的,有的是侧重一个,有的是多个都有所涉及。看完设计模式之后,我感觉到每个模式都有这些原则的影子,还渗透着面向对象的三大属性,也觉得这些原则也都有相通之处,,正是有了他们才使我们由代码工人转为艺术家。下面我来点评一下六大原则,望各位拍砖:1、单一职责原则(Single Responsibility Principle,简称SRP) 单一职责原则,就一个类而言,应该仅有一个引起它变化的原因。如果一个类承担的职责过多,就等于把这些职责耦合在一起,一个职责的变化可能会消弱或者... 阅读全文
posted @ 2014-04-02 19:08 一天不进步,就是退步 阅读(471) 评论(0) 推荐(0) 编辑
摘要: 现象:1.jenkis编译报错:需要class,interface或enum2.使用ant进行编译ok。解决方法:1. Jenkis重新编译一个以前成功的svn版本,直至编译成功。2.Jenkis修改svn版本为最新版本,重新编译,此次构建成功。具体原因未知。 阅读全文
posted @ 2014-04-01 20:02 一天不进步,就是退步 阅读(428) 评论(0) 推荐(0) 编辑
摘要: reference from:http://highscalability.com/7-stages-scaling-web-appsTUESDAY, SEPTEMBER 23, 2008 AT 4:22AMBy John Engales CTO, Rackspace. Good presentation of the stages a typical successful website goes through:Stage 1 - The Beginning: Simple architecture, low complexity. no redundancy. Firewall, loa 阅读全文
posted @ 2014-03-31 09:33 一天不进步,就是退步 阅读(247) 评论(0) 推荐(0) 编辑
上一页 1 ··· 189 190 191 192 193 194 195 196 197 ··· 229 下一页