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 1410

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

  • rails-settings-cached 1101

    Global settings for your Rails application.

  • rucaptcha 696

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

  • zed-theme-macos-classic 95

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

  • vscode-macos-classic.t... 21

    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
  • 写 Rails 应用的插件系统,有什么最佳实践? at June 21, 2016

    #6 楼 @jasl 我的意思就是重启,可以重程序里面让自己重启的,其实实现原理很简单

  • 写 Rails 应用的插件系统,有什么最佳实践? at June 21, 2016

    #4 楼 @jasl

    Unicorn 重启的时候,会有个检查机制,如果新 Fork 出来那份进程有错误,将会放弃,老的进程保持不变。

    同样这样的机制也在 Puma 里面有,只是据实际使用来看,某些时候(到目前为止仍然未找到原因)会不好使,而导致 Puma 进程 Crash 掉。


    然后再说插件的实现,不要把插件看成 Gem!这类自定义插件应该是放在某个目录的,例如 lib/app_plugins,具体实现就比较复杂的,要看插件的权利有多大。可能需要用到 Rails Engine 的机制。

    具体没做过...

  • 写 Rails 应用的插件系统,有什么最佳实践? at June 21, 2016

    #2 楼 @jasl 其实 touch tmp/restart.txt 类似的动作,就可以达到重启的目的了

    实现完全是可能的

  • Stripe 香港 Beta 版开通了 at June 21, 2016

    #11 楼 @peter 🇨🇳 国旗有可能是前段不小心大包进去的 😼

  • 点赞变成了一个大大的爱心真的好吗 at June 21, 2016

    FontAwesome 的 👍 图标不好看

  • Git 的仓库网络和要发布的环境不在同一个网络,怎么使用 Capistrano 等工具? at June 21, 2016

    假定网络结构式这样:

        Local
          |
      Network A
          |
    Production Network
    

    我们以前也遇到过,Local 不能直接到 Production Network,于是有多种办法,Capistrano 是支持 Gateway 的,搜索 Capistrano Gateway 意思是用 Network A 作为跳板来发布到 Production Network

    还有一种办法是把发布脚本放在 Network A 的机器上,每次发布到先 SSH 到 Network A 的机器上面执行 cap deploy

    • http://www.randomerrata.com/articles/2015/deploying-via-a-bastion-host-with-capistrano-3/
    • http://xiewenwei.github.io/blog/2014/07/13/capistrano-to-servers-behind-gateway/
  • Ruby 2.4.0-preview1 发布啦 at June 21, 2016
    ruby-2.4.0-preview1 - #removing src/ruby-2.4.0-preview1 - please wait
    Searching for binary rubies, this might take some time.
    No binary rubies available for: osx/10.12/x86_64/ruby-2.4.0-preview1.
    Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
    Checking requirements for osx.
    Certificates in '/usr/local/etc/openssl/cert.pem' are already up to date.
    Requirements installation successful.
    Installing Ruby from source to: /Users/jason/.rvm/rubies/ruby-2.4.0-preview1, this may take a while depending on your cpu(s)...
    ruby-2.4.0-preview1 - #downloading ruby-2.4.0-preview1, this may take a while depending on your connection...
    ruby-2.4.0-preview1 - #extracting ruby-2.4.0-preview1 to /Users/jason/.rvm/src/ruby-2.4.0-preview1 - please wait
    ruby-2.4.0-preview1 - #configuring - please wait
    ruby-2.4.0-preview1 - #post-configuration - please wait
    ruby-2.4.0-preview1 - #compiling - please wait
    Error running '__rvm_make -j 1',
    showing last 15 lines of /Users/jason/.rvm/log/1466474295_ruby-2.4.0-preview1/make.log
    compiling safe.c
    compiling signal.c
    compiling sprintf.c
    compiling st.c
    compiling strftime.c
    compiling string.c
    compiling struct.c
    compiling symbol.c
    compiling thread.c
    thread.c:1088:27: error: implicit conversion loses integer precision: 'long' to '__darwin_suseconds_t' (aka 'int') [-Werror,-Wshorten-64-to-32]
            tp->tv_usec = ts.tv_nsec / 1000;
                        ~ ~~~~~~~~~~~^~~~~~
    1 error generated.
    make: *** [thread.o] Error 1
    +__rvm_make:0> return 2
    There has been an error wh
    

    额,macOS 10.12 Beta 下面编译不过

  • 发现一个神奇的 i18n 的管理工具 at June 21, 2016

    就是看起来不是太完善 🙄

  • 前端开发 2 年 多了想问问学 Ruby 的话前端会有加成吗? at June 20, 2016

    实际上,后端开发的经验更重要,写 Ruby,Rails 需要掌握很多 Linux,数据库方面的基础

  • 如果一门语言在你的日常工作生活中用不到你还会专注去学吗? at June 20, 2016

    了解了解还是可以的

  • 现在大家都用什么 CSS 框架?求推荐 at June 20, 2016

    Bootstrap 哪里重?

  • 如何寻找项目里面 DEPRECATION WARNING at June 20, 2016

    然后发现上面的提示是 Turbolinks 2.5.3 的 😧 😨 于是不得不升级 5.0.0.beta2 了 🚀

  • [成都] OneStopWareHouse 招聘中级 Rails 全职 1 名 at June 20, 2016

    👏 👏

  • [北京] APIX (A 轮) 诚邀 Ruby 后端 / 全栈工程师的加入 ( 15-25k)! at June 20, 2016

    #1 楼 @rusiruheru 不要重复顶帖!

  • Ruby China 的 gem 源感觉比之前淘宝的源慢很多,有同感么? at June 20, 2016

    #8 楼 @alsotang 不行,每个用户过来的参数都是不同的,重复率很低

  • 系统升级后的后遗症 at June 18, 2016

    Mac 不用老关机啊

  • 系统升级后的后遗症 at June 18, 2016

    #6 楼 @joway 😄

  • 由于 OSS 私钥外流,导致 Ruby China 备份泄漏... at June 18, 2016

    bcrypt

  • [北京][暴走漫画] Ruby 开发工程师 at June 17, 2016

    😱 😱 😱 😱

  • [北京][暴走漫画] Ruby 开发工程师 at June 17, 2016

    《王尼玛真容首曝光,一言不合怒摘头套 49【暴走大事件第四季】》 http://baozoumanhua.com/videos/36520656

  • Ruby China 的 gem 源感觉比之前淘宝的源慢很多,有同感么? at June 17, 2016

    我之前说过这个的,原因是为了实时,/api 的请求是直接到官方的,所以是慢在哪里。

    但相比同步的延迟,慢这点是值得的。

    .gem 文件(大的部分)是在国内 CDN 上面的,这个速度是飞快的。

  • [北京][暴走漫画] Ruby 开发工程师 at June 17, 2016

    喜欢 🤗 王尼玛 😱 的《暴走大事件》,每集都看!

  • Ruby China Emoji 改用 Twitter Emoji 了 at June 16, 2016

    更高级的是,这个表情,还可以直接复制成系统 Emoji 符号的哦!

  • Ruby China Emoji 改用 Twitter Emoji 了 at June 15, 2016

    这套 Emoji 更清新

  • ruby-chna 源代码本地安装后,注册新用户报错 at June 15, 2016

    Redis 版本不够高

  • [已解决] libv8 安装提示说出错,但我明明已经安装上了 at June 14, 2016
    bundle config build.libv8 --with-system-v8
    
  • Grape 写 API 发送文件 at June 14, 2016

    😐 我觉得你应该发给客户端一个 URL,然后让它自行下载,没必要非得 send_file

  • ActiveRecord::Base 是怎么使用 ActiveRecord::Relation 定义的方法? at June 14, 2016

    #15 楼 @ios 请自己发帖来测试,发到 NoPoint 节点!

  • Rails 4.2.x 如何升级到 5.0.0.rc1? at June 12, 2016

    rails app:update 命令

    Update configs and some other initially generated files (or use just update:configs or update:bin)

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