Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
吕小荣
@xiaoronglv
管理员
第 1638 位会员 / 2012-03-29

workstream.us
上海
192 篇帖子 / 1511 条回帖
216 关注者
0 正在关注
16 收藏
社区清洁工
GitHub Public Repos
  • xiaoronglv.github.io 2

    Ryan's Blog

  • redocly-example 0

  • checkr-ruby 0

    Checkr Ruby bindings

  • oas-examle 0

  • Practice-Golang 0

    Play with Golang

  • unleash 0

    Unleash is the open source feature toggle service.

  • rails-github-actions-e... 0

    Rails CI pipeline with GitHub Actions example

  • dalli-elasticache 0

    A wrapper for Dalli with support for AWS ElastiCache

  • xiaoronglv 0

  • awesome-github-profile... 0

    This repository contains best profile readme's for your reference.

More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • 提高中国程序员幸福感的网络调试工具 at 2022年07月30日

    为了防止给论坛惹一堆麻烦,我把评论关了,免得触发一些敏感词。

  • runc hang 导致 Kubernetes 节点 NotReady at 2022年07月06日

    作者基本功真是扎实。我几年前也是遇到 runc init 卡住的问题,只会使用重启大法。

    https://stackoverflow.com/questions/56269285/docker-what-does-runc2init-mean

  • [远程][国内/PST] 招聘 Staff Software Engineer, Distributed Systems, 薪资对标阿里 P7 以上,上不封顶 at 2022年05月21日

    欢迎加入 workstream 工程师团队。

  • Atlantis: 可确定的执行计划 at 2022年04月02日

    谢谢纠正,已改。

  • [2022 年 3 月 22 日] Ruby Tuesday 线上聚会: 如何找国外的远程工作? at 2022年03月23日

    Youtube:https://www.youtube.com/watch?v=QvJSHzfKOkQ

    bilibili:https://www.bilibili.com/video/BV1R34y1x7QW/

    录音下载:https://drive.google.com/file/d/1Zc6y91QsN0GpAUHX-JJ9gJ1OOOr4ROJE/view

  • 怎样才算两年经验的 Ruby 程序员 at 2022年03月22日

    source: https://github.com/kamranahmedse/developer-roadmap

    Back-end Roadmap

    DevOps Roadmap

    Frontend Roadmap

  • [2022 年 3 月 22 日] Ruby Tuesday 线上聚会: 如何找国外的远程工作? at 2022年03月20日

    单纯拼技术的话,中印程序员确实是竞争关系。

    但很多企业在中国设立研发中心,除了成本,会考虑多方面因素,比如:

    1. 有些公司将来可能会拓展中国市场,在中国开展业务。
    2. 中国产业链完整。
    3. 创始人是华裔,所以和中国程序员沟通无障碍。
    4. 中国程序员综合素质高,出活。

    所以针对这种情况,中国和印度不一定是零和游戏。

  • [2022 年 3 月 22 日] Ruby Tuesday 线上聚会: 如何找国外的远程工作? at 2022年03月20日

    时间是下周二晚上,欢迎参加。

  • 请问怎么让 CircleCI 跑子目录的测试代码? at 2022年03月11日

    花了 1 天的时间,折腾了各种各样的参数,CircleCI 都跑不起来,实在是太沮丧了。幸运的是,github actions 对这种情况支持的特别好,我只需要加一个参数就搞定了。

    这个子服务代码量很小,3 分钟就可以跑完测试,我就先不用 CircleCI 了,转投 Github Actions。

    这是我用的范例文件,如果将来有人也有类似的需求 “在一个子文件夹中跑测试”,可以试试 Github Actions。

    https://github.com/xiaoronglv/rails-github-actions-example/blob/master/.github/workflows/rails.yml#L10

    这是 Github Actions 的配置文件

    name: "Backend Test"
    on:
      push:
        branches: [ main ]
      pull_request:
        branches: [ main ]
    jobs:
      test:
        runs-on: ubuntu-latest
        defaults:
          run:
            working-directory: ./backend
        env:
          RAILS_ENV: test
          DATABASE_NAME: connector_test
          DATABASE_USER: postgres
          DATABASE_PASSWORD: password
        services:
          postgres:
            image: postgres:11
            env:
              POSTGRES_USER: postgres
              POSTGRES_DB: connector_test
              POSTGRES_PASSWORD: password
            ports: ["5432:5432"]
            options: >-
              --health-cmd pg_isready
              --health-interval 10s
              --health-timeout 5s
              --health-retries 5
        steps:
          - name: Checkout code
            uses: actions/[email protected]
          - name: Install dependencies
            run: |
              sudo apt-get -yqq install libpq-dev build-essential libcurl4-openssl-dev
          - name: Install Ruby and gems
            uses: ruby/[email protected]
            with:
              rubygems: latest
              working-directory: ./backend
              ruby-version: 2.7.3
              cache-version: 3
              bundler-cache: true
          - name: Set up database schema
            run: bundle exec rake db:schema:load
          - name: Run tests
            run: bundle exec rspec
    
  • 请问怎么让 CircleCI 跑子目录的测试代码? at 2022年03月10日

    @lanzhiheng 大佬,我看你还给官方 demo 提供过代码,你折腾过前后端分离的项目的 CircleCI 的配置文件吗?

  • I Was Wrong, We Need Crypto | DHH at 2022年03月07日

    说好的中立国不再中立,N 多富豪瞬间倾家倾家荡产,钱一下都没了。

    DHH 的这篇文章真应景。

  • 你们写程序是用 if 多,还是用 unless 多? at 2022年03月03日

    我脑容量比较小,每次看到 unless 会卡壳。所以写代码会倾向于用 if !xxx ,但是 RubyMine 会自作聪明的帮我改成 unless.

  • not in 踩坑记录 at 2022年02月14日

    PostgreSQL 和 MySQL 的默认索引结构是个 B+ tree,not in 和 != 都没有办法利用索引,导致全表扫描。

    如果存在被屏蔽的黑名单用户,我是宁可建一个冗余字段 status 然后 select * from users where status = 'active' and xxx = xxx

    因为 status 只有几个数值,建了索引效果也不好,一定得跟着一个其他的过滤条件。比如 company_id = xxxxx。

  • 搭了一个 forem at 2022年02月10日

    看上去真不错啊,这个和 discourse 什么区别?

  • [上海] SAP 诚聘 Web 前端工程师 at 2022年02月03日

    你发垃圾信息,真是发错地方了。

    我把你的账户封了。

  • [上海][2021 年 12 月 28 日] Ruby / Rails 线下聚会召集 at 2021年12月27日

    Jetbrains 刚好又给了一个优惠券,到时候发给大家。

  • 有哪些,是项目开始运行甚至成熟后,非常后悔没有提前配置或加上的? at 2021年12月06日

    权限是要加的,scope 也是要加的,比如 company.resources.find_by()

    uuid 可以保证第二道防线。

  • 有哪些,是项目开始运行甚至成熟后,非常后悔没有提前配置或加上的? at 2021年12月05日

    我后悔 “一开始为什么不在每张表里创建 UUID 这个字段”

    作为企业级应用,给前端返回数据时,用 integer id 很危险,很容易被人按照顺序爬数据,暴露了不属于当前客户的资源。

    如果用 uuid,即使自己不小心写了有问题的代码,UUID 可以作为第二道防线。

  • 有哪些,是项目开始运行甚至成熟后,非常后悔没有提前配置或加上的? at 2021年12月05日

    我后悔 “一开始就测试写太多,代码写的太完善”,就是大家说的 'premature optimization'。

    因为和客户聊后,发现需求变来变去,一开始写的很多测试都白写了,浪费了大量时间。

  • 关于如何系统提升自己专业能力的问题? at 2021年11月25日

    Frontend Roadmap

    https://github.com/kamranahmedse/developer-roadmap

  • 关于如何系统提升自己专业能力的问题? at 2021年11月25日

    DevOps Roadmap

    source: https://github.com/kamranahmedse/developer-roadmap

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