一:概念 生产者消费者模式是java并发编程中很经典的并发情况,首先有一个大的容器,生产者put元素到 容器中,消费者take元素出来,如果元素的数量超过容器的容量时,生产者不能再往容器中put元素 ,处于阻塞状态,如果元素的数量等于0,则消费者不能在从容器中take数据,处于阻塞状态。 二:示例 ...
分类:
其他好文 时间:
2017-09-16 23:19:02
阅读次数:
212
Higher Order Reducers are simple reducer factories, that take a reducer as an argument and return a new reducer. In that new reducer, you can customiz ...
分类:
其他好文 时间:
2017-09-15 10:16:29
阅读次数:
186
$课文65 小象对警察 683. Last Christmas, the circus owner, Jimmy Gates, decided to take some presents to a children's hospital. 去年圣诞节,马戏团老板吉米.盖茨决定送些礼物给儿童医院。 6 ...
分类:
其他好文 时间:
2017-09-14 10:47:13
阅读次数:
201
1、此方式会使得服务器处于不安全的情况,请尽量保证在安全的环境下进行,因为,此方式,会使得任何人任意地连接MySQL数据库。 2、#vim /etc/my.cnf 在【mysqld】的段中,加上skip-grant-tables 保存并且退出。 3、重新启动mysqld #service mysql ...
分类:
数据库 时间:
2017-09-14 10:37:34
阅读次数:
215
The man who passes the sentence should swing the to look sword.If you would take a man's life,you owe it to him to look into his eyes and hear his fin ...
分类:
其他好文 时间:
2017-09-14 00:43:56
阅读次数:
135
前情:入职的当天,前任就离职了,除了留下IP地址和域名的对应关系和几个ftp账号密码以外啥都没有,因为公司和他有些利益没有结算清楚,所以很多问题也不配合交接。无奈重置官网mysql的root密码 步骤1:在少人使用的时候 vim /etc/my.cnf 在[mysqld]的段中加一句:skip-gr ...
分类:
数据库 时间:
2017-09-13 11:52:54
阅读次数:
218
1、停止mysql服务器 sudo /opt/lampp/lampp stopmysql 2、使用`--skip-grant-tables' 参数来启动 mysqld sudo /opt/lampp/sbin/mysqld --skip-grant-tables 3、再开一个终端(在终端中直接右键+ ...
分类:
数据库 时间:
2017-09-11 13:11:34
阅读次数:
201
http://www.cnblogs.com/lopezycj/archive/2012/05/16/unity3d_tuchao.html https://forum.unity3d.com/threads/time-range-447406-for-translation-curve-s-on- ...
分类:
其他好文 时间:
2017-09-09 15:24:23
阅读次数:
555
@echoofffor/f"skip=1eol=;tokens=1-9delims=,"%%ain(c:\1.csv)dodsaddusercn=%%a,ou=user,ou=horizon,dc=pvs,dc=com-upn%%b@pvs.com-samid%%b-pwd%%c-ln%%d-mustchpwdyes#这是批量添加用户的脚本,需要从1.csv文件中取数据,其中%%acsv文件中的A列,定义了姓名%%bcsv文件中的B..
分类:
其他好文 时间:
2017-09-09 14:29:38
阅读次数:
196
其实想要重置 5.7 的密码很简单,就一层窗户纸: 1、修改 /etc/my.cnf,在 [mysqld] 小节下添加一行:skip-grant-tables=1 这一行配置让 mysqld 启动时不对密码进行验证 2、重启 mysqld 服务:systemctl restart mysqld 3、 ...
分类:
数据库 时间:
2017-09-09 12:55:43
阅读次数:
206