[Architecture Pattern] Singleton Locator目的组件自己提供Service Locator模式,用来降低组件的耦合度。情景在开发系统时,底层的Infrastructure Context、或是核心的Domain Context这些共享对象生成之后,会在系统的许多地...
分类:
其他好文 时间:
2014-06-18 22:54:43
阅读次数:
279
BACKGROUNDThe present disclosure relates generally to information processing systems and, more specifically, to a mechanism that maintains the archite...
分类:
其他好文 时间:
2014-06-18 22:03:25
阅读次数:
216
1. 首先要导入你准备用作CheckBox选中和补选中状态的两图片到res的drawable中,如checkbox_checked.png,checkbox_normal.png;2. 在res/drawable中添加checkbox.xml,定义checkbox的state list drawab...
分类:
移动开发 时间:
2014-06-18 16:49:39
阅读次数:
242
1.对字符串进行hash大家可以看一下, SHA1 HashesGo by Example写道:The pattern for generating a hash is sha1.New(), sha1.Write(bytes), then sha1.Sum([]byte{}). 附上golang代...
分类:
其他好文 时间:
2014-06-18 16:07:48
阅读次数:
294
package com.sogou.web.selector.updana.wapPc.test;import java.util.regex.Matcher;import java.util.regex.Pattern;import com.sogou.web.selector.updana.wa...
分类:
编程语言 时间:
2014-06-18 14:04:20
阅读次数:
181
备忘录模式(Memento Pattern)在不破坏封装性的前提下,捕获一个对象的内部状态,并在该对象之外保存这个状态。这样以后就可将该对象恢复到原先保存的状态。 备忘录模式通用类图 Originator 发起人角色 记录当前时刻的内部状态,负责定义哪些属于备份范围的状态,负责创建和恢复备忘录数据。...
分类:
其他好文 时间:
2014-06-18 13:59:41
阅读次数:
274
摘录:Java开发中的23种设计模式详解设计模式Java的23种设计模式23种设计模式编程java设计模式(Design Patterns) ——可复用面向对象软件的基础设计模式(Design pattern)是一套被反复使用、多数人知晓的、经过分类编目的、代码设计经验的总结。使用设计模式是为了可重...
分类:
编程语言 时间:
2014-06-18 13:48:10
阅读次数:
410
A Memoization Pattern is a kind of JavaScript Pattern you can use to cache the result of a function with the arguments of the function as the key of t...
分类:
编程语言 时间:
2014-06-18 13:17:25
阅读次数:
401
SQL> var loc varchar2(30)SQL> exec :loc:='South San Francisco'PL/SQL procedure successfully completed.SQL> SELECT 2 emp.last_name,emp.first_name,j.job_title,d.department_name,l.city,l.state_province,l...
分类:
其他好文 时间:
2014-06-15 13:23:58
阅读次数:
263
界面中有一个按钮使用这样的样式:会发现按钮被点击之后颜色未变,原来是press="true"的位置颠倒了,改为如下即可:也就是两个Item标签更换一下位置。其实这就有点类似于switch语句,最后item没有属性就代表default
分类:
移动开发 时间:
2014-06-14 15:28:27
阅读次数:
385