Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
李华顺
@huacnlee
管理员
第 2 位会员 / 2011-10-28

[email protected]
长桥证券 (Longbridge)
成都
502 篇帖子 / 9058 条回帖
959 关注者
53 正在关注
105 收藏
打赏作者
GitHub Public Repos
  • autocorrect 1412

    A linter and formatter to help you to improve copywriting, correct spaces, words, and punctuation...

  • rails-settings-cached 1104

    Global settings for your Rails application.

  • rucaptcha 697

    Captcha Gem for Rails, which generates captcha image by Rust.

  • zed-theme-macos-classic 97

    A macOS native style theme for Zed, let it same like native app in macOS.

  • vscode-macos-classic.t... 22

    macOS Classic theme for Visual Studio Code

  • zed-extension-action 19

    GitHub Action for automatically bump Zed Extensions version after a release.

  • autocorrect-action 11

    GitHub action for use AutoCorrect as lint

  • zed-autocorrect 6

    AutoCorrect for Zed

  • gpui-workspace 4

    Dock layout UI component for GPUI, that extracted from Zed project.

  • zed-lalrpop 3

    LALRPOP parser grammar support for Zed.

More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • 通过 Nginx 启用 HTTP/2 at 2016年04月29日

    #3 楼 @hooopo

    http://caniuse.com/#feat=http2

    2.Only supports HTTP2 over TLS (https)

    上面显示也是这么说的

  • Mongoid 的自动 eager load: Mongoload at 2016年04月27日

    本来 Mongoid 就有 includes 功能做类似的事情啊!

    哦,自动的!

  • 带 Namespace 的 Polymorphic 关联如何查询 at 2016年04月27日

    我感觉你需要的是覆盖 resourceable_type 的名称

    http://api.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html#module-ActiveRecord::Associations::ClassMethods-label-Polymorphic+Associations

    class Asset < ActiveRecord::Base
      belongs_to :attachable, polymorphic: true
    
      def attachable_type=(class_name)
         super(class_name.constantize.base_class.to_s)
      end
    end
    
  • Ruby 2.3.1 Released at 2016年04月26日

    立马体现了 cache.ruby-china.org 的效果!

    另外,看了一下 Changelog 好多改动了,手机看了 10 分钟,进度条显示还有好长一段距离。

  • [杭州] 杉果游戏 Ruby 工程师 2 名 at 2016年04月26日

    https://ruby-china.org/topics/29726

  • 怎么在 JS 中输出 Rails 的帮助方法? at 2016年04月26日
    1. 不要代码截图,贴代码!
    2. 整理你的问题;
    3. 当内容多的时候,请整齐排版!

    请!不!要!重!新!开!贴!否则封号!

  • 网站接入支付宝必须要注册公司才行吗 at 2016年04月26日

    已删除一楼

  • CarrierWave 如何从云存储下载文件。 at 2016年04月22日

    是在另外个 Gem 里面的

  • CarrierWave 如何从云存储下载文件。 at 2016年04月22日
    # Bucket 为私有读取请设置 true,默认 false,以便得到的 URL 是能带有 private 空间访问权限的逻辑
    # config.aliyun_private_read = false
    
  • 上线 Ruby 安装包镜像 - cache.ruby-china.org at 2016年04月22日

    https://www.ruby-lang.org/en/downloads/mirrors/

    进官方 Mirror List 了

  • CarrierWave 如何从云存储下载文件。 at 2016年04月22日

    Aliyun 上面是配置成 Public Read 的吗?

  • Rails 有没有伪静态,有必要伪静态吗 at 2016年04月22日

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

  • CarrierWave 如何从云存储下载文件。 at 2016年04月22日

    怎么用的,写详细点,看不明白

  • 上线 Ruby 安装包镜像 - cache.ruby-china.org at 2016年04月21日

    #22 楼 @ywjno 不要依赖别人,你这个可能是编译工具什么的没装好。和镜像无关,和 @andor_chen 那个工具无关。

    如果你要查那个问题,请另外开贴,描述清楚

  • 上线 Ruby 安装包镜像 - cache.ruby-china.org at 2016年04月21日

    你那个提示是 build failed 啊

  • 上线 Ruby 安装包镜像 - cache.ruby-china.org at 2016年04月21日

    #15 楼 @ywjno curl https://cache.ruby-china.org/pub/ruby/2.3/ruby-2.3.0.tar.bz2

    试试

  • URL 解码问题 at 2016年04月20日

    首先这个地址怎么来的!

  • 如何持续监控 Unicorn 的性能指标 at 2016年04月20日

    有保 JSON API 给出指标数据,那就可以用 Telegraf 的 httpjson 插件直接收集到 InfluxDB 啦!

    相关:https://ruby-china.org/topics/23470

  • 上线 Ruby 安装包镜像 - cache.ruby-china.org at 2016年04月20日

    #10 楼 @vincent gems.ruby-china.org 现在就是国内的啊,只是 API 请求需要到国外服务器,但 Gem 下载都是在 UpYun CDN 上面的,速度应该没问题了的

  • 你们有没有遇到过这种问题"undefined method `cast_type' for"? at 2016年04月19日

    是的,这个 API 变了

  • 访问 MongoDB,替代 Mongoid 的解决方案? at 2016年04月19日

    Mongoid 是 Ruby 里面最好的 MongoDB ORM!

  • 访问 MongoDB,替代 Mongoid 的解决方案? at 2016年04月19日

    等吧,他们更新还是挺快的。

    话说 Ruby China 换成 ActiveRecord + PostgreSQL 的其中一个原因就是为了尽快用 Rails 5 以及后续的最新版本。

  • 写关注功能结果出现一个问题 at 2016年04月19日

    https://github.com/tcocca/acts_as_follower

    你需要的时这个

  • 如何实现邮件订阅 at 2016年04月18日

    http://mailchimp.com/

  • Nginx + Unicorn 部署重启的性能问题 at 2016年04月18日

    本来 Rails 第一次启动的时候就是挺慢的,这个很正常,它需要预加载 N 多的库,计算 Assets 的 Digest 信息等。

    此外 Unicorn 重启的机制是 Copy 一份新的进程列表出来,你 20 个,它重启的时候会变成 40 个,内存随着也增加了,如果你内存不足,那重启的过程必然缓慢,Unicorn 一直到新的 20 个进程完全启动成功以后,才会杀掉 Old 的 20 个进程。

    以楼主的场景来看,我认为问题就在于 worker 太多了,重启的时候内存不够用,所以启动缓慢。

    解决方案:

    1. 换机器,成 4 核 4 G 或更大;
    2. 合理设定 Unicorn Worker 数量;
    3. 合理设定 Nginx worker 数量;
  • 上一页
  • 1
  • 2
  • …
  • 57
  • 58
  • 59
  • 60
  • 61
  • …
  • 264
  • 265
  • 下一页
关于 / RubyConf / Ruby 镜像 / RubyGems 镜像 / 活跃会员 / 组织 / API / 贡献者
由众多爱好者共同维护的 Ruby 中文社区,本站使用 Homeland 构建,并采用 Docker 部署。
服务器由 赞助 CDN 由 赞助
iOS 客户端 / Android 客户端 简体中文 / English