自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(21)
  • 收藏
  • 关注

原创 [caffe with docker][02] use the mnist caffemodel with python

here I’ll tell you how to use the mnist caffemodel with opencv-python 3.3+1. transport the vaild files from caffe container to workdirthe valid files are the two files marked with red rectangl...

2018-05-23 23:23:37 210

原创 [caffe with docker][01] train demo, the mnist dataset

Hi, every one, here will be a series for record my learning process of caffe with docker. The reason why using docker, not with a bare metal like linux or windows, is just cuz the installation is t...

2018-05-23 21:17:00 271

原创 opencv-python使用基于caffe的训练模型处理视频流

pre notice to visit the orignal article, please click here A gentle guide to deep learning object detection things need to be clarified: the cv2 version must be 3.3+, no metter python2 or pytho...

2018-05-22 23:29:02 1722 4

原创 python实现 快速傅里叶变换(fft)、滤波器设计(butter/chebv)

频谱分析fft的意义在于频谱分析,基于python实现的fft、filter代码如下。其中滤波器分别用了巴特沃斯和契比雪夫二个设计,参数见源码的解释。比较复杂的是契比雪夫的第二个参数的意义。官方原文的解释为The maximum ripple allowed below unity gain in the passband. Specified in decibels, as a positi...

2018-04-19 23:05:14 9553 5

原创 基于多组数据的,任意指定key组合的,数目统计函数python实现

背景说明:name sex agesakura f 17yuki f 16naka f 16suzumi m 17 希望基于age为第一key,sex为第二key统计学生数目,得到如下数据17 f 117 m 116 f 2其实此数据可以通过字典表达,即为{...

2018-04-19 23:00:12 514

原创 mongodb python client basically version

菜鸟教程详细教程# coding=utf-8import pymongofrom pymongo import MongoClientfrom datetime import datetimeimport tracebackclass MongodbClient(object): """ for details: http://www.runoob.com...

2018-04-13 22:30:35 223

原创 带有时间的DataFrame绘图及excel的单元格设置显示标准时间

1. 带有时间的DataFrame绘图 python code for pandas.Dataframe column data visulize with a timestamp format time index/column. (orginal data is csv seprated with “,”)import matplotlib.pyplot as plt imp...

2018-03-14 21:21:47 1155 1

原创 leetcode刷题

1. Two Sum Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have exactly one solution, and you may not...

2018-03-10 21:06:23 189

原创 python读写字典到文件的汉字兼容

let’s see the code below#coding=utf-8import codecsimport jsondef load_json(json_file="test.json"): with open(json_file, "r") as f: return eval(f.read())def save_json(json_dict, ...

2018-03-05 21:51:57 448 1

原创 阿里云pip源 | 阿里源

pip的源阿里云的pip源,配置到自己电脑里面的pip.ini中即可,当然,如果直接访问下载whl包自己安装的话,也不是不可以。另外,这个如果仅仅访问阿里源,其实也有很多意想不到的有意思的东西。

2018-02-07 22:25:14 2136

原创 linux/container/k8s-pod中挂载windows远程共享目录

基础信息windows远程共享目录为//101.100.129.159/publicwindows用户名密码分别为admin和pwd待挂载的文件夹已经创建,为/remote_dirlinux直接使用的基础命令,先创建/remote_dir文件夹,然后使用cifs的格式挂载远程磁盘mount -t cifs -o username=admin,password="

2018-02-03 22:14:22 1640 1

原创 awk和xargs在清除docker残留container时的妙用

清除全部images很多时候docker会残留很多垃圾镜像,用简单的docker ps是看不到的,得用docker ps -a才能看到,那些事已经dead的container,得用rm命令才能清除。但是如果很多的话,一个个的清除真的好恶心。root@HSH1000054456:~/rke# docker ps -aCONTAINER ID IMAGE COMMAND CREATED ST

2018-02-03 22:02:09 2264

原创 ssh远程主机秘钥失效的解决方法

问题描述A机器通过ssh-copy-id root@IP(B)添加了链接到B机器的ssh秘钥。但是某天,B机器的密码修改或者机器重装,此时,在A机器上再次ssh IP(B)会报类似如下错误 ssh IP(B)@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ WARNING: POSSIBLE DNS S

2018-02-02 10:44:02 21477

原创 基于docker搭建kafka服务器集群

1. 安装docker-compose参考我之前的帖子2. docker-compose.yml脚本配置zookeeper: image: wurstmeister/zookeeper ports: - "2181:2181"kafka: image: wurstmeister/kafka ports: - "9092:9092"

2018-02-01 14:29:23 2670 1

转载 docker使用aliyun加速下载镜像

Docker 镜像加速器我们使用Docker的第一步,应该是获取一个官方的镜像,例如mysql、wordpress,基于这些基础镜像我们可以开发自己个性化的应用。我们可以使用Docker命令行工具来下载官方镜像。但是因为网络原因,我们下载一个300M的镜像需要很长的时间,甚至下载失败。因为这个原因,阿里云容器Hub服务提供了官方的镜像站点加速官方镜像的下载速度。

2018-01-21 19:26:54 815 1

原创 win的linux虚拟机中通过docker搭建wordpress博客,并在win中通过nginx反向代理对外提供服务

1. linux中通过docker搭建wordpress博客默认linux电脑中已经安装好了docker,如果没有,请点击 docker安装教程。整个完成之后的网络关系如下    1.1 安装mysql在root账户下执行以下命令,设置密码为123456docker run -p 3306:3306 --name some-mysql -e MYSQL_R...

2018-01-21 01:33:41 1470

原创 通过python巧妙的递归获取文件夹中的文件/文件夹的方法

os.walk(top, topdown=True)top: 需要查询的文件夹路径topdown: 默认为True,用于设置返回list的顺序,True表示从根目录开始,False根目录在最后。返回值: 递归的list对象,3维元组列表,每个元素格式如下(dirpath, dirnames, filenames)(文件夹路径, 文件夹名字, 文件名)对于某如下格式文

2018-01-08 11:27:17 2463

原创 Ubuntu 14.04 apt-get更换阿里云源

废话不多说,下面的代码贴到命令行即可mv /etc/apt/sources.list /etc/apt/sources.list.bakcat > /etc/apt/sources.list << EOF deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse deb http:

2018-01-07 21:09:47 10495

原创 给虚拟的linux开启ssh登录

前言通常来说,windows中使用vmware安装了linux之后,在vmware中操作linux很自然,比如Ubuntu桌面版的UI,那必须用vmware访问。不过大部分场景下,都是要用terminal操作的,所以如果还是用vmware的话,就一点儿也不优雅了。因为画面是这样的。。。所以,通过xshell去访问虚拟linux,是非常完美的选择。1. xshel

2018-01-06 22:48:43 1145

原创 docker有何用?三个demo带你感受docker

docker可以让你从系统环境的无穷苦海中解脱出来,通过docker,可以轻松的实现应用的快速部署。docker的安装,请参考帖子:Ubuntu14.04LTS/centos7安装docker1.12.51.hello-word安装教程里,作为测试程序的hello-word其实就是一个小应用了。2. let's chat!let's chat是个很简单的开源聊天

2018-01-06 21:36:02 4781

原创 Ubuntu14.04LTS/centos7安装docker1.12.5

注:docker安装需要root权限1. ubuntu14.04LTS(1) 不建议用apt-get方式安装的理由不建议apt-get方式安装,因为版本其实很不好控制,而且往往版本很老,且不同的版本apt-get install xxx的xxx的命令根本不一致。以当前我的这台VPS为例,使用apt-cache dump | grep docker命令,查看可

2018-01-06 20:23:09 1381

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除