摘要: 问题一:MAC 使用splinter errorTraceback (most recent call last): from splinter.browser import Browser b = Browser(driver_name="chrome") File "/Librar... 阅读全文
posted @ 2015-12-11 23:55 开心星 阅读(2268) 评论(0) 推荐(1) 编辑
摘要: 一 生产环境说明 1) tornado 4.2 2) Tornado-MySQL 3) supervisor 3.0b2 4) protobuf 2.6.1 5) python 2.7.6 6)nginx/1.4.6二 实际问题1) 问:使用nginx 代理后不能访问 报错 WARNIN... 阅读全文
posted @ 2015-10-16 10:27 开心星 阅读(17391) 评论(0) 推荐(0) 编辑
摘要: 版本信息:protobuf: v2.6.1python: 2.7关于在Python中使用protobuf时 string格式字段的编码问题在python中编码格式多采用utf-8格式。而protobuf官网中这样说到:如果不做处理,在message 中定义了一个string类型的字段后,出现错误如下... 阅读全文
posted @ 2015-09-29 18:04 开心星 阅读(4002) 评论(0) 推荐(0) 编辑
摘要: 当前环境: operate system:Ubuntu 14.04.1 LTS protoc --version:libprotoc 2.5.0 protocol-buffers version:2.6.1按照https://github.com/google/protobuf的README... 阅读全文
posted @ 2015-09-09 11:49 开心星 阅读(9044) 评论(0) 推荐(0) 编辑
摘要: 1) fatal: remote origin already exists. 解决办法..$ git remote add origin git@git.*.com:tang/comment_server.git..$ git push -u origin mastergit@git.*.com'... 阅读全文
posted @ 2015-08-04 12:47 开心星 阅读(1536) 评论(0) 推荐(0) 编辑
摘要: 学习tornado有一周多了,自己按着demo中的例子手动搬代码,收获还是有的,加深了理解。demo:http://demo.pythoner.com/itt2zh/ch8.html大概明白了它怎么工作后,开始部署一个线上环境跑跑。 nginx: 分配客户端请求给upstream组中列出的To... 阅读全文
posted @ 2015-07-27 18:31 开心星 阅读(2093) 评论(0) 推荐(0) 编辑
摘要: 问题一:$ makexsltproc --output phtml/ param.xsl ./pxml/mainbook.xmlmake: xsltproc: Command not foundmake: *** [all] Error 127问题二:$ makexsltproc --output ... 阅读全文
posted @ 2015-06-24 16:26 开心星 阅读(1924) 评论(0) 推荐(0) 编辑
摘要: 一. install python1) check install or not在mac终端输入命令:which python 即可查看python的路径2)未安装时,手动下载安装包 地址:https://www.python.org/downloads/ 选择下载 Mac OS X 64-bit... 阅读全文
posted @ 2015-06-22 18:28 开心星 阅读(888) 评论(0) 推荐(0) 编辑
摘要: 情景1:现在有一个道具商店,共有10个道具可购买。玩家可使用某道具或钻石刷新道具商店中的道具,或者系统会每隔2小时赠送一次刷新次数。问题1:如何实现间隔2小时实时刷新?from datetime import datetimedef cal_count(timestamp): now_dt ... 阅读全文
posted @ 2015-06-01 15:02 开心星 阅读(438) 评论(0) 推荐(0) 编辑
摘要: 前言我准备用stackless模拟游戏玩家登陆/注册等行为,测试游戏服务器的性能。但是在安装stackless的过程中遇到了很多问题,特此记录下来,也分享给需要的朋友。关于stacklessStackless Python is an experimental implementation of t... 阅读全文
posted @ 2015-05-21 14:58 开心星 阅读(692) 评论(0) 推荐(0) 编辑