项目结构是这样子的:主场景代码是这样子的:local MainScene = class("MainScene", function() return display.newScene("MainScene")end)function MainScene:ctor() self.laye...
分类:
其他好文 时间:
2014-07-07 12:00:52
阅读次数:
170
typedef void (^dd)(void);@property (strong) dd a ;@property (copy) dd a ;__weak id b=self; self.a=^{ NSLog(@"%@",self); };编译器都会有警告:循环引用造成的内存泄露---...
分类:
其他好文 时间:
2014-07-07 09:17:36
阅读次数:
221
Given inorder and postorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree.class Solution...
分类:
其他好文 时间:
2014-07-03 20:25:21
阅读次数:
219
Given preorder and inorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree.此题目有两种解决思路:1)递归...
分类:
其他好文 时间:
2014-07-03 20:07:01
阅读次数:
199
NSThread:利用NSThread创建和启用一个线程1.NSThread *thread = [[NSThread alloc] initWithTarget:self selector:@selector(run) object:nil];,调用后调用[thread start];2.创建.....
分类:
移动开发 时间:
2014-07-03 19:12:31
阅读次数:
223
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[ShareSDK
registerApp:@"iSDK"];
[self
initializePlat];
}
-(void)initia...
分类:
其他好文 时间:
2014-07-03 17:08:26
阅读次数:
178
smartd是一个守护进程(一个帮助程序),它能监视拥有自我监视,分析和汇报技术(Self-Monitoring,Analysis,andReportingTechnology-SMART)的硬盘。SMART系统使得硬盘能监视并汇报自己的运行状况。它的一个重要特性是能够预测失败,使得系统管理员能避免数据丢失。smartd由kerne..
分类:
其他好文 时间:
2014-07-03 14:07:04
阅读次数:
315
NSThread一.创建和启动线程1.开线程的几种方式1)先创建线程,后启动NSThread *thread = [[NSThread alloc] initWithTarget:self selector:@selector(run) object:nil];[thread start];2)创建...
分类:
移动开发 时间:
2014-07-03 12:58:28
阅读次数:
207
1 class FaultyInfoHandler(tornado.web.RequestHandler): 2 def get(self): 3 import xmlrpc.client 4 s = xmlrpc.client.ServerProxy(Lo...
分类:
其他好文 时间:
2014-07-03 12:09:31
阅读次数:
272
1 创建Ring 代码具体分析在OpenStack_Swift——Ring组织架构中我们具体分析了Ring的具体工作过程,以下就Ring中添加?设备,删除设备,已经又一次平衡的实现过程作具体的介绍。首先看RingBuilder类 def __init__(self, part_power, r...
分类:
其他好文 时间:
2014-07-02 15:02:11
阅读次数:
268