zombodb 是一个强大的pg 扩展,我们可以像操作数据库一样操作es,以下是pgspider 与zombodb 的构建 说明,使用最新版本v5.6.16-1.0.20 构建失败,使用了v.40 dockerfile 老样子基于已经构建好的pgspider base 镜像 FROM dalongr ...
分类:
数据库 时间:
2020-02-13 12:52:40
阅读次数:
124
1、安装: 1.1、解压zookeeper包 1.2、创建zk数据存储目录:mkdir -p /data/soft/zkData 1.3、配置zoo.cfg文件(zk安装目录下的conf目录中) 1.3.1、将zoo_sample.cfg改成zoo.cfg:mv zoo_sample.cfg zoo ...
分类:
其他好文 时间:
2020-02-13 11:24:18
阅读次数:
81
jmeter安装后,运行后,发现查看结果树左侧的请求名称显示为空,sample start 也显示有问题 1970-01-01 通过响应数据查找原因,发现是Host多填了个 / 去掉/后运行正常 ...
分类:
其他好文 时间:
2020-02-13 11:20:46
阅读次数:
162
特征匹配 Brute-Force蛮力匹配 import cv2 import numpy as np import matplotlib.pyplot as plt %matplotlib inline img1 = cv2.imread('box.png', 0) img2 = cv2.imrea ...
分类:
其他好文 时间:
2020-02-12 22:06:49
阅读次数:
118
1. 数据科学领域中常用的python库 Numpy库:数据运算的基础库,运行效率高(底层C语言,高效index) Scipy库:实现了常用的科学计算方法(线性代数,傅里叶变换,信号和图像处理) Pandas库:分析数据的利器,高级数据结构(Series,DataFrame) Matplotlib库 ...
分类:
编程语言 时间:
2020-02-12 19:04:47
阅读次数:
101
对于英语不好的同学建议先改为简体中文再进行使用 1、添加->threads->线程组(控制总体并发) 线程数:虚拟用户数。一个虚拟用户占用一个进程或线程 准备时长(Ramp-Up Period(in seconds)):全部线程启动的时长,比如100个线程,20秒,则表示20秒内100个线程都要启动 ...
分类:
其他好文 时间:
2020-02-12 12:34:23
阅读次数:
74
一、线性回归 1、模型 2、损失函数 3、优化函数-梯度下降 #!/usr/bin/env python # coding: utf-8 import torch import time # init variable a, b as 1000 dimension vector n = 1000 a ...
分类:
其他好文 时间:
2020-02-12 10:53:33
阅读次数:
110
To prepare for PAT, the judge sometimes has to generate random passwords for the users. The problem is that there are always some confusing passwords ...
分类:
其他好文 时间:
2020-02-11 18:50:48
阅读次数:
76
问题:输入一个整数n,表示是n边形,然后是按照逆时针顺序给出的n个顶点的坐标(x1, y1, x2, y2... xn, yn),为了简化问题,这里的所有坐标都用整数表示。n = 0 ,表示结束输出:n 边形的面积。 Sample Input3 0 0 1 0 0 1 4 1 0 0 1 -1 0 ...
分类:
其他好文 时间:
2020-02-10 17:42:31
阅读次数:
109
1010 Radix (25分) Given a pair of positive integers, for example, $6$ and $110$, can this equation $6 = 110$ be true? The answer is , if 6 is a decimal ...
分类:
其他好文 时间:
2020-02-10 13:52:09
阅读次数:
60