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

[email protected]
长桥证券 (Longbridge)
成都
502 篇帖子 / 9058 条回帖
960 关注者
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
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • 大家好,我的 WEB SERVER 被病毒攻击啦! at 2012年09月11日

    #15 楼 @zhangjinzhu ...

  • 大家好,我的 WEB SERVER 被病毒攻击啦! at 2012年09月11日

    #12 楼 @zhangjinzhu 他们这些镜像都是定制过的吧,修改过 root 密码以后还能在控制面板里面改密码?

  • 大家好,我的 WEB SERVER 被病毒攻击啦! at 2012年09月11日

    #10 楼 @zhangjinzhu 不知道了。 盛大云之前还只有 8.04 呢

  • 大家好,我的 WEB SERVER 被病毒攻击啦! at 2012年09月11日

    #8 楼 @zhangjinzhu 其实我挺喜欢 10.04 的

  • 大家好,我的 WEB SERVER 被病毒攻击啦! at 2012年09月11日

    #2 楼 @xworm 谁告诉你 Ubuntu 不能做服务器的啊!

  • Ruby China Notifier - 通知实时提醒器 Mac 版本发布 at 2012年09月11日

    @ashchan 你搞那个 Ruby China Reader 以后用处不大了,哈哈哈,还是简单的实时通知 + Web 简单有效一些。

  • Ruby China Notifier - 通知实时提醒器 Mac 版本发布 at 2012年09月11日

    #7 楼 @hhuai 什么 Node.JS 脚本?

  • Ruby China Notifier - 通知实时提醒器 Mac 版本发布 at 2012年09月11日

    @diudiutang 哈哈哈,至少以后不用守着页面了

  • Ruby China Notifier - 通知实时提醒器 Mac 版本发布 at 2012年09月11日

    Sidekiq 奇怪啊,莫名的挂了

  • Ruby China Notifier - 通知实时提醒器 Mac 版本发布 at 2012年09月11日

    额,居然没收到,奇怪啊

  • 增加 column 的问题 at 2012年09月10日

    报什么错?发上来

  • 利用又拍云 CDN 自动部署 Assets 文件 at 2012年09月10日

    最后那个 550 的错误可以忽略,好像是 . 这个目录的问题

  • 刷粉丝脚本 [自用,收藏] at 2012年09月10日

    刷了一会儿,卡死了

  • 求推荐中国的地图 gem 包 at 2012年09月10日

    担心和谐就用 Baidu 或 MapABC 吧,另外这些前端能搞定的,没必要找 Gem Gem 不能帮你解决所有的问题

  • iterm 裡面用 vim 感覺光標移動速度有點卡。 at 2012年09月10日

    那是你 Mac 输入间隔没调整过吧

  • MongoDB + Rails 有什么好的全文搜索的办法吗? at 2012年09月09日

    #16 楼 @richarddong

    增加 find_in_batches 的方法

    def find_in_batches(opts = {})
      batch_size = opts[:batch_size] || 1000
      start = opts.delete(:start).to_i || 0
      objects = self.limit(batch_size).skip(start)
      t = Time.new
      while objects.any?
        yield objects
        start += batch_size
        # Rails.logger.debug("processed #{start} records in #{Time.new - t} seconds") if Rails.logger.debug?
        break if objects.size < batch_size
        objects = self.limit(batch_size).skip(start)
      end
    end
    

    增加 tire.rake 的任务

    # coding: utf-8
    require 'benchmark'
    namespace :tire do
      desc 'Create Tire Index'
      task :create_settings => :environment do
        if Tire.index('movies').create Movie.settings
          puts Tire.index('movies').settings
        else
          "false"
        end
      end
    
      desc 'Destroy Tire Index'
      task :drop_settings => :environment do
        puts Tire.index('movies').delete
      end
    
      desc 'Regenerate Tire Index for all models'
      task :update_index => :environment do
        Movie.find_in_batches(:batch_size => 1000) do |movies|
          movies.each do |movie|
            movie.update_index
            puts "#{movie.id} [Indexed]"
            movie = nil
          end
          movies = nil
        end
      end
    end
    
  • 单独开贴收集下还在坚持被 Emacs 和 Linux 蹂躏的 `古董'们 at 2012年09月07日

    #14 楼 @willmouse 不是的,单个帖子或回复里面 @ 的通知数量是有限制的

  • 咨询回复提醒数据库设计,SQL 版本 at 2012年09月07日

    #4 楼 @metal 那个文件是多余的,以前 MySQL 版本的遗漏文件,忘记删除了

  • 单独开贴收集下还在坚持被 Emacs 和 Linux 蹂躏的 `古董'们 at 2012年09月07日

    这是在挑衅!哈哈哈

  • 第一页好多灰脸人士 at 2012年09月06日

    #13 楼 @pobing 可以在 Ruby China 上传的呀

  • 第一页好多灰脸人士 at 2012年09月05日

    #3 楼 @diudiutang 你猜

  • Windows 命令行下执行 Ruby 脚本中文乱码问题 at 2012年09月05日

    cmd 属性,编码改 utf-8

  • Redis-Search 能支持非起始输入的 Auto Complete 么? at 2012年09月04日

    把你想要这些单独设计一些字段,存放那些缩写字母,再把这些字段加到 alias_fields 里面就可以了

  • 如何参与 ruby-china 的研发工作呢? at 2012年09月04日

    Github 的 Issues 里面还有一些待实现的功能

  • 悲催一下午的验证码噩梦 at 2012年09月03日

    RMagick 在 CentOS 永远是痛

  • MailsViewer - Mail Preview Engine at 2012年09月03日

    一直用 letter_opener,很好用

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