1. 定义 依赖倒置原则(Dependence Inversion Principle,DIP)是Object Mentor公司总裁罗伯特·马丁(Robert C.Martin)于1996年在C++ Report上发表的文章。 依赖倒置原则的原始定义:高层模块不应该依赖底层模块,两者都应该依赖抽象; ...
分类:
其他好文 时间:
2020-01-04 16:16:20
阅读次数:
183
https://sspai.com/post/46957 ...
分类:
其他好文 时间:
2020-01-04 12:55:58
阅读次数:
64
Find the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct element. Example ...
分类:
其他好文 时间:
2020-01-03 21:27:13
阅读次数:
104
Problem: In web UI automation testing, we always need to upload files, it will work well on local machines, but doesn't work on remote node machines w ...
分类:
系统相关 时间:
2020-01-03 13:54:50
阅读次数:
86
我是用kubeadm安装的k8s,现在通过Aqua扫描出相关配置问题,需要修改kubelet的启动参数; 默认配置文件名为:10-kubeadm.conf #vim /usr/lib/systemd/system/kubelet.service.d/10-kubeadm.conf # Note: T ...
分类:
其他好文 时间:
2020-01-02 19:00:21
阅读次数:
503
1. The collection of Linkun's [1]:1.1 How are you doing.This is a very good habit, to greet my friend on the road, so that you and I will not appear s ...
分类:
其他好文 时间:
2020-01-01 20:32:43
阅读次数:
77
三大核心概念: 镜像(Image):创建Docker容器的基础 容器(Container):运行和隔离应用 Note: 镜像本身是只读的。容器从镜像启动的时候,会在镜像的最上层创建一个可写层。 仓库(Repository):集中存放镜像文件的场所。每个仓库存放一类镜像,通过标签(tag)区分 Not ...
分类:
其他好文 时间:
2020-01-01 20:16:49
阅读次数:
60
你怎么那么饥渴? 最近看到一句话很经典的话:没钱的男生也花心,不物质的女生也没得到爱情。然后送给自己的话是:二零二零年,二十二岁。跟喜欢的人交朋友,和有趣的人一起玩。你问我为什么这么努力,因为我不想跟屌丝打交道。后来又看到一个朋友圈说的是:2020年该走的走,该来的来!瞬间就感觉这个世界不过如此,仅 ...
分类:
其他好文 时间:
2020-01-01 18:36:18
阅读次数:
116
nginxGitHub地址:https://github.com/MingA21/Note/blob/master/%E7%AC%94%E8%AE%B0/%E4%B8%AD%E9%97%B4%E4%BB%B6/nginx.md 1. 简介1.1 > 来源 ? 为了减轻传统WEB项目中单节点的服务压力 ...
分类:
其他好文 时间:
2019-12-30 19:41:15
阅读次数:
87
[TOC] rest_framework框架之认证的使用和源码实现流程 一、认证功能的源码流程 (一)、创建视图函数 Note 创建视图函数后,前端发起请求,url分配路由,执行视图类,视图类中执行对应方法必须经过dispatch()即调度方法 from rest_framework.views i ...
分类:
其他好文 时间:
2019-12-30 19:21:43
阅读次数:
53