Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
AmosChen
@Amosasas
会员
第 82603 位会员 / 2019-08-20

2 篇帖子 / 13 条回帖
0 关注者
6 正在关注
0 收藏
GitHub Public Repos
  • parallel-programming-a... 1

    Assignments for parallel programming

  • dog-bed-database 1

  • boringssl 0

    Mirror of BoringSSL

  • BladeDISC 0

    BladeDISC is an end-to-end DynamIc Shape Compiler project for machine learning workloads.

  • grpc 0

    The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#)

  • FasterTransformer 0

    Transformer related optimization, including BERT, GPT

  • waka-box 0

    📊 Update a pinned gist to contain your weekly WakaTime stats

  • models 0

    Models and examples built with TensorFlow

  • DeepRec 0

    DeepRec is a high-performance recommendation deep learning framework based on TensorFlow. It is h...

  • tensorflow 0

    An Open Source Machine Learning Framework for Everyone

More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • 讨厌 Ruby 的人数已超过喜爱 Ruby 的人数 at 2022年07月09日

    HTML/CSS 这种坑爹玩意居然喜欢的人还比不喜欢的人多???

  • 迈向 Ruby 3 at 2021年06月09日

    以及希望大佬能 fork 这个 repo 到 github 上面去,把 gitee 作为 mirror。

  • 迈向 Ruby 3 at 2021年06月09日

    国内现在 git clone 不改 hosts 是肯定不行的,改完也需要 restart or refresh 一下。(起码阿里云 ECS 是这样,很恶心) ruby-build 那个 RUBY_BUILD_MIRROR_PACKAGE_URL 还是蛮好用的。直接去 mirror 节点找完写进.bashrc 搞一下就行。 或者傻瓜一点直接在本地下好 ruby 的源文件,scp 到~/.rbenv/cache 下,之后用 ruby-build 自己 compile & run。

  • 你知道在 Ruby 中如何查看 String 是否是回文? at 2020年09月13日

    也可以用 manacher 算法提升效率

  • 如何设置 rails console 中 app.host 的默认值? at 2020年04月24日

    嗯 已经解决了。之前 Rails 5 一样的设置没用问题,查了一下应该是 Rails 6 新引了一个 Middleware,会去 check 请求的 hostname 避免 DNS 的重新绑定攻击,解决方法很简单,就是把名单清空config.hosts.clear,要么加上一条记录config.hosts << 'your_hostname' https://stackoverflow.com/questions/53878453/upgraded-rails-to-6-getting-blocked-host-error

  • 如何设置 rails console 中 app.host 的默认值? at 2020年04月23日

    难过,但是我发现 rails console -e test 起的时候,app.host 虽然是 example.com 但是 app.get('/') 是不会 403 的,只有 development 的时候才有,这是因为 spec/下的 helper 的原因吗?

  • 有没有好的 report generate 解决方案 at 2020年04月23日

    https://redash.io/ Redash 也不错 如果数据不算特别敏感的话

  • 珠海有啥前端的工作机会吗? at 2020年03月24日

    这个头像,中华田园犬阿黄?

  • Rails 中关于:scope 的设计问题 at 2020年03月08日

    多谢提醒 感觉 where.not 确实最简单的方法

  • Rails 中关于:scope 的设计问题 at 2020年03月07日

    嗯,感觉确实是考虑得有点多了,不现实。 最近刚看过 ruby meta-programming,想试着用 method_missing 去定义,但是看了一下scope:貌似是生成了一个 class method 而且返回了一个·ActivateRelation·,所以可能得用其他方法实现,但是我对 Rails 里面的 class 和 module 关系完全不熟,还是老老实实在 model 里一个个实现 case 吧。

  • Ruby 在 Basecamp 运营中的开销 at 2019年12月22日

    也许用 docker 会更简单?

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