cv::Mat transparentImage; cv::cvtColor(image, transparentImage, CV_BGR2BGRA); // find all white pixel and set alpha value to zero: for (int y = 0; y < ...
分类:
其他好文 时间:
2021-01-22 11:46:37
阅读次数:
0
环境变量设置 设置root用户的密码 端口映射 处理用户远程连接登录异常 create user 'taishi'@'%' identified by 'aransfar@123'; grant all privileges on *.* to 'taishi'@'%' with grant opt ...
分类:
数据库 时间:
2021-01-19 11:46:37
阅读次数:
0
1. 配置双主: 双机名 win89.inno.com win88.inno.com 准备账号 SET SQL_LOG_BIN=0; set password for 'root'@'localhost'='123456'; grant all privileges on *.* to root@' ...
分类:
数据库 时间:
2021-01-18 11:43:38
阅读次数:
0
一、EXPLAIN 做MySQL优化,我们要善用 EXPLAIN 查看SQL执行计划。 下面来个简单的示例,标注(1,2,3,4,5)我们要重点关注的数据 type列,连接类型。一个好的sql语句至少要达到range级别。杜绝出现all级别 key列,使用到的索引名。如果没有选择索引,值是NULL。 ...
分类:
数据库 时间:
2021-01-18 11:25:16
阅读次数:
0
本质: GDB 默认采用的是 all-stop 模式,即只要有一个线程暂停执行,所有线程都随即暂停; non-stop 模式,该模式下调试多线程程序,当某一线程暂停运行时,其它线程仍可以继续执行。 PS : ①只有 7.0 版本以上的 GDB 调试器,才支持 non-stop 模式。 ②在all-s ...
分类:
其他好文 时间:
2021-01-18 11:01:06
阅读次数:
0
/** * 为集合增加内容。 使用addALL()方法可以为一个集合增加内容,此方法可以接收可变参数,所以可以传递任意多的参数作为集合的内容 */ private static void test02() { List<String> all = new ArrayList<String>(); C ...
分类:
其他好文 时间:
2021-01-18 10:32:29
阅读次数:
0
1. su - db2inst1 2.db2 list db directory 3.db2 list node directory 4.db2 list tables for all/user 5.db2 set client connect (number) ...
分类:
数据库 时间:
2021-01-14 11:08:54
阅读次数:
0
1,在views 中定义一个接口(随便定义) 2,接口实例如下:(index是接口返回HTTPResponse,get_all_url是触发搜集url的函数) def index(request): from demo.urls import urlpatterns # 导入总路由的urlpatte ...
分类:
Web程序 时间:
2021-01-13 11:36:17
阅读次数:
0
下载 wget https://archive.apache.org/dist/rocketmq/4.5.1/rocketmq-all-4.5.1-bin-release.zip 安装 unzip rocketmq-all-4.5.1-bin-release.zip 启动 cd rocketmq-a ...
分类:
编程语言 时间:
2021-01-13 11:00:51
阅读次数:
0
最近才复习axios的时候,看到axios.all和axios.spread,感到既熟悉又陌生.因为很多时候,我们可能需要同时调用多个后台接口,就会高并发的问题,所以在这里让我好好复习一下. axios.all和axios.spread axios.all()、axios.spread()两个辅助函 ...
分类:
移动开发 时间:
2021-01-12 10:51:39
阅读次数:
0