[来自: Backbone.js 开发秘笈 第7章]Restful 服务调用 Collection.fetch() - 请求集合 Model.save() - 新增或修改模型(根据 Model.isNew() 方法判断操作类型) Model.destroy() - 删除模型 Model.sy...
分类:
Web程序 时间:
2014-08-13 18:14:17
阅读次数:
250
java NIO 第一弹----概览摘要:Non-blocking I/O(usually calledNIO, and sometimes called "New I/O") is a collection ofJava programming languageAPIsthat offer fea...
分类:
编程语言 时间:
2014-08-13 12:50:06
阅读次数:
348
有时新建一个站点,编辑母版页保存后,母版页不起作用,可能原因就是母版页需要发布后才能生效。发布母版页步骤如下:Site Settings—>Master Pages选中需要编辑的母版页,点击功能区的“Publish”.需要发布母版页的原因:Site collection features 中的 Sh...
分类:
其他好文 时间:
2014-08-13 01:05:54
阅读次数:
182
在SharePoint Management Shell中,备份Site Collection:backup-spsite -identity http://spserver -Path c:\123.bak -force还原Site Collection:restore-spsite -ident...
分类:
其他好文 时间:
2014-08-13 01:01:24
阅读次数:
218
Given a collection of integers that might contain duplicates, S, return all possible subsets.Note:Elements in a subset must be in non-descending order...
分类:
其他好文 时间:
2014-08-13 00:38:14
阅读次数:
281
1)java集合框架的层次结构2)使用Collection接口定义的公用方法对集合和线性表操作3)使用Iterator接口遍历集合4)使用JDK的增强for循环替代迭代Iterator进行集合遍历5)熟悉Set接口,了解何时及如何使用HashSet,LinkedHashSet或TreeHashSet...
分类:
编程语言 时间:
2014-08-12 21:37:14
阅读次数:
326
1 package Aug11.Collection; 2 3 import java.util.HashSet; 4 import java.util.LinkedList; 5 import java.util.Set; 6 7 public class Test { 8 9 p...
分类:
其他好文 时间:
2014-08-12 18:33:04
阅读次数:
143
Given a collection of numbers that might contain duplicates, return all possible unique permutations.For example, [1,1,2] have the following unique pe...
分类:
其他好文 时间:
2014-08-12 10:17:03
阅读次数:
142
题目链接:uva 11637 - Garbage Remembering Exam
题目大意:大白数里有很详细的题意。
解题思路:对于有序的序列来说,考虑每个位置为有效性的概率。C(2?kn?1?x)?A(2k2k)?A(n?1?xn?1?x)A(n?1n?1)
x为考虑当前位置,然后与该位置距离小于等于k的位置个数。该位置有效的话,则对应的要将原先邻近的2*k个单词放到另外的位置上...
分类:
其他好文 时间:
2014-08-12 00:39:53
阅读次数:
252
1.Set存放的元素是无序的不可重复。
2.List存放的元素为有序可重复。
3.重写equals方法,一般最好重写hasCode方法,当对象作为key的时候及索引,会使用hasCode方法进行查找。
4.容器对象在调用remove,contains等方法时需要比较对象是否相等,这会涉及到对象类型的equals方法和
hashCode方法。对于自定义的类型,需要重写equals和has...
分类:
编程语言 时间:
2014-08-11 21:24:32
阅读次数:
273