1 HDU 2527 Safe Or Unsafe 1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 #include <cstdlib> 5 #include <algorithm> 6 #include <queue ...
分类:
其他好文 时间:
2017-10-26 22:47:49
阅读次数:
203
使用root用户登录mysql数据库出现如下报错ERROR1045(28000):Accessdeniedforuser‘root‘@‘localhost‘(usingpassword:YES)。解决方案:1.执行命令:servicemysqldstop;停止mysql服务2.加参数启动执行命令mysqld_safe--skip-grant-tables(注意:执行后会卡在当前终端上)3.在开..
分类:
数据库 时间:
2017-10-26 15:31:09
阅读次数:
326
iOS 7 之后苹果给 UIViewController 引入了 topLayoutGuide 和 bottomLayoutGuide 两个属性来描述不希望被透明的状态栏或者导航栏遮挡的最高位置(status bar, navigation bar, toolbar, tab bar 等)。这个属性 ...
分类:
其他好文 时间:
2017-10-26 11:42:15
阅读次数:
713
首先,我们用pip安装virtualenv: 然后,假定我们要开发一个新的项目,需要一套独立的Python运行环境,可以这么做: 第一步,创建目录: 第二步,创建一个独立的Python运行环境,命名为venv: 命令virtualenv就可以创建一个独立的Python运行环境,我们还加上了参数--n ...
分类:
其他好文 时间:
2017-10-25 19:42:34
阅读次数:
148
搭建了mariadb galera集群后,整个集群停掉后如何启动呢,我们要先启动那个节点呢,今天我尝试把集群机器全部停掉,然后任意启动一个节点,发现报如下的错误: 170620 21:32:55 [ERROR] WSREP: It may not be safe to bootstrap the c ...
分类:
数据库 时间:
2017-10-24 00:07:33
阅读次数:
342
转自:http://www.cnblogs.com/suntp/p/6473751.html 如果用gcc编译使用了POSIX thread的程序时,通常需要加额外的选项,以便使用thread-safe的库及头文件,一些老的书里说直接增加链接选项 -lpthread 就可以了。 而gcc手册里则指出 ...
分类:
其他好文 时间:
2017-10-23 20:44:09
阅读次数:
128
Asio - Portable networking and other low-level I/O, including sockets, timers, hostname resolution, socket iostreams, serial ports, file descriptors a ...
分类:
其他好文 时间:
2017-10-23 19:59:43
阅读次数:
145
Ubuntu14.04安装和使用 安装过程 解决多系统下grub-resuce问题(如下) 由于电脑已经安装了windows,那么安装ubuntu后,就会出现grub-resuce问题。解决办法如参考的两个链接。 参考: https://segmentfault.com/a/119000000732 ...
分类:
系统相关 时间:
2017-10-22 20:56:24
阅读次数:
612
27w/m 76words Kidnappers are rarely interested in Animals, but they recently took considerable interest in Mrs Eleanor Ramsay's cat. Mrs Eleanor Ramsa ...
分类:
其他好文 时间:
2017-10-20 10:16:26
阅读次数:
180
Requests is the only Non-GMO HTTP library for Python, safe for human consumption. Note The use of Python 3 is highly preferred over Python 2. Consider ...
分类:
编程语言 时间:
2017-10-19 12:26:46
阅读次数:
182