Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
郭威
@xiaogui
VIP
NO. 667 / 2012-01-04

17 Topics / 571 Replies
12 Followers
5 Following
118 Favorites
GitHub Public Repos
  • open-webui 0

    User-friendly AI Interface (Supports Ollama, OpenAI API, ...)

  • dify 0

    Dify is an open-source LLM app development platform. Dify's intuitive interface combines AI workf...

  • cline 0

    Autonomous coding agent right in your IDE, capable of creating/editing files, executing commands,...

  • shaunthegeek.github.io 0

    sinkcup's blog

  • reader 0

    阅读3服务器版,桌面端,iOS可用。后端 Kotlin + Spring Boot + Vert.x + Coroutine ;前端 Vue.js + Element。麻烦点点star,关注一下...

  • hello 0

  • m4s-converter 0

    将bilibili缓存的m4s转成mp4(读PC端缓存目录)

  • WebStackPage.github.io 0

    ❤️静态响应式网址导航网站 - webstack.cc

  • InstantID 0

    InstantID : Zero-shot Identity-Preserving Generation in Seconds 🔥

  • cases 0

    中国裁判文书网本地搜索

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • 有多少失业的 Ruby 开发 对未来没有什么打算? at August 17, 2023

    国企可能还好点,公务员就不好说了,很多地方财政从疫情开始都不太好 😂

  • API 设计:你们是用 UUID 还是 HEX? at September 02, 2022

    Hashids?

  • 对象存储服务(OSS)省钱建议 at April 23, 2022

    视频文件倒腾过来,倒腾过去的,也挺麻烦

  • rvm 语法安装(被墙)问题求教 at April 22, 2022

    感觉一般都在用 rbenv。

  • 我的远程办公 ~ at April 22, 2022

    十分向往👍

  • 对象存储服务(OSS)省钱建议 at April 22, 2022

    还是很方便的。

  • 对象存储服务(OSS)省钱建议 at April 22, 2022

    如果使用阿里云 OSS,转码服务可以使用阿里云的“媒体处理 MPS”。

  • 在 Fly.io 部署 Rails 应用 at March 23, 2022

    好嘞,部署成功了。 😄

  • 回流招聘 “血泪史” at March 22, 2022

    “直播聊天室”这块公司在使用“腾讯即时通信 IM”。

    《实现直播群功能》 https://cloud.tencent.com/document/product/269/43002

  • 在 Fly.io 部署 Rails 应用 at March 22, 2022

    原本 web 的 fly.toml 是这样

    [experimental]
      allowed_public_ports = []
      auto_rollback = true
    
    [[services]]
      http_checks = []
      internal_port = 8080
      processes = ["app"]
      protocol = "tcp"
      script_checks = []
    
      [services.concurrency]
        hard_limit = 25
        soft_limit = 20
        type = "connections"
    
      [[services.ports]]
        handlers = ["http"]
        port = 80
    
      [[services.ports]]
        handlers = ["tls", "http"]
        port = 443
    
      [[services.tcp_checks]]
        grace_period = "1s"
        interval = "15s"
        restart_limit = 0
        timeout = "2s"
    
    

    我看文中提到 fly/web.toml 需要修改一些内容,有 2 点疑问:

    1、[experimental] 是直接添加 cmd = ["bin/rails", "server"],还是删除其他内容,再添加 cmd = ["bin/rails", "server"]?

    2、[[services]] 是否只修改 internal_port 为 3000,还是需要删除其他内容?

  • 在 Fly.io 部署 Rails 应用 at March 21, 2022

    好嘞,准备先跑个 demo 试试 😀

  • 在 Fly.io 部署 Rails 应用 at March 21, 2022

    发现了 😅

    另 GeekNote 是下面这么用的吗?

    shared-cpu-1x 1G -> web

    512M -> worker

    免费 512M -> postgres

    免费 256M -> redis

  • 在 Fly.io 部署 Rails 应用 at March 20, 2022

    我看 Fly.io 出了部署 Rails 应用的步骤——《Build, Deploy and Run a Rails Application》 https://fly.io/docs/getting-started/rails/

  • Docker 部署 Rails 项目,一直报错 at December 28, 2021

    看你 docker-compose.yml 里面的配置 MYSQL_HOST 值是 db。

  • 写了个 Ruby China 的 GraphQL API at September 10, 2020

    @huacnlee 广告账号 @yhk4 @yhk3

  • RubyConf China 2020 SSR 参会指南 at August 13, 2020

    哈哈,这个周末充实了

  • 我想在控制器代码中增加一个对话框,该怎么做? at May 25, 2020

    类似这种吗?

    <%= link_to 'Destroy',
                 product, 
                method: :delete,
                data: { confirm: 'Are you sure?' } %>
    
  • 安装 Rails 出现 cannot load such file -- openssl at May 18, 2020

    To link Rubies to Homebrew's OpenSSL 1.1 (which is upgraded) add the following to your ~/.zshrc: export RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix openssl@1.1)"

    Note: this may interfere with building old versions of Ruby (e.g <2.4) that use OpenSSL <1.1.

  • 某个类里面如果写错代码,开发环境不报错,但是部署到生产环境就无法启动了,如何在开发环境上提前暴露呢? at May 06, 2020

    测试 + 1

  • RubyConf China 哔哩哔哩频道上线 at May 01, 2020

    已关注

  • 话题显示次序 at April 30, 2020

    然后第一个是 /app/controllers/topics_controller.rb #17

    @topics = topics_scope.without_suggest.last_actived.page(params[:page])
    

    /app/models/topic.rb #26

    # scopes
    scope :last_actived,       -> { order(last_active_mark: :desc) }
    
  • 话题显示次序 at April 30, 2020

    查看下 /app/models/topic.rb #111

    def self.total_pages
      return @total_pages if defined? @total_pages
    
      total_count = Rails.cache.fetch("topics/total_count", expires_in: 1.week) do
        self.unscoped.count
      end
      if total_count >= 1500
        @total_pages = 60
      end
      @total_pages
    end
    
  • 人生的一个小奇迹再次覆灭。。。 at April 24, 2020

    十赌九输

  • 公司电脑不给上外网,我这样下载会不会被发现 at April 23, 2020

    这货肯定是偷数据呢,弄呲了。

  • 请问如何生成形如 “V2UJY1FlBzdTbVI9” 这样的字符串来作为主键? at April 23, 2020

    hashids + 1

  • Ruby on Rails 教程 (原书第 6 版) at November 11, 2019

    点击帖子里的“联系我们”,扫码加楼主的微信。

  • Ruby on Rails 教程 (原书第 6 版) at November 01, 2019

    老读者如何享五折优惠?

  • 基于 homeland 的网站怎么开通招聘权限? at November 01, 2019

    他问的应该是他自己架设的 homeland。 @lgn21st @huacnlee

  • 为何 RailsGirl 的教练都不收费,活动还停了? at November 01, 2019

    估计文洋最近在忙其他的事呢?我问问

  • RubyConf China 2019 录像 [更新完毕] at September 23, 2019

    辛苦了,已收藏。

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