摘要:
连接断开的频率太高导致报错,可以在每次连接之间sleep,或者保持一个长连接。 ref:https://stackoverflow.com/questions/24884438/2003-cant-connect-to-mysql-server-on-127-0-0-13306-99-cannot-
阅读全文
posted @ 2017-08-28 10:30
Go_Forward
阅读(598)
推荐(0)
posted @ 2017-08-24 19:19
Go_Forward
阅读(265)
推荐(0)
摘要:
from: http://agiliq.com/blog/2013/10/producer-consumer-problem-in-python/ We will solve Producer Consumer problem in Python using Python threads. This
阅读全文
posted @ 2017-08-23 14:18
Go_Forward
阅读(278)
推荐(0)
摘要:
from: http://www.pyimagesearch.com/2016/10/24/ubuntu-16-04-how-to-install-opencv/ Step #1: Install OpenCV dependencies on Ubuntu 16.04 Most (in fact,
阅读全文
posted @ 2017-08-15 12:04
Go_Forward
阅读(900)
推荐(0)
摘要:
ubuntu运行sudo pip install MySQL-python安装MySQLdb时报错:Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-OeXtTL/MySQL-python/ 解
阅读全文
posted @ 2017-08-15 10:18
Go_Forward
阅读(287)
推荐(0)
摘要:
from: http://blog.csdn.net/lvhong84/article/details/23936697 最近项目准备用到elasticsearch, 首先需要搞清楚elasticsearch的一些概念,在网上发现这篇文章不错,以通俗易懂的语言讲明白了mapping的概念。 默认ma
阅读全文
posted @ 2017-08-11 17:19
Go_Forward
阅读(436)
推荐(0)
摘要:
from: http://blog.csdn.net/fuchaosz/article/details/51919607
阅读全文
posted @ 2017-08-07 20:11
Go_Forward
阅读(155)
推荐(0)
摘要:
ubuntu在切换输入法使用super + space的时候经常会在按下super的时候弹出luncher,影响操作,解决方法为禁用super启动luncher。 1.安装compizconfig-settings-manager, sudo apt-get install compizconfig
阅读全文
posted @ 2017-08-07 11:29
Go_Forward
阅读(1303)
推荐(0)
摘要:
之前按照先装windows后装ubuntu的方式装的系统,都可以引导到ubuntu,无论是将ubuntu挂在到/boot在windows用easy BCD建立ubuntu引导,还是将ubuntu挂在到硬盘下面,用ubuntu引导windows都可以正常使用双系统,但是今天在thinkpad E470
阅读全文
posted @ 2017-08-01 19:37
Go_Forward
阅读(8059)
推荐(0)
摘要:
在Python2 中,可以通过使用**kwargs,在函数中配合使用kwargs.pop(key, False)实现获取限制关键字参数值,如果未传入则设置默认值,当所有需要的关键字参数都pop完毕,如果kwargs还有其它内容则raise ValueError.
阅读全文
posted @ 2017-07-29 22:57
Go_Forward
阅读(1607)
推荐(0)