上一页 1 2 3 4 5 6 7 8 ··· 10 下一页

2014年4月5日

sublime text2 与 jshint

摘要: mac 10.7.4因为是javascript的初学者,其余时间常用的是c++和python,故经常把其他语言的语法带到javascript里面,所以决定安装jshint,帮我检测首先通过npm 安装 jshint: > npm install jshint -g再在 sumlime text2 中 打开包管理器, 安装 jshint在 Tools->Build System 中选择 Jshint当按下 Command + B 的时候,下面就会提示Jshint检测的结果如果再安装一个 SublimeOnSaveBuild插件,就更好其中有个问题:安装完 SublimeOnSaveB 阅读全文

posted @ 2014-04-05 10:05 影语者 阅读(2564) 评论(0) 推荐(0) 编辑

2014年4月4日

Caught exception: TypeError: Cannot call method 'insert' of undefined

摘要: mac 10.9.1, pomelo 0.8.9使用 pomelo.app.get('dbclient').insert(sql, args, function(err, res) {...});出现Caught exception: TypeError: Cannot call method 'insert' of undefined可以确定的是,在前面的代码中已经使用过该方法如果换成var dbclient = pomelo.app.get('dbclient');dbclient.insert(sql, args, function(err 阅读全文

posted @ 2014-04-04 18:04 影语者 阅读(695) 评论(0) 推荐(0) 编辑

ERROR 1064 (42000): You have an error in your SQL syntax; check the manual...

摘要: mysql 下输入select * from Character;提示错误ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Character' at line 1如果换成 select * from `Character`; 又正常了,可以确认的是table name中没有空格其他table,比如Player,不用加`` 阅读全文

posted @ 2014-04-04 14:43 影语者 阅读(22371) 评论(0) 推荐(0) 编辑

2014年4月1日

Linux 杂记

摘要: 关闭蜂鸣器:setterm -blength 0整站下载:wget -r -p -np -k URL 阅读全文

posted @ 2014-04-01 15:58 影语者 阅读(131) 评论(0) 推荐(0) 编辑

2014年3月12日

[POMELO]server "area-server-1" "area" register master failed

摘要: mac 10.9.1 pomelo 0.8.9在 servers.json 里面添加了一个 area server 字段,执行 pomelo start 的时候出现如下错误[2014-03-12 12:54:19.637] [ERROR] pomelo-admin - [/Users/xxx/Desktop/xxx/server/game-server/node_modules/pomelo/node_modules/pomelo-admin/lib/monitorAgent.js] server "area-server-1" "area" regis 阅读全文

posted @ 2014-03-12 14:07 影语者 阅读(1600) 评论(0) 推荐(0) 编辑

2014年3月10日

[ISSUE]Cannot find module 'log4js'

摘要: mac 10.7.4 pomelo v0.8.9运行pomelo start 的时候,出现如上提示再node的node_module 目录下确定是有log4js的猜想可能是执行npm-install.sh 的时候挂了,然后强制重启的原因删掉game-server / web-server 下的node_module 目录,重现安装安装后,问题解决 阅读全文

posted @ 2014-03-10 22:12 影语者 阅读(3215) 评论(0) 推荐(0) 编辑

[ISSUE]fail to forward message:TypeError: Cannot read property 'msgRemote' of undefined

摘要: mac 10.9.1 pomelo 0.8.8r/node_modules/pomelo/lib/server/server.js] fail to forward message:TypeError: Cannot read property 'msgRemote' of undefined at doForward (/Users/2k/Desktop/github/pd/server/game-server/node_modules/pomelo/lib/server/server.js:340:39) at dispatch (/Users/2k/Desktop/git 阅读全文

posted @ 2014-03-10 12:37 影语者 阅读(3603) 评论(0) 推荐(0) 编辑

2014年2月28日

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 影语者 阅读(192) 评论(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 影语者 阅读(22263) 评论(2) 推荐(0) 编辑

2014年2月23日

pomelo杂记

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

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

上一页 1 2 3 4 5 6 7 8 ··· 10 下一页

导航