上一页 1 ··· 9 10 11 12 13 14 下一页
摘要: #!/usr/bin/env python# -*- encoding: utf-8 -*-# Created on 2018-11-08 09:56:40# Project: product from pyspider.libs.base_handler import *import reimpo 阅读全文
posted @ 2018-11-09 17:55 yangly 阅读(320) 评论(0) 推荐(0)
摘要: TP-LINK的交换机LAN口连接电脑,设置交换机IP为192.168.2.1,为以后方便管理不设置自动获取IP地址,不设置DHCPLAN口连接路由器网线,不是WAN口其他电脑也连接LAN口,即可上网 https://www.192ly.com/qiu-zhu/two-routers-connect 阅读全文
posted @ 2018-11-09 17:43 yangly 阅读(821) 评论(0) 推荐(0)
摘要: gitbucket 一种代码版本控制工具下载gitbuckethttps://gitbucket.github.io/ 下载tomcathttp://tomcat.apache.org/ 把gitbucket.war放到tomcat的webapps下,去bin里启动tomcat,自动解压war包(在 阅读全文
posted @ 2018-10-12 12:41 yangly 阅读(5610) 评论(0) 推荐(0)
摘要: from xml.etree import ElementTree as et import json def readxml_et(): tree = et.ElementTree(file="D:\\vscode\\xml2json\\Annotations\\timg.xml") root = 阅读全文
posted @ 2018-09-29 11:30 yangly 阅读(7295) 评论(0) 推荐(1)
摘要: import cv2#file_list = ['{}'.format(os.path.join(file_dir, dir, file_name)) for dir in os.listdir(file_dir) for file_name in os.listdir(os.path.join(f 阅读全文
posted @ 2018-09-11 10:32 yangly 阅读(4647) 评论(0) 推荐(0)
摘要: 客户端安装2881、[root@Client etc]# vi /etc/rsyncd.conf (没有该文件需要创建)uid = rsyncgid = rsyncuse chroot = nomax connetctions = 200timeout = 100pid file = /var/ru 阅读全文
posted @ 2018-08-09 16:40 yangly 阅读(857) 评论(0) 推荐(0)
摘要: 1、电脑远程建不了文件夹,cd bash: 无法为立即文档创建临时文件: 只读文件系统 。去本机重启,显示(initramfs)命令行并且其中有一段内容为 root file system requires manual fsck fsck -f /dev/sda1 后续一溜y https://bl 阅读全文
posted @ 2018-08-06 15:50 yangly 阅读(282) 评论(0) 推荐(0)
摘要: nginx搭建流媒体服务器 进入新建的文件夹prog 1、下载nginx-rtmp-modulegit clone https://github.com/arut/nginx-rtmp-module.git 2、下载nginxwget http://nginx.org/download/nginx- 阅读全文
posted @ 2018-08-01 19:36 yangly 阅读(409) 评论(0) 推荐(0)
摘要: RabbitMQ在Ubuntu 16.04下的安装与配置 安装PIP3sudo apt-get install python3-pip 安装客户端rabbitmq sudo pip3 install pika下载rabbitmq-serversudo apt-get install rabbitmq 阅读全文
posted @ 2018-08-01 19:35 yangly 阅读(105) 评论(0) 推荐(0)
摘要: 实现图像反色: 实现原理: 读取每个像素值P,再将255-P写入新的图片中; 对于灰度图,只有一个通道,所以 img2[i,j] = (255-image[i,j]) ; 对于彩色图片,则要RGB值分别做处理,255-image[i,j][0],255-image[i,j][1],255-image 阅读全文
posted @ 2018-07-04 18:48 yangly 阅读(126) 评论(0) 推荐(0)
上一页 1 ··· 9 10 11 12 13 14 下一页