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

huacnlee@gmail.com
长桥证券 (Longbridge)
成都
502 Topics / 9059 Replies
960 Followers
53 Following
105 Favorites
Reward
GitHub Public Repos
  • autocorrect 1421

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

  • rails-settings-cached 1106

    Global settings for your Rails application.

  • rucaptcha 696

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

  • zed-theme-macos-classic 98

    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 20

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

  • autocorrect-action 11

    GitHub action for use AutoCorrect as lint

  • color-lsp 7

    A document color language server.

  • zed-autocorrect 6

    AutoCorrect for Zed

  • gpui-workspace 5

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

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • Nginx + Unicorn 部署重启的性能问题 at April 18, 2016

    首先你的部署有问题,Unicorn 官方的建议是多少个 CPU 核部署多少个进程 + 1,你的机器 2 核,合理的数量应该是 3 - 4 个 worker。

    Nginx 的 worker 也是一样的概念

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

    这一大段的... 就不能换行么!

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

    不要学那个,历史原因那样的,关系数据库,本来不应该那样的

  • Mongoid 和 ActiveRecord 的区别? at April 15, 2016

    看 Mongoid 官网的英文资料!

  • date_select 如何通过 ajax 方式设置默认值? at April 15, 2016

    如果你搞不懂 Rails 的东西,那就用 JavaScript 的标准方式来实现

  • 分享一个吊炸天的玩意。 at April 15, 2016

  • 分享一个吊炸天的玩意。 at April 15, 2016

    看就了,眼睛会视力会变斜,然后对不起线。 然后做页面排版的时候就没法对齐了

  • 有人使用 Docker 来简化部署 Rails 的吗? at April 15, 2016

    #19 楼 @rei 阿里云上有 Docker 了,可以先试试

  • 我如何把薪水从 50 人民币 / 天 提升到 100 美元 / 小时的 (4) -- 迟到了两年的更新 :) at April 15, 2016

    #11 楼 @hemengzhi88 哈哈哈

  • RubyGem 如何正确配置 Travis CI at April 14, 2016

    你需要用 ERB.new 执行一下:

    require 'redis'
    require 'redis-namespace'
    
    erb_result = ERB.new(File.read("#{Rails.root}/config/redis.yml")).result
    redis_config = YAML.load(erb_result)[Rails.env]
    
    Redis.current = Redis.new(url: redis_config['url'])
    

    config/redis.yml

    test:
      url: redis://<%= ENV['REDIS_HOST'] || 'localhost' %>:6379/3
    
  • 天天逛社区,看推文招聘,一家南京的公司都木有,上天无路,入地无门 at April 14, 2016

    几年前我刚接触 Rails 的时候就选了前者,然后革命成功了!

  • 天天逛社区,看推文招聘,一家南京的公司都木有,上天无路,入地无门 at April 14, 2016

    要么革你公司项目的命,要么革你公司的命

  • 上线用户活跃状态图,类似 GitHub at April 14, 2016

    而且楼上说因为这个问题担心 Boss 的同学

    你 Boss 不用看哪个,直接在 Ruby China 注册账号,关注你,啥动作都看到了 😄

  • 上线用户活跃状态图,类似 GitHub at April 14, 2016

    #26 楼 @ugoa

    https://ruby-china.org/ugoa/replies 回帖记录全部都能看到,怎么没说这个有隐私问题。

    另外,就算没有回帖列表那个页面,你的回复在网站上面也是全部公开的,Google 搜索就能查到

  • 我如何把薪水从 50 人民币 / 天 提升到 100 美元 / 小时的 (4) -- 迟到了两年的更新 :) at April 14, 2016

    这是要写自传的节奏

  • 上线用户活跃状态图,类似 GitHub at April 14, 2016

    #22 楼 @justin 上面的按天的啊,又不是按小时

    另外,活跃度也就 15 个回帖就最亮了,还好吧

  • fetch_by_uniq_keys 这个方法表示什么意思呢? at April 13, 2016

    ActiveRecord 5 里面的抛错新方法,大概就是抛一个没有找到的错误

  • fetch_by_uniq_keys 这个方法表示什么意思呢? at April 13, 2016

    https://github.com/hooopo/second_level_cache

  • Grape 怎么定义 JSON 的默认日期格式 at April 13, 2016

    其实默认格式是一个标准,叫 ISO 8601 使用 API 的人用任何语言的标准库的日期库就能转换出来,还包含时区的。

    按 #5 楼 @u1450154824 那样做,时区就没了,不可取

  • 如何独立开启 Ruby WebServer, 访问静态目录 at April 13, 2016

    用 Nginx 就好了

  • RailsDiff - 对比每个版本 Rails 默认生成出来的文件的差别 at April 13, 2016

    不过,话说 Rails 5.0.0.beta3 发布过了很久了,最近怎么还不出新版本呀

  • Rails 404 等页面咋使用咱们 layouts 里面的 dom 和 style 啊 at April 13, 2016

    https://github.com/ruby-china/ruby-china/blob/master/app/controllers/home_controller.rb#L32

  • gem 包版本比较 at April 12, 2016

    deppbot 可以解决你的需要

    https://www.deppbot.com/

    例如:https://github.com/ruby-china/ruby-china/pull/590

  • 如何让视图给控制器传递 params 呢? at April 12, 2016
    <%= link_to('赞', plan_reply_likes_path(@plan, likeable, type: 'Reply'), method: :post) %>
    
  • 酷站是不是 bug 啊? at April 12, 2016

    已经改用 DuckduckGo 的 Favicon Proxy,现在应该好了

  • RailsDiff - 对比每个版本 Rails 默认生成出来的文件的差别 at April 12, 2016

    每次升级我都是用不同的 Rails 版本 new 一个空项目,然后对比文件的...

  • 刚刚发现一个蛮好的 Rails 视频网站 at April 12, 2016

    好怀念之前的 Rails Casts

  • Sequel 在做纯 API 项目时是不是比 ActiveRecord 更有优势? at April 11, 2016

    核心维护者就那一个人,你觉得会比 ActiveRecord 好?

    我实在无法理解放着那么好的 ActiveRecord 不用,跑去用类似 Sequel 这里库,是怎么想的?!

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