我原先安装centos 的时候装的是CD版的,也是到这一步就卡住了,然后我在"虚拟机->取消安装vmare tool" 点击“取消安装vmare tool”,然后他就可以进行下去了,就正常安装好了,但现在我安装的是centos的mini版,我发现在“虚拟机->安装Vmare Tool"也就是这时候的...
分类:
其他好文 时间:
2015-09-28 22:13:40
阅读次数:
1760
原题链接:http://acm.uestc.edu.cn/#/problem/show/3题意:有个人在看B站视频时有个习惯,就是每当卡住的时候,他总再次从头开始看。另外,他在看视频时会先等待T的时间。现在给出播放的速度X和下载的速度Y,总长度S,问你他需要多少时间才能把整个视频都看完。题解:不断的...
分类:
其他好文 时间:
2015-09-28 14:38:30
阅读次数:
473
原文: http://blog.csdn.net/kylinbl/article/details/8972261方法1:使用NSTimer来实现 主要使用的是NSTimer的scheduledTimerWithTimeInterval方法来每1秒执行一次timeFireMethod函数,tim...
分类:
移动开发 时间:
2015-09-28 14:30:46
阅读次数:
135
AndroidStudio导入项目一直卡在Building gradle project info,实际上是因为你导入的这个项目使用的gradle与你已经拥有的gradle版本不一致,导致需要下载该项目需要的gradle版本,不知是被墙了还是什么原因,反正就是会一直卡住,直至下载完成(如果能下载完成...
分类:
移动开发 时间:
2015-09-28 00:16:43
阅读次数:
207
创建僵尸类zomb,继承UIIV把VC的即使时间timer放到僵尸类的初始化方法中- (instancetype)initWithFrame:(CGRect)frame{ self = [super initWithFrame:frame]; if (self) { [NSTimer sc...
分类:
移动开发 时间:
2015-09-27 09:57:05
阅读次数:
311
#define COLOR_VALUE arc4random() % 256 /255.0//宏定义@interface FirstViewController (){ NSTimer *_timer;}//定义一个事件的属性[self createBackCorlor];//方法的调用#pragm...
分类:
其他好文 时间:
2015-09-25 21:44:23
阅读次数:
319
使用定时器的时候当然想网页能够看到输出,不希望网页直接卡住,定时器结束输出一片。要做到定时器不卡住输出,只需要两个函数就行了,看下面代码"; $stop++; ob_flush(); flush(); sleep($interval); } while(tru...
分类:
Web程序 时间:
2015-09-23 20:58:35
阅读次数:
190
1. Stopping a Timer 关闭定时器if you create a non-repeating timer, there is no need to take any further action. It automatically stops itself after it fire...
分类:
移动开发 时间:
2015-09-23 16:44:33
阅读次数:
228
// 延迟执行不要用sleep,坏处:卡住当前线程 [NSThread sleepForTimeInterval:(NSTimeInterval)];// 一旦定制好延迟任务后,不会卡主当前线程[self performSelector: withObject: afterDelay:];//n秒后...
分类:
其他好文 时间:
2015-09-23 01:00:37
阅读次数:
155
以前没怎么了解过这个NSTimer,其实还是有挺多坑的,今天来总结一下:首先我们一起来看这个:我在A -> (push) -> B控制器,然后再B控制器中开启了一个NSTimer。然后我又pop到A pop到A的时候,定时器还在运行,并且B没有被释放(未调用dealloc)。why?这就不得不让我....
分类:
移动开发 时间:
2015-09-22 14:28:01
阅读次数:
441