今天脑袋短路,对于这个问题纠结了好久。这个问题具体是这样的:public class test { public static void main(String[] args) { test2 t = new test2(); System.out.println(...
分类:
编程语言 时间:
2014-07-14 09:26:08
阅读次数:
225
/*方法名决定是否开启新线程(async,sync),队列类型(全局队列,串行队列)决定开启多少条线程1.快速线程调用*开启后台线程执行任务[self performSelectorInBackground:@selector(test) withObject:nil];*回到主线程执行任务[sel...
分类:
移动开发 时间:
2014-07-14 08:50:04
阅读次数:
328
.box{ width: 100px; height: 100px; border: 1px solid #ccc; border-radius: 5px; margin-bottom: 15px; } .out, ...
分类:
Web程序 时间:
2014-07-14 00:16:57
阅读次数:
305
What you need to do is edit the configure file. And find out this:SLIBNAME='$(SLIBPREF)$(FULLNAME)$(SLIBSUF)'SLIBNAME_WITH_VERSION='$(SLIBNAME).$(LIBV...
分类:
其他好文 时间:
2014-07-14 00:00:03
阅读次数:
278
7月11日A.set|set.in|set.out题目描述:维护一个可重集,支持:插入一个正整数询问一个正整数k,集合中有多少个数是k的倍数输入格式:第一行一个整数N,表示操作数量。接下来N行,每行两个整数a,b如果a=1,表示向集合插入一个数b如果a=2,询问有多少个数是b的倍数输出格式:输出一行...
分类:
其他好文 时间:
2014-07-13 23:21:38
阅读次数:
258
1.Async介绍
sync是一个流程控制工具包,提供了直接而强大的异步功能。基于Javascript为Node.js设计,同时也可以直接在浏览器中使用。
Async提供了大约20个函数,包括常用的 map, reduce, filter, forEach 等,异步流程控制模式包括,串行(series),并行(parallel),瀑布(waterfall)等。
项目地址:ht...
分类:
Web程序 时间:
2014-07-12 20:45:21
阅读次数:
237
上一篇博文我先介绍了账号与同步的账号管理,这篇就介绍一下另一部分,就是android给提供的sync同步机制的使用。
其实sync机制的使用和上一篇博文中介绍的账号管理很类似,也是基于binder机制的跨进程通信。首先它需要一个Service,这个服务提供一个Action给系统以便系统能找到它;然后就是继承和实现AbstractThreadedSyncAdapter,此类中包含实现了ISyncA...
分类:
移动开发 时间:
2014-07-12 19:14:52
阅读次数:
191
Problem Description:
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.
If the number of nodes is not a multiple of k then left-out nodes in the...
分类:
其他好文 时间:
2014-07-12 19:00:26
阅读次数:
235
USB3.1技术已经推出, 10Gbps的速率足以满足数据, HD视频传输的要求.
要步入USB3.1的研发, 还得将USB3.0的基础打扎实.
微软提供的SUPER MUTT只包含一个接口0, 其下有两个ALT, ALT 1与ALT 2, 分别包含了两对ISO IN/OUT端点, 不过, 只有ALT 2下的ISO OUT EP的bMaxBurst为1,
而其它三个ISO EP的b...
分类:
其他好文 时间:
2014-07-12 17:16:21
阅读次数:
266
android提供了LocationManager来取得位置,用LocationListener来监听位置的变化
先做一些初始化工作:
/** latitude and longitude of current location*/
public static String mLat = "";
public static String mLon = "";
/** time out...
分类:
移动开发 时间:
2014-07-12 17:11:25
阅读次数:
248