摘要: brew install php56-mongo之后,启动php报这个错误 Warning: PHP Startup: mongo: Unable to initialize module 解决办法是source安装mongo扩展。 brew reinstall php56-mongo --buil 阅读全文
posted @ 2016-05-19 16:04 怎么也得过啊 阅读(2137) 评论(0) 推荐(0) 编辑
摘要: 在grid layout的时候,不同屏幕如果布局不同,比如:md设备我们想布局4列,而xs设备我们想布局2列,那么可以使用clearfix来换行。 bootstrap是移动优先的。 label for的作用 label一般是用在form里面的。for属性用来和一个表单元素来绑定,绑定后,当我们点击该 阅读全文
posted @ 2016-05-06 12:46 怎么也得过啊 阅读(224) 评论(0) 推荐(0) 编辑
摘要: #test 选择一个id=test的对象 .test选择类名为test的标签 p.test选择所有p标签下面的test类标签 class and id不要用数字开头,firefox不支持 样式的层叠优先级别:由低到高 可以简写为 text-align: justify 每一行被展开为宽度相等,左,右 阅读全文
posted @ 2016-05-03 13:14 怎么也得过啊 阅读(301) 评论(0) 推荐(0) 编辑
摘要: 安装 pip install supervisor 创建模板配置文件 echo_supervisord_conf > /etc/supervisord.conf 配置program,directory参数可以在该目录下运行program。   阅读全文
posted @ 2016-03-14 16:56 怎么也得过啊 阅读(150) 评论(0) 推荐(0) 编辑
摘要: PEP8 阅读全文
posted @ 2016-03-09 10:57 怎么也得过啊 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 原文链接 With语句是什么? 有一些任务,可能事先需要设置,事后做清理工作。对于这种场景,Python的with语句提供了一种非常方便的处理方式。一个很好的例子是文件处理,你需要获取一个文件句柄,从文件中读取数据,然后关闭文件句柄。 如果不用with语句,代码如下: file = open("/t 阅读全文
posted @ 2016-03-02 13:22 怎么也得过啊 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 原文链接 阅读全文
posted @ 2016-03-02 13:10 怎么也得过啊 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 框架默认运行的的downloadmiddleware如果需要关闭,需要在 DOWNLOADER_MIDDLEWARES 当中设置为None http_proxy要么通过Request.meta设置 valid per request,要么通过环境变量设置全局生效。 阅读全文
posted @ 2016-02-24 11:59 怎么也得过啊 阅读(184) 评论(0) 推荐(0) 编辑
摘要: cd /dev sudo chown my_user_name:admin bp* 重启wireshark就可以了 阅读全文
posted @ 2016-02-19 14:32 怎么也得过啊 阅读(165) 评论(0) 推荐(0) 编辑
摘要: list操作,如果list.remove(x) x不在list里面,则会报错 list常用操作 append remove sort reverse tuple和list的区别 一、首先,看看三者最基本的区别: List是顺序的,可变的。 Dictrionary是无顺序的,可变的。Dictionar 阅读全文
posted @ 2016-02-18 10:27 怎么也得过啊 阅读(135) 评论(0) 推荐(0) 编辑