Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
李华顺
@huacnlee
Admin
NO. 2 / 2011-10-28

[email protected]
长桥证券 (Longbridge)
成都
502 Topics / 9060 Replies
961 Followers
53 Following
105 Favorites
Reward
GitHub Public Repos
  • autocorrect 1449

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

  • rails-settings-cached 1110

    Global settings for your Rails application.

  • rucaptcha 696

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

  • zed-theme-macos-classic 102

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

  • zed-extension-action 23

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

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

    macOS Classic theme for Visual Studio Code

  • autocorrect-action 12

    GitHub action for use AutoCorrect as lint

  • color-lsp 8

    A document color language server.

  • zed-autocorrect 6

    AutoCorrect for Zed

  • gpui-workspace 6

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

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • 通过 Nginx 启用 HTTP/2 at April 29, 2016

    #3 楼 @hooopo

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

    2.Only supports HTTP2 over TLS (https)

    上面显示也是这么说的

  • Mongoid 的自动 eager load: Mongoload at April 27, 2016

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

    哦,自动的!

  • 带 Namespace 的 Polymorphic 关联如何查询 at April 27, 2016

    我感觉你需要的是覆盖 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 April 26, 2016

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

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

  • [杭州] 杉果游戏 Ruby 工程师 2 名 at April 26, 2016

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

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

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

  • 网站接入支付宝必须要注册公司才行吗 at April 26, 2016

    已删除一楼

  • CarrierWave 如何从云存储下载文件。 at April 22, 2016

    是在另外个 Gem 里面的

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

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

    进官方 Mirror List 了

  • CarrierWave 如何从云存储下载文件。 at April 22, 2016

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

  • Rails 有没有伪静态,有必要伪静态吗 at April 22, 2016

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

  • CarrierWave 如何从云存储下载文件。 at April 22, 2016

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

  • 上线 Ruby 安装包镜像 - cache.ruby-china.org at April 21, 2016

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

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

  • 上线 Ruby 安装包镜像 - cache.ruby-china.org at April 21, 2016

    你那个提示是 build failed 啊

  • 上线 Ruby 安装包镜像 - cache.ruby-china.org at April 21, 2016

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

    试试

  • URL 解码问题 at April 20, 2016

    首先这个地址怎么来的!

  • 如何持续监控 Unicorn 的性能指标 at April 20, 2016

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

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

  • 上线 Ruby 安装包镜像 - cache.ruby-china.org at April 20, 2016

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

  • 你们有没有遇到过这种问题"undefined method `cast_type' for"? at April 19, 2016

    是的,这个 API 变了

  • 访问 MongoDB,替代 Mongoid 的解决方案? at April 19, 2016

    Mongoid 是 Ruby 里面最好的 MongoDB ORM!

  • 访问 MongoDB,替代 Mongoid 的解决方案? at April 19, 2016

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

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

  • 写关注功能结果出现一个问题 at April 19, 2016

    https://github.com/tcocca/acts_as_follower

    你需要的时这个

  • 如何实现邮件订阅 at April 18, 2016

    http://mailchimp.com/

  • Nginx + Unicorn 部署重启的性能问题 at April 18, 2016

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

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

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

    解决方案:

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