摘要: 在按照官网上的教程(http://cn.cocos2d-x.org/tutorial/show?id=1478)步骤一步一步安装完成同时也添加了各项环境变量,运行cocos命令也没有任何问题,但就是在运行cocos new命令的时候报错,反复检查了setup.py执行时的各项参数均正... 阅读全文
posted @ 2015-03-12 11:01 冲锋号 阅读(157) 评论(0) 推荐(0) 编辑
摘要: [参考文章]http://www.ruanyifeng.com/blog/2014/06/git_remote.html [参考文章]http://blog.sina.com.cn/s/blog_74a459380101pncu.html 一、git仓库创建 1.创建一个新的仓库 g... 阅读全文
posted @ 2015-03-06 11:11 冲锋号 阅读(912) 评论(0) 推荐(0) 编辑
摘要: 1、防止引用文件中函数名相同,导致函数重定义错误://test1.php<?phpnamespace foo;function func(){ echo "test1/func";}//test.php<?phpinclude 'test1.php';function ... 阅读全文
posted @ 2015-03-03 15:17 冲锋号 阅读(129) 评论(0) 推荐(0) 编辑
摘要: –参考书籍《php设计模式》 当外部API库改变时,如何让使用者动态的升级? 运用适配器(Adapter)模式来避免因外部库改变所带来的不便。如向上兼容举例: 使用者版本1-hello ——> 最新库的-haoo(库版本1时,是hello方法) 使用者版本2-greet ... 阅读全文
posted @ 2015-02-06 15:54 冲锋号 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 参考文档:http://blog.csdn.net/haoel/article/details/2879 http://www.programlife.net/gdb-manual.html【新手笔记】:安装:1、下载源码并解压:wget ftp://sourceware.org/pub/gd... 阅读全文
posted @ 2015-01-22 17:14 冲锋号 阅读(1231) 评论(0) 推荐(0) 编辑
摘要: 转载:http://www.blogjava.net/jasmine214--love/archive/2010/10/09/334102.htmlLinux下mail利用外部邮箱发送邮件的方法:1、下载安装mailxsudo apt-get install heirloom-mailx2、修改/e... 阅读全文
posted @ 2015-01-21 17:43 冲锋号 阅读(1023) 评论(0) 推荐(0) 编辑