<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[TrZoey的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/TrZoey</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; TrZoey]]></copyright><item><title><![CDATA[使用Docker替代 vmware搭建虚拟机]]></title><link>https://blog.youkuaiyun.com/TrZoey/article/details/105851033</link><guid>https://blog.youkuaiyun.com/TrZoey/article/details/105851033</guid><author>TrZoey</author><pubDate>Wed, 29 Apr 2020 23:33:57 +0800</pubDate><description><![CDATA[背景
最近换了新电脑，需要搭虚拟机，刚好最近在看Docker，心想那我为什么不直接用Docker搭虚拟机环境呢，简单方便又省资源。说干就干。
拉取镜像
我这里DockerHub不搭梯子搭话上不去，直接pull镜像也很慢很慢，所以使用了网易云的镜像。这个镜像已经安装好了一些常用的工具，具体可以在网站中查看。
网易云镜像中心-centos
这里不得不夸一句，真的很良心，常用的镜像在主页都能看到。

拉...]]></description><category></category></item><item><title><![CDATA[如何查看mysql随机生成的初始密码？]]></title><link>https://blog.youkuaiyun.com/TrZoey/article/details/103427175</link><guid>https://blog.youkuaiyun.com/TrZoey/article/details/103427175</guid><author>TrZoey</author><pubDate>Fri, 06 Dec 2019 17:37:44 +0800</pubDate><description><![CDATA[键入指令：


sudo grep 'temporary password' /var/log/mysqld.log



结果：
2017-12-08T01:40:21.482269Z 1 [Note] A temporary password is generated for root@localhost: Ej7VxkEkF_,q






]]></description><category></category></item><item><title><![CDATA[JDK源码学习笔记——HashMap]]></title><link>https://blog.youkuaiyun.com/TrZoey/article/details/102978476</link><guid>https://blog.youkuaiyun.com/TrZoey/article/details/102978476</guid><author>TrZoey</author><pubDate>Fri, 08 Nov 2019 18:33:27 +0800</pubDate><description><![CDATA[JDK版本：13

参考
建议大家直接看这篇，写的太好了~

明星文章：美团技术团队——Java 8系列之重新认识HashMap

1 类图
HashMap


实现 java.util.Map 接口，继承 java.util.AbstractMap 抽像类。
实现 java.io.Serializable 接口。
实现 java.lang.Cloneable 接口。

顺便看看Map的4个常用...]]></description><category></category></item><item><title><![CDATA[数据结构与算法学习笔记——归并排序、快速排序]]></title><link>https://blog.youkuaiyun.com/TrZoey/article/details/102958874</link><guid>https://blog.youkuaiyun.com/TrZoey/article/details/102958874</guid><author>TrZoey</author><pubDate>Thu, 07 Nov 2019 17:08:47 +0800</pubDate><description><![CDATA[归并排序
原理
归并排序是用了分而治之的思想，原理对照下边我画的图看很简单，将数组分成前后两部分，然后分别对这两部分排序，排序好之后再合并起来。

而在代码中我们需要用到递归来实现。众所周知，递归先要找到递推公式和终止条件。


递推公式：sort(start, end) = merge(sort(start, mid), sort(mid + 1, end);


终止条件：start &gt;...]]></description><category></category></item><item><title><![CDATA[JDK13源码学习笔记——ArrayList]]></title><link>https://blog.youkuaiyun.com/TrZoey/article/details/102911723</link><guid>https://blog.youkuaiyun.com/TrZoey/article/details/102911723</guid><author>TrZoey</author><pubDate>Tue, 05 Nov 2019 10:50:39 +0800</pubDate><description><![CDATA[目录1 类图1.1 实现接口1.2 继承2 属性3 构造方法3.1 `ArrayList(int initialCapacity)`3.2 `ArrayList()`3.3 `ArrayList(Collection&lt;? extends E&gt; c)`4 主要方法4.1 添加一个元素`boolean add(E e)` 添加到尾部`void add(int index, E elemen...]]></description><category></category></item><item><title><![CDATA[[算法学习笔记]——冒泡、插入、选择排序算法]]></title><link>https://blog.youkuaiyun.com/TrZoey/article/details/102873522</link><guid>https://blog.youkuaiyun.com/TrZoey/article/details/102873522</guid><author>TrZoey</author><pubDate>Sat, 02 Nov 2019 16:31:00 +0800</pubDate><description><![CDATA[冒泡排序
    public static int[] sortArray(int[] arr) {
        int temp;
        for (int i = 0; i &lt; arr.length - 1; i++) {
            boolean flag = true; // 优化，标记是否有数据交换
            for (int j = 0;...]]></description><category></category></item><item><title><![CDATA[IDEA启动报错：Cannot Lock System Folders  |   java.net.BindException: Address already in use: bind]]></title><link>https://blog.youkuaiyun.com/TrZoey/article/details/102812096</link><guid>https://blog.youkuaiyun.com/TrZoey/article/details/102812096</guid><author>TrZoey</author><pubDate>Wed, 30 Oct 2019 09:29:09 +0800</pubDate><description><![CDATA[Internal error. Please report to http://jb.gg/ide/critical-startup-errors

java.net.BindException: Address already in use: bind
    at sun.nio.ch.Net.bind0(Native Method)
    at sun.nio.ch.Net.bind(N...]]></description><category></category></item><item><title><![CDATA[设计模式——门面模式（外观模式）]]></title><link>https://blog.youkuaiyun.com/TrZoey/article/details/99682082</link><guid>https://blog.youkuaiyun.com/TrZoey/article/details/99682082</guid><author>TrZoey</author><pubDate>Fri, 16 Aug 2019 17:11:50 +0800</pubDate><description><![CDATA[《Head First 设计模式》《设计模式之禅（第二版）》 学习笔记，码云同步更新中
如有错误或不足之处，请一定指出，谢谢~

目录
设计原则

“依赖倒置”原则
未完待续…

设计模式

设计模式——策略模式
设计模式——装饰者模式
设计模式——观察者模式
设计模式——简单工厂
设计模式——工厂方法模式
设计模式——抽象工厂模式
设计模式——单例模式
设计模式——命令模式
设计模式——适配器...]]></description><category></category></item><item><title><![CDATA[设计模式——适配器模式]]></title><link>https://blog.youkuaiyun.com/TrZoey/article/details/99612057</link><guid>https://blog.youkuaiyun.com/TrZoey/article/details/99612057</guid><author>TrZoey</author><pubDate>Wed, 14 Aug 2019 21:30:44 +0800</pubDate><description><![CDATA[《Head First 设计模式》《设计模式之禅（第二版）》 学习笔记，码云同步更新中
如有错误或不足之处，请一定指出，谢谢~

目录
设计原则

“依赖倒置”原则
未完待续…

设计模式

设计模式——策略模式
设计模式——装饰者模式
设计模式——观察者模式
设计模式——简单工厂
设计模式——工厂方法模式
设计模式——抽象工厂模式
设计模式——单例模式
设计模式——命令模式
设计模式——适配器...]]></description><category></category></item><item><title><![CDATA[设计模式——命令模式]]></title><link>https://blog.youkuaiyun.com/TrZoey/article/details/98878820</link><guid>https://blog.youkuaiyun.com/TrZoey/article/details/98878820</guid><author>TrZoey</author><pubDate>Thu, 08 Aug 2019 17:33:48 +0800</pubDate><description><![CDATA[《Head First 设计模式》 学习笔记，码云同步更新中
如有错误或不足之处，请一定指出，谢谢~

目录
设计原则

“依赖倒置”原则
未完待续…

设计模式

设计模式——策略模式
设计模式——装饰者模式
设计模式——观察者模式
设计模式——简单工厂
设计模式——工厂方法模式
设计模式——抽象工厂模式
设计模式——单例模式
设计模式——命令模式
未完待续…

命令模式（Command Pa...]]></description><category></category></item><item><title><![CDATA[设计模式——单例模式]]></title><link>https://blog.youkuaiyun.com/TrZoey/article/details/98197985</link><guid>https://blog.youkuaiyun.com/TrZoey/article/details/98197985</guid><author>TrZoey</author><pubDate>Fri, 02 Aug 2019 13:52:47 +0800</pubDate><description><![CDATA[《Head First 设计模式》 学习笔记，码云同步更新中
如有错误或不足之处，请一定指出，谢谢~

目录
设计原则

“依赖倒置”原则
未完待续…

设计模式

设计模式——策略模式
设计模式——装饰者模式
设计模式——观察者模式
设计模式——简单工厂
设计模式——工厂方法模式
设计模式——抽象工厂模式
设计模式——单例模式
未完待续…

单例模式（Singleton Pattern）

定...]]></description><category></category></item><item><title><![CDATA[设计模式——抽象工厂模式]]></title><link>https://blog.youkuaiyun.com/TrZoey/article/details/97917923</link><guid>https://blog.youkuaiyun.com/TrZoey/article/details/97917923</guid><author>TrZoey</author><pubDate>Wed, 31 Jul 2019 14:45:59 +0800</pubDate><description><![CDATA[《Head First 设计模式》 学习笔记，码云同步更新中
如有错误或不足之处，请一定指出，谢谢~

目录
设计原则

“依赖倒置”原则
未完待续…

设计模式

设计模式——策略模式
设计模式——装饰者模式
设计模式——观察者模式
设计模式——简单工厂
设计模式——工厂方法模式
设计模式——抽象工厂模式
未完待续…

抽象工厂模式（Abstract Factory Pattern）

定义：...]]></description><category></category></item><item><title><![CDATA[设计模式——“依赖倒置”原则]]></title><link>https://blog.youkuaiyun.com/TrZoey/article/details/97917792</link><guid>https://blog.youkuaiyun.com/TrZoey/article/details/97917792</guid><author>TrZoey</author><pubDate>Wed, 31 Jul 2019 14:45:01 +0800</pubDate><description><![CDATA[目录
设计原则

“依赖倒置”原则
未完待续…

设计模式

设计模式——策略模式
设计模式——装饰者模式
设计模式——观察者模式
设计模式——简单工厂
设计模式——工厂方法模式
设计模式——抽象工厂模式
未完待续…

依赖倒置原则（Dependence Inversion Principle, DIP）

定义：High level modules should not depend upon ...]]></description><category></category></item><item><title><![CDATA[设计模式——工厂方法模式]]></title><link>https://blog.youkuaiyun.com/TrZoey/article/details/97629396</link><guid>https://blog.youkuaiyun.com/TrZoey/article/details/97629396</guid><author>TrZoey</author><pubDate>Mon, 29 Jul 2019 11:12:23 +0800</pubDate><description><![CDATA[《Head First 设计模式》 学习笔记，码云同步更新中
如有错误或不足之处，请一定指出，谢谢~

往期回顾

设计模式——策略模式
设计模式——装饰者模式
设计模式——观察者模式
设计模式——简单工厂
设计模式——工厂方法模式

工厂方法模式（Factory Method Pattern）

定义：

工厂方法模式定义了一个创建对象的接口，但由子类决定要实例化的类是哪一个。
工厂方法让类把...]]></description><category></category></item><item><title><![CDATA[设计模式——简单工厂]]></title><link>https://blog.youkuaiyun.com/TrZoey/article/details/97390187</link><guid>https://blog.youkuaiyun.com/TrZoey/article/details/97390187</guid><author>TrZoey</author><pubDate>Fri, 26 Jul 2019 14:44:56 +0800</pubDate><description><![CDATA[《Head First 设计模式》 学习笔记，码云同步更新中
如有错误或不足之处，请一定指出，谢谢~

往期回顾

设计模式——策略模式
设计模式——装饰者模式
设计模式——观察者模式
设计模式——简单工厂

简单工厂

定义：

定义一个类来专门负责创建其他类的实例，被创建的实例通常具有共同的父类。
简单工厂可以根据参数的不同返回一个相应的实例
严格来讲，简单工厂模式不属于设计模式，而是属于一...]]></description><category></category></item><item><title><![CDATA[设计模式——观察者模式]]></title><link>https://blog.youkuaiyun.com/TrZoey/article/details/97259945</link><guid>https://blog.youkuaiyun.com/TrZoey/article/details/97259945</guid><author>TrZoey</author><pubDate>Thu, 25 Jul 2019 14:27:59 +0800</pubDate><description><![CDATA[《Head First 设计模式》 学习笔记，码云同步更新中
如有错误或不足之处，请一定指出，谢谢~

往期回顾

设计模式——策略模式
设计模式——装饰者模式
设计模式——观察者模式

观察者模式

定义：

定义了对象之间的一对多依赖，这样一来，当一个对象改变状态时，他的所有依赖者都会收到通知并自动更新


结构：

Subject：主题接口
ConcreteSubject：具体主题
Obs...]]></description><category></category></item><item><title><![CDATA[设计模式——装饰者模式]]></title><link>https://blog.youkuaiyun.com/TrZoey/article/details/97135069</link><guid>https://blog.youkuaiyun.com/TrZoey/article/details/97135069</guid><author>TrZoey</author><pubDate>Wed, 24 Jul 2019 15:22:19 +0800</pubDate><description><![CDATA[《Head First 设计模式》 学习笔记，码云同步更新中
如有错误或不足之处，请一定指出，谢谢~

往期回顾

设计模式——策略模式
设计模式——装饰者模式

装饰者模式

定义：

动态地将责任附加到对象身上。若要扩展功能，装饰者提供了比继承更有弹性的替代方案。


特点：

装饰者和被装饰着有共同的超类，装饰过的对象可以替代原始对象使用
可以用一个或多个装饰者包装一个对象
装饰者可以在所...]]></description><category></category></item><item><title><![CDATA[设计模式——策略模式]]></title><link>https://blog.youkuaiyun.com/TrZoey/article/details/97134979</link><guid>https://blog.youkuaiyun.com/TrZoey/article/details/97134979</guid><author>TrZoey</author><pubDate>Wed, 24 Jul 2019 15:20:10 +0800</pubDate><description><![CDATA[《Head First 设计模式》 学习笔记
码云同步更新中
如有错误或不足之处，请一定指出，谢谢~

往期回顾

设计模式——策略模式
设计模式——装饰者模式

策略模式

定义：

策略模式——定义算法族，分别封装起来，让他们可以互相替换，此模式让算法的变化独立与使用算法的客户


适用范围：

几个类的主要逻辑相同，只在部分逻辑的算法和行为上稍有区别的情况
有几种相似的行为（算法），客户端...]]></description><category></category></item><item><title><![CDATA[IDEA新建项目提交到git仓库时报错：Can't Update  No tracked branch configured for branch master or the branch...]]></title><link>https://blog.youkuaiyun.com/TrZoey/article/details/95599079</link><guid>https://blog.youkuaiyun.com/TrZoey/article/details/95599079</guid><author>TrZoey</author><pubDate>Fri, 12 Jul 2019 11:08:04 +0800</pubDate><description><![CDATA[Push rejected: Push to origin/master was rejected

Update canceled

Can't Update
   No tracked branch configured for branch master or the branch doesn't exist.
   To make your branc...]]></description><category></category></item><item><title><![CDATA[使用iText生成PDF文件底部插入页码页脚]]></title><link>https://blog.youkuaiyun.com/TrZoey/article/details/95468090</link><guid>https://blog.youkuaiyun.com/TrZoey/article/details/95468090</guid><author>TrZoey</author><pubDate>Thu, 11 Jul 2019 13:11:01 +0800</pubDate><description><![CDATA[&lt;head&gt;
  &lt;title&gt;&lt;/title&gt;
  &lt;style type="text/css"&gt;
    body {
      margin-left: 45px;
      margin-right: 45px;
      font-family: Arial Unicode MS;
      font-size: 10px;
  ...]]></description><category></category></item></channel></rss>