<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>jhjguxin (Francis Jiang)</title>
    <link>https://ruby-china.org/jhjguxin</link>
    <description>Just for fun,just do it...</description>
    <language>en-us</language>
    <item>
      <title>又拍云 latest_specs 缓存太旧了</title>
      <description>&lt;p&gt;今天上服务器 更新一下 &lt;code&gt;gem&lt;/code&gt; 发现 &lt;code&gt;sprockets 3.7.0&lt;/code&gt; 死活升级不过&lt;/p&gt;

&lt;p&gt;手动执行结果如下&lt;/p&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;gem &lt;span class="nb"&gt;install &lt;/span&gt;sprockets &lt;span class="nt"&gt;-V&lt;/span&gt; &lt;span class="nt"&gt;-v&lt;/span&gt; 3.7.0 &lt;span class="nt"&gt;--source&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;https://gems.ruby-china.org/
GET https://gems.ruby-china.org/specs.4.8.gz
302 Moved Temporarily
GET https://gems-ruby-china.b0.upaiyun.com/specs.4.8.gz
304 Not Modified
ERROR:  Could not find a valid gem &lt;span class="s1"&gt;'sprockets'&lt;/span&gt; &lt;span class="o"&gt;(=&lt;/span&gt; 3.7.0&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="k"&gt;in &lt;/span&gt;any repository
GET https://gems.ruby-china.org/prerelease_specs.4.8.gz
302 Moved Temporarily
GET https://gems-ruby-china.b0.upaiyun.com/prerelease_specs.4.8.gz
304 Not Modified
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;然后检查 &lt;code&gt;sprockets-3.7.0.gemspec.rz&lt;/code&gt; 结果正常&lt;/p&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-I&lt;/span&gt; https://gems-ruby-china.b0.upaiyun.com/quick/Marshal.4.8/sprockets-3.7.0.gemspec.rz
HTTP/1.1 200 OK
Server: marco/0.17
Date: Tue, 09 Aug 2016 12:21:48 GMT
Content-Type: application/octet-stream
Content-Length: 704
Connection: keep-alive
X-Source: C/200
X-Proxy-Route: abroad, abroad
X-Amz-Replication-Status: PENDING
X-Served-By: cache-sea1927-SEA, cache-hkg6826-HKG
ETag: &lt;span class="s2"&gt;"a8d03cc13380014310a6e53a28068a28"&lt;/span&gt;
X-Amz-Request-Id: C26F5C712BEB6C7C
X-Cache-Hits: 1, 1
X-Amz-Version-Id: N_PvGrirliSE9_fQoQoz0CpsiLrpsHIx
Last-Modified: Thu, 21 Jul 2016 15:39:27 GMT
X-Amz-Id-2: zSq489nkQVoRHf5P0TJqtjUor93Xim2lrT2xXMop61vLgihogM99wXB1DgEyOEaYS6Eu57df/tQ&lt;span class="o"&gt;=&lt;/span&gt;
Fastly-Debug-Digest: fa4e31d4fa8873dc9530e73cf74017198aba19301568e0358f70c3d807a21b3c
Age: 1629660
Accept-Ranges: bytes
Expires: Fri, 21 Jul 2017 16:24:14 GMT
Cache-Control: max-age&lt;span class="o"&gt;=&lt;/span&gt;31536000
X-Cache: HIT from mix-hz-fdi-170&lt;span class="p"&gt;;&lt;/span&gt; HIT from ctn-zj-lna-200
X-Request-Id: 83df2159d16c24f156b9c776aac8d9a0&lt;span class="p"&gt;;&lt;/span&gt; 55fe3700ca4f5457e24bf62d1971911e
Via: S.mix-hz-fdi-171, T.101169.H.1, V.mix-hz-fdi-170, T.101202.H.1, M.ctn-zj-lna-200
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;最后 仔细看了一下 又拍云的 &lt;code&gt;latest_specs.4.8.gz&lt;/code&gt;&lt;/p&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-I&lt;/span&gt; https://gems-ruby-china.b0.upaiyun.com/latest_specs.4.8.gz
HTTP/1.1 200 OK
Server: marco/0.17
Date: Tue, 09 Aug 2016 12:20:38 GMT
Content-Type: application/octet-stream
Content-Length: 1007041
Connection: keep-alive
X-Source: U/200
X-Cache: MISS&lt;span class="o"&gt;(&lt;/span&gt;S&lt;span class="o"&gt;)&lt;/span&gt;|MISS from 403-zj-fud-207, MISS from mix-hz-fdi-171&lt;span class="p"&gt;;&lt;/span&gt; HIT&lt;span class="o"&gt;(&lt;/span&gt;R&lt;span class="o"&gt;)&lt;/span&gt; from ctn-zj-lna-200
Cache-Control: max-age&lt;span class="o"&gt;=&lt;/span&gt;667460
Etag: &lt;span class="s2"&gt;"9343fd14667b5d6e5e17b5285176d972"&lt;/span&gt;
X-Last-Content-Length: 1007041
X-Upyun-Created-Date: Mon, 27 Jun 2016 09:11:27 GMT
Expires: Tue, 16 Aug 2016 20:20:22 GMT
X-Request-Id: a68a4a5abf3497449206dc205d7bdb47&lt;span class="p"&gt;;&lt;/span&gt; d045b2eeddba047615359fae7f8d62d5
Last-Modified: Mon, 27 Jun 2016 09:00:46 GMT
Age: 33876
Accept-Ranges: bytes
Via: T.5209.S.2, T.5209.M.1, V.403-zj-fud-207, S.mix-hz-fdi-168, T.101172.M.1, V.mix-hz-fdi-171, T.101200.R.1, M.ctn-zj-lna-200

&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;发现 又拍云创建时间是 &lt;code&gt;X-Upyun-Created-Date: Mon, 27 Jun 2016 09:11:27 GMT&lt;/code&gt; 过期时间是 &lt;code&gt;Expires: Tue, 16 Aug 2016 20:20:22 GMT&lt;/code&gt;
那么这期间的更新&lt;strong&gt;就没有了&lt;/strong&gt; 着时间跨度似乎有点太长了吧 &lt;img title=":sob:" alt="😭" src="https://twemoji.ruby-china.com/2/svg/1f62d.svg" class="twemoji"&gt; 
&lt;a href="/huacnlee" class="user-mention" title="@huacnlee"&gt;&lt;i&gt;@&lt;/i&gt;huacnlee&lt;/a&gt; 看看 是不是得处理一下&lt;/p&gt;</description>
      <author>jhjguxin</author>
      <pubDate>Tue, 09 Aug 2016 20:35:51 +0800</pubDate>
      <link>https://ruby-china.org/topics/30782</link>
      <guid>https://ruby-china.org/topics/30782</guid>
    </item>
    <item>
      <title>关于 ruby array `dup` 很诡异 的问题</title>
      <description>&lt;pre class="highlight ruby"&gt;&lt;code&gt;&lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[{&lt;/span&gt;&lt;span class="ss"&gt;a: &lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="ss"&gt;b: &lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="ss"&gt;c: &lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;}]&lt;/span&gt;
&lt;span class="n"&gt;l&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;dup&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;select&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;skill&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="n"&gt;l&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;include?&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;skill&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;delete&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="ss"&gt;:a&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="n"&gt;a&lt;/span&gt;
&lt;span class="c1"&gt;# =&amp;gt; [{:b=&amp;gt;3, :c=&amp;gt;1}]&lt;/span&gt;


&lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[{&lt;/span&gt;&lt;span class="ss"&gt;a: &lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="ss"&gt;b: &lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="ss"&gt;c: &lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;}]&lt;/span&gt;
&lt;span class="n"&gt;l&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="n"&gt;b&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;dup&lt;/span&gt;
&lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;dup&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;select&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;skill&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="n"&gt;l&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;include?&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;skill&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;delete&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="ss"&gt;:a&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="n"&gt;a&lt;/span&gt;
&lt;span class="c1"&gt;# =&amp;gt; [{:b=&amp;gt;3, :c=&amp;gt;1}]&lt;/span&gt;

&lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[{&lt;/span&gt;&lt;span class="ss"&gt;a: &lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="ss"&gt;b: &lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="ss"&gt;c: &lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;}]&lt;/span&gt;
&lt;span class="n"&gt;l&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;dup&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;select&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;skill&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="n"&gt;l&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;include?&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;skill&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;deep_dup&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;delete&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="ss"&gt;:a&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="c1"&gt;# =&amp;gt; [{:a=&amp;gt;1, :b=&amp;gt;3, :c=&amp;gt;1}]&lt;/span&gt;

&lt;span class="c1"&gt;# 只能这样 ??&lt;/span&gt;
&lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;select&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;skill&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="n"&gt;l&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;include?&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;skill&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"a"&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt; &lt;span class="p"&gt;}.&lt;/span&gt;&lt;span class="nf"&gt;delete_if&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;k&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="n"&gt;k&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;to_s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;eql?&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"a"&lt;/span&gt;&lt;span class="p"&gt;)}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;</description>
      <author>jhjguxin</author>
      <pubDate>Thu, 28 Nov 2013 20:36:41 +0800</pubDate>
      <link>https://ruby-china.org/topics/15871</link>
      <guid>https://ruby-china.org/topics/15871</guid>
    </item>
    <item>
      <title>有关 Rails Engine 的几个问题？</title>
      <description>&lt;h3 id="How about the '--mountable' and '--full' beside in the Rails 3.x Engines ,and also 'rails new'?"&gt;How about the '--mountable' and '--full' beside in the Rails 3.x Engines ,and also 'rails new'?&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;rails plugin new&lt;/code&gt;的&lt;code&gt;--mountable&lt;/code&gt; and &lt;code&gt;--full&lt;/code&gt;有什么区别呢，以及&lt;code&gt;rails new&lt;/code&gt;？&lt;/p&gt;
&lt;h3 id="Has any defferent between the 'dependency' in '*.gemspec' file and the 'gem "&gt;Has any defferent between the 'dependency' in '*.gemspec' file and the 'gem "gemname"' in 'Gemfile'?&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;*.gemspec&lt;/code&gt; 的 &lt;code&gt;dependency&lt;/code&gt; 添加 &lt;code&gt;gem&lt;/code&gt;？它和 &lt;code&gt;Gemfile&lt;/code&gt; 的 &lt;code&gt;gem "gemname"&lt;/code&gt; 有什么不同之处吗？或者说是联系？&lt;/p&gt;
&lt;h3 id="the rails application created by'rails plugin new myengine --full',how to use the 'dummy' app and real app?"&gt;the rails application created by'rails plugin new myengine --full',how to use the 'dummy' app and real app?&lt;/h3&gt;
&lt;p&gt;对于使用 &lt;code&gt;rails plugin new myengine --full&lt;/code&gt; 创建的项目该怎么使用 &lt;code&gt;dummy&lt;/code&gt; app 和真实的 app？&lt;/p&gt;

&lt;p&gt;在做 engine demo 过程中遇到了 几个问题 请教一下？我也再找找资料 然后 我再整理一下 就是经验了 嘿嘿？  &lt;/p&gt;</description>
      <author>jhjguxin</author>
      <pubDate>Thu, 19 Apr 2012 11:15:58 +0800</pubDate>
      <link>https://ruby-china.org/topics/2714</link>
      <guid>https://ruby-china.org/topics/2714</guid>
    </item>
    <item>
      <title>南京的 weber rubyer 有没有想法 聚一聚啊</title>
      <description>&lt;p&gt;如题，南京是不是 也该有个 Ruby Tuesday？？？？？
提议大家聚一聚 想多认识点 朋友。
&lt;a href="/ywencn" class="user-mention" title="@ywencn"&gt;&lt;i&gt;@&lt;/i&gt;ywencn&lt;/a&gt; &lt;a href="/jhjguxin" class="user-mention" title="@jhjguxin"&gt;&lt;i&gt;@&lt;/i&gt;jhjguxin&lt;/a&gt; &lt;a href="/ShiningRay" class="user-mention" title="@ShiningRay"&gt;&lt;i&gt;@&lt;/i&gt;ShiningRay&lt;/a&gt; &lt;a href="/messiahxu" class="user-mention" title="@messiahxu"&gt;&lt;i&gt;@&lt;/i&gt;messiahxu&lt;/a&gt; &lt;a href="/zhiliang" class="user-mention" title="@zhiliang"&gt;&lt;i&gt;@&lt;/i&gt;zhiliang&lt;/a&gt; &lt;a href="/yesmeck" class="user-mention" title="@yesmeck"&gt;&lt;i&gt;@&lt;/i&gt;yesmeck&lt;/a&gt; &lt;a href="/fengluo" class="user-mention" title="@fengluo"&gt;&lt;i&gt;@&lt;/i&gt;fengluo&lt;/a&gt; &lt;a href="/bee1314" class="user-mention" title="@bee1314"&gt;&lt;i&gt;@&lt;/i&gt;bee1314&lt;/a&gt; &lt;a href="/pizzq" class="user-mention" title="@pizzq"&gt;&lt;i&gt;@&lt;/i&gt;pizzq&lt;/a&gt; &lt;a href="/simon" class="user-mention" title="@simon"&gt;&lt;i&gt;@&lt;/i&gt;simon&lt;/a&gt; &lt;a href="/zhang" class="user-mention" title="@zhang"&gt;&lt;i&gt;@&lt;/i&gt;zhang&lt;/a&gt; &lt;a href="/deathchess" class="user-mention" title="@deathchess"&gt;&lt;i&gt;@&lt;/i&gt;deathchess&lt;/a&gt; &lt;a href="/bigfang" class="user-mention" title="@bigfang"&gt;&lt;i&gt;@&lt;/i&gt;bigfang&lt;/a&gt;  &lt;/p&gt;</description>
      <author>jhjguxin</author>
      <pubDate>Wed, 28 Mar 2012 13:47:22 +0800</pubDate>
      <link>https://ruby-china.org/topics/2203</link>
      <guid>https://ruby-china.org/topics/2203</guid>
    </item>
    <item>
      <title>小小 bug 这样也会自动关联用户</title>
      <description>&lt;p&gt;&lt;code&gt;@hello_123&lt;/code&gt;&lt;/p&gt;
&lt;pre class="highlight ruby"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;set_seo_meta&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;title&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;''&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="n"&gt;meta_keywords&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;''&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;meta_description&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;''&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;title&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;length&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;
    &lt;span class="vi"&gt;@page_title&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="si"&gt;#{&lt;/span&gt;&lt;span class="n"&gt;title&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="vi"&gt;@meta_keywords&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;meta_keywords&lt;/span&gt;
  &lt;span class="vi"&gt;@meta_description&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;meta_description&lt;/span&gt;
&lt;span class="k"&gt;end&lt;/span&gt;


&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;代码里的实例变量不是自动关联了么 &lt;code&gt;@not_an_user&lt;/code&gt;  &lt;/p&gt;</description>
      <author>jhjguxin</author>
      <pubDate>Sat, 24 Mar 2012 18:47:29 +0800</pubDate>
      <link>https://ruby-china.org/topics/2106</link>
      <guid>https://ruby-china.org/topics/2106</guid>
    </item>
    <item>
      <title>迷茫啊，求 leader，求道友，求 offer...</title>
      <description>&lt;p&gt;本人真正写代码也有快两年了。&lt;/p&gt;

&lt;p&gt;开始的 leader 经常往国外跑而且是个技术狂人，有幸开始真正开发就接触的 python，花了两个月时间 python 核心编程（中文版），那时候感觉 python 是个好东西啊（其实现在也是好东西），感觉 python 特别易学，好像一下就能看懂，开始认同 python‘只用不学’思想，现在回过头来发现 python 就是学一些基础的语法约定，然后了解常用的 module，最后就是不停的 debug 不停的用别人 demo 不停的重构然后 python 有了一定的了解后就开始接触 django，在学校的时候根本就没接触什么框架语言之类的东西，学校里也接触过做网站还用 asp 做过一个在线考试系统（哈哈当时就完全茫然了没有一个对网站 schema 的了解，到做完都不知道这个东东是怎么出来的完全没有一个直观的观念，因为这个 demo 是在网上 down 下来的嘿嘿），发觉 django 就很王道了有一个自带的后台，有很多的库，有了直观具体的约定，知道了 mvc 思想，做第一个 django demo 的时候就照着 django 中文版做下来就是一个动态语言的网站（了解了数据库配置，字段设计，route 设计，view 的编写，模板以及定制模板标签（这里就要对 django 的 custom template tag 抱怨了用起来特麻烦了一点都没有 helper 用着自在），然后还用了 django 的懒人后台，还配上了 apache），感觉太无敌了自己竟然做好了一个网站。&lt;/p&gt;

&lt;p&gt;然后就是基于 django 的 blog 的正式开发，刚开始学习的时候 leader 就说了作为一个开发人员三样东西很重要，worklog，code Repositories,wiki。blog 能随时记录自己接触的新思想，以及一些总结。更何况我当时是从 web 入门的一个完全自己编写能够自主的 blog 就更是需要了。然后就开始写 blog。这开始真正使用到了 github，开始源代码托管，不用把代码背在身上了。然后从 leader 要了一个需求文档开始了，刚开始做的时候才发觉要实现一个功能是要做那么多的事情。真正着手的时候才发现有那么多的东西搞不懂，django 中文版真的太不够用了，开始上官网看文档，但是一些大体的设计还是很迷茫，然后是在没法了知道了 git 还可以 search demo 然后开始参考各种 demo 开始了重构之路，磕磕碰碰做了接近一个月时间总算是把样板弄出来了（各种改写，各种重构，各种 cp，各种定制，受益颇深啊）。还 deploy 到 vps 上跑了一下感觉还行，然后又是很长的时间的改 bug 之路，一个劲的 pdb.set_trace()，然后就是回学校拿本本咯。&lt;/p&gt;

&lt;p&gt;之后就是找工作了，由于 leader，打算是自己创业了，结果我毕业的时候他还没有着落，所以就让我们出来单飞了。最后来到了南京，开始测试手机软件。本人是特喜欢接触新东西新技术的，实习的时候写代码到两三点纯属正常。于是就开始了边测试边写代码咯。&lt;/p&gt;

&lt;p&gt;然后就通过以前的 leader 接触到了 ruby，python 和 ruby 的思想有着不少共通的也没花多少时间就了解了 ruby，这是一种魔法语言啊，写法非常自由，虽然约定优于定义但是你真要按自己的来也不会不让过的。通过 rails 的 guide 知道了 rails 的十分钟怎样做一个 blog，各种脚手架各种 generate 各种 helper 啥的是各种爽啊。这才是自由的语言啊。比 django 顺手多了，django 的 custom templates tag 和自带的后台让我影响深刻啊。&lt;/p&gt;

&lt;p&gt;然后，一个冲动决定弄一个 rails 的 blog 于是，francisjiang.heroku.com/ 就出现了。然后知道了 gem 是个好东西啊，rvm 也是 ruby 不可少的&lt;/p&gt;

&lt;p&gt;东西。现在刚刚做完一个网店的 demo，发觉 rails 才是框架嘛（我觉得 django 应该把后台移除，通过扩展的形式 给出，然后还要有创建器功能，框架就要有框架的样子嘛）。和 ruby-china 接轨了解各种即时的知识。这几天还在拼命的写 spec example 中。头疼啊。太自由了写法如果不规范的话，完全自己写还成要和别人的东西组合就困难咯（rails 的 code style 一定要尽量遵守）。&lt;/p&gt;

&lt;p&gt;估计是项目要做完了的原因吧，每次要做完了就觉得特茫然。感觉莫出路，况且我现在还是一个苦逼的测试，公司都是用 c，java 做软件的我也搞不懂。就一个人单操。我一直都在想是不是该专门换一个专门做 web 开发的工作。能做 rails 最好。做测试工资也不高。没有一个志同道合的人一起做，特累，以前的 leader 又让我做一个类似豆瓣的东东，但是感觉老是一个人做，做出来的东西感觉都拿不出手，也不知道别人能用不。想换工作啊，又担心不自由，我心里就想有个地方能让我写写代码能够随时接触自己喜欢的新东西就好了。哎又想家了。又莫出路。又不想到新的地方去，一个人从四川来到南京....想有一些朋友能够一起做一些东西。不知道一个这样学有意义么。&lt;/p&gt;

&lt;p&gt;迷茫啊，求 leader，求道友，求 offer...&lt;/p&gt;</description>
      <author>jhjguxin</author>
      <pubDate>Fri, 16 Mar 2012 12:07:48 +0800</pubDate>
      <link>https://ruby-china.org/topics/1897</link>
      <guid>https://ruby-china.org/topics/1897</guid>
    </item>
    <item>
      <title>分享 links</title>
      <description>&lt;p&gt;&lt;a href="http://jhjguxin.sinaapp.com" rel="nofollow" target="_blank"&gt;http://jhjguxin.sinaapp.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;部署的 可以访问的 blog 到是有好几个（一个 django，一个静态的 git page octopress 
，一个 heroku 的 rails，一个 php 的 wordpress）rails 的也有但是在 heroku 上面 感觉心里总不踏实 但是 基于 稳定性啥的 考虑 还是 用 sinaapp 这个 blog 好了（精力有限主要还是使用这个 blog 了）。
&lt;img src="//l.ruby-china.com/photo/e11f5733b0c81cfc3b0706ed389fec98.jpg" title="" alt=""&gt;&lt;/p&gt;

&lt;p&gt;学习 rails 有大半年了 从 django 转过来的 主要是 认为 rails 更自由 gem 特方便
这里 求 交换链接哈 这样 在 google analytics 里面看着舒坦一点 嘿嘿 也可以认识不少的 同志
愿意的 给个回复 
希望能够多多交流！&lt;/p&gt;</description>
      <author>jhjguxin</author>
      <pubDate>Wed, 15 Feb 2012 12:54:47 +0800</pubDate>
      <link>https://ruby-china.org/topics/1207</link>
      <guid>https://ruby-china.org/topics/1207</guid>
    </item>
    <item>
      <title>娱乐一下</title>
      <description>&lt;p&gt;嘎嘎 盗版了 ruby-china 的 UI 放到我的 blog 上 嘿嘿
上图
&lt;img src="//l.ruby-china.com/photo/68d673573a668445cd145b78898d76b6.png" title="" alt=""&gt;
&lt;img src="//l.ruby-china.com/photo/4cbb01a84aebb23ef6b6bff0651af47d.png" title="" alt=""&gt;&lt;/p&gt;</description>
      <author>jhjguxin</author>
      <pubDate>Thu, 09 Feb 2012 23:26:48 +0800</pubDate>
      <link>https://ruby-china.org/topics/1114</link>
      <guid>https://ruby-china.org/topics/1114</guid>
    </item>
    <item>
      <title>嘿嘿 我发现 ruby china 里的 图片上传给力</title>
      <description>&lt;p&gt;看了 N 久的 代码
我发现 ruby china 里的 图片上传给力
明天 娄到 我的 mvc 里面去 不然用别人的 老是丢链接  &lt;/p&gt;</description>
      <author>jhjguxin</author>
      <pubDate>Wed, 11 Jan 2012 23:02:53 +0800</pubDate>
      <link>https://ruby-china.org/topics/817</link>
      <guid>https://ruby-china.org/topics/817</guid>
    </item>
    <item>
      <title>今天打酱油咯</title>
      <description>&lt;p&gt;订了车票，一直都是 想入非非的 洗洗睡 算了 
            不打持久战  &lt;/p&gt;</description>
      <author>jhjguxin</author>
      <pubDate>Mon, 09 Jan 2012 23:19:20 +0800</pubDate>
      <link>https://ruby-china.org/topics/795</link>
      <guid>https://ruby-china.org/topics/795</guid>
    </item>
    <item>
      <title>rails application 在 server 上的部署？</title>
      <description>&lt;p&gt;各位我打算用 apache+passenger+mysql 或者 passenger+mysql+nginx 是&lt;strong&gt;大众化&lt;/strong&gt;的部署哇？
有什么补充没有呢楼下...  &lt;/p&gt;</description>
      <author>jhjguxin</author>
      <pubDate>Mon, 09 Jan 2012 14:52:20 +0800</pubDate>
      <link>https://ruby-china.org/topics/786</link>
      <guid>https://ruby-china.org/topics/786</guid>
    </item>
  </channel>
</rss>
