<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>不做咸鱼的小明</title>
  
  <subtitle>不做咸鱼的小明</subtitle>
  <link href="/atom.xml" rel="self"/>
  
  <link href="https://tuliang.org/"/>
  <updated>2019-03-28T14:35:28.151Z</updated>
  <id>https://tuliang.org/</id>
  
  <author>
    <name>涂亮</name>
    
  </author>
  
  <generator uri="http://hexo.io/">Hexo</generator>
  
  <entry>
    <title>Go 语言的 goroutine</title>
    <link href="https://tuliang.org/go-yu-yan-de-goroutine/"/>
    <id>https://tuliang.org/go-yu-yan-de-goroutine/</id>
    <published>2019-03-28T14:14:05.000Z</published>
    <updated>2019-03-28T14:35:28.151Z</updated>
    
    <summary type="html">
    
      
      
        
        
          &lt;h1 id=&quot;Go-语言的-goroutine&quot;&gt;&lt;a href=&quot;#Go-语言的-goroutine&quot; class=&quot;headerlink&quot; title=&quot;Go 语言的 goroutine&quot;&gt;&lt;/a&gt;Go 语言的
        
      
    
    </summary>
    
      <category term="后端" scheme="https://tuliang.org/categories/%E5%90%8E%E7%AB%AF/"/>
    
    
      <category term="Go" scheme="https://tuliang.org/tags/Go/"/>
    
  </entry>
  
  <entry>
    <title>浅谈 Go 语言作用域</title>
    <link href="https://tuliang.org/qian-tan-go-yu-yan-zuo-yong-yu/"/>
    <id>https://tuliang.org/qian-tan-go-yu-yan-zuo-yong-yu/</id>
    <published>2019-03-13T12:46:08.000Z</published>
    <updated>2019-03-13T12:47:52.599Z</updated>
    
    <summary type="html">
    
      
      
        
        
          &lt;h1 id=&quot;浅谈-Go-语言作用域&quot;&gt;&lt;a href=&quot;#浅谈-Go-语言作用域&quot; class=&quot;headerlink&quot; title=&quot;浅谈 Go 语言作用域&quot;&gt;&lt;/a&gt;浅谈 Go 语言作用域&lt;/h1&gt;&lt;pre class=&quot; language-go&quot;&gt;&lt;code
        
      
    
    </summary>
    
      <category term="后端" scheme="https://tuliang.org/categories/%E5%90%8E%E7%AB%AF/"/>
    
    
      <category term="Go" scheme="https://tuliang.org/tags/Go/"/>
    
  </entry>
  
  <entry>
    <title>LeetCode 1. Two Sum</title>
    <link href="https://tuliang.org/leetcode-1-two-sum/"/>
    <id>https://tuliang.org/leetcode-1-two-sum/</id>
    <published>2019-02-20T12:00:54.000Z</published>
    <updated>2019-02-20T12:11:31.394Z</updated>
    
    <summary type="html">
    
      
      
        
        
          &lt;h1 id=&quot;LeetCode-1-Two-Sum&quot;&gt;&lt;a href=&quot;#LeetCode-1-Two-Sum&quot; class=&quot;headerlink&quot; title=&quot;LeetCode 1. Two Sum&quot;&gt;&lt;/a&gt;&lt;a
        
      
    
    </summary>
    
      <category term="算法与数据结构" scheme="https://tuliang.org/categories/%E7%AE%97%E6%B3%95%E4%B8%8E%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84/"/>
    
    
      <category term="Go" scheme="https://tuliang.org/tags/Go/"/>
    
      <category term="算法" scheme="https://tuliang.org/tags/%E7%AE%97%E6%B3%95/"/>
    
  </entry>
  
  <entry>
    <title>LeetCode 344. Reverse String</title>
    <link href="https://tuliang.org/leetcode-344-reverse-string/"/>
    <id>https://tuliang.org/leetcode-344-reverse-string/</id>
    <published>2019-02-15T11:58:36.000Z</published>
    <updated>2019-02-15T12:23:44.118Z</updated>
    
    <summary type="html">
    
      
      
        
        
          &lt;h1 id=&quot;LeetCode-344-Reverse-String&quot;&gt;&lt;a href=&quot;#LeetCode-344-Reverse-String&quot; class=&quot;headerlink&quot; title=&quot;LeetCode 344. Reverse String&quot;&gt;&lt;/a&gt;&lt;a
        
      
    
    </summary>
    
      <category term="算法与数据结构" scheme="https://tuliang.org/categories/%E7%AE%97%E6%B3%95%E4%B8%8E%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84/"/>
    
    
      <category term="Go" scheme="https://tuliang.org/tags/Go/"/>
    
      <category term="算法" scheme="https://tuliang.org/tags/%E7%AE%97%E6%B3%95/"/>
    
  </entry>
  
  <entry>
    <title>Redis Cluster 实践</title>
    <link href="https://tuliang.org/redis-cluster-shi-jian/"/>
    <id>https://tuliang.org/redis-cluster-shi-jian/</id>
    <published>2019-01-17T12:01:03.000Z</published>
    <updated>2019-01-17T12:22:29.688Z</updated>
    
    <summary type="html">
    
      
      
        
        
          &lt;h1 id=&quot;Redis-Cluster-实践&quot;&gt;&lt;a href=&quot;#Redis-Cluster-实践&quot; class=&quot;headerlink&quot; title=&quot;Redis Cluster 实践&quot;&gt;&lt;/a&gt;Redis Cluster 实践&lt;/h1&gt;&lt;h2 id=&quot;背景&quot;&gt;&lt;a
        
      
    
    </summary>
    
      <category term="后端" scheme="https://tuliang.org/categories/%E5%90%8E%E7%AB%AF/"/>
    
    
      <category term="Ruby" scheme="https://tuliang.org/tags/Ruby/"/>
    
      <category term="Redis" scheme="https://tuliang.org/tags/Redis/"/>
    
  </entry>
  
  <entry>
    <title>octopus MySQL read only</title>
    <link href="https://tuliang.org/octopus-mysql-read-only/"/>
    <id>https://tuliang.org/octopus-mysql-read-only/</id>
    <published>2019-01-10T13:39:20.000Z</published>
    <updated>2019-01-10T14:28:18.121Z</updated>
    
    <summary type="html">
    
      
      
        
        
          &lt;h1 id=&quot;octopus-MySQL-read-only&quot;&gt;&lt;a href=&quot;#octopus-MySQL-read-only&quot; class=&quot;headerlink&quot; title=&quot;octopus MySQL read only&quot;&gt;&lt;/a&gt;octopus MySQL
        
      
    
    </summary>
    
      <category term="后端" scheme="https://tuliang.org/categories/%E5%90%8E%E7%AB%AF/"/>
    
    
      <category term="Ruby" scheme="https://tuliang.org/tags/Ruby/"/>
    
      <category term="Rails" scheme="https://tuliang.org/tags/Rails/"/>
    
      <category term="MySQL" scheme="https://tuliang.org/tags/MySQL/"/>
    
  </entry>
  
  <entry>
    <title>使用 Docker Compose 搭建一个 MySQL 主从服务</title>
    <link href="https://tuliang.org/shi-yong-docker-compose-da-jian-yi-ge-mysql-zhu-cong-fu-wu/"/>
    <id>https://tuliang.org/shi-yong-docker-compose-da-jian-yi-ge-mysql-zhu-cong-fu-wu/</id>
    <published>2018-12-13T12:54:09.000Z</published>
    <updated>2018-12-13T13:10:42.046Z</updated>
    
    <summary type="html">
    
      
      
        
        
          &lt;h1 id=&quot;使用-Docker-Compose-搭建一个-MySQL-主从服务&quot;&gt;&lt;a href=&quot;#使用-Docker-Compose-搭建一个-MySQL-主从服务&quot; class=&quot;headerlink&quot; title=&quot;使用 Docker Compose 搭建一个
        
      
    
    </summary>
    
      <category term="工具" scheme="https://tuliang.org/categories/%E5%B7%A5%E5%85%B7/"/>
    
    
      <category term="MySQL" scheme="https://tuliang.org/tags/MySQL/"/>
    
      <category term="Docker" scheme="https://tuliang.org/tags/Docker/"/>
    
      <category term="Docker Compose" scheme="https://tuliang.org/tags/Docker-Compose/"/>
    
  </entry>
  
  <entry>
    <title>Redis 持久化</title>
    <link href="https://tuliang.org/redis-chi-jiu-hua/"/>
    <id>https://tuliang.org/redis-chi-jiu-hua/</id>
    <published>2018-12-09T10:10:23.000Z</published>
    <updated>2018-12-09T10:32:16.699Z</updated>
    
    <summary type="html">
    
      
      
        
        
          &lt;h1 id=&quot;Redis-持久化&quot;&gt;&lt;a href=&quot;#Redis-持久化&quot; class=&quot;headerlink&quot; title=&quot;Redis 持久化&quot;&gt;&lt;/a&gt;Redis 持久化&lt;/h1&gt;&lt;p&gt;Redis
        
      
    
    </summary>
    
      <category term="工具" scheme="https://tuliang.org/categories/%E5%B7%A5%E5%85%B7/"/>
    
    
      <category term="Redis" scheme="https://tuliang.org/tags/Redis/"/>
    
  </entry>
  
  <entry>
    <title>Nginx 进程和信号</title>
    <link href="https://tuliang.org/nginx-jin-cheng-he-xin-hao/"/>
    <id>https://tuliang.org/nginx-jin-cheng-he-xin-hao/</id>
    <published>2018-12-02T02:24:48.000Z</published>
    <updated>2018-12-04T14:27:47.663Z</updated>
    
    <summary type="html">
    
      
      
        
        
          &lt;h1 id=&quot;Nginx-进程和信号&quot;&gt;&lt;a href=&quot;#Nginx-进程和信号&quot; class=&quot;headerlink&quot; title=&quot;Nginx 进程和信号&quot;&gt;&lt;/a&gt;Nginx 进程和信号&lt;/h1&gt;&lt;h2 id=&quot;进程结构&quot;&gt;&lt;a href=&quot;#进程结构&quot;
        
      
    
    </summary>
    
      <category term="工具" scheme="https://tuliang.org/categories/%E5%B7%A5%E5%85%B7/"/>
    
    
      <category term="Nginx" scheme="https://tuliang.org/tags/Nginx/"/>
    
  </entry>
  
  <entry>
    <title>浅谈 Markdown 编译器</title>
    <link href="https://tuliang.org/qian-tan-markdown-bian-yi-qi/"/>
    <id>https://tuliang.org/qian-tan-markdown-bian-yi-qi/</id>
    <published>2018-11-18T15:32:36.000Z</published>
    <updated>2018-11-19T16:03:28.145Z</updated>
    
    <summary type="html">
    
      
      
        
        
          &lt;h1 id=&quot;浅谈-Markdown-编译器&quot;&gt;&lt;a href=&quot;#浅谈-Markdown-编译器&quot; class=&quot;headerlink&quot; title=&quot;浅谈 Markdown 编译器&quot;&gt;&lt;/a&gt;浅谈 Markdown
        
      
    
    </summary>
    
      <category term="后端" scheme="https://tuliang.org/categories/%E5%90%8E%E7%AB%AF/"/>
    
    
      <category term="Ruby" scheme="https://tuliang.org/tags/Ruby/"/>
    
      <category term="编译原理" scheme="https://tuliang.org/tags/%E7%BC%96%E8%AF%91%E5%8E%9F%E7%90%86/"/>
    
  </entry>
  
  <entry>
    <title>浏览数实践</title>
    <link href="https://tuliang.org/liu-lan-shu-shi-jian/"/>
    <id>https://tuliang.org/liu-lan-shu-shi-jian/</id>
    <published>2018-11-15T12:01:00.000Z</published>
    <updated>2018-11-15T12:14:35.141Z</updated>
    
    <summary type="html">
    
      
      
        
        
          &lt;h1 id=&quot;浏览数实践&quot;&gt;&lt;a href=&quot;#浏览数实践&quot; class=&quot;headerlink&quot; title=&quot;浏览数实践&quot;&gt;&lt;/a&gt;浏览数实践&lt;/h1&gt;&lt;p&gt;我们分析一下，浏览数更新很频繁，那么使用传统的关系型数据库并不合适。&lt;/p&gt;
&lt;p&gt;那么使用
        
      
    
    </summary>
    
      <category term="后端" scheme="https://tuliang.org/categories/%E5%90%8E%E7%AB%AF/"/>
    
    
      <category term="Ruby" scheme="https://tuliang.org/tags/Ruby/"/>
    
      <category term="Rails" scheme="https://tuliang.org/tags/Rails/"/>
    
      <category term="Redis" scheme="https://tuliang.org/tags/Redis/"/>
    
  </entry>
  
  <entry>
    <title>grep 显示标题</title>
    <link href="https://tuliang.org/grep-xian-shi-biao-ti/"/>
    <id>https://tuliang.org/grep-xian-shi-biao-ti/</id>
    <published>2018-11-14T13:39:24.000Z</published>
    <updated>2018-11-14T14:00:05.636Z</updated>
    
    <summary type="html">
    
      
      
        
        
          &lt;h1 id=&quot;grep-显示标题&quot;&gt;&lt;a href=&quot;#grep-显示标题&quot; class=&quot;headerlink&quot; title=&quot;grep 显示标题&quot;&gt;&lt;/a&gt;grep 显示标题&lt;/h1&gt;&lt;p&gt;我们使用 &lt;code&gt;grep&lt;/code&gt;
        
      
    
    </summary>
    
      <category term="工具" scheme="https://tuliang.org/categories/%E5%B7%A5%E5%85%B7/"/>
    
    
      <category term="Linux" scheme="https://tuliang.org/tags/Linux/"/>
    
  </entry>
  
  <entry>
    <title>成为技术领导者</title>
    <link href="https://tuliang.org/cheng-wei-ji-zhu-ling-dao-zhe/"/>
    <id>https://tuliang.org/cheng-wei-ji-zhu-ling-dao-zhe/</id>
    <published>2018-11-14T06:24:51.000Z</published>
    <updated>2018-11-14T06:32:04.764Z</updated>
    
    <summary type="html">
    
      
      
        
        
          &lt;h1 id=&quot;成为技术领导者&quot;&gt;&lt;a href=&quot;#成为技术领导者&quot; class=&quot;headerlink&quot;
        
      
    
    </summary>
    
      <category term="阅读" scheme="https://tuliang.org/categories/%E9%98%85%E8%AF%BB/"/>
    
    
      <category term="软件工程" scheme="https://tuliang.org/tags/%E8%BD%AF%E4%BB%B6%E5%B7%A5%E7%A8%8B/"/>
    
      <category term="方法论" scheme="https://tuliang.org/tags/%E6%96%B9%E6%B3%95%E8%AE%BA/"/>
    
      <category term="思维" scheme="https://tuliang.org/tags/%E6%80%9D%E7%BB%B4/"/>
    
      <category term="个人管理" scheme="https://tuliang.org/tags/%E4%B8%AA%E4%BA%BA%E7%AE%A1%E7%90%86/"/>
    
  </entry>
  
  <entry>
    <title>Effective Ruby 改善Ruby程序的48条建议</title>
    <link href="https://tuliang.org/effective-ruby-gai-shan-ruby-cheng-xu-de-48-tiao-jian-yi/"/>
    <id>https://tuliang.org/effective-ruby-gai-shan-ruby-cheng-xu-de-48-tiao-jian-yi/</id>
    <published>2018-11-07T09:08:35.000Z</published>
    <updated>2018-11-09T17:54:17.158Z</updated>
    
    <summary type="html">
    
      
      
        
        
          &lt;h1 id=&quot;Effective-Ruby-改善Ruby程序的48条建议&quot;&gt;&lt;a href=&quot;#Effective-Ruby-改善Ruby程序的48条建议&quot; class=&quot;headerlink&quot; title=&quot;Effective Ruby
        
      
    
    </summary>
    
      <category term="阅读" scheme="https://tuliang.org/categories/%E9%98%85%E8%AF%BB/"/>
    
    
      <category term="Ruby" scheme="https://tuliang.org/tags/Ruby/"/>
    
      <category term="测试" scheme="https://tuliang.org/tags/%E6%B5%8B%E8%AF%95/"/>
    
  </entry>
  
  <entry>
    <title>容器基础-隔离和限制</title>
    <link href="https://tuliang.org/rong-qi-ji-chu-ge-chi-he-xian-zhi/"/>
    <id>https://tuliang.org/rong-qi-ji-chu-ge-chi-he-xian-zhi/</id>
    <published>2018-11-05T08:48:48.000Z</published>
    <updated>2018-11-09T04:44:09.617Z</updated>
    
    <summary type="html">
    
      
      
        
        
          &lt;p&gt;容器技术的核心功能，就是通过修改和约束进程的动态表现，从而为其创造出一个“空间”。&lt;/p&gt;
&lt;p&gt;对于 &lt;code&gt;Docker&lt;/code&gt; 等大多数 &lt;code&gt;Linux&lt;/code&gt; 容器来说，&lt;code&gt;Namespace&lt;/code&gt;
        
      
    
    </summary>
    
      <category term="工具" scheme="https://tuliang.org/categories/%E5%B7%A5%E5%85%B7/"/>
    
    
      <category term="Docker" scheme="https://tuliang.org/tags/Docker/"/>
    
  </entry>
  
  <entry>
    <title>如何高效学习</title>
    <link href="https://tuliang.org/ru-he-gao-xiao-xue-xi/"/>
    <id>https://tuliang.org/ru-he-gao-xiao-xue-xi/</id>
    <published>2018-11-05T04:26:33.000Z</published>
    <updated>2018-11-05T04:28:31.759Z</updated>
    
    <summary type="html">
    
      
      
        
        
          &lt;p&gt;整体性学习策略强调将信息编织到知识网络中，而不是给自己加上机械记忆的负担，这个策略的基础有以下几方面。&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;结构 —— 关于某个学科的知识之间联系的总和，它是你大脑中的城市。&lt;/li&gt;
&lt;li&gt;模型 ——
        
      
    
    </summary>
    
      <category term="阅读" scheme="https://tuliang.org/categories/%E9%98%85%E8%AF%BB/"/>
    
    
      <category term="方法论" scheme="https://tuliang.org/tags/%E6%96%B9%E6%B3%95%E8%AE%BA/"/>
    
      <category term="思维" scheme="https://tuliang.org/tags/%E6%80%9D%E7%BB%B4/"/>
    
  </entry>
  
  <entry>
    <title>Docker 中 NGINX 挂载应用的静态文件</title>
    <link href="https://tuliang.org/docker-zhong-nginx-gua-zai-ying-yong-de-jing-tai-wen-jian/"/>
    <id>https://tuliang.org/docker-zhong-nginx-gua-zai-ying-yong-de-jing-tai-wen-jian/</id>
    <published>2018-10-31T18:10:13.000Z</published>
    <updated>2018-11-09T04:44:02.650Z</updated>
    
    <summary type="html">
    
      
      
        
        
          &lt;p&gt;在 &lt;code&gt;Docker&lt;/code&gt; 中 &lt;code&gt;NGINX&lt;/code&gt; 如何获得应用的静态文件呢？&lt;/p&gt;
&lt;p&gt;一般来说这种共享文件的需求，我们需要使用 &lt;code&gt;volumes&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;假如静态文件的地址是
        
      
    
    </summary>
    
      <category term="工具" scheme="https://tuliang.org/categories/%E5%B7%A5%E5%85%B7/"/>
    
    
      <category term="Docker" scheme="https://tuliang.org/tags/Docker/"/>
    
      <category term="Docker Compose" scheme="https://tuliang.org/tags/Docker-Compose/"/>
    
      <category term="NGINX" scheme="https://tuliang.org/tags/NGINX/"/>
    
  </entry>
  
  <entry>
    <title>大型网站系统与 Java 中间件开发实践</title>
    <link href="https://tuliang.org/da-xing-wang-zhan-xi-tong-yu-java-zhong-jian-jian-kai-fa-shi-jian/"/>
    <id>https://tuliang.org/da-xing-wang-zhan-xi-tong-yu-java-zhong-jian-jian-kai-fa-shi-jian/</id>
    <published>2015-04-17T13:05:48.000Z</published>
    <updated>2018-11-09T17:53:36.741Z</updated>
    
    <summary type="html">
    
      
      
        
        
          &lt;p&gt;阿姆达尔定律（Amdahl’s law）告诉我们，程序中可并行代码的比例决定你增加处理器所能带来的速度提升上限，是否能达到这个上限，还取决于很多其他因素。&lt;/p&gt;
&lt;p&gt;例如，当 P=0.5 时，我们可以计算出速度提升的上限就是 2。而如果
        
      
    
    </summary>
    
      <category term="阅读" scheme="https://tuliang.org/categories/%E9%98%85%E8%AF%BB/"/>
    
    
      <category term="Java" scheme="https://tuliang.org/tags/Java/"/>
    
      <category term="分布式" scheme="https://tuliang.org/tags/%E5%88%86%E5%B8%83%E5%BC%8F/"/>
    
  </entry>
  
  <entry>
    <title>Ruby thread pool</title>
    <link href="https://tuliang.org/ruby-thread-pool/"/>
    <id>https://tuliang.org/ruby-thread-pool/</id>
    <published>2015-04-10T08:54:08.000Z</published>
    <updated>2018-10-31T14:38:42.677Z</updated>
    
    <summary type="html">
    
      
      
        
        
          &lt;p&gt;有时候会遇到一个情况需要在多个远程服务获取数据。&lt;/p&gt;
&lt;p&gt;例如服务 &lt;code&gt;a&lt;/code&gt; 需要 &lt;code&gt;2&lt;/code&gt; 秒，服务 &lt;code&gt;b&lt;/code&gt; 需要 &lt;code&gt;5&lt;/code&gt; 秒，按照正常处理总共就需要
        
      
    
    </summary>
    
      <category term="后端" scheme="https://tuliang.org/categories/%E5%90%8E%E7%AB%AF/"/>
    
    
      <category term="Ruby" scheme="https://tuliang.org/tags/Ruby/"/>
    
      <category term="并发编程" scheme="https://tuliang.org/tags/%E5%B9%B6%E5%8F%91%E7%BC%96%E7%A8%8B/"/>
    
  </entry>
  
  <entry>
    <title>Ruby synchronized</title>
    <link href="https://tuliang.org/ruby-synchronized/"/>
    <id>https://tuliang.org/ruby-synchronized/</id>
    <published>2015-04-09T08:31:48.000Z</published>
    <updated>2018-10-31T14:24:45.149Z</updated>
    
    <summary type="html">
    
      
      
        
        
          &lt;p&gt;最近学习 &lt;code&gt;Java&lt;/code&gt; 的时候了解到在 &lt;code&gt;Java&lt;/code&gt; 中 &lt;code&gt;synchronized&lt;/code&gt; 关键字可以保证代码块的串行执行。&lt;/p&gt;
&lt;p&gt;在 &lt;code&gt;ruby&lt;/code&gt;
        
      
    
    </summary>
    
      <category term="后端" scheme="https://tuliang.org/categories/%E5%90%8E%E7%AB%AF/"/>
    
    
      <category term="Ruby" scheme="https://tuliang.org/tags/Ruby/"/>
    
      <category term="并发编程" scheme="https://tuliang.org/tags/%E5%B9%B6%E5%8F%91%E7%BC%96%E7%A8%8B/"/>
    
  </entry>
  
</feed>
