摘要:
参考: https://docs.python.org/2/howto/logging.html#logging-basic-tutorial https://docs.python.org/2/library/logging.config.html#logging-config-api https 阅读全文
摘要:
参考: 1. The Clean Architecture in Python (Brandon Rhodes) 2. Python Best Practice Patterns (Vladimir Keleshev) 3. Transforming Code into Beautiful, Idi 阅读全文
摘要:
PooledDB 有这么几个参数 mincached : the initial number of idle connections in the pool (the default of 0 means no connections are made at startup) maxcached: 阅读全文
摘要:
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 阅读全文
摘要:
Item 14: Prefer Exceptions to Returning None Functions that returns None to indicate special meaning are error prone because None and other values (e. 阅读全文
摘要:
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 阅读全文
摘要:
参考: 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 阅读全文
摘要:
主要参考: https://blog.madewithlove.be/post/webpack-your-bags/ 起因: 作为运维狗, 对前端一窍不通但心向往之, 最近做一个Dashboard, 注意到 bootstrap, echarts, vuejs 都提供 npm 的下载, 最开始是手动复 阅读全文
摘要:
mysql由brew安装, 期间好像自动更新了一次 然后再次执行mysql_secure_installation, 输入root密码后报错, 重装mysql还是不行 Error: Access denied for user 'root'@'localhost' (using password: 阅读全文