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

[email protected]
长桥证券 (Longbridge)
成都
502 Topics / 9058 Replies
959 Followers
53 Following
105 Favorites
Reward
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
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • bundler 1.4.0 增加并行支持,以后不能偷懒了... at September 01, 2013

    这回不爽了,没法带薪等安装了

    装起:

    $ gem install bundler --pre
    
  • china_city - 中国省市区级联选择插件 at September 01, 2013

    能和数据库关联不?

  • 突然发现 Go 语言的 go-china 官网和咱们的官网前身是一家人家的。。 at August 31, 2013

    #7 楼 @ywjno 布局排版以及许多的功能设计,UI 设计确实是源自于 V2EX 的思路,不过现在 Ruby China 发展出了许多实用的新细节功能。

  • Backup 是否可以和国内的云存储结合使用 at August 31, 2013

    #4 楼 @luckyyang 其他的可以参照着写一个

  • Backup 是否可以和国内的云存储结合使用 at August 31, 2013

    我写了个阿里云的,不过 Backup 官方没合并 https://github.com/huacnlee/backup/tree/aliyun_oss_storage

  • ruby-china 源码小疑惑! at August 30, 2013

    现在首页那个相应快那是因为本来那个查询就不复杂

    Ruby China 还能用 caches_page 是因为用了独立的 Gem 的

  • 我会说 Turbolink 的体验就是一坨屎吗 at August 30, 2013

    #56 楼 @Peter 取消是用于返回的,我就经常点那个按钮

  • 精华贴功能上线 at August 30, 2013

    #20 楼 @Saito 回复框里面有东西那个应该是最近加了 Turbolinks,调整了结构带来问题

  • Padrino + MongoDB 的项目有没有在终端操作的工具或方法? at August 30, 2013

    http://ruby-china.org/topics/13337

    自己实现一个

  • 精华贴功能上线 at August 30, 2013

    #11 楼 @lgn21st 可以新增另外一种小权限的管理员角色

  • 精华贴功能上线 at August 30, 2013

    #7 楼 @zgm 首页排版还需改进...

  • Ruby China 的代码直接跑 rvmsudo rails s -e production -p 80 资源文件无法调用 at August 30, 2013

    #4 楼 @ppplinve 你别折腾这个了吧,干嘛不用 Nginx 来配置呢,Ruby China 的代码就没考虑过直接 rails s 跑的情况,可能就是某些地方的配置有些坑

  • 精华贴功能上线 at August 30, 2013

    #4 楼 @crdwin 对,精华贴的意义就是给偶尔来的人、或第一次来的人看的,之前靠喜欢和回复数量推荐上去的内容不是很准确,所以改为人为推荐

  • 新手发个纯 ruby 写的 tarball 解压程序,希望大家帮忙改进,谢谢! at August 30, 2013

    为什么不直接调用 shell 呢?

    def ungzip(gzipfile)
      `unzip #{gzipfile}`
    end
    
    def untar(tarzip_path_full, destination)
      `tar xf #{tarzip_path_full} --directory=#{destination}`
    end
    
  • Ruby China 的代码直接跑 rvmsudo rails s -e production -p 80 资源文件无法调用 at August 30, 2013

    当你不用 Nginx 或 Apache 之类的东西来部署你的 Rails 应用,而是直接用 rails s 来跑的话,你需要注意下面几个配置:

    production.rb 里面

    config.serve_static_assets = false # 需要设置成 false Rails 才会响应 /assets 的请求
    config.action_controller.asset_host # 这里不要设置,Ruby China 开源出来的代码是有设置的,你需要注释掉
    

    最好还是建议用 Nginx,来跑,同时配置 /assets 这个 location

    如:

    server {
      listen                  80;
      server_name      ruby-china.org;
      root                    /home/jason/www/ruby-china/current/public;
    
      location /assets {
        access_log        off;
        expires           max;
      }
    }
    
  • Ruby China 的代码直接跑 rvmsudo rails s -e production -p 80 资源文件无法调用 at August 30, 2013

    Nginx 没配置 assets 这个 location 看错了,你没用 Nginx

  • Sinatra 2.0 会使用 Go 重写?! at August 30, 2013

    #22 楼 @Rei #21 楼 @lgn21st 上回也有个猎头这么干,说不一定是同一个人

  • Sinatra 2.0 会使用 Go 重写?! at August 30, 2013

    #22 楼 @Rei 上 Nginx 封 IP, IP 在后台用户修改界面可以看到

  • Ruby 的 GC 不释放内存给回系统的? at August 30, 2013
    1. 确定你没有 GC.disable ?
    2. 确定你没有装 RMagick
  • Ruby 的 GC 不释放内存给回系统的? at August 30, 2013

    25729 那个 Ruby 进程和其他的有什么区别?

  • Ruby 的 GC 不释放内存给回系统的? at August 30, 2013

    Ruby China 的,一般都在 250M 以内

  • Ruby 的 GC 不释放内存给回系统的? at August 30, 2013

    泄漏了吧

  • 在 redirect 的时候可以修改 request 的 header 么? at August 30, 2013
    request.headers["Content-Type"] = "image/jpg"
    request.headers["X-Accel-Redirect"] = "http://foobar.com"
    

    http://thedataasylum.com/articles/how-rails-nginx-x-accel-redirect-work-together.html

  • Magic Mouse 实在用不下去了,求推荐鼠标 at August 30, 2013

    #9 楼 @ery 那些 Windows 鼠标没法替代 Magic Mouse 的,没有 Touch 滑动功能

  • Magic Mouse 实在用不下去了,求推荐鼠标 at August 30, 2013

    MM 两年的电池消耗,50 颗

  • RubyConfChina 2013 开始接受报名和售票! at August 29, 2013

    餐费太贵了,省下来便宜点也好啊

  • 今天看高分贴中 git 视频的时候,很好奇大神用的这些工具是什么 at August 28, 2013

    12 TextMate 1

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