02 2014 档案

mysql杂记
摘要:mac:###mysql服务sudo /Library/StartupItems/MySQLCOM/MYSQLCOM [start | stop | restart]###链接mysql/usr/local/mysql/bin/mysql -u root -p123456###修改密码mysqladmin -u USER -p old_password new_PASSWORD或UPDATE user SET password=PASSWORD('123456') WHERE user='root';FLUSH PRIVILEGES;或SET PASSWORD 阅读全文

posted @ 2014-02-28 19:29 影语者 阅读(204) 评论(0) 推荐(0)

[ISSUE]SyntaxWarning: name 'xxx' is assigned to before global declaration
摘要:python 2.6.61 x = 12 3 if __name__=="__main__":4 global x5 x = 2提示如题的警告将global去掉后无此警告,不是在修改global变量前得加上“global”吗?待解。。。 阅读全文

posted @ 2014-02-28 16:50 影语者 阅读(22417) 评论(2) 推荐(0)

pomelo杂记
摘要:lordofpomelo 中的目录结构中的 dao,domain是什么?A:其实是mvc domain 主控制层,控制用户数据收集,控制请求转向 dao 持久层,读写数据库 service 业务逻辑层,处理数据逻辑,验证数据 阅读全文

posted @ 2014-02-23 13:40 影语者 阅读(185) 评论(0) 推荐(0)

[DONE]ReferenceError: WebSocket is not defined pomelo
摘要:使用cocos2d-x 3.0 + pomelo-cocos2d-jsb原因是没有注册 websocket只要在 AppDelegate.cpp 加上如下就可以了 sc->addRegisterCallback(register_jsb_websocket); 阅读全文

posted @ 2014-02-22 09:47 影语者 阅读(1233) 评论(0) 推荐(0)

[DONE]pomelo npm-install 出现 AttributeError: 'module' object has no attribute 'script_main'
摘要:环境:Mac 10.7.4, python 2.6.7, nodejs 0.10.26, pomelo 0.8.9下载 chatofpomelo, 执行 sudo sh npm-install.sh 的时候,出现如下错误Traceback (most recent call last): File "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py", line 18, in sys.exit(gyp.script_main())AttributeError: 'module& 阅读全文

posted @ 2014-02-21 23:09 影语者 阅读(5253) 评论(0) 推荐(0)

[ISSUE]shell 命令问题
摘要:###对于路径中带空格的,加上引号,比如./"JS Crystal Craze Mac.app/Contents/MacOS/JS Crystal Craze Mac"如果是在遍历的路径中带有空格,如何处理http://unix.stackexchange.com/questions/9496/lo... 阅读全文

posted @ 2014-02-13 22:54 影语者 阅读(319) 评论(0) 推荐(0)

finished running <my app>” on the targeted device
摘要:mac 10.7.4 xcode4.5.2将项目的 Test-info.plist 修改为 Info.plist 后出现如标题的错误,启动不了模拟器,又是clean,又是修改armv6,armv7,又是修改bundle name...一顿乱调之后,终于可以启动模拟器了,不过模拟器里面出现了两个app,一个是正常名字,一个是显示 {PRODUCE_NAME}看来还是plist 这边修改坏了, 原来在 Build Settings 里面 有个Expand Build Settings in Info.plist File 这个设置将Info.plist 修改为回 Test-info.plist, 阅读全文

posted @ 2014-02-07 15:44 影语者 阅读(245) 评论(0) 推荐(0)

导航