1.redis_discovery.sh自动发现脚本 #!/bin/bash ARGS=("$@") DISCOVERY_TYPE=$1 REDIS_CLI_DEFAULT_PATH="usr/bin/redis-cli" STBDBUF_DEFAULT_PATH="/usr/bin/stdbuf" ...
分类:
其他好文 时间:
2020-11-02 10:00:20
阅读次数:
20
参考地址:https://www.jianshu.com/p/6f3e3e989959 一、ElasticSearch 安装,安装机器: 192.168.10.107 192.168.10.108 192.168.9.178 yyapp@H-LAPP-V307 config]$ cat elasti ...
分类:
其他好文 时间:
2020-11-02 09:42:10
阅读次数:
23
前边有大概介绍过materialize,以下是一个简单的试用(基于官方文档,官方同时也提供了容器的运行环境) 环境准备 docker-compose 文件 version: "3" services: materialize: image: materialize/materialized:v0.5 ...
分类:
其他好文 时间:
2020-11-01 21:34:05
阅读次数:
32
前言: ModelViewSet 是对APIView封装 ModelSerializer是对Serializer的封装 1 APIview使用 1.1 在 user/urls.py 中添加路由 urlpatterns = [ path('apiview/', views.UserInfoViewSe ...
小小分个类 #一:图论 ##1. tarjan 这里推荐这篇博客:[https://blog.csdn.net/mengxiang000000/article/details/51672725] ####例:受欢迎的牛[https://www.luogu.com.cn/problem/P2341] ...
分类:
其他好文 时间:
2020-11-01 21:28:37
阅读次数:
18
一、手动分页 django从ciew向template传递HTML字符串的时候,django默认不渲染此HTML,为了防止这串字符串里有恶意攻击的代码,所以要使用mark_safe函数 from django.utils.safestring import mark_safe def view(re ...
分类:
其他好文 时间:
2020-11-01 21:26:57
阅读次数:
23
上代码: #coding=utf-8 import cv2 import dlib path = "imagePath/9.jpg" img = cv2.imread(path) gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) #人脸分类器 detector ...
分类:
编程语言 时间:
2020-11-01 20:57:05
阅读次数:
29
tf git view /collection:http://tfs.mycompany.com.cn /teamproject:devops /repository:hellomaven /path:src/main/java/com/mycompany/hellomaven/App.java / ...
分类:
其他好文 时间:
2020-11-01 10:18:19
阅读次数:
16
网上太多教程了,试了一溜十三招基本上都挂了。 还是自己写一套吧! 安装和卸载NVIDIA驱动 首先要确保驱动已经卸载干净 sudo apt-get purge nvidia* sudo apt-get autoremove 检查自己GPU版本,之后到官网去下载,这种办法安装比较稳妥,其他网络安装办法 ...
分类:
其他好文 时间:
2020-11-01 09:58:16
阅读次数:
18
一, 文件操作 1、读取文件 引用fs模块 let fs = require('fs'); 异步的方式读取文件 fs.readFile(path,fd,buffer,offset.length,position,callback) fd:通过fs.open() 方法返回文件的描述 path:读取的文 ...
分类:
其他好文 时间:
2020-11-01 09:39:20
阅读次数:
19