【推送唤醒(Remote Notifications)】
在iOS6和之前,推送的类型是很单一的,无非就是显示标题内容,指定声音等。用户通过解锁进入你的应用后,appDelegate中通过推送打开应用的回调将被调用,然后你再获取数据,进行显示。这和没有后台获取时的打开应用后再获取数据刷新的问题是一....
分类:
移动开发 时间:
2014-05-23 06:17:45
阅读次数:
265
从一个List中移除重复的数据使用迭代方法会报异常:java.util.ConcurrentModificationExceptionMap
temp = new HashMap();for (GroupRule rule : ruleList) { String ruleName =
rule.....
分类:
其他好文 时间:
2014-05-23 05:41:56
阅读次数:
187
xm命令是管理Xen的最基本的工具,可以通过xm--help来获得帮助。1.列出所有正在运行的虚拟操作系统#
xm listPS[1]:可缩写为xmli2.启动虚拟机# 通过配置文件启动虚拟机# xm create # 通过虚拟机名称启动虚拟机,虚拟机必需已存在 xm
list 中# xm star...
分类:
其他好文 时间:
2014-05-23 03:49:18
阅读次数:
270
擅长排列的小明
II描述小明十分聪明,而且十分擅长排列计算。有一天小明心血来潮想考考你,他给了你一个正整数n,序列1,2,3,4,5......n满足以下情况的排列:1、第一个数必须是12、相邻两个数之差不大于2你的任务是给出排列的种数。输入多组数据。每组数据中输入一个正整数n(n#include#...
分类:
其他好文 时间:
2014-05-23 03:01:21
阅读次数:
326
1、/* MediaPlayer对象 */ public
MediaPlayer mMediaPlayer = null;/* 构建MediaPlayer对象 */mMediaPlayer= new
MediaPlayer();/* 播放列表 */ private List mMusicList ....
分类:
其他好文 时间:
2014-05-22 16:52:35
阅读次数:
277
List integers = new List() { 0, 1, 2, 3, 4, 5,
6, 7, 8, 9 };Parallel.ForEach(integers, (int item, ParallelLoopState state)
=>{ if (item > 5) { ...
分类:
Web程序 时间:
2014-05-22 16:03:56
阅读次数:
287
An IEnumerable objectAn Action of T which is
used to process each item in the listList dataList = new List { "this", "is",
"random", "sentence...
分类:
Web程序 时间:
2014-05-22 16:01:17
阅读次数:
290
本次内容:linkedlist()此次是承接上次arraylist(),自己实现linkedlist()(内容较少)
1 package list; 2 /** 3 * 自定义linkedlist类 4 * @author acer 5 * 6 */ 7 public
clas...
分类:
编程语言 时间:
2014-05-22 15:27:41
阅读次数:
286
一.为什么选择redis在项目中使用redis做为缓存,还没有使用memcache,考虑因素主要有两点:1.redis丰富的数据结构,其hash,list,set以及功能丰富的String的支持,对于实际项目中的使用有很大的帮忙。(可参考官网redis.io)2.redis单点的性能也非常高效(利用...
分类:
其他好文 时间:
2014-05-22 15:25:38
阅读次数:
324
编辑/etc/apt/sources.list文件root@debian:~#cat/etc/apt/sources.list##debcdrom:[DebianGNU/Linux7_Wheezy_-OfficialSnapshotamd64LIVE/INSTALLBinary20131013-23:23]/wheezymain#debcdrom:[DebianGNU/Linux7_Wheezy_-OfficialSnapshotamd64LIVE/INSTALLBinary20131013-23:2..
分类:
其他好文 时间:
2014-05-21 13:03:37
阅读次数:
408