Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
Hozaka
@hozaka
VIP
NO. 106 / 2011-11-16

SHANDA Games
上海
4 Topics / 98 Replies
2 Followers
0 Following
2 Favorites
GitHub Public Repos
  • progit 2

    Pro Git Book Content

  • gitscm 1

    Git homepage that rocks - from the git.or.cz awesomeness

  • rails-bestpractices.com 1

    rails-bestpractices.com (in progress)

  • juggernaut_gem 1

    Realtime Rails

  • ruby-china 0

    ruby-china.org website source code.

  • sublimetext-markdown-p... 0

    markdown preview and build plugin for sublime text 2/3

  • rails-guides 0

    A Ruby on Rails Traslation Guide

  • libMA 0

    libMA is a compatible MillionArthur lib writen in Python

  • logdown-themes 0

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • rbenv 安装完后 shell 右上角会出现 [system],求破,如图: at March 06, 2014

    改一下你的 .zsh 主题,相应的代码注释掉就可以了

  • Rails 里太过强调单复数,存在不少混乱和尴尬,我的想法: at March 06, 2014

    学好英语……

  • 二月二龙抬头,今天你理发了吗? at March 03, 2014

    最近风头紧,怕被抓,所以没去

  • 请教下面这个 SQL 该怎么写? at March 03, 2014
    SELECT a.id, count(*)
    FROM a RIGHT OUTER JOIN b ON b.a_id = a.id
    GROUP BY a.id;
    
  • [上海 + 在家办公] xinminlabs 招聘全栈工程师 at March 01, 2014

    看到最后邮箱才发现是 @flyerhzm ,哈哈

  • 送 promition code 了, 轻巧实用的屏幕测量工具 Dimension (Mac) at February 27, 2014

    4AHATET6Y7KJ 我也占一个咯

  • 这种写法已经流行起来了吗? at February 27, 2014

    这种写法是为了避免在 https 站点引用 http 资源产生的警告

  • 感觉 Tutorial 比敏捷开发好多了 at February 27, 2014

    #20 楼 @tylerlong 原来我不是一个人……

  • Float Label Pattern at February 27, 2014

    #7 楼 @hisea 嘿嘿,做游戏运营比较忙嘛

  • there is something wrong with the install,please tell me how to fix it,thanks! at February 27, 2014

    #4 楼 @blacktulip Homebrew is being ported to Linux platform(s), check this out.

    Further more, in most cases, there no need to manage variant Ruby versions in development environment. Production env. either.

  • there is something wrong with the install,please tell me how to fix it,thanks! at February 27, 2014

    Ping me if it still doesn't work

  • there is something wrong with the install,please tell me how to fix it,thanks! at February 27, 2014
    1. which ruby to find out which ruby you're currently using
    2. ruby -v to confirm ruby 2.0 is installed

    But personally I suggest to set up your development environment by Homebrew.

  • 有 Github 之后,是否无视其他代码托管服务器了?欢迎一起吐槽! at February 27, 2014

    gitlab 自己架,随便建

  • Float Label Pattern at February 26, 2014

    #5 楼 @Kabie 样式倒是其次的,主要是我很认同原文的几个理念

  • 求能加入开源项目 at February 26, 2014

    开源项目不用引荐,fork 之后直接加入好了。大家都很乐意的

  • 有 Github 之后,是否无视其他代码托管服务器了?欢迎一起吐槽! at February 26, 2014

    #19 楼 @liwei78 这个……不太安全吧?

  • Float Label Pattern at February 26, 2014

    #3 楼 @lgn21st 入了游戏圈就没多少自己时间,荒废很久了。最近休一个月长假,正好收拾收拾。赶不上你们咯 😄

  • Float Label Pattern at February 26, 2014

    #1 楼 @qichunren 最原始是移动 App 的 UI 设计,按照自己的想法修改了一下

  • 求助:OSX mavericks 下 TrimEnabler 无法开启 SSD (PX-256M5S) 的 trim 模式 at February 08, 2014

    #8 楼 @ruohanc 在 System Information -> SATA 下面就能看到

  • Sublime 到处配置方案么?? at February 08, 2014

    可以把配置目录同步到 Dropbox

  • 求助:OSX mavericks 下 TrimEnabler 无法开启 SSD (PX-256M5S) 的 trim 模式 at February 08, 2014

    #1 楼 @ruohanc 还是有的,OS X 内置对第三方的 SSD 都没开启 TRIM 支持

  • Two big announcements. - 37signals at February 06, 2014

    #9 楼 @blackanger 原来你也在……

    话说开始用 Basecamp 是在这个项目刚刚上线的时候,一点一点发展到现在,带动了一个社群和一种理念,非常的不容易

  • 可以指定某个控制器的 layout 的目录么?(解决) at March 19, 2013

    #12 楼 @ashchan 对啊,加上之后是 "layouts/../new_layout_folder/layout" 我还特意建了个空项目测试了一下,Rails 3.2.13

    就是代码可读性降低了,而且有点违背 Convention over Configuration 的原则

  • 可以指定某个控制器的 layout 的目录么?(解决) at March 19, 2013

    只是要改某个控制器的话,直接用 layout "../new_layout_folder/layout" 应该也是可以的

  • Ruby China 开始用 Ruby 2.0 跑了 at February 26, 2013

    速度真快,不过 homebrew 好像还没更新 ruby 2.0 到里面

  • 状态与时间相关的表设计 at December 12, 2012

    你这是在做工作流么……

    1. 我觉得没必要在数据库上保存这个状态,模型上写好逻辑方法就可以了,剩下是控制的事情
    2. 要保存副本的话,我觉得做成 revision 会好一点,提交发布之后创建一个新的 revision,状态是未审核,审批通过后改下状态就 OK
  • 36 氪网站底部惊现 Ruby China at December 10, 2012

    哈哈,今天还在 twitter 上问是不是改版了,看到了 404 的页面

  • 参数如果带.怎么办 at November 30, 2012

    routes 里面加上 :format => false 试试看

  • 编程中可能用到的数学知识。 at November 28, 2012

    #38 楼 @ywjno 化工专业辍学的我表示压力很大……

  • 关于缓存的一些思路。。。 at November 28, 2012

    #8 楼 @zhangjinzhu 你没看明白我意思,这是两个不同层面的缓存,用不同的策略解决,才能解决你的问题:

    1. 针对方法自身的结果,缓存在实例变量里,在这个层面上保障同一个实例不会重复查询
    2. 针对业务,把这个实例缓存到 memcached 中,设定过期时间,完成跨请求的缓存

    这两者不应该搅在一起

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