<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>linus</title>
    <link>https://ruby-china.org/linus</link>
    <description></description>
    <language>en-us</language>
    <item>
      <title>进程信息</title>
      <description>&lt;ol&gt;
&lt;li&gt;我们可以通过枚举方法一个个从 processes 里找&lt;/li&gt;
&lt;li&gt;知道 Pid，用 erlang:process_info(Pid) 来获得&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;img src="https://l.ruby-china.com/photo/2015/71dc43cd128cfdf7fe3b05535aaaac18.png" title="" alt=""&gt;&lt;/p&gt;

&lt;p&gt;但是我怎么得到这个进程的的返回消息呢，就是 ping 的结果？
&lt;img src="https://l.ruby-china.com/photo/2015/3737d07d505f8aa9d26e82c1628c449d.png" title="" alt=""&gt;&lt;/p&gt;

&lt;p&gt;erlang:group_leader(T,self()). 没有得到期望的结果。&lt;/p&gt;</description>
      <author>linus</author>
      <pubDate>Wed, 07 Oct 2015 18:43:49 +0800</pubDate>
      <link>https://ruby-china.org/topics/27575</link>
      <guid>https://ruby-china.org/topics/27575</guid>
    </item>
    <item>
      <title>Erlang 日志模块 lager</title>
      <description>&lt;p&gt;&lt;a href="https://github.com/basho/lager" rel="nofollow" target="_blank"&gt;https://github.com/basho/lager&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;img src="https://l.ruby-china.com/photo/2015/3747b18decd86456d912245254f4add2.png" title="" alt=""&gt;
&lt;img src="https://l.ruby-china.com/photo/2015/ed2a4b74b86f9f88559b484cfecb8073.png" title="" alt=""&gt;
&lt;img src="https://l.ruby-china.com/photo/2015/347a826daf59acfeef969f76ace0dc36.png" title="" alt=""&gt;&lt;/p&gt;

&lt;p&gt;下面这种用法，我试过在交互模式是不行的。
Once you have built your code with lager and started the lager application, you can then generate log messages by doing the following:&lt;/p&gt;

&lt;p&gt;lager:error("Some message")
Or:&lt;/p&gt;

&lt;p&gt;lager:warning("Some message with a term: ~p", [Term])
The general form is lager:Severity() where Severity is one of the log levels mentioned above.&lt;/p&gt;</description>
      <author>linus</author>
      <pubDate>Wed, 07 Oct 2015 11:14:01 +0800</pubDate>
      <link>https://ruby-china.org/topics/27565</link>
      <guid>https://ruby-china.org/topics/27565</guid>
    </item>
    <item>
      <title>Erlang OTP18 release 几天了。</title>
      <description>&lt;p&gt;Some highlights of the release are:&lt;/p&gt;

&lt;p&gt;Starting from 18.0 Erlang/OTP is released under the APL 2.0 (Apache Public License)
erts: The time functionality has been extended. This includes a new API for 
time, as well as "time warp" modes which alters the behavior when system time changes. You are strongly encouraged to use the new API instead of the old API based on erlang:now/0. erlang:now/0 has been deprecated since it is a scalability bottleneck. 
For more information see the Time and Time Correction chapter of the ERTS User's Guide. Here is a link &lt;a href="http://www.erlang.org/doc/apps/erts/time_correction.html" rel="nofollow" target="_blank"&gt;http://www.erlang.org/doc/apps/erts/time_correction.html&lt;/a&gt;
erts: Beside the API changes and time warp modes a lot of scalability and performance improvements regarding time management has been made. Examples are: 
scheduler specific timer wheels, 
scheduler specific BIF timer management, 
parallel retrieval of monotonic time and system time on OS:es that support it.
erts: The previously introduced "eager check I/O" feature is now enabled by default.
erts/compiler: enhanced support for maps. Big maps new uses a HAMT (Hash Array Mapped Trie) representation internally which makes them more efficient. There is now also support for variables as map keys.&lt;br&gt;
dialyzer: The -dialyzer() attribute can be used for suppressing warnings 
in a module by specifying functions or warning options. 
It can also be used for requesting warnings in a module.
ssl: Remove default support for SSL-3.0 and added padding check for TLS-1.0 due to the Poodle vulnerability.
ssl: Remove default support for RC4 cipher suites, as they are consider too weak.
stdlib: Allow maps for supervisor flags and child specs
stdlib: New functions in ets:
take/2. Works the same as ets:delete/2 but
          also returns the deleted object(s).
ets:update_counter/4 with a default object as
          argument&lt;/p&gt;</description>
      <author>linus</author>
      <pubDate>Sun, 28 Jun 2015 20:29:04 +0800</pubDate>
      <link>https://ruby-china.org/topics/26219</link>
      <guid>https://ruby-china.org/topics/26219</guid>
    </item>
    <item>
      <title>nitrogen 在 win7 上工作很好</title>
      <description>&lt;ol&gt;
&lt;li&gt;你可以下载 nitrogen-2.2.2-cowboy-win 包。&lt;/li&gt;
&lt;li&gt;解压了后，运行 start.cmd 就可以了。&lt;/li&gt;
&lt;li&gt;&lt;p&gt;创建页面的话就要用 console 了，bin/dev 和 bin/nitrogen 是不行的。
(nitrogen@127.0.0.1)3&amp;gt; nitrogen_dev:page("b").
Created page: ./site/src/b.erl
Remember to recompile!
ok
(nitrogen@127.0.0.1)4&amp;gt; &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;这样修改的文件能自动编译。
(nitrogen@127.0.0.1)4&amp;gt; sync:go().
Scanning source files...
ok
(nitrogen@127.0.0.1)5&amp;gt; &lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;</description>
      <author>linus</author>
      <pubDate>Mon, 20 Oct 2014 17:42:22 +0800</pubDate>
      <link>https://ruby-china.org/topics/22142</link>
      <guid>https://ruby-china.org/topics/22142</guid>
    </item>
    <item>
      <title>有 100，000 元给你创业你准备怎么个弄法</title>
      <description>&lt;p&gt;有道是没有梦想就不会成功，如果你得了一个创业基金的 100，000 元人民币，你会怎么做呢。当然这不多，但是作为起步还是够了的吧。我是想着月薪 10，000，差不多一年的工资。我想着给别人打多年工了，也为自己打一年工吧。成了高兴，这里所谓的成了是年底你的创业能够持平，明年能有发展的希望。要是不行，那下年我们就老实地打工吧。&lt;/p&gt;</description>
      <author>linus</author>
      <pubDate>Tue, 23 Jul 2013 20:59:00 +0800</pubDate>
      <link>https://ruby-china.org/topics/12719</link>
      <guid>https://ruby-china.org/topics/12719</guid>
    </item>
    <item>
      <title>你们用的苹果的笔记本都是什么型号啊，请教一下</title>
      <description>&lt;p&gt;想知道一下。
2013 苹果笔记本 MacBookAir711/7   7150 元
Apple/苹果 MacBook Pro MD102CH/A MD313 M 5224 元
但是到实体店去看几乎都要 8000 以上。你们是在哪里买的呢。&lt;/p&gt;</description>
      <author>linus</author>
      <pubDate>Mon, 22 Jul 2013 15:37:57 +0800</pubDate>
      <link>https://ruby-china.org/topics/12674</link>
      <guid>https://ruby-china.org/topics/12674</guid>
    </item>
    <item>
      <title>net-ssh-gateway 总是报错 Net::SSH::AuthenticationFailed</title>
      <description>&lt;pre class="highlight ruby"&gt;&lt;code&gt;&lt;span class="n"&gt;all_machines&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'192.168.0.100'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="n"&gt;gateway&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="no"&gt;Net&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="no"&gt;SSH&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="no"&gt;Gateway&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;new&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'192.168.0.1'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'root'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="ss"&gt;:password&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s1"&gt;'root'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;all_machines&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;each&lt;/span&gt; &lt;span class="k"&gt;do&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;machine&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;
  &lt;span class="n"&gt;gateway&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;ssh&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;machine&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="s1"&gt;'root'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;do&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;ssh&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;
    &lt;span class="n"&gt;uname&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;ssh&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;exec!&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'uname -a'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="nb"&gt;puts&lt;/span&gt; &lt;span class="s2"&gt;"machine: &lt;/span&gt;&lt;span class="si"&gt;#{&lt;/span&gt;&lt;span class="n"&gt;machine&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;; OS: &lt;/span&gt;&lt;span class="si"&gt;#{&lt;/span&gt;&lt;span class="n"&gt;uname&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
  &lt;span class="k"&gt;end&lt;/span&gt;
&lt;span class="k"&gt;end&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;</description>
      <author>linus</author>
      <pubDate>Fri, 19 Jul 2013 21:49:53 +0800</pubDate>
      <link>https://ruby-china.org/topics/12627</link>
      <guid>https://ruby-china.org/topics/12627</guid>
    </item>
    <item>
      <title>你看过的电影推荐</title>
      <description>&lt;pre class="highlight ruby"&gt;&lt;code&gt;
&lt;span class="n"&gt;肖申克救赎&lt;/span&gt;
&lt;span class="n"&gt;黑帮片三部曲&lt;/span&gt;&lt;span class="err"&gt;：《&lt;/span&gt;&lt;span class="n"&gt;教父&lt;/span&gt;&lt;span class="err"&gt;》、《&lt;/span&gt;&lt;span class="n"&gt;美国往事&lt;/span&gt;&lt;span class="err"&gt;》、《&lt;/span&gt;&lt;span class="no"&gt;Goodfellas&lt;/span&gt;&lt;span class="err"&gt;》&lt;/span&gt;
&lt;span class="n"&gt;十二生肖&lt;/span&gt;
&lt;span class="n"&gt;速度与激情&lt;/span&gt;
&lt;span class="n"&gt;独自等待&lt;/span&gt;
&lt;span class="err"&gt;《&lt;/span&gt;&lt;span class="n"&gt;冰与火之歌&lt;/span&gt;&lt;span class="err"&gt;》&lt;/span&gt;
&lt;span class="err"&gt;《&lt;/span&gt;&lt;span class="n"&gt;童年往事&lt;/span&gt;&lt;span class="err"&gt;》&lt;/span&gt;
&lt;span class="err"&gt;《&lt;/span&gt;&lt;span class="n"&gt;一一&lt;/span&gt;&lt;span class="err"&gt;》&lt;/span&gt;
&lt;span class="err"&gt;《&lt;/span&gt;&lt;span class="n"&gt;海滩的一天&lt;/span&gt;&lt;span class="err"&gt;》&lt;/span&gt;
&lt;span class="err"&gt;《&lt;/span&gt;&lt;span class="n"&gt;投奔怒海&lt;/span&gt;&lt;span class="err"&gt;》&lt;/span&gt;
&lt;span class="err"&gt;《&lt;/span&gt;&lt;span class="n"&gt;南国再见&lt;/span&gt;&lt;span class="err"&gt;，&lt;/span&gt;&lt;span class="n"&gt;南国&lt;/span&gt;&lt;span class="err"&gt;》&lt;/span&gt;
&lt;span class="err"&gt;《&lt;/span&gt;&lt;span class="n"&gt;小毕的故事&lt;/span&gt;&lt;span class="err"&gt;》&lt;/span&gt;
&lt;span class="n"&gt;怦然心动&lt;/span&gt;
&lt;span class="no"&gt;X战警&lt;/span&gt; 
&lt;span class="n"&gt;钢铁侠3&lt;/span&gt;
&lt;span class="n"&gt;我是杀人犯&lt;/span&gt;
&lt;span class="n"&gt;预产期&lt;/span&gt;
&lt;span class="n"&gt;忠犬八公&lt;/span&gt;
&lt;span class="n"&gt;天伦之乐&lt;/span&gt;
&lt;span class="n"&gt;西西里的美丽传说&lt;/span&gt;
&lt;span class="n"&gt;海上钢琴师&lt;/span&gt;
&lt;span class="n"&gt;天堂电影院&lt;/span&gt;
&lt;span class="n"&gt;真爱至上挺&lt;/span&gt;
&lt;span class="n"&gt;诺丁山&lt;/span&gt;
&lt;span class="n"&gt;朱利亚罗伯茨的&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;永不妥协&lt;/span&gt;
&lt;span class="n"&gt;游园惊梦&lt;/span&gt;
&lt;span class="n"&gt;布达佩斯之恋&lt;/span&gt;
&lt;span class="n"&gt;天使之恋&lt;/span&gt;
&lt;span class="n"&gt;午夜巴塞罗那&lt;/span&gt;
&lt;span class="n"&gt;千禧曼波&lt;/span&gt;
&lt;span class="n"&gt;最美好的时光&lt;/span&gt;
&lt;span class="n"&gt;晚期四重奏&lt;/span&gt;
&lt;span class="n"&gt;上帝保佑美国&lt;/span&gt;
&lt;span class="n"&gt;狙击电话亭&lt;/span&gt;
&lt;span class="n"&gt;这个男人来自地球&lt;/span&gt;
&lt;span class="n"&gt;猎头游戏&lt;/span&gt;
&lt;span class="n"&gt;捕蝇纸&lt;/span&gt;
&lt;span class="n"&gt;三傻大闹宝莱坞&lt;/span&gt; 
&lt;span class="n"&gt;弱点&lt;/span&gt;
&lt;span class="n"&gt;逍遥法外&lt;/span&gt;
&lt;span class="n"&gt;火柴人&lt;/span&gt;
&lt;span class="n"&gt;入殓师&lt;/span&gt;
&lt;span class="n"&gt;仙境之桥&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;</description>
      <author>linus</author>
      <pubDate>Fri, 19 Jul 2013 09:05:00 +0800</pubDate>
      <link>https://ruby-china.org/topics/12599</link>
      <guid>https://ruby-china.org/topics/12599</guid>
    </item>
    <item>
      <title>大家一周有点什么运动没？</title>
      <description>&lt;p&gt;作为一个搞 IT 的，每天对着个电脑，我是坚持一个星期至少有一次球类活动，你呢。跑步还是什么业余活动&lt;/p&gt;</description>
      <author>linus</author>
      <pubDate>Thu, 18 Jul 2013 22:54:48 +0800</pubDate>
      <link>https://ruby-china.org/topics/12596</link>
      <guid>https://ruby-china.org/topics/12596</guid>
    </item>
    <item>
      <title>Hadoop 这个还真大</title>
      <description>&lt;p&gt;这个林子还真大！Hadoop/Hue/Hive/oozie 看下那个生态图谱就知道了。全部弄清还真不是两三个月能搞定的事。&lt;/p&gt;</description>
      <author>linus</author>
      <pubDate>Wed, 17 Jul 2013 00:19:49 +0800</pubDate>
      <link>https://ruby-china.org/topics/12554</link>
      <guid>https://ruby-china.org/topics/12554</guid>
    </item>
    <item>
      <title>找到合适的成员挺重要的</title>
      <description>&lt;p&gt;就如大家所知，一个团队要各种各样有能力的人。有能力把这些人组合到一起就是相当不错的一种能力。有这方面的经验的能分享一下吗？下面是我的一些看法：&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;光凭一个人的激情去创业的话。也有燃烧尽的时候，如果能在这个时段就把基础打好了，核心成员都形成了，有了一个可以支付最低开销的来源，那就有了可持续发展的可能性的。&lt;/li&gt;
&lt;li&gt;遇到问题了也能有一种最优解决方案的途径。&lt;/li&gt;
&lt;li&gt;对整个周期能有一个计划，多久时间应该到什么样一阶段。&lt;/li&gt;
&lt;li&gt;了解竞争对手的一些细节。我觉得刚开始的时候，还是不要做第一个吃螃蠏的人比较好，这样有一个榜样可以来学习。&lt;/li&gt;
&lt;/ol&gt;</description>
      <author>linus</author>
      <pubDate>Fri, 19 Oct 2012 10:34:24 +0800</pubDate>
      <link>https://ruby-china.org/topics/6172</link>
      <guid>https://ruby-china.org/topics/6172</guid>
    </item>
  </channel>
</rss>
