04 2012 档案

int,NSInteger,NSUInteger,NSNumber
摘要:1.当需要使用int类型的变量的时候,可以像写C的程序一样,用int,也可以用NSInteger,但更推荐使用NSInteger,因为这样就不用考虑设备是32位的还是64位的。 2.NSUInteger是无符号的,即没有负数,NSInteger是有符号的。 3.有人说既然都有了NSInteger... 阅读全文

posted @ 2012-04-27 00:21 疯子123 阅读(125) 评论(0) 推荐(0)

Objective-C中根据函数名调用函数
摘要:Objective-C中调用函数的方法是“消息传递”,这个和普通的函数调用的区别是,你可以随时对一个对象传递任何消息,而不需要在编译的时候声明这些方法。所以Objective-C可以在runtime的时候传递消息。 主要用到:SEL和@selector,当然还有performSelector 看... 阅读全文

posted @ 2012-04-23 15:36 疯子123 阅读(115) 评论(0) 推荐(0)

cocos2d碰撞检测及注意事项
摘要:检测函数: - (void)update:(ccTime)dt { NSLog(@"start......") NSMutableArray *projectilesToDelete = [[NSMutableArray alloc] init]; for (CCSprite *projecti... 阅读全文

posted @ 2012-04-21 14:15 疯子123 阅读(232) 评论(0) 推荐(0)

我的云之旅–HMaster启动说明(140)
摘要:1 还是和Hadoop一样,基本启动步骤,首先需要Configuration。 2 获得HMaster的地址 HBaseConfiguration首先会添加ClassPath下的2个配置文件hbase-core.xml hbase-default.xml 创建HServerA... 阅读全文

posted @ 2012-04-18 21:54 疯子123 阅读(192) 评论(0) 推荐(0)

我的云之旅–HBase调试(139)
摘要:下面是运行日志: HBase-site.xml hbase.rootdir file:///D:/hbase-0.20.3/data The directory shared by region servers. Should be fully-qualifi... 阅读全文

posted @ 2012-04-13 22:36 疯子123 阅读(361) 评论(0) 推荐(0)

我的云之旅–Lucene内容存储进入Hadoop(136)
摘要:首先了解一下Lucene的使用: package com.rx;索引的建立: import java.io.File; import java.io.IOException; import org.apache.lucene.analysis.standard.StandardAn... 阅读全文

posted @ 2012-04-12 22:47 疯子123 阅读(151) 评论(0) 推荐(0)

zookeeper code
摘要:sample code: package com.marulin;import java.io.IOException;import java.util.ArrayList;import java.util.Collections;import java.util.List;import org... 阅读全文

posted @ 2012-04-02 21:45 疯子123 阅读(152) 评论(0) 推荐(0)

导航