摘要: 年尾这几天自己研究并开发了一个基于Go语言的网关项目设计开发,并对其进行了开源,需要的小伙伴请点击:【Github地址】自主下载使用,README 中有还算详细的说明文档,本人不喜欢前端,所以也没有去找一个开源的后台页面接入,但提供了相应的数据添加接口,接口地址在项目【DOC】中说明,表结构设计也在 阅读全文
posted @ 2019-12-31 17:14 阿波罗一号 阅读(2010) 评论(0) 推荐(0) 编辑
摘要: go test 注释后必须多空出一行,也就是 // 下一行要预留为空行,否则go解析的时候会把下一行解析成注释 1. 条件build 举例 a.go b.go 上面两个go文件,在执行 go build -tags "test" 的时候,实际上是只执行 b.go +build 是值得条件变异,tes 阅读全文
posted @ 2019-09-18 22:09 阿波罗一号 阅读(1449) 评论(0) 推荐(0) 编辑
摘要: # Python 图片添加文字水印 from PIL import Image, ImageFont, ImageDraw img = Image.open("12.png") fnt = ImageFont.truetype("PingFang-SC-Regular.ttf", 60) draw = ImageDraw.Draw(img) draw.text((10, 25), u"测试H... 阅读全文
posted @ 2018-10-23 13:55 阿波罗一号 阅读(395) 评论(0) 推荐(0) 编辑
摘要: # coding:utf-8 import sys reload(sys) sys.setdefaultencoding('utf8') import cv2 # 待检测的图片路径 imagepath = "./images/1.jpg" # 获取训练好的人脸的参数数据,这里直接从GitHub上使用默认值 face_cascade = cv2.CascadeClassifier(r'/us... 阅读全文
posted @ 2017-12-21 11:31 阿波罗一号 阅读(2676) 评论(0) 推荐(0) 编辑
摘要: 录制视频 # coding:utf-8 import cv2 import sys import time reload(sys) sys.setdefaultencoding('utf8') time = time.strftime('%Y-%m-%d-%H-%M-%S', time.localtime(time.time())) cap = cv2.VideoCapture(0) cap.... 阅读全文
posted @ 2017-12-21 11:00 阿波罗一号 阅读(3205) 评论(0) 推荐(0) 编辑
摘要: 服务器准备:下述内容绑定 /etc/hosts 10.110.110.10 master 10.110.110.11 slave1 10.110.110.12 slave2 一 zookeeper搭建 zookeeper 下载地址:http://apache.fayea.com/zookeeper/ 阅读全文
posted @ 2017-07-01 13:20 阿波罗一号 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 服务器准备:下述内容绑定 /etc/hosts 10.110.110.10 master 10.110.110.11 slave1 10.110.110.12 slave2 操作用户准备:hbase 需要了解 Hadoop 是什么 1. 下载源码:mesos hadoop 源码并解压至 hadoop 阅读全文
posted @ 2017-07-01 12:54 阿波罗一号 阅读(298) 评论(0) 推荐(0) 编辑
摘要: 服务器准备:下述内容绑定 /etc/hosts 10.110.110.10 master 10.110.110.11 slave1 10.110.110.12 slave2 操作用户准备:root,hbase Mesos:分布式内核系统,apache mesos 在整个数据中心根据资源利用率和资源占 阅读全文
posted @ 2017-07-01 11:56 阿波罗一号 阅读(495) 评论(0) 推荐(0) 编辑
摘要: 依赖软件:autoconf/automake/m4/perl 非必需以来:libtool autoconf 是一个用于生成可以自动地配置软件源码包,用以适应多种UNIX类系统的shell脚本工具,其中autoconf依赖软件 m4,便于生成脚本。 automake是一个从Makefile.am文件自 阅读全文
posted @ 2017-04-09 20:47 阿波罗一号 阅读(559) 评论(0) 推荐(0) 编辑
摘要: 内容整理:go test 阅读全文
posted @ 2017-02-18 14:29 阿波罗一号 阅读(94) 评论(0) 推荐(0) 编辑