1、使用pip安装第三方库过慢导致超时无法安装: pip install reportlab 出现: socket.timeout: The read operation timed out 原因: pip下载的时国外的资源,速度过慢,应该切换至国内镜像 2、解决方法: 更换 pip 源自国内镜像, ...
分类:
编程语言 时间:
2020-02-08 22:02:21
阅读次数:
296
这里报错主要是因为docker启动时需要默认开启selinux,但是可能由于安装某些应用,我们关闭了selinux,所以此时我们需要设置/etc/sysconfig/docker 将下图标黄位置改为false,即设置docker启动时默认不需要开启selinux # /etc/sysconfig/d ...
分类:
其他好文 时间:
2020-02-08 11:35:44
阅读次数:
94
查看pod状态如下图所示,当前状态为CreateContainerError。 通过kube describe命令去查看Pod的状态发现没有提示任何错误。但是当通过命令kube logs查看pod的日志时,可以看到提示日志“Failed to update lock: Operation canno ...
分类:
Web程序 时间:
2020-02-07 10:18:27
阅读次数:
280
Basic Command Buffer Operation 调用指定的api, 驱动将命令放入指定的buff当中。 在其他图形API(dx,or opengl) ,glsetlinewidth驱动会将其他所有的事情都做掉。 Command Buffer Pools 好处: 1、避免频繁分配和释放; ...
分类:
数据库 时间:
2020-02-06 12:39:56
阅读次数:
96
Given a list of positive integers, the adjacent integers will perform the float division. For example, [2,3,4] -> 2 / 3 / 4. However, you can add any ...
分类:
其他好文 时间:
2020-02-05 09:32:59
阅读次数:
67
nil 标识符是不能比较的 package main import "fmt" func main() { fmt.Println(nil == nil) } .\nil.go:6:18: invalid operation: nil == nil (operator == not defined ...
分类:
编程语言 时间:
2020-02-04 18:41:08
阅读次数:
87
非常抱歉,今天早上 6:37~8:15 期间,由于获取网站首页博文列表的 SQL 语句出现突发的查询超时问题,造成访问网站首页时出现 500 错误,由此给您带来麻烦,请您谅解。故障的情况是这样的。故障期间日志中记录了大量下面的错误。 ...
分类:
数据库 时间:
2020-02-03 15:25:19
阅读次数:
82
Navicat 处理数据的时候出现了这个异常: Illegal mix of collations (utf8mb4_general_ci,IMPLICIT) and (utf8mb4_0900_ai_ci,IMPLICIT) for operation '=' 原因: mysql8.0.1之后的默 ...
分类:
数据库 时间:
2020-02-02 17:22:59
阅读次数:
89
取模运算及取余运算 取余运算(Complementation)即我们小学时学的数学算术概念,而取模运算(Modulus Operation)常用于程序设计中 公式 a%b = a (a/b b) 取整运算 要明白取模运算和取余运算之间的区别,首先要了解取整运算(Round Operation) 取整 ...
分类:
其他好文 时间:
2020-02-02 14:11:29
阅读次数:
836
STL及一些常用函数的基本用法 [TOC] 1.vector(向量)的基本用法 vector是C++的STL中一个常见的容器,使用时需要加上\ include\的头文件,其可以动态储存数据,既可以很方便的实现插入,删除等基本操作,其基本语法如下: c++ include include using ...
分类:
其他好文 时间:
2020-02-02 14:00:18
阅读次数:
108