上一页 1 ··· 38 39 40 41 42 43 44 45 46 ··· 56 下一页

为什么 securely empty 那么慢?

摘要: 转载自:http://bbs.weiphone.com/read-htm-tid-1604282.html引用引用楼主chris_zgn于2011-02-05 00:40发表的 求救,刚才不小心把废纸楼里面的,empty trash,调成。。securely empty了。。。怎么改回去啊??删除好慢。。。哭。。。 :打开finder的偏好设置。。。看图就明白了。。。引用引用第2楼chris_zgn于2011-02-05 00:44发表的:谢谢回答!我貌似就是这么乱整的。。。为什么securely empty那么慢。。。。。。因为要直接抹掉,填零。。。。引用引用第2楼chris_zgn于201 阅读全文
posted @ 2012-02-17 00:30 yang3wei 阅读(218) 评论(0) 推荐(0) 编辑

cocos2d addChild 方法会自动将 child 的引用计数加1

摘要: 转载自:http://www.cnblogs.com/andyque/archive/2011/07/20/2111453.htmlPlayLayer.h#import "cocos2d.h" #import "SceneManager.h" @interface PlayLayer : CCLayer { NSMutableArray *_flyActionArray; CCSprite *_dragon; CCAction *_flyAction; CCAction *_moveAction; BOOL _moving; } @propert... 阅读全文
posted @ 2012-02-17 00:24 yang3wei 阅读(567) 评论(0) 推荐(0) 编辑

objective-c 成员变量没初始化所造成的灾难

摘要: 以下是我所想要得到的效果:但我实际得到的却是这么个玩意儿:找了很久很久,起初还以为是弄乱了opengl的状态机,但是其他元素的渲染却并没有出什么问题啊,很奇怪,很纠结,很揪心。。-(void) drawPolygon:(b2Fixture*)fixture xf:(b2Transform)xf color:(b2Color)color { b2PolygonShape *poly = (b2PolygonShape*)fixture->GetShape(); int32 vertexCount = poly->m_vertexCount; b2Vec2 vertices[b2_ma 阅读全文
posted @ 2012-02-15 22:25 yang3wei 阅读(266) 评论(0) 推荐(0) 编辑

去除由凸多边形构成的复杂多变性的拼接边(初版)

摘要: 惭愧,自己看着都头晕,权当对过去走歪路的纪念!/*** 挑出传入的所有点中重复的点~*/-(vector<b2Vec2>*)selectDuplicatedVertices2:(vector<vector<b2Vec2>*>*)allVertices { vector<b2Vec2> *target = new vector<b2Vec2>(); for(uint i = 0; i < allVertices->size(); i ++) { vector<b2Vec2> *item = allVertices 阅读全文
posted @ 2012-02-15 13:56 yang3wei 阅读(228) 评论(0) 推荐(0) 编辑

iTunes的优点

摘要: 前两天因为误操作将mac /Users/user/Documents 目录下的所有东西都给删除掉了,悲催一下~500g的硬盘本来还剩100多个g的空间的,给弄个一下这个以后,硬盘空闲空间暴增至300多个g悲伤的话就不多说了,望着空空如也的硬盘,我实在提不起心思在XCode里面重写游戏了,于是便想要找个事儿给打发打发时间,忽然间想起我一个伙计的iTunes弄得蛮漂亮的,便起了心思也要研究一下~话说之前我都是不怎么用iTunes来管理音乐的,刚开始买进黑苹果的时候倒还是经常使用iTunes不过那时候主要是因为在AppStore里面下载免费的App,后来不知道怎么搞的,苹果竟然不让没开通国际信用卡, 阅读全文
posted @ 2012-02-14 19:07 yang3wei 阅读(366) 评论(0) 推荐(0) 编辑

ios-破解ipa包中的png 图片

摘要: 转载自:http://blog.csdn.net/diyagoanyhacker/article/details/70848871。首先下载iPhone Explorer2。用iPhone Explorer获取iphone app的.app目录3。新建一个ios工程 然后加入以下代码//原文地址:http://blog.csdn.net/diyagoanyhacker/article/details/7084887//作者:禚来强- (BOOL)writeApplicationData:(NSData *)data toFile:(NSString *)fileName { NSArray * 阅读全文
posted @ 2012-02-14 14:20 yang3wei 阅读(260) 评论(0) 推荐(0) 编辑

找出多边形的中心点

摘要: /** 找出多边形的中心点 */b2Vec2 findCentroid(vector<b2Vec2> vertices) { int verticesCount = vertices.size(); b2Vec2 c; /**终于找到罪魁祸首了,使用结构体的时候注意一定要初始化!!!血的教训!!! c.SetZero()等同于 c.Set(0.0f, 0.0f) */ c.SetZero(); float area = 0.0f; float p1X = 0.0f; float p1Y = 0.0f; float inv3 = 1.0f/3.0f; for(int i = 0;.. 阅读全文
posted @ 2012-02-14 13:32 yang3wei 阅读(1354) 评论(0) 推荐(0) 编辑

Mac睡眠、注销、重启、关机的快捷键

摘要: 转载自:http://mac.linsheng.me/archives/280.html睡眠、注销、重启、关机是我们几乎每天都会用到的操作,所以下面的快捷键可要记牢了。Ctrl-⏏ 显示重启、关机、睡眠对话框Command-Ctrl-⏏ 重新启动Command-Option-Ctrl-⏏ 关机Command-Option-⏏ 睡眠Command-Shift-Option-Q 注销 阅读全文
posted @ 2012-02-14 11:31 yang3wei 阅读(1935) 评论(0) 推荐(0) 编辑

去除由凸多边形构成的复杂多变性的拼接边

摘要: /*** 挑出传入的所有点中重复的点~*/- (vector<b2Vec2>*)selectDuplicatedVertices:(vector<vector<b2Vec2>*>*)allVertices { vector<b2Vec2> *target = new vector<b2Vec2>(); for(uint i = 0; i < allVertices->size(); ++ i) { vector<b2Vec2> *poly = allVertices->at(i); for(uint j 阅读全文
posted @ 2012-02-11 14:47 yang3wei 阅读(154) 评论(0) 推荐(0) 编辑

Audacity丰富的插件支持,果然强大!

摘要: 转载自:http://audacity.sourceforge.net/download/pluginsPlug-Ins and LibrariesYou can download and install plug-ins or libraries to add extra functionality to Audacity. Plug-ins can give you extra effects, or more audio generation and analysis capability. Adding libraries can allow you to import or expo 阅读全文
posted @ 2012-02-11 10:30 yang3wei 阅读(927) 评论(0) 推荐(0) 编辑
上一页 1 ··· 38 39 40 41 42 43 44 45 46 ··· 56 下一页