Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
@kenshin54
VIP
NO. 165 / 2011-11-22

上海
22 Topics / 550 Replies
38 Followers
0 Following
0 Favorites
GitHub Public Repos
  • popline 1059

    Popline is an HTML5 Rich-Text-Editor Toolbar

  • crane 14

    A mini linux container.

  • aws-simple-mfa 4

    Use AWS CLI with MFA enabled, but no Assume Role required.

  • firebase-admin-go 0

    Firebase Admin Go SDK

  • lilliput 0

    Resize images and animated GIFs in Go

  • gh-ost 0

    GitHub's Online Schema Migrations for MySQL

  • gifsicle 0

    Gifsicle is a suite of programs for manipulating GIF images and animations.

  • vim-snippets 0

    vim-snipmate default snippets (Previously snipmate-snippets)

  • minigc 0

    minimum gc

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • 关于下一版本 Ruby China 的功能计划 at May 03, 2012

    提问的智慧

    原版: http://www.catb.org/~esr/faqs/smart-questions.html 译版:http://www.linuxforum.net/doc/smartq-grand.html

    可以加到 wiki

  • 关于 rails 中的异步任务 at April 30, 2012

    https://devcenter.heroku.com/articles/delayed-job

  • 关于原子性问题 at April 29, 2012

    可以用 transaction

    ActiveRecord::Base.transaction do
      david.withdrawal(100)
      mary.deposit(100)
    end
    
    
  • devise 生成的 model 是否不能手工创建? at April 29, 2012

    一般创建失败是没通过 validation,你可以通过user.errors来查看 你这个是因为少传了 password

  • Ruby China T 恤第二期的赠送名单公布 at April 24, 2012

    @saberma 为什么衣服尺寸不能选 XXL,我 194,现在只能选到 XL

  • 求一个能够随机生成用户名的 Gem at April 22, 2012

    https://github.com/sevenwire/forgery

  • 在 IE6 下严重错位呀 at April 19, 2012

    正好今天看到一篇文章,贴出来分享下 http://coolshell.cn/articles/7126.html

  • Ruby China T 恤第二期报名活动开始啦![已结束] at April 19, 2012

    呀呀呀,这么秘密,我都不知道

  • 你不必这么着急 at April 19, 2012

    好文 赞

  • Squeel 0.9.5 的查詢問題請教大家 at April 18, 2012

    你自己 console 里试试不就知道了

    Student.select('cname, email').where{(cname =~ '陳%') & (gender == 'M')}

  • Squeel 0.9.5 的查詢問題請教大家 at April 18, 2012

    假设你的人名和电子邮件是 cname 和 email

    Student.select('cname, email').where{cname =~ '陳%'}

  • Squeel 0.9.5 的查詢問題請教大家 at April 18, 2012

    另外,既然 gender 不是 F 就是 M,这个查询根本不需要 gender 这个条件啊,直接 Student.where{cname =~ '陳%'}

  • Squeel 0.9.5 的查詢問題請教大家 at April 18, 2012

    试试这样 Student.where{(cname =~ '陳%') & (gender == 'M') | (cname =~ '陳%') & (gender == 'F')}

  • Squeel 0.9.5 的查詢問題請教大家 at April 18, 2012

    NameError: uninitialized constant M

    你這個錯和 squeel 沒關系 gender > M, gender > F M 和 F 是什麽,如果是某个 model 的常量,应该写成 model::M 和 model::F

  • 针对大量数据跑任务 at April 18, 2012

    之前优化了一个跑数据的任务,数据在 150W * 8,从 40 天 -10 天 -1 天,用的就是 ruby,那次瓶颈在网络 IO,因为要通过 http 得到图片,去计算图片的分辨率,因为历史原因,图片分布在多台机器上,后来还是改成了 socket,然后跑数据的还是在一台机子上 fork 了多个进程一起跑。主要还是找出根本原因吧。

  • 37signals 测试七忌 at April 17, 2012

    发现我们和这个很接近,主要是以 model 的测试为主,controller 和 view 测的比较少,主要流程上进行集成测试,代码·测试保持基本一半左右。

  • (译) 我不喜欢新哈希语法 at April 17, 2012

    vim 里 snipmate 直接用冒号

    snippet :
        :${1:key} => ${2:"value"}${3}
    
    
  • (译) 我不喜欢新哈希语法 at April 17, 2012

    原来它又个这么酷的名字哈希火箭,我好喜欢这个词

  • meta_search 帮助你实现复杂的组合查询 at April 17, 2012

    squeel 的写法很别扭,有木有

  • MAC X86 有人试用过吗,靠谱吗,如何搞? at April 13, 2012

    把好几台 PC 转出去,加点钱换 mac

  • 码农要健身:出售一辆公路自行车 (上海) 车已出!!! at April 12, 2012

    #9 楼 @huobazi 是不蛋疼才对

  • 要匹配这样的字符串正则该如何写呢? at April 10, 2012

    貌似直接把*?+写在零宽正向后行断言 (坑爹的名字) 不能用 这个应该能满足要求,正则很弱,也许有更好的写法 "Buy a cup for $ 30".match(/(?<=\$)\s*[0-9.]+/)[0].strip

  • system command 不执行 at April 10, 2012

    @Ddl1st 和 @lgn21st 感觉有 JQ(跑题请无视

  • 大家一般怎么写动态查询 at April 04, 2012

    https://github.com/ernie/meta_search

  • 想开始深入学习下数据结构,求指导下 at April 04, 2012

    算法导论

  • 求助 Octopress 的问题 at April 03, 2012

    在本地生成静态的页面放到服务器

    是滴

    class SinatraStaticServer < Sinatra::Base

    这是给你预览用的,和你部署到 github pages 上没关系,Rakefile 里有个 preview 的 task

    核心代码

    Octopress 是基于jekyll的,所以看核心代码去看jekyll

  • [上海] 招聘 ROR 以及运维 at April 03, 2012

    帮顶

  • 对 class_eval 和 instance_eval 的理解 at April 02, 2012

    #7 楼 @imsoz 可以用 https://github.com/voloko/sdoc/ 来自己生成文档,里面有选项 --all,可以把 private 方法也生成到 doc 里。

  • [上海][2012年03月27日] Ruby Tuesday 活动公告 at March 27, 2012

    再送上一些学习资料

    http://www.astjohn.ca/2011/08/06/rails-31-engines-mountable-or-full-part-1/ http://www.astjohn.ca/2011/08/07/rails-31-engines-mountable-or-full-part-2/ http://piotrsarnacki.com/2010/09/14/mountable-engines/ http://piotrsarnacki.com/2010/12/21/mountable-apps-tutorial/ http://stackoverflow.com/questions/6118905/rails-3-1-engine-vs-mountable-app

  • [上海][2012年03月27日] Ruby Tuesday 活动公告 at March 27, 2012

    签到

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