2016年9月27日

xcode7: Undefined symbols for architecture i386: "_iconv_open", referenced from:

摘要: 在整合cocos和quick时,出现这个错误,我按照以前的方法 link binary with libraries 中add libiconv.2.dylib ,发现已经没有了这个库。 网上找了一下,找到一个: 问题: I use libxml to save game data. in orde 阅读全文

posted @ 2016-09-27 10:30 ZhYQ_note 阅读(1297) 评论(0) 推荐(0)

2016年9月26日

js 创建xml元素

摘要: function createXML(pathData) { var xmlDOM = createXMLDOM(); //参考:http://iceworldvip.blog.51cto.com/5438460/1341677 if (xmlDOM) { var data = xmlDOM.cre 阅读全文

posted @ 2016-09-26 13:33 ZhYQ_note 阅读(3183) 评论(0) 推荐(0)

2016年9月23日

html: button样式 css生成器

摘要: 网址:http://www.bestcssbuttongenerator.com/#/28 阅读全文

posted @ 2016-09-23 19:38 ZhYQ_note 阅读(716) 评论(0) 推荐(0)

TypeError: BlobBuilder is not a constructor

摘要: 今天在chrome浏览器中这样使用时,出线错误TypeError: BlobBuilder is not a constructor。 解决: 原文地址:http://stackoverflow.com/questions/15293694/blob-constructor-browser-comp 阅读全文

posted @ 2016-09-23 19:27 ZhYQ_note 阅读(2433) 评论(0) 推荐(0)

web: 屏蔽button元素的空格键和enter响应

摘要: 用tab键可以在各种元素之间切换焦点,然后键盘上的空格和enter按键触发click事件,我这里不想要这种效果。 所以我需要屏蔽这两个按键。 阅读全文

posted @ 2016-09-23 19:01 ZhYQ_note 阅读(397) 评论(0) 推荐(0)

2016年9月22日

html 选择本地图片,显示选择的图片

摘要: 主要用的是html5的文件系统部分: 参考: https://developer.mozilla.org/zh-CN/docs/Using_files_from_web_applications http://hushicai.com/2014/03/29/html5-du-qu-ben-di-we 阅读全文

posted @ 2016-09-22 19:24 ZhYQ_note 阅读(2805) 评论(0) 推荐(0)

2016年9月13日

cocos Uniforms值的赋值

摘要: cocos Uniforms值的赋值 举个void Renderer::drawBatchedTriangles()的渲染: //Start drawing verties in batch for(const auto& cmd : _batchedCommands) { auto newMaterialID = cmd->getMaterialID(); if(_lastMaterialID... 阅读全文

posted @ 2016-09-13 20:08 ZhYQ_note 阅读(660) 评论(0) 推荐(0)

2016年9月11日

unity:坐标变换 - 两个函数

摘要: 在cocos中,我们知道有如下的坐标变换函数: CCPoint convertToNodeSpace(const CCPoint& worldPoint);CCPoint convertToWorldSpace(const CCPoint& nodePoint);CCPoint convertToN 阅读全文

posted @ 2016-09-11 14:29 ZhYQ_note 阅读(443) 评论(0) 推荐(0)

2016年6月3日

Mercurial 的hook使用

摘要: 1、 Handling repository events with hooks可以通过Mercurial版本管理工具提供的hooks机制来处理repo的各种事件,从而实现对Mercurial的扩展,实现我们的特定需求。 2、常用的hooks event事件:摘自:http://hgbook.red 阅读全文

posted @ 2016-06-03 16:36 ZhYQ_note 阅读(679) 评论(0) 推荐(0)

2016年5月23日

mercurial branch name use integer as a name

摘要: 问题:mercurial branch name use integer as a name 解决: 到安装目录下找到mercurial/scmutil.py文件(我的:/usr/local/Cellar/mercurial/3.8.1/lib/python2.7/site-packages/mer 阅读全文

posted @ 2016-05-23 14:12 ZhYQ_note 阅读(244) 评论(0) 推荐(0)

2016年5月5日

nginx php-fpm 配置问题(2)

摘要: 问题: Nginx/FPM/PHP all php files say 'File not found.' 解决: 可能情况 1: 在 nginx php-fpm 配置问题(1)文中,我们分析了一种可能的原因,在这一篇中,我们分析另一种可能导致这种问题的情景。 在 nginx.conf 中我配置了 阅读全文

posted @ 2016-05-05 12:57 ZhYQ_note 阅读(224) 评论(0) 推荐(0)

nginx php-fpm 配置问题(1)

摘要: nginx php-fpm 配置问题(1) 1.问题 Nginx/FPM/PHP all php files say 'File not found.' nginx error日志: 解决: 修改nginx.conf配置 参考: [nginx-1.4.3识别fastCGI报错 Primary scr 阅读全文

posted @ 2016-05-05 11:43 ZhYQ_note 阅读(969) 评论(0) 推荐(0)

导航