命令模式定义:将“请求”封装成对象,以便使用不同的请求、队列或者日志来参数化其他对象。命令模式也支持可撤销的操作。类图:适用设计方案举例:实现一种遥控器,该遥控器具有七个可编程的插槽(每个都可以指定到一个不同的家电装置),每个插槽都有对应的开关按钮。这个遥控器还具备一个整体的撤销按钮。另外,多家厂商...
分类:
其他好文 时间:
2014-09-19 19:08:25
阅读次数:
208
C# Code First : Validation failed for one or more entities. See 'EntityValidationErrors' property for more details...
分类:
其他好文 时间:
2014-09-19 15:44:35
阅读次数:
195
http://www.raywenderlich.com/56107/make-first-android-app-part-1Activity Name. This is the first mention you’ve seen of the word Activity, but it cert...
分类:
移动开发 时间:
2014-09-19 15:15:25
阅读次数:
233
next_permutation原型:
std::next_permutation
default (1)
template
bool next_permutation (BidirectionalIterator first,
BidirectionalIterator last);
...
分类:
其他好文 时间:
2014-09-19 12:12:35
阅读次数:
151
1. main.xml 2. firseAcitivy.javapublic class firstActivity extends Activity { /** Called when the activity is first created. */ @Override...
分类:
移动开发 时间:
2014-09-19 11:52:05
阅读次数:
211
move原型:
std::move
template
OutputIterator move (InputIterator first, InputIterator last, OutputIterator result);
该函数是将指定范围内的元素移动到从result开始的位置。
move之后,[first,last)范围内的元素去留的具体实现由编译器决定。
...
分类:
其他好文 时间:
2014-09-19 10:09:05
阅读次数:
150
几个月前,我们发布了一个CRM4.0的附属插件:Customer Care Accelerator (CCA)。
自2005年以来CCA已经存在,我们这些新手在CRM的世界里, Customer Care Framework (CCF)最初是为解决大型呼叫中心的需求, 由微软开发的咨询服务。通过提供操作的改进如电话减少处理时间,改善first-call,解决利率和降低员工培训成本。通过它的各种版...
分类:
其他好文 时间:
2014-09-18 23:52:54
阅读次数:
420
核心断言assertArrayEquals(expecteds, actuals)查看两个数组是否相等。assertEquals(expected, actual)查看两个对象是否相等。类似于字符串比较使用的equals()方法assertNotEquals(first, second)查看两个对象...
分类:
其他好文 时间:
2014-09-18 23:34:54
阅读次数:
264
Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximu...
分类:
其他好文 时间:
2014-09-18 22:12:44
阅读次数:
157
CSS中存在一些比较特殊的属性,称之为伪类,它们之中最常用的就是定义链接的伪:link,:visited,:hover,:active等。 除了它们,还有一些不被常使用的伪类,有:focus,:first-child,:lang等。 而且CSS里不光有伪类,还有伪元素,比如::first-lett....
分类:
Web程序 时间:
2014-09-18 20:24:34
阅读次数:
274