JeffyLu.github.io
JeffyLu.github.io copied to clipboard
Issue Blog OR Note 🙃
# 好文推荐:Golang篇 ##### [官方博客](https://blog.golang.org/index) ### memory - [图解Golang的内存分配](https://mp.weixin.qq.com/s/pbwCYFEESkILGIJVqnNaLA) - [Go 内存分配器的设计与实现](https://mp.weixin.qq.com/s/TO_lmlFbVDgFmns9s_mMzw) - [深度解密Go语言之unsafe](https://mp.weixin.qq.com/s/r0gTZR9r5OLUe3zpYInyFg) - [Language Mechanics On Stacks And Pointers](https://www.ardanlabs.com/blog/2017/05/language-mechanics-on-stacks-and-pointers.html) - [Language Mechanics On Escape Analysis](https://www.ardanlabs.com/blog/2017/05/language-mechanics-on-escape-analysis.html) - [Language Mechanics On...
# 好文推荐:数据库篇 ### MySQL - [解决死锁之路 - 学习事务与隔离级别](https://www.aneasystone.com/archives/2017/10/solving-dead-locks-one.html) - [解决死锁之路 - 了解常见的锁类型](https://www.aneasystone.com/archives/2017/11/solving-dead-locks-two.html) - [解决死锁之路 - 常见 SQL 语句的加锁分析](https://www.aneasystone.com/archives/2017/12/solving-dead-locks-three.html) - [解决死锁之路(终结篇) - 再见死锁](https://www.aneasystone.com/archives/2018/04/solving-dead-locks-four.html) - [MySQL索引背后的数据结构及算法原理](http://blog.codinglabs.org/articles/theory-of-mysql-index.html) - [为什么别人能用好 MySQL?万字详解其复杂原理](https://mp.weixin.qq.com/s/pRqXdWYyhQD0x_NAdQLyHA) - [52 条...
# 数据结构与算法 ### 数据结构 ##### 树 - [教你透彻了解红黑树](https://github.com/julycoding/The-Art-Of-Programming-By-July/blob/master/ebook/zh/03.01.md) - [B树](https://github.com/julycoding/The-Art-Of-Programming-By-July/blob/master/ebook/zh/03.02.md) ##### 其他 - [拜托,别再问我什么是堆了!](https://mp.weixin.qq.com/s/2Dm_VeRI1e6jHc455bQmaQ) ### 算法 - [代码:leetcode](https://github.com/JeffyLu/whiteboard/tree/master/leetcode) - [代码:剑指offer](https://github.com/JeffyLu/whiteboard/tree/master/%E5%89%91%E6%8C%87offer) - [代码:排序](https://github.com/JeffyLu/whiteboard/tree/master/%E6%8E%92%E5%BA%8F) - [用 Python 手写十大经典排序算法](https://mp.weixin.qq.com/s/QaflNoxiI_FS4Ij8jg1KrQ) - [深入理解快速排序和 STL 的...
# 好文推荐:操作系统篇 ### Linux - [Linux 系统结构详解](https://mp.weixin.qq.com/s/SrtlYVU0i3hCSjrHgxykwA) ### 其他 - [别再说你不懂 Linux 内存管理了,10 张图给你安排的明明白白](https://mp.weixin.qq.com/s?__biz=MzAxODI5ODMwOA==&mid=2666545689&idx=1&sn=c9216fab07323d42d9cfc700299eece6) - [10 张图解再谈 Linux 物理内存和虚拟内存](https://mp.weixin.qq.com/s/xgUlAeOxvmCzynEabOrNQA) - [一口气搞懂“文件系统”,就靠这 25 张图了](https://mp.weixin.qq.com/s/nqcttO1L2-WSx-OUdJ0FvQ) - [大厂面试爱问的“调度算法”,20 张图一举拿下](https://mp.weixin.qq.com/s/ZifCDDU-zdUa7fOFo7epiw) - [「网络IO套路」当时就靠它追到女友](https://mp.weixin.qq.com/s/sJpA2fo3dSXuQAAZSgvtIA) - [凉了!张三同学没答好“进程间通信”,被面试官挂了](https://mp.weixin.qq.com/s/SA0gjKHQL_6iMZBhBOZDEw)...
# 好文推荐:计算机网络篇 ### 应用层 - [硬核!30 张图解 HTTP 常见的面试题](https://mp.weixin.qq.com/s/qzzEgRpt9f-UlTLnWGrJEw) - [炸裂!万字长文拿下 HTTP 面试题](https://mp.weixin.qq.com/s/4hyn4Zovtuzgjkepzx8_Lw) ### 表示层 ### 会话层 ### 传输层 - [通俗大白话来理解TCP协议的三次握手和四次分手](https://github.com/jawil/blog/issues/14) - [TCP的流量控制和拥塞控制](https://blog.csdn.net/yechaodechuntian/article/details/25429143) - [告知你不为人知的 UDP:疑难杂症和使用](https://cloud.tencent.com/developer/article/1004554) - [近 40 张图解被问千百遍的...
# ubuntu常见的几个问题 - [1. 关闭客人会话](#issuecomment-280894592) - [2. WPS提示系统缺失的字体](#issuecomment-280904503) - [3. 修改mysql默认字符编码](#issuecomment-280980149) - [4. jdk环境变量设置](#issuecomment-281001229) - [5. 解决eclipse无法识别apt-get安装的tomcat](#issuecomment-281586693) - [6. 配置python3.5虚拟环境](#issuecomment-281980605) - [7. myeclipse启动tomcat出现Permission denied](#issuecomment-282539861) - [8. python导入sqlite3提示错误:No module named _sqlite3](#issuecomment-284202517)...
# Java多线程----多生产者多消费者的同步问题 - - -   生产者和消费者的同步问题是多线程编程中的一个经典同步问题。这边就以一个蛋糕店为例,来模拟多生产者和多消费者的同步问题。 ### 功能说明   商店具备制作蛋糕和销售蛋糕两个功能,商店每天的蛋糕量是有限的,所以不能无限制的制作蛋糕。消费者在商店蛋糕有库存的情况下可以进行购买,库存不足并且蛋糕数量还未到达今天的峰值之前,消费者必须等待蛋糕制作完成才能进行购买。而只要在蛋糕数量还没到达峰值,生产者就会源源不断的生产。 ### 构造一个商店 ##### 设置商店的几个基本属性 ```java private ArrayList cakes = new ArrayList(); private int maxProduce = 10; // 最大产量 private int count...
# 让vim支持python3的自动补全 - - - ### 检查vim版本   查看vim版本信息,至少要```7.4.143```以上并且支持python3的版本才行,不符合的可以参考这:[Building Vim from source](https://github.com/Valloric/YouCompleteMe/wiki/Building-Vim-from-source)重新安装。 ``` $ vim --version ``` ### 更新并重新安装YouCompleteMe ``` $ cd ~/.vim/bundle/YouCompleteMe $ git pull $ ./install.py --python-completer ``` ###...
# 解决Mac下Docker容器时钟不准 ##### 前段时间接sms本地跑了几天发现有一天邮件突然发不出去了, 一波debug后无果, 无意间发现传的时间戳慢了十几分钟, 最后定位到是docker造成的, 具体原因参考docker-for-mac的issue, 解决方法就是crontab每分钟校正一次时钟。 ``` $ crontab -e ``` ##### 添加如下内容: ``` * */1 * * * /usr/local/bin/docker run --rm --privileged alpine hwclock -s ```...
# bokeh文件伪上传 ##### 环境依赖 - bokeh >= 0.12.4 - tornado >= 4.0(不支持最新的4.5) - nodejs ##### 代码 ```python from bokeh.core.properties import String from bokeh.io import curdoc from bokeh.layouts import column from...