<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>uudui</title>
    <link>https://ruby-china.org/uudui</link>
    <description>Web开发者</description>
    <language>en-us</language>
    <item>
      <title>[上海][求聘] 帮女友寻一份工作</title>
      <description>&lt;p&gt;大家好，在此借 Ruby China 的平台发布一则求职信息：首先向大家澄清一个误点，并不是帮女朋友找一份 ruby 或 rails 方面的工作，而是文职类，若有不妥望大家见谅，说了这么多直接进入正题：&lt;/p&gt;

&lt;p&gt;我来上海近一年了，今年初女朋友也来上海，希望她能在上海这边找一份文职类工作，稳定下来，最好是能够在浦东张江这边，当然其他地方只要交通方便都好说。&lt;/p&gt;

&lt;p&gt;女朋友 &lt;strong&gt;英语&lt;/strong&gt; 专业出身， &lt;strong&gt;专四、专八&lt;/strong&gt; 也都过了，英语听说读写水平都不错，当然具体还需要面试了才能见分晓。做了大半年的英语老师，现在想在上海找一份 &lt;strong&gt;翻译、行政、人力资源或是外贸&lt;/strong&gt; 类工作。&lt;/p&gt;

&lt;p&gt;论坛上的大多数朋友都是软件工程师出身，工作性质基本和上述提到的不相干，想来有些欠妥，不过如果有朋友或公司有类似职位的需求望帮忙给引荐一下，如果方便提供一下联系方式。&lt;/p&gt;

&lt;p&gt;打搅各位了，联系方式：
  手机号码：15006181231
  Email 地址：jiangdayinping@163.com&lt;/p&gt;</description>
      <author>uudui</author>
      <pubDate>Wed, 20 Mar 2013 21:34:53 +0800</pubDate>
      <link>https://ruby-china.org/topics/9615</link>
      <guid>https://ruby-china.org/topics/9615</guid>
    </item>
    <item>
      <title>草稿功能的一个 Bug</title>
      <description>&lt;p&gt;当回复一个帖子成功后不管是否保存了草稿都应该清空当前的回复框，然而回复成功后仍将草稿的内容放入了框中，如图下所示：&lt;img src="//l.ruby-china.com/photo/6d866f38e7a3482e52863378e9dd3d6a.jpg" title="" alt=""&gt;&lt;/p&gt;</description>
      <author>uudui</author>
      <pubDate>Wed, 17 Oct 2012 13:00:02 +0800</pubDate>
      <link>https://ruby-china.org/topics/6117</link>
      <guid>https://ruby-china.org/topics/6117</guid>
    </item>
    <item>
      <title>在 css 中使用空格选择器的注意咯！</title>
      <description>&lt;p&gt;前两天在改写 css 时，该死的触摸屏，一不小心正好就给 css 中的选择器中添加了一个空格，导致原本好好的页面乱了，还排查了好一会。记得自己平时写 css 用这些选择器的时候都还是很小心的。。。。。不多说了，平时不太注意选择器写法的童鞋注意咯：&lt;/p&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nf"&gt;#header&lt;/span&gt;&lt;span class="nc"&gt;.nav-bar&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;#999&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nf"&gt;#header&lt;/span&gt; &lt;span class="nc"&gt;.nav-bar&lt;/span&gt;  &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;#333&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;在你平时是的项目中否有关心过上述两种的写法呢，其中下面的一个有#header 于 .navbar 之间有一个空格。下面来看两个简单的例子：
2、不带空格：&lt;/p&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nf"&gt;#header&lt;/span&gt;&lt;span class="nc"&gt;.nav-bar&lt;/span&gt;  &lt;span class="p"&gt;{&lt;/span&gt;
   &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;blue&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;"header"&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"nav-bar"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;p&amp;gt;&lt;/span&gt;item&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;p&amp;gt;&lt;/span&gt;item&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;你会发现整个 div 的背景色都为蓝色，然而我们看看第二种情况：
1、带有空格：&lt;/p&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nf"&gt;#header&lt;/span&gt; &lt;span class="nc"&gt;.nav-bar&lt;/span&gt;  &lt;span class="p"&gt;{&lt;/span&gt;
   &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;blue&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;"header"&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"nav-bar"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;p&amp;gt;&lt;/span&gt;item&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;p&amp;gt;&lt;/span&gt;item&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;nav-bar 的样式并没有应用到这个 div 中。&lt;/p&gt;

&lt;p&gt;PS，可能在刚开始开发一些项目的时候很少去关注这些，不过项目大了，复杂了，各种 css 的冲突会然你很头疼，那么如果一开始都注意在用选择器的时谨慎点我想后期的升级维护都会容易得多。个人的一点拙见啊，更多选择器可参见：&lt;a href="http://www.w3.org/TR/CSS2/selector.html" rel="nofollow" target="_blank"&gt;http://www.w3.org/TR/CSS2/selector.html&lt;/a&gt;&lt;/p&gt;</description>
      <author>uudui</author>
      <pubDate>Sat, 08 Sep 2012 11:00:31 +0800</pubDate>
      <link>https://ruby-china.org/topics/5424</link>
      <guid>https://ruby-china.org/topics/5424</guid>
    </item>
    <item>
      <title>sunspot 索引附件内容</title>
      <description>&lt;p&gt;关于在 rails 项目中使用 sunspot_cell &lt;a href="https://github.com/chebyte/sunspot_cell" rel="nofollow" target="_blank"&gt;https://github.com/chebyte/sunspot_cell&lt;/a&gt; 扩展 sunspot 实现附件检索，能够对 model 建立索引，但是不能被搜索到附件的内容，不知道是怎么回事，不知道有人曾用过啊？  &lt;/p&gt;</description>
      <author>uudui</author>
      <pubDate>Tue, 17 Jul 2012 23:23:52 +0800</pubDate>
      <link>https://ruby-china.org/topics/4379</link>
      <guid>https://ruby-china.org/topics/4379</guid>
    </item>
    <item>
      <title>关于在项目中使用 sunspot_plus</title>
      <description>&lt;p&gt;如题：sunspot_plus :&lt;a href="https://github.com/playgood/sunspot_plus," rel="nofollow" target="_blank"&gt;https://github.com/playgood/sunspot_plus,&lt;/a&gt;在项目表单提交数据如果立即创建索引，会比较慢，
准备将索引 delayed_job 到后台处理，然而按照其文档进行配置后在本地的 development 和 production 环境中均正常，却部署在正式环境出现如下错误：
Error message:
uninitialized constant Sunspot::SessionProxy::DelayedJobSessionProxy
不知道是 sunspot_plus 本身的 bug 还是其他缘由，望有经验的朋友给点意见哈  &lt;/p&gt;</description>
      <author>uudui</author>
      <pubDate>Wed, 11 Jul 2012 21:13:29 +0800</pubDate>
      <link>https://ruby-china.org/topics/4254</link>
      <guid>https://ruby-china.org/topics/4254</guid>
    </item>
    <item>
      <title>rails 项目 ajax 跨域请求</title>
      <description>&lt;p&gt;估计大家在做项目的过程中也遇到过，很多 ajax 请求需要用到第三方的一些数据，那么就需要进行跨域操作。
我目前所用过 jsonp 和 gem rack-cors（&lt;a href="https://github.com/cyu/rack-cors" rel="nofollow" target="_blank"&gt;https://github.com/cyu/rack-cors&lt;/a&gt;）去做过&lt;/p&gt;

&lt;p&gt;不知道大家在项目中采取的何种策略，是否愿意分享一下在做这方面的经验一起探讨探讨。  &lt;/p&gt;</description>
      <author>uudui</author>
      <pubDate>Fri, 18 May 2012 20:49:51 +0800</pubDate>
      <link>https://ruby-china.org/topics/3365</link>
      <guid>https://ruby-china.org/topics/3365</guid>
    </item>
  </channel>
</rss>
