博客园 - YorkYuuuid:24b78886-0ed1-41c2-8670-e3f31dcf42c4;id=317262020-04-18T08:10:47ZYorkYuhttps://www.cnblogs.com/ysmintor/feed.cnblogs.comhttps://www.cnblogs.com/ysmintor/p/jie-jue-macos-xia-ssh-kong-xian-yi-duan-shi-jian-h.html解决 macOS 下 SSH 空闲一段时间后自动断开 - YorkYumacOS 下使用 Terminal 连接 SSH 远程主机空闲一段时间就会进入假死状态,无法操作,短暂无响应后。遇到这种事情,非常麻烦,可能接着的命令重新开 tab 连接,前面的结果都看不到了。实质是终端没有设置心跳连接,终端连接一段时间后无法检测到心跳就会断开连接。解决办法分别包括客户端和服务端客户端配置在使用 Shell 的机器上设置,我配置后,已经解决。但找到的资料还有服务端配置,那就一起...2020-04-07T01:04:00Z2020-04-07T01:04:00ZYorkYuhttps://www.cnblogs.com/ysmintor/【摘要】macOS 下使用 Terminal 连接 SSH 远程主机空闲一段时间就会进入假死状态,无法操作,短暂无响应后。遇到这种事情,非常麻烦,可能接着的命令重新开 tab 连接,前面的结果都看不到了。实质是终端没有设置心跳连接,终端连接一段时间后无法检测到心跳就会断开连接。解决办法分别包括客户端和服务端客户端配置在使用 Shell 的机器上设置,我配置后,已经解决。但找到的资料还有服务端配置,那就一起... <a href="https://www.cnblogs.com/ysmintor/p/jie-jue-macos-xia-ssh-kong-xian-yi-duan-shi-jian-h.html" target="_blank">阅读全文</a>https://www.cnblogs.com/ysmintor/p/excel-xi-lie-yi-zhi-zhang-hu-lei-zhang-shu-zi-da-k.htmlExcel 系列一 之 账户类长数字打开不截断与完全显示 - YorkYu前言对于 Excel 的使用,我觉得无论是普通人还是职场上的各类人员,其实都可以算上一个必备课。像中学,大学生可能会使用统计班级人员信息,职场人员需要统计员工信息,产品信息,做一些简单地聚类,聚合计算。本次背景对于大量的 id 类型,还有对于钱的存储实际上的扩大了十万倍存储,因此在使用 Excel 打开 csv 的时候进行探查,会发现直接将数字进行了科学计算显示。更为严重的情况是将数字的精度进行了...2020-04-05T14:21:00Z2020-04-05T14:21:00ZYorkYuhttps://www.cnblogs.com/ysmintor/【摘要】前言对于 Excel 的使用,我觉得无论是普通人还是职场上的各类人员,其实都可以算上一个必备课。像中学,大学生可能会使用统计班级人员信息,职场人员需要统计员工信息,产品信息,做一些简单地聚类,聚合计算。本次背景对于大量的 id 类型,还有对于钱的存储实际上的扩大了十万倍存储,因此在使用 Excel 打开 csv 的时候进行探查,会发现直接将数字进行了科学计算显示。更为严重的情况是将数字的精度进行了... <a href="https://www.cnblogs.com/ysmintor/p/excel-xi-lie-yi-zhi-zhang-hu-lei-zhang-shu-zi-da-k.html" target="_blank">阅读全文</a>https://www.cnblogs.com/ysmintor/p/zen-yang-hua-liang-nian-shi-jian-qu-mian-shi-yi-ge.html怎样花两年时间去面试一个人 - YorkYu转载自 http://mindhacks.cn/2011/11/04/how-to-interview-a-person-for-two-years/Joel Spolsky曾经感叹:招聘难,难于上青天(此处笔者稍加演绎:))。他有两个辛辣但不乏洞察力的断言:真正的牛人也许一辈子就投大概4次简历,这些家伙一毕业就被好公司抢走了,并且他们的雇主会给他们不赖的待遇,所以他们也不想挪窝。(刚刚去世的De...2020-04-05T14:14:00Z2020-04-05T14:14:00ZYorkYuhttps://www.cnblogs.com/ysmintor/【摘要】转载自 http://mindhacks.cn/2011/11/04/how-to-interview-a-person-for-two-years/Joel Spolsky曾经感叹:招聘难,难于上青天(此处笔者稍加演绎:))。他有两个辛辣但不乏洞察力的断言:真正的牛人也许一辈子就投大概4次简历,这些家伙一毕业就被好公司抢走了,并且他们的雇主会给他们不赖的待遇,所以他们也不想挪窝。(刚刚去世的De... <a href="https://www.cnblogs.com/ysmintor/p/zen-yang-hua-liang-nian-shi-jian-qu-mian-shi-yi-ge.html" target="_blank">阅读全文</a>https://www.cnblogs.com/ysmintor/p/bei-jing-da-xue-shuo-shi-xue-wei-lun-wen-mo-ban.html北京大学硕士学位论文模板 - YorkYu背景本科期间使用学校提供的模板,是一个 doc 类型文档,打开后直接在此基础上修改。对于理工科而言使用,本是想使用 LaTeX 来编写。但使用 LaTeX 来编写,更加附合向不同的期刊投稿,而学位论文的参考文献和格式要求其实是一个标准,不会存在后期改格式要求,再加上通过了解和学习,实际上使用 MS Word 来处理,其实也可以非常高效,而且所见即所得的样式,也很直观。因此,我便打算在学校提供的论文...2020-04-05T14:12:00Z2020-04-05T14:12:00ZYorkYuhttps://www.cnblogs.com/ysmintor/【摘要】背景本科期间使用学校提供的模板,是一个 doc 类型文档,打开后直接在此基础上修改。对于理工科而言使用,本是想使用 LaTeX 来编写。但使用 LaTeX 来编写,更加附合向不同的期刊投稿,而学位论文的参考文献和格式要求其实是一个标准,不会存在后期改格式要求,再加上通过了解和学习,实际上使用 MS Word 来处理,其实也可以非常高效,而且所见即所得的样式,也很直观。因此,我便打算在学校提供的论文... <a href="https://www.cnblogs.com/ysmintor/p/bei-jing-da-xue-shuo-shi-xue-wei-lun-wen-mo-ban.html" target="_blank">阅读全文</a>https://www.cnblogs.com/ysmintor/p/mysql-tu-jie-inner-joinleft-joinright-joinfull-out.htmlMysql: 图解 inner join、left join、right join、full outer join、union、union all的区别 - YorkYu转载来源对于SQL的Join,在学习起来可能是比较乱的。我们知道,SQL的Join语法有很多inner的,有outer的,有left的,有时候,对于Select出来的结果集是什么样子有点不是很清楚。Coding Horror上有一篇文章,通过韦恩图(Venn diagram,可用来表示多个集合之间的逻辑关系)。解释了SQL的Join。我觉得清楚易懂,转过来。假设我们有两张表。Table A 是左边...2019-08-17T08:20:00Z2019-08-17T08:20:00ZYorkYuhttps://www.cnblogs.com/ysmintor/【摘要】转载来源对于SQL的Join,在学习起来可能是比较乱的。我们知道,SQL的Join语法有很多inner的,有outer的,有left的,有时候,对于Select出来的结果集是什么样子有点不是很清楚。Coding Horror上有一篇文章,通过韦恩图(Venn diagram,可用来表示多个集合之间的逻辑关系)。解释了SQL的Join。我觉得清楚易懂,转过来。假设我们有两张表。Table A 是左边... <a href="https://www.cnblogs.com/ysmintor/p/mysql-tu-jie-inner-joinleft-joinright-joinfull-out.html" target="_blank">阅读全文</a>https://www.cnblogs.com/ysmintor/p/shua-leetcode-shi-zai-xue-xi-python-zhong-yin-yong.html刷 LeetCode 时再学习 Python 中引用 - YorkYu在收LeetCode 的113. Path Sum II题目时,参考网络上的一个解答,源码如下class Solution: def pathSum(self, root: TreeNode, sum: int) -> List[List[int]]: def dfs(root, s, path, res): if root: path....2019-08-06T07:09:00Z2019-08-06T07:09:00ZYorkYuhttps://www.cnblogs.com/ysmintor/【摘要】在收LeetCode 的113. Path Sum II题目时,参考网络上的一个解答,源码如下class Solution: def pathSum(self, root: TreeNode, sum: int) -> List[List[int]]: def dfs(root, s, path, res): if root: path.... <a href="https://www.cnblogs.com/ysmintor/p/shua-leetcode-shi-zai-xue-xi-python-zhong-yin-yong.html" target="_blank">阅读全文</a>https://www.cnblogs.com/ysmintor/p/8267980.htmlSemantic difference between object expressions and declarations - YorkYuobject expressions are executed (and initialized) immediately, where they are used; object declarations are initialized lazily, when accessed for the first time; a companion object is initialize...2018-01-11T05:38:00Z2018-01-11T05:38:00ZYorkYuhttps://www.cnblogs.com/ysmintor/【摘要】object expressions are executed (and initialized) immediately, where they are used; object declarations are initialized lazily, when accessed for the first time; a companion object is initialize... <a href="https://www.cnblogs.com/ysmintor/p/8267980.html" target="_blank">阅读全文</a>https://www.cnblogs.com/ysmintor/p/7602533.htmlLeetCode:94. Binary Tree Inorder Traversal - YorkYuGiven a binary tree, return the inorder traversal of its nodes' values.For example:Given binary tree [1,null,2,3], 1 \ 2 / 3return [1,3,2].Note: Recursive solution is trivial, could you ...2017-09-27T08:38:00Z2017-09-27T08:38:00ZYorkYuhttps://www.cnblogs.com/ysmintor/【摘要】Given a binary tree, return the inorder traversal of its nodes' values.For example:Given binary tree [1,null,2,3], 1 \ 2 / 3return [1,3,2].Note: Recursive solution is trivial, could you ... <a href="https://www.cnblogs.com/ysmintor/p/7602533.html" target="_blank">阅读全文</a>https://www.cnblogs.com/ysmintor/p/7598477.htmlLeetCode:83.Remove Duplicates from Sorted List - YorkYuGiven a sorted linked list, delete all duplicates such that each element appear only once.For example,Given 1->1->2, return 1->2.Given 1->1->2->3->3, return 1->2->3.C++ Solution:/** * Definition for ...2017-09-26T11:29:00Z2017-09-26T11:29:00ZYorkYuhttps://www.cnblogs.com/ysmintor/【摘要】Given a sorted linked list, delete all duplicates such that each element appear only once.For example,Given 1->1->2, return 1->2.Given 1->1->2->3->3, return 1->2->3.C++ Solution:/** * Definition for ... <a href="https://www.cnblogs.com/ysmintor/p/7598477.html" target="_blank">阅读全文</a>https://www.cnblogs.com/ysmintor/p/leetcode67-add-binary.htmlLeetCode:67. Add Binary - YorkYu题目:Given two binary strings, return their sum (also a binary string).For example,a = "11"b = "1"Return "100".这道题目是一个字符串处理人位上进行运算,不清楚Python封闭好了,实现起来会不会比较麻烦。Java这里如果可以像C/C++ 直接进行二进制运算的话,也是一处思路。我刚开始一上手做起...2017-09-15T08:08:00Z2017-09-15T08:08:00ZYorkYuhttps://www.cnblogs.com/ysmintor/【摘要】题目:Given two binary strings, return their sum (also a binary string).For example,a = "11"b = "1"Return "100".这道题目是一个字符串处理人位上进行运算,不清楚Python封闭好了,实现起来会不会比较麻烦。Java这里如果可以像C/C++ 直接进行二进制运算的话,也是一处思路。我刚开始一上手做起... <a href="https://www.cnblogs.com/ysmintor/p/leetcode67-add-binary.html" target="_blank">阅读全文</a>https://www.cnblogs.com/ysmintor/p/7508635.htmlLeetCode: 66. Plus One - YorkYuGiven a non-negative integer represented as a non-empty array of digits, plus one to the integer.You may assume the integer do not contain any leading zero, except the number 0 itself.The digits are s...2017-09-12T02:01:00Z2017-09-12T02:01:00ZYorkYuhttps://www.cnblogs.com/ysmintor/【摘要】Given a non-negative integer represented as a non-empty array of digits, plus one to the integer.You may assume the integer do not contain any leading zero, except the number 0 itself.The digits are s... <a href="https://www.cnblogs.com/ysmintor/p/7508635.html" target="_blank">阅读全文</a>https://www.cnblogs.com/ysmintor/p/7479767.htmlLeetCode:58 Length of Last Word - YorkYuGiven a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string.If the last word does not exist, return 0.Note: A word is defined a...2017-09-05T09:34:00Z2017-09-05T09:34:00ZYorkYuhttps://www.cnblogs.com/ysmintor/【摘要】Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string.If the last word does not exist, return 0.Note: A word is defined a... <a href="https://www.cnblogs.com/ysmintor/p/7479767.html" target="_blank">阅读全文</a>https://www.cnblogs.com/ysmintor/p/7479747.htmlOK Titlefasdf asd - YorkYuDo a lot of material ! asdfa sdgadfasdgAndroid is ok, IOS is also ok.2017-09-05T09:30:00Z2017-09-05T09:30:00ZYorkYuhttps://www.cnblogs.com/ysmintor/【摘要】Do a lot of material ! asdfa sdgadfasdgAndroid is ok, IOS is also ok. <a href="https://www.cnblogs.com/ysmintor/p/7479747.html" target="_blank">阅读全文</a>https://www.cnblogs.com/ysmintor/p/7390869.html同步更新测试 - YorkYu同步更新2017-08-18T09:27:00Z2017-08-18T09:27:00ZYorkYuhttps://www.cnblogs.com/ysmintor/【摘要】同步更新 <a href="https://www.cnblogs.com/ysmintor/p/7390869.html" target="_blank">阅读全文</a>https://www.cnblogs.com/ysmintor/p/5223649.htmlAndroid 图片压缩 - YorkYu质量压缩是在保持像素的前提下改变图片的位深及透明度等,来达到压缩图片的目的,经过它压缩的图片文件大小会有改变,但是导入成bitmap后占得内存是不变的。因为要保持像素不变,所以它就无法无限压缩,到达一个值之后就不会继续变小了。显然这个方法并不适用与缩略图,其实也不适用于想通过压缩图片减少内存的适用,仅仅适用于想在保证图片质量的同时减少文件大小的情况而已2016-02-27T13:42:00Z2016-02-27T13:42:00ZYorkYuhttps://www.cnblogs.com/ysmintor/【摘要】质量压缩是在保持像素的前提下改变图片的位深及透明度等,来达到压缩图片的目的,经过它压缩的图片文件大小会有改变,但是导入成bitmap后占得内存是不变的。因为要保持像素不变,所以它就无法无限压缩,到达一个值之后就不会继续变小了。显然这个方法并不适用与缩略图,其实也不适用于想通过压缩图片减少内存的适用,仅仅适用于想在保证图片质量的同时减少文件大小的情况而已 <a href="https://www.cnblogs.com/ysmintor/p/5223649.html" target="_blank">阅读全文</a>https://www.cnblogs.com/ysmintor/p/5180648.html解决 RecyclerView 在Android Studio已经导入情况下还无法实例引用问题 - YorkYu系统:Windows 10 IDE::android studio1. 问题:RecyclerView 在Android Studio已经导入情况下还无法实例引用问题由于RecyclerView是在v7下的support包中的,经常用到,以前项目使用都没有问题。但这次已经在depen...2016-02-03T13:44:00Z2016-02-03T13:44:00ZYorkYuhttps://www.cnblogs.com/ysmintor/【摘要】系统:Windows 10 IDE::android studio1. 问题:RecyclerView 在Android Studio已经导入情况下还无法实例引用问题由于RecyclerView是在v7下的support包中的,经常用到,以前项目使用都没有问题。但这次已经在depen... <a href="https://www.cnblogs.com/ysmintor/p/5180648.html" target="_blank">阅读全文</a>https://www.cnblogs.com/ysmintor/p/5180649.htmlAndroid - JSON Parser Tutorial - YorkYuAndroid provides four different classes to manipulate JSON data. These classes areJSONArray,JSONObject,JSONStringer and JSONTokenizer.{ "sys": { ...2016-01-31T12:16:00Z2016-01-31T12:16:00ZYorkYuhttps://www.cnblogs.com/ysmintor/【摘要】Android provides four different classes to manipulate JSON data. These classes areJSONArray,JSONObject,JSONStringer and JSONTokenizer.{ "sys": { ... <a href="https://www.cnblogs.com/ysmintor/p/5180649.html" target="_blank">阅读全文</a>https://www.cnblogs.com/ysmintor/p/5180650.htmlAndroid Studio 下获取debug sha1和md5 - YorkYu对于从Eclipse上转到Android Studio后,查看这个其实不用keytool,也能方便地查询Easiest way ever :Open Android StudioOpen Your ProjectClick on Gradle (From Right Side Panel, you ...2016-01-28T07:42:00Z2016-01-28T07:42:00ZYorkYuhttps://www.cnblogs.com/ysmintor/【摘要】对于从Eclipse上转到Android Studio后,查看这个其实不用keytool,也能方便地查询Easiest way ever :Open Android StudioOpen Your ProjectClick on Gradle (From Right Side Panel, you ... <a href="https://www.cnblogs.com/ysmintor/p/5180650.html" target="_blank">阅读全文</a>https://www.cnblogs.com/ysmintor/p/5180734.htmlPython2还是Python3 - YorkYuPython2还是Python3相信很多新接触Python的人都会纠结这一个问题,学Python2还是Python3?不像Java一样每个新版本基本都是基本兼容以前的版本的。Python2和Python3的差别是巨大的,可以说是脱胎换骨,要知道这对一门语言的发展是非常危险的。但Pyt...2015-12-20T07:25:00Z2015-12-20T07:25:00ZYorkYuhttps://www.cnblogs.com/ysmintor/【摘要】Python2还是Python3相信很多新接触Python的人都会纠结这一个问题,学Python2还是Python3?不像Java一样每个新版本基本都是基本兼容以前的版本的。Python2和Python3的差别是巨大的,可以说是脱胎换骨,要知道这对一门语言的发展是非常危险的。但Pyt... <a href="https://www.cnblogs.com/ysmintor/p/5180734.html" target="_blank">阅读全文</a>https://www.cnblogs.com/ysmintor/p/5180743.html必须了解的Object知识 - YorkYu必须了解的Object知识作为Java中所有类的根类,Object提供了很多基础的方法,我们经常会覆写它的方法,但很多时候因为不了解这些方法内在的含义以及与其他方法之间的关系而错误的覆写。下面介绍一下各个方法,已经如何合理地覆写它们。Hashcodehashcode方法为对象定义了计...2015-12-17T07:53:00Z2015-12-17T07:53:00ZYorkYuhttps://www.cnblogs.com/ysmintor/【摘要】必须了解的Object知识作为Java中所有类的根类,Object提供了很多基础的方法,我们经常会覆写它的方法,但很多时候因为不了解这些方法内在的含义以及与其他方法之间的关系而错误的覆写。下面介绍一下各个方法,已经如何合理地覆写它们。Hashcodehashcode方法为对象定义了计... <a href="https://www.cnblogs.com/ysmintor/p/5180743.html" target="_blank">阅读全文</a>