无痛醒砖工

码着码着,就湿了

2012年8月31日

[转][高手必看]The Most Important Algorithms

摘要: The Most Important AlgorithmsAfter a long discussion with some of my RISC colleagues about what the 5 most important algorithms on the world are, we couldn't reach a consensus on this question. So I suggested to perform a little survey. The criterion for suggestions was that these algorithms sho 阅读全文

posted @ 2012-08-31 23:27 cydonia 阅读(266) 评论(0) 推荐(0) 编辑

2012年6月20日

Cocos2d-x 解决闪屏问题

摘要: 一旦两个精灵图片交叠且移动的时候,偶尔会产生闪屏问题:即两个图片相互闪烁,仿佛引擎无法识别哪个是前景哪个是背景切到CCDirector::setGLDefaultValues() 查看 1 void CCDirector::setGLDefaultValues(void) 2 { 3 // This method SHOULD be called only after openGLView_ was initialized 4 CCAssert(m_pobOpenGLView, "opengl view should not be null"); 5 6 setAlp... 阅读全文

posted @ 2012-06-20 20:19 cydonia 阅读(3225) 评论(0) 推荐(0) 编辑

2012年6月19日

VS纠结的嵌入清单 LINK : fatal error LNK1123: 转换到 COFF 期间失败: 文件无效或损坏

摘要: 今天同事改了两行代码,update之后工程立马宕掉,显示错误如下LINK : fatal error LNK1123: 转换到 COFF 期间失败: 文件无效或损坏clean之后rebuild, 依然如此。对项目中每个依赖工程rebuild 结果全部崩坏,完全不能理解。之后查到微软官方的一个解决方案:http://support.microsoft.com/kb/320216/zh-cn发现是嵌入清单的问题,于是对该工程以及所有依赖工程进行如下操作右键->工程属性->配置属性-> 清单工具->输入和输出->嵌入清单,选择[否]rebuild 之,成功解决flyer 阅读全文

posted @ 2012-06-19 14:30 cydonia 阅读(6384) 评论(0) 推荐(0) 编辑

2012年6月14日

移动开发开源项目锦集(持续更新)

摘要: UniqushUniqush is a free and open source software which provides a unified push service for server-side notification to apps on mobile devices.—Read more主页http://uniqush.orguniqush是一个自由和开放源码软件,该软件为移动设备上的应用程序的服务器端通知提供一个统一的推送服务。GitHubhttps://github.com/monnand/uniqushUTF8cppA simple, portable and ligh 阅读全文

posted @ 2012-06-14 10:38 cydonia 阅读(2028) 评论(0) 推荐(2) 编辑

2012年5月23日

C++ lambda表达式、function、bind用法

摘要: 工程上来说如果要在类里面添加一个“行为”, 可能要经过好多步编码操作。比如对于某一类A , update函数里要调用一堆同类函数,这些函数还要初始化等等的操作.需要编写大量代码,对我等懒人来说真是麻烦死了。例如如下类AA.h 1 class A 2 { 3 public: 4 A(); 5 ~A(); 6 void update(); 7 private: 8 bool fun1(); 9 bool fun2();10 bool fun3();11 12 void run(const string& s);13 }比如想在A中的updat... 阅读全文

posted @ 2012-05-23 15:06 cydonia 阅读(1174) 评论(1) 推荐(0) 编辑