Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
Miclle Zheng
@miclle
VIP
NO. 250 / 2011-11-24

[email protected]
上海
52 Topics / 707 Replies
23 Followers
2 Following
171 Favorites
码农,骑公路自行车
GitHub Public Repos
  • qroom 2

  • space 2

  • linuxtools_rst 2

    Linux工具快速教程

  • miclle.github.io 1

    Miclle's web site

  • fox 1

    Fullstack web framework

  • godoc 1

  • thinking-in-crud 1

  • stack-go 1

  • api-guidelines 1

    Microsoft REST API Guidelines

  • gallery 1

    Get image info lib.

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • 买什么车? at May 14, 2014

    买个车有那么麻烦么?对上眼了就买了,不喜欢了就换掉嘛。

  • [上海] [2014年5月13日] 周中聚会 at May 13, 2014

    签到

  • 功能新调整,关于招聘的 at May 13, 2014

    #20 楼 @ruby_sky 同感,置顶还是放在右边栏感觉好一点

  • SelfStore,数字内容创作者的在线商店 at May 12, 2014

    :plus1:

  • [上海] [2014年5月13日] 周中聚会 at May 12, 2014

    :plus1:

  • rake 任务运行一段时间后被 killed at May 06, 2014

    我之前爬数据是放到 sidekiq 里,效率高很多

  • Autocomplete 问题求助 at May 05, 2014

    很早很早以前弄过的 https://github.com/crowdint/rails3-jquery-autocomplete

  • 请老师们看下:为什么一级菜单和二级菜单挤在一行。 at April 30, 2014

    你仔细检查过你的代码么?

    <html lang="en">
    <head>
      <meta charset="UTF-8">
      <title>Document</title>
      <style type="text/css">
        *{ margin: 0px; padding:0px; border:0; }
        .nav {
          background-color: #eee;
          width:600px;
          height: 40px;
          margin: 0 auto;
        }
        ul {
          list-style-type: none;
        }
        .nav ul li {
          float: left;
          line-height: 40px;
          text-align: center;
        }
        a {
          text-decoration: none;
          border: solid 3px purple;
          border-radius:5px;
          color: #000;
          padding: 0 10px;
          display: block;
        }
        a:hover {
          color: #FFF;
          background-color: #666;
        }
      </style>
    </head>
    <body>
      <div class=nav>
        <ul>
          <li><a href="#">home</a></li>
          <li>
            <a href="#">products</a>
            <ul>
              <li><a href="#">coffee</a></li>
              <li><a href="#">cake</a></li>
            </ul>
          </li>
          <li><a href="#">service</a></li>
          <li><a href="#">faqs</a></li>
          <li><a href="#">about us</a></li>
        </ul>
      </div>
    </body>
    </html>
    
  • 我是 RubyConf China 的组织者,介绍下第六届的进展还有一些个人想法 at April 29, 2014

    支持 :plus1:

  • 解析不规则的 table 用什么模块? at April 26, 2014

    挺有规则的呀,用 nokogiri 可以解析

  • 为什么 Ruby China 论坛上一直让大家不让用 Windows 开发? at April 25, 2014

    #12 楼 @Kabie 跟开发工具无关,刚入门时也是用 windows 发现很多 gem 不支持 windows 系统,现在也许会好一点,有各种解决方案 但是,我就有点疑问 windows 下开发,到底有哪些其它平台不具有的优势呢?我是没有发现,以前弄前端开发,windows 下图形处理软件确实比 linux 平台要好,不过我换了 MAC 后就都解决了,即可以写代码又可以处理图片

  • haml slim 之流真的好吗? at April 25, 2014

    一直用 erb,从前端转为后端开发,erb 更直观一点,另外不喜欢完全靠缩进来控制代码 SASS 这个着实能提高编写效率

  • [招聘][北京上地] starsworld.cn 招聘 ruby 新手一名 at April 24, 2014

    :plus1:

  • div 如何写成 content_tag at April 24, 2014
    <%= content_tag :div, class: "strong", id: "tab-1", style: "display: block" do -%>
      Hello world!
    <% end -%>
    

    =>

    <div class="strong" id="tab-1" style="display: block">Hello world!</div>
    

    如果没有别的标签

    <%= content_tag :div, "Hello world!", class: "strong", id: "tab-1", style: "display: block" -%>
    
  • 怎么设置 url 的 encoding 啊 at April 23, 2014

    你是不是要做字符串拼接呢?

    "http://comiclover-comicimages.stor.sinaapp.com/ipadVolumCovers/#{self.comic_cover}"
    
    "http://comiclover-comicimages.stor.sinaapp.com/ipadVolumCovers/#{URI::escape(self.comic_cover)}"
    
  • Java 和 Ruby On Rails at April 23, 2014

    #9 楼 @Peter 😄

  • 怎么设置 url 的 encoding 啊 at April 23, 2014

    #4 楼 @suyuhang 1#的方法还不可以么? 你说的“ 用 modle 中获取属性 ”这句到底是什么意思呢?我汉语没学好没看懂!同样的问题发一个贴就可以了

  • Java 和 Ruby On Rails at April 23, 2014

    #1 楼 @bhuztez http://t.cn/8sHcuKf

  • 把字符串"1,2,3,4" 变为 (1,2,3,4) at April 22, 2014

    你还是用 #12 楼的方法吧,那样确实好很多。select 和 pluck 花在 DB 上的时间一样,但 select 会在内存中构建 ActiveRecord 对象,而 pluck 是直接返回数组

  • 把字符串"1,2,3,4" 变为 (1,2,3,4) at April 22, 2014

    Unlike select, pluck directly converts a database result into a Ruby Array, without constructing ActiveRecord objects. This can mean better performance for a large or often-running query. However, any model method overrides will not be available. For example:

    class Client < ActiveRecord::Base
      def name
        "I am #{super}"
      end
    end
    
    Client.select(:name).map &:name
    # => ["I am David", "I am Jeremy", "I am Jose"]
    
    Client.pluck(:name)
    # => ["David", "Jeremy", "Jose"]
    
  • 把字符串"1,2,3,4" 变为 (1,2,3,4) at April 22, 2014

    #12 楼 @saiga :plus1:

  • 把字符串"1,2,3,4" 变为 (1,2,3,4) at April 22, 2014

    ModelB.where(:id => ModelA.select(:id).collect(&:id))

  • [深圳] 前谷数据有限公司 -- 诚聘 Ruby on rails 后端开发工程师 2 名 at April 22, 2014

    6k-9k 木有竞争力 后端开发还要‘ 精通 Javascript、HTML 和 CSS’还是分开招两个吧

  • devise & cancan & rolify at April 22, 2014

    初学者照着这个来就好了 http://railstutorial-china.org/

    devise 这个即使你会用了你也搞不明白他是怎么实现的 cancan 简单的权限控制根本不需要

    rolify 我没用过,不知道

  • [已解决] 紧急求助,装不了 ubuntu 开不了 windows at April 22, 2014

    楼主不是有 BF 了么,他的电脑可以拿来折腾的呀 😄

  • 大家用过 nokogiri 吗?官方的文档太简洁了,无从下手呀! at April 21, 2014

    #6 楼 @zlfera 做微信公众号不需要你解析 xml 的 rails 3 可以接收 xml rails 4 用 actionpack-xml_parser 这个 gem

  • 六一在家折腾个 WALL·E 给闺女玩 (已更新:Audio & Text to Speech) at April 21, 2014

    #98 楼 @erji 放在书架上好久没弄过了,工作忙没空

  • 求一个推荐算法 at April 18, 2014

    你上次问的“求一个相识度算法。” http://ruby-china.org/topics/18645 搞明白了么? 这么快就开始搞推荐算法了 ...

  • [上海][2014年4月27日] 2014 年 4 月 周末聚会 (需报名) at April 18, 2014

    :plus1:

  • 調查一下诸位的 Rails 版本 at April 17, 2014

    新项目 4.1 一个老项目 3.2

  • Prev
  • 1
  • 2
  • …
  • 4
  • 5
  • 6
  • 7
  • 8
  • …
  • 22
  • 23
  • Next
关于 / RubyConf / Ruby 镜像 / RubyGems 镜像 / 活跃会员 / 组织 / API / 贡献者
由众多爱好者共同维护的 Ruby 中文社区,本站使用 Homeland 构建,并采用 Docker 部署。
服务器由 赞助 CDN 由 赞助
iOS 客户端 / Android 客户端 简体中文 / English