Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
@reus
高级会员
第 942 位会员 / 2012-02-07

1 篇帖子 / 411 条回帖
4 关注者
0 正在关注
0 收藏
未设置 GitHub 信息。
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • 想请问大家既然绝对多数部署 rails app 的服务器都是 linux,那桌面用 linux 不更好吗? why mac? at 2013年08月10日

    #12 楼 @luikore linux 有 systemtap,clang 各平台都是一样的吧

  • 想请问大家既然绝对多数部署 rails app 的服务器都是 linux,那桌面用 linux 不更好吗? why mac? at 2013年08月10日

    linux 桌面用轻量级的窗口管理器,还是挺稳定的。我用 awesome 的时间有 4 年以上,从来没出过问题。驱动方面,如果懂得编译内核,能解决大部分问题。例如我现在用的无线网卡驱动,是 experimental 的,一般发行版自带的都不会编译进去,自己配置编译下就可以用了。

  • 可以通过 web 端操作串口吗? at 2013年08月09日

    这不是“通过 web 端”,而是“通过浏览器” 可以用这个:https://github.com/billhsu/jUART

  • 你们还在讨论 vim 和 emacs 之争吗? at 2013年08月09日

    无聊

  • 在 Github 上下载的 zip 档案如何编译为 gems? at 2013年08月08日

    基本的东西不懂那就找资料学吧,做什么伸手党。

  • 有没有人和我一样,Vim 保存的时候经常按成:W at 2013年08月07日
    let mapleader=","
    nmap <leader>w :w<CR>
    

    按下,w就能保存,不需要按 shift,回车也不用,<leader>这个东西相当好用 还有nmap <leader>q :q<CR>这个也用得最多

  • Ruby 写 Arduino 不靠谱! at 2013年08月06日

    RAD 是一个将 ruby 代码编译成 C 代码的编译器 https://github.com/atduskgreg/rad。例子在这里:https://github.com/atduskgreg/rad/tree/master/lib/examples。实现得好的话,C 能做的它也能做,不能做的就嵌入 C(像那个 plugin 那样)。

  • 如何在 Github 中访问到 Repo 的第一个 Commit 所在的页面? at 2013年08月06日

    page 取个够大的,然后做二分查找

  • 有人上过这 ‘From Rails Zero to Hero’ 的课程吗? 不知如何? 正打算购买 at 2013年08月02日

    看书看文档不就够了吗

  • digitalocean 的 vps 好便宜,小伙伴们用过没有? at 2013年08月02日

    准备过两个星期用

  • ruby 的中文支持。找了 1 个月了木有解决麻烦大神帮忙 at 2013年07月26日

    在源码最前面加上 # encoding: utf-8

  • 咨询一下这个怎么建模 at 2013年07月25日

    支持数字编码,类似邮编的设计

  • 大家平时会做什么极限运动? at 2013年07月23日

    熬夜 +1

  • 为什么写 ruby 的都喜欢 Mac?? at 2013年07月22日

    为什么 ruby china 没有屏蔽用户功能呢?

  • 好久没讨论语言了 - 我只是路过 at 2013年07月22日

    #8 楼 @CoffeeDeveloper js有什么奇技淫巧是静态语言没有的?

  • 遍历大表时候的内存泄露问题 at 2013年07月19日

    为什么不直接翻文档

    http://guides.rubyonrails.org/active_record_querying.html

    But this approach becomes increasingly impractical as the table size increases, since User.all.each instructs Active Record to fetch the entire table in a single pass, build a model object per row, and then keep the entire array of model objects in memory. Indeed, if we have a large number of records, the entire collection may exceed the amount of memory available.
    
    Rails provides two methods that address this problem by dividing records into memory-friendly batches for processing. The first method, find_each, retrieves a batch of records and then yields each record to the block individually as a model. The second method, find_in_batches, retrieves a batch of records and then yields the entire batch to the block as an array of models.
    
  • 吐槽一下现在的程序语言教科书 at 2013年07月10日

    语言书就讲语言,编译留给编译书,有什么好吐槽的 会写编译器的,看了语言书/spec 就能自己实现,用不着语言教科书来废话

  • AKB48 有一首歌叫《Ruby》 at 2013年07月02日

    ruby 是红宝石的意思,喜欢的人多了去了……

  • 下厨房丢了 2 个月 的数据 at 2013年06月30日

    如果是合格的策略,即使服务器被轰成渣都不至于丢两个月的数据……

  • 想选择一个 JavaScript 框架真难 at 2013年06月29日

    https://github.com/petermichaux/maria 这个声称支持 ie6 http://docs.angularjs.org/guide/ie angularjs 限制下也可以

  • 想选择一个 JavaScript 框架真难 at 2013年06月29日

    基础库倒是挺多支持 ie6 的,mvc 的应该没有吧 风格靠规范+review 就好了

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