摘要: 参考: https://docs.python.org/2/howto/logging.html#logging-basic-tutorial https://docs.python.org/2/library/logging.config.html#logging-config-api https 阅读全文
posted @ 2016-09-04 00:52 Herbert_Kwok 阅读(292) 评论(0) 推荐(0) 编辑
摘要: 参考: 1. The Clean Architecture in Python (Brandon Rhodes) 2. Python Best Practice Patterns (Vladimir Keleshev) 3. Transforming Code into Beautiful, Idi 阅读全文
posted @ 2016-08-21 16:40 Herbert_Kwok 阅读(800) 评论(0) 推荐(0) 编辑
摘要: PooledDB 有这么几个参数 mincached : the initial number of idle connections in the pool (the default of 0 means no connections are made at startup) maxcached: 阅读全文
posted @ 2016-07-23 11:59 Herbert_Kwok 阅读(1840) 评论(0) 推荐(0) 编辑
摘要: Item 22: Prefer Helper Classes Over Bookkeeping with Dictionaries and Tuples For example, say you want to record the grades of a set of students whose 阅读全文
posted @ 2016-06-19 21:18 Herbert_Kwok 阅读(219) 评论(0) 推荐(0) 编辑
摘要: Item 14: Prefer Exceptions to Returning None Functions that returns None to indicate special meaning are error prone because None and other values (e. 阅读全文
posted @ 2016-06-19 10:12 Herbert_Kwok 阅读(230) 评论(0) 推荐(0) 编辑
摘要: Item 2: Follow the PEP 8 Style Guide Naming Expressions and Statements Always use absolute names for modules when importing them, not names relative t 阅读全文
posted @ 2016-06-18 13:17 Herbert_Kwok 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 参考: https://github.com/h2oai/h2o-2/wiki/Installing-python-2.7-on-centos-6.3.-Follow-this-sequence-exactly-for-centos-machine-only http://toomuchdata.c 阅读全文
posted @ 2016-05-21 09:40 Herbert_Kwok 阅读(635) 评论(0) 推荐(0) 编辑
摘要: 主要参考: https://blog.madewithlove.be/post/webpack-your-bags/ 起因: 作为运维狗, 对前端一窍不通但心向往之, 最近做一个Dashboard, 注意到 bootstrap, echarts, vuejs 都提供 npm 的下载, 最开始是手动复 阅读全文
posted @ 2016-04-03 17:32 Herbert_Kwok 阅读(4181) 评论(0) 推荐(0) 编辑
摘要: mysql由brew安装, 期间好像自动更新了一次 然后再次执行mysql_secure_installation, 输入root密码后报错, 重装mysql还是不行 Error: Access denied for user 'root'@'localhost' (using password: 阅读全文
posted @ 2016-02-14 21:29 Herbert_Kwok 阅读(1972) 评论(0) 推荐(0) 编辑