<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[咸鱼塘]]></title><description><![CDATA[这是一个养鱼的水塘]]></description><link>https://blog.csdn.net/qq_38345606</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; qq_38345606]]></copyright><item><title><![CDATA[Git拒绝合并不相关历史refusing to merge unrelated histories]]></title><link>https://blog.csdn.net/qq_38345606/article/details/110693593</link><guid>https://blog.csdn.net/qq_38345606/article/details/110693593</guid><author>qq_38345606</author><pubDate>Sat, 05 Dec 2020 15:55:56 +0800</pubDate><description><![CDATA[错误
fatal: refusing to merge unrelated histories
在命令后面加上
--allow-unrelated-histories


]]></description><category></category></item><item><title><![CDATA[Git命令行删除远程分支]]></title><link>https://blog.csdn.net/qq_38345606/article/details/110692052</link><guid>https://blog.csdn.net/qq_38345606/article/details/110692052</guid><author>qq_38345606</author><pubDate>Sat, 05 Dec 2020 15:45:57 +0800</pubDate><description><![CDATA[首先查看当前所有的分支
git branch -a


红色的remote/origin/main和remote/origin/main1为远程分支
我们删除
remote/origin/main1
通过命令
git push &lt;主机名&gt; --delete &lt;分支名&gt;

Example：git push origin --delete main1


删除成功

...]]></description><category></category></item><item><title><![CDATA[Git命令提交文件]]></title><link>https://blog.csdn.net/qq_38345606/article/details/110689486</link><guid>https://blog.csdn.net/qq_38345606/article/details/110689486</guid><author>qq_38345606</author><pubDate>Sat, 05 Dec 2020 15:39:07 +0800</pubDate><description><![CDATA[#检查本地仓库当前状态，显示更改的文件
git status


如图所示显示有一个文件Test.txt被修改
执行add命令
git add Test.txt

发现文件名变绿色，说明加入暂存区成功

git commit

在弹出的文本编辑器中输入提交的内容，然后:wq退出；将文件提交

然后进行远程推送
注意推送的分支名称
branch1 :远程分支名称
branch2:本地分支名称
git push &lt;远程主机名&gt; &lt;本地分支名&gt;:&lt;远程分支名&gt;

比如我的本地分]]></description><category></category></item><item><title><![CDATA[Pytorch中Mnist数据集的加载]]></title><link>https://blog.csdn.net/qq_38345606/article/details/108221563</link><guid>https://blog.csdn.net/qq_38345606/article/details/108221563</guid><author>qq_38345606</author><pubDate>Tue, 25 Aug 2020 15:09:02 +0800</pubDate><description><![CDATA[train_loader = torch.utils.data.DataLoader(
        datasets.MNIST('data', train=True, download=True, 
                       transform=transforms.Compose([
                           transforms.ToTensor(),
                           transforms.Normalize((]]></description><category></category></item><item><title><![CDATA[Python通过pip下载包缓慢问题解决]]></title><link>https://blog.csdn.net/qq_38345606/article/details/108217112</link><guid>https://blog.csdn.net/qq_38345606/article/details/108217112</guid><author>qq_38345606</author><pubDate>Tue, 25 Aug 2020 10:55:57 +0800</pubDate><description><![CDATA[通过-i命令使用清华大学的源即可
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple 包名


]]></description><category></category></item><item><title><![CDATA[TensorBorad不能访问]]></title><link>https://blog.csdn.net/qq_38345606/article/details/103724412</link><guid>https://blog.csdn.net/qq_38345606/article/details/103724412</guid><author>qq_38345606</author><pubDate>Fri, 27 Dec 2019 00:05:46 +0800</pubDate><description><![CDATA[当要访问服务器的tensorborad
启动
tensorboard --logdir=日志名 --host=0.0.0.0
然后使用服务器ip:端口访问
当要访问本地的tensorborad
启动
tensorboard --logdir=日志名 --host=127.0.0.1
然后访问localhost:端口或者127.0.0.1:端口

...]]></description><category></category></item><item><title><![CDATA[Tomcat的闪退问题]]></title><link>https://blog.csdn.net/qq_38345606/article/details/84928378</link><guid>https://blog.csdn.net/qq_38345606/article/details/84928378</guid><author>qq_38345606</author><pubDate>Sun, 09 Dec 2018 15:21:08 +0800</pubDate><description><![CDATA[再通过start.bat启动tomcat的时候出现闪退的问题，通过powerShell运行也不行，而且也没有端口占用
随后查阅资料得知
需要在start.bat和shutdown.bat中加入一行
SET JAVA_HOME=jdk的安装目录
SET TOMCAT_HOME=tomcat解压缩后的目录


然后再次执行就可以了

...]]></description><category></category></item><item><title><![CDATA[Java中==和equals的区别]]></title><link>https://blog.csdn.net/qq_38345606/article/details/84843374</link><guid>https://blog.csdn.net/qq_38345606/article/details/84843374</guid><author>qq_38345606</author><pubDate>Wed, 05 Dec 2018 21:00:35 +0800</pubDate><description><![CDATA[对于基础类型，如int，double…只能采用==进行比较，且比较的是数值
对于引用类型，可以采用==和equals进行比较，==比较的是两个引用的引用地址，及两个引用引用的是否为一个对象，而equals则是Object方法进行提供的，如果不进行重写，其比较的也是引用
Object中equals
ublic boolean equals(Object obj) {
        return (...]]></description><category></category></item><item><title><![CDATA[Java中迭代器的实现]]></title><link>https://blog.csdn.net/qq_38345606/article/details/84483871</link><guid>https://blog.csdn.net/qq_38345606/article/details/84483871</guid><author>qq_38345606</author><pubDate>Sun, 25 Nov 2018 12:46:16 +0800</pubDate><description><![CDATA[此处用链表来示范
1.先创建一个链表类
public class LinkedList&amp;lt;T&amp;gt; implements Iterable&amp;lt;T&amp;gt; {

    private Node&amp;lt;T&amp;gt; head;
    private Node&amp;lt;T&amp;gt; tail;

    public static &amp;lt;T&amp;gt; LinkedList&amp;lt;T&amp;gt; ne...]]></description><category></category></item><item><title><![CDATA[读书笔记-阿里巴巴Java开发手册-常用的命名风格]]></title><link>https://blog.csdn.net/qq_38345606/article/details/84189586</link><guid>https://blog.csdn.net/qq_38345606/article/details/84189586</guid><author>qq_38345606</author><pubDate>Sat, 17 Nov 2018 15:56:02 +0800</pubDate><description><![CDATA[第一章-编程规约
命名风格
强制类型

不可以用_或者$开始或者结束
严禁使用拼音和英文混写
类名使用UpperCamelCase风格
方法名，参数名，成员变量，局部变量都统一使用lowerCamelCase风格，遵循驼峰形式
常量命名全部大写，单词间用下划线隔开
抽象类命名使用Abstract或Base开头；异常类使用Exception结尾；测试类命名以测试的类名开始，Test结尾
类型与中括号...]]></description><category></category></item><item><title><![CDATA[Linux下SpringBoot项目的启动(设置为守护线程)]]></title><link>https://blog.csdn.net/qq_38345606/article/details/83926608</link><guid>https://blog.csdn.net/qq_38345606/article/details/83926608</guid><author>qq_38345606</author><pubDate>Sat, 10 Nov 2018 09:47:30 +0800</pubDate><description><![CDATA[在部署SpringBoot项目中发现，在运行jar包只后，关闭终端会导致项目的关闭，及线程和终端之间绑定，在遇到这种情况下，只需要通过nohup命令进行运行即可
nohup java -jar xxxxxxx.jar &amp;gt;temp.log &amp;amp;

运行此代码可以在终端关闭的情况下，使其继续运行，temp.log为此程序运行中产生的日志文件

...]]></description><category></category></item><item><title><![CDATA[设计模式-桥接模式-咖啡]]></title><link>https://blog.csdn.net/qq_38345606/article/details/83500829</link><guid>https://blog.csdn.net/qq_38345606/article/details/83500829</guid><author>qq_38345606</author><pubDate>Mon, 29 Oct 2018 09:03:42 +0800</pubDate><description><![CDATA[题目
一个咖啡店可以提供大杯(JorumCoffee)、中杯(MediumCoffee)、小杯(SmallCoffee)的咖啡(Coffee)，为了满足不同用户的口味，在咖啡中可以添加牛奶(Milk)，或者糖(Sugar)，或者柠檬(Lemon)，提供给用户不同口味的组合，如大杯咖啡加牛奶，中杯咖啡加糖，小杯咖啡加柠檬，小杯咖啡加糖等。
代码
定义口味接口，及咖啡接口
口味
interface A...]]></description><category></category></item><item><title><![CDATA[剑指Offer-Java-二进制中1的个数]]></title><link>https://blog.csdn.net/qq_38345606/article/details/82919480</link><guid>https://blog.csdn.net/qq_38345606/article/details/82919480</guid><author>qq_38345606</author><pubDate>Mon, 01 Oct 2018 22:51:59 +0800</pubDate><description><![CDATA[题目
输入一个整数，输出该数二进制表示中1的个数。其中负数用补码表示。

代码
正确的使用与运算和移位运算符即可即可
使得其一直向移，统计1的个数即可
public class Solution {
    public int NumberOf1(int n) {
        int a = n;
        int num=0;
        while(a!=0){
       ...]]></description><category></category></item><item><title><![CDATA[剑指Offer-Java-序列化二叉树]]></title><link>https://blog.csdn.net/qq_38345606/article/details/82919442</link><guid>https://blog.csdn.net/qq_38345606/article/details/82919442</guid><author>qq_38345606</author><pubDate>Mon, 01 Oct 2018 22:46:41 +0800</pubDate><description><![CDATA[题目
请实现两个函数，分别用来序列化和反序列化二叉树

代码
此题的核心点是如何表示二叉树，并且解释。
/*
public class TreeNode {
    int val = 0;
    TreeNode left = null;
    TreeNode right = null;

    public TreeNode(int val) {
        this.val = ...]]></description><category></category></item><item><title><![CDATA[剑指Offer-Java-把二叉树打印成多行]]></title><link>https://blog.csdn.net/qq_38345606/article/details/82919392</link><guid>https://blog.csdn.net/qq_38345606/article/details/82919392</guid><author>qq_38345606</author><pubDate>Mon, 01 Oct 2018 22:38:14 +0800</pubDate><description><![CDATA[题目
从上到下按层打印二叉树，同一层结点从左至右输出。每一层输出一行。

代码
此处只需要一个队列进行层序遍历即可。
import java.util.*;


/*
public class TreeNode {
    int val = 0;
    TreeNode left = null;
    TreeNode right = null;

    public TreeNode(i...]]></description><category></category></item><item><title><![CDATA[剑指Offer-Java-二叉树的镜像]]></title><link>https://blog.csdn.net/qq_38345606/article/details/82869897</link><guid>https://blog.csdn.net/qq_38345606/article/details/82869897</guid><author>qq_38345606</author><pubDate>Thu, 27 Sep 2018 17:04:54 +0800</pubDate><description><![CDATA[题目
题目描述
操作给定的二叉树，将其变换为源二叉树的镜像。
输入描述:
二叉树的镜像定义：源二叉树 
    	    8
    	   /  \
    	  6   10
    	 / \  / \
    	5  7 9 11
    	镜像二叉树
    	    8
    	   /  \
    	  10   6
    	 / \  / \
    	11 9 7  5

...]]></description><category></category></item><item><title><![CDATA[LeetCode-Java-637. Average of Levels in Binary Tree]]></title><link>https://blog.csdn.net/qq_38345606/article/details/82869164</link><guid>https://blog.csdn.net/qq_38345606/article/details/82869164</guid><author>qq_38345606</author><pubDate>Thu, 27 Sep 2018 16:28:13 +0800</pubDate><description><![CDATA[题目
Given a non-empty binary tree, return the average value of the nodes on each level in the form of an array.
Example 1:
Input:
    3
   / \
  9  20
    /  \
   15   7
Output: [3, 14.5, 11]
Explanati...]]></description><category></category></item><item><title><![CDATA[LeetCode-Java-496. Next Greater Element I]]></title><link>https://blog.csdn.net/qq_38345606/article/details/82866788</link><guid>https://blog.csdn.net/qq_38345606/article/details/82866788</guid><author>qq_38345606</author><pubDate>Thu, 27 Sep 2018 14:31:58 +0800</pubDate><description><![CDATA[题目
You are given two arrays (without duplicates) nums1 and nums2 where nums1’s elements are subset of nums2. Find all the next greater numbers for nums1's elements in the corresponding places of nums2...]]></description><category></category></item><item><title><![CDATA[Java多线程-生产者消费者模式]]></title><link>https://blog.csdn.net/qq_38345606/article/details/82865833</link><guid>https://blog.csdn.net/qq_38345606/article/details/82865833</guid><author>qq_38345606</author><pubDate>Thu, 27 Sep 2018 13:21:49 +0800</pubDate><description><![CDATA[问题描述
有一群生产者进程在生产产品，并将这些产品提供给消费者进程去消费。为使生产者进程与消费者进程能并发执行，在两者之间设置了一个具有n个缓冲区的缓冲池，生产者进程将它所产生的产品放入缓冲区中，消费者进程可以从一个缓冲区中取走产品去消费。尽管所有的生产者和消费者进程都是以异步的方式运行的，但他们之间必须保持同步，即不允许消费者进程到一个空的缓冲区中去取产品，也不允许生产者进程向一个已装满产品且尚...]]></description><category></category></item><item><title><![CDATA[多线程中的Future接口及其实现]]></title><link>https://blog.csdn.net/qq_38345606/article/details/82829400</link><guid>https://blog.csdn.net/qq_38345606/article/details/82829400</guid><author>qq_38345606</author><pubDate>Mon, 24 Sep 2018 15:19:05 +0800</pubDate><description><![CDATA[Future接口
public interface Future&amp;amp;amp;lt;V&amp;amp;amp;gt; {
	//尝试取消此次任务  mayInterruptIfRunning - true如果执行该任务的线程应该被中断; 否则，正在进行的任务被允许完成 
    boolean cancel(boolean mayInterruptIfRunning);
	//如果此任务在正常完成之前被取消，则返回 true 。 ...]]></description><category></category></item></channel></rss>