Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
😝😈
@hungyuhei
高级会员
第 77 位会员 / 2011-11-14

广州
23 篇帖子 / 537 条回帖
10 关注者
0 正在关注
80 收藏
GitHub Public Repos
  • wechat_pay 33

    Wechat Pay For Ruby(微信支付)

  • vimfiles 30

    My vim files

  • Deskmini-310-Hackintosh 13

    Hackintosh Deskmini310 EFI

  • yunpian 5

    Ruby SDK for 云片 http://www.yunpian.com

  • snipmate.vim 2

    snipMate.vim aims to be a concise vim script that implements some of TextMate's snippets features...

  • hungyuhei.github.com 1

  • chuanglan 1

    Ruby SDK for 253 创蓝短信

  • alipass 1

    支付宝卡券

  • acts_as_area_storable 1

  • hsb_tool 0

    HSB color tool

More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • Mongoid: find 和 where 有哪些区别? at 2012年02月12日
    1. 应该是这样的,不过 find 还可以接受 id 数组,而且 find 找不到记录会抛错,where 不会

    2. 引用 Mongoid 的官网描述:

      All queries in Mongoid are Criteria, which is a chainable and lazily evaluated wrapper to a MongoDB dynamic query. Criteria only touch the database when they need to, for example on iteration of the results, and when executed wrap a cursor in order to keep memory management and performance predictable.
      
  • Ubuntu 中安装 Mongodb 并配置开机自动启动 at 2012年02月12日

    Linode Library 也有文章 http://library.linode.com/databases/mongodb/ubuntu-10.04-lucid

  • 求推荐 mac osx 下的终端工具 at 2012年02月10日

    #8 楼 @young4u_amy 将 Mac 变成 Linux 了

  • 《Agile Web Development with Rails》的作者原来用的是 Ubuntu at 2012年02月10日

    我也是用了半年 Ubuntu 才有 Mac

  • 图片上传后剪切缩放功能? at 2012年02月10日

    我用 carrierwave 直接定义几个 version 来缩放的

    不过 LZ 是不是想上传图片后由用户定义剪切缩放?

  • Mongoid 怎样做关联查询? at 2012年02月09日

    #5 楼 @bindiry 官网上有写:

    In order for #includes to work the Mongoid identity map must be enabled in the mongoid.yml:
    identity_map_enabled: true
    

    你看看是不是忘记设置这个

  • ShopQi 上线内测,中国版 shopify at 2012年02月08日

    图片文字好奇怪啊,拉伸了

    https://cdn.shopqi.com/assets/buttons/btn-openyourstorenow-blue2-45f8c8f4a9e9ac5f00944dcd4d7d78c6.png

  • 分享 mac 上的好东西 powder at 2012年02月07日

    单单看它的 github 令人一头雾水啊 google 一下,才发现它的主页http://pow.cx/ 才想起上次参加 gzruby 时有人介绍过

  • Topic 回复统计的时间好像是 UTC 时间 at 2012年02月07日

    #1 楼 @huacnlee 用 Time.current 代替 Time.now 试试

  • 谈谈今天 ruby-china 的优化 at 2012年02月04日

    分页推荐用 kaminari,印像中从 mongoid2.2 开始,用 will_paginate 分页是有问题的

  • gem install 的时候默认跳过安装 ri 和 rdoc at 2012年02月04日

    https://github.com/rubygems/rubygems/pull/42

    围观一下 DHH 的 pull request

  • 有谁在广东吗? at 2012年02月04日

    广东佛山的来报道一下

  • 如何在 terminal 中打开 sublime text2? at 2012年02月04日

    Mac 的话:

    ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" /usr/local/bin/sublime

    或者用 alias 也可以: alias sublime='open -a "Sublime Text 2"'

  • 打算换电脑,mac or thinkpad? at 2012年02月03日

    thinkpad 不见得比 macbook 便宜啊,不过不要跟我说 e 系列之类

  • 各位大神,阿里云,盛大云,又拍云,新浪云,哪一个比较靠谱? at 2012年02月02日

    #1 楼 @huobazi 新浪云像 GAE 吧

    其实就 SaaS/PaaS/IaaS 三种模式

    盛大云 IaaS 新浪云 PaaS 其它不清楚

  • RVM 的官方 GUI 工具: Jewelrybox at 2012年01月25日

    刚刚装上了,界面很清爽。谢谢分享

  • 全职工作用 Ruby 的比例有多少呢? at 2012年01月21日

    全职……嘻嘻……

  • MacOS Lion 不能通过局域网 ip 连接访问本地 Rails server [已解决] at 2012年01月19日

    #3 楼 @allenwei 虽然你在 3 楼提到 ip 地址正确,但我还觉得应该是 ip 地址不正确导致的,因为现在很多路由器都有 DHCP 来自动分配 ip,可能上次你的机子是这个 ip,下次就有可能变了,你最好先设定一个固定 ip 再试试

  • 手把手教你在 Windows7 中安装 Ruby1.9.3 at 2012年01月19日

    #14 楼 @ery 之前看过一篇文章,大概意思是指 GUI 的目的是为了完成某个功能(或操作),而 CLI 的目的是为了创造某个功能。编程算是一种创作活动吧,所以强大的 CLI 不可缺

  • 大家在项目中使用 CoffeeScript 和 SASS 吗? at 2012年01月17日

    我也使用了 SASS,还未开始 CoffeeScript

  • 程序员之 明明知道是错的还经常做的事 at 2012年01月16日

    我们明知身边非技术人员对技术细节完全没兴趣,但还是孜孜不倦地谈技术

  • 大三下学期想实习 at 2012年01月16日

    我们公司也招实习,具体看看 http://ruby-china.org/topics/90

  • 大三下学期想实习 at 2012年01月16日

    和我的经历差不多,我也是在大学时一直用 Java,然后找工作前果断地选择了 Ruby

    Ruby 相对 Java 来说,工作机会肯定少很多(但我相信找到工作不会成为问题),如果你喜欢 Ruby 多于 Java,往后的工作内容是做自己喜欢的东西,这不是一件幸福的事情吗?

  • [日本] 宣传下我现在就职的公司:日本 COOKPAD at 2012年01月16日

    最后一张图应该是 Dell U2311 吧,不是 27 寸,我目前也是这个配置,嘻嘻,很好的公司

  • 「.rails_generators~」是个什么文件? at 2012年01月14日

    我也没有见过啊

  • 大家都是怎么用 git 的呢? at 2012年01月10日
    1. 看不明白
    2. 不想变的部分你不提交就行啦,如果不想整个分支都 merge 到 master,可以考虑用 cherry-pick
    3. 将不想要的部分写到.gitignore 中就可以了
    4. 将 master 分支删除,然后将 branch B 重命名为 master git branch -D master && git branch -m master

    如果你期待别人能回答好你的问题,首先麻烦将问题描述得清楚点吧,看你的问题描述我都有点不知所云的感觉啊

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