Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
Hooopo
@hooopo
管理员
第 8 位会员 / 2011-10-28

[email protected]
nil
北京
160 篇帖子 / 3013 条回帖
360 关注者
0 正在关注
74 收藏
聪明的妖怪录下了唐僧的紧箍咒
打赏作者
GitHub Public Repos
  • oh-my-github-circles 47

    GitHub User Circle Generator Using GitHub Actions

  • hackernews-insight 21

    Hackernews Insight using TiDB Cloud

  • repo-track-pipeline 6

    🔄 A flexible open-source data pipeline for seamlessly syncing data from any repository to your da...

  • oh-my-github-pipeline 6

    🔄 A flexible open-source data pipeline for seamlessly syncing data from any github user to your d...

  • chatgpt-xiaoai 3

    小爱音箱集成LLM,SaaS 服务

  • repo-contributor-circles 1

    GitHub repo contributor circles generator.

  • ossinsight-x 1

    Automatically post trending repos to Twitter every day.

  • mi-service 1

    XiaoMi Cloud Service for mi.com

  • hooopo 0

  • streamlit-echarts-demo 0

    Demo for Streamlit ECharts component

More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • 新功能上线:公司/组织 at 2016年07月12日

    成员话题列表不加载之前的内容?但 https://ruby-china.org/ruby-china 似乎是加载了..

  • Ruby ETL 工具漫谈 at 2016年07月11日

    #12 楼 @pengedy 可以分享一下哪里好么...

  • [测试] 这些方法属于 Ruby 还是 Rails ? at 2016年07月09日

    后面的图片有意思啊

  • [北京] [大望路] [凡影] 诚邀 前端 / Ruby 工程师 一起进步 [朝 11 晚 6] [不打卡] at 2016年07月08日
    • 工作时间:朝 11 晚 6 & 双休
    • 带薪年假:14 天
    • 带薪病假:7 天
    • 带薪事假:7 天

    👏

  • Rails 如何用一句 SQL 语句查询出记录总数和部分记录 at 2016年07月02日

    用一条语句是一个伪需求啊!你的真实需求其实应该是速度快,一条语句当然可以写,但是其实不如分开快...你看 Rails 的分页其实都是两条 SQL 的,没必要追求一条 SQL...

  • unused - A command line tool to identify unused code. at 2016年06月28日

    正需要

  • 怎么 review 一个硕大的 Pull Request 或者 Merge Request at 2016年06月22日

    #6 楼 @hiveer 难道不是么... 所以不要一次搞个大新闻!

  • 怎么 review 一个硕大的 Pull Request 或者 Merge Request at 2016年06月22日

    10 lines of code = 10 issues. 500 lines of code = "looks fine." Code reviews.

  • 点赞变成了一个大大的爱心真的好吗 at 2016年06月21日

    「Twitter 表示使用心形"Like"按钮后 用户使用率增加 6%」

  • 如何寻找项目里面 DEPRECATION WARNING at 2016年06月20日

    不需要安装的..

    ag before_filter  `bundle show --paths`
    
  • SQL 嵌套查询语句求助~ at 2016年06月16日

    这个问题有意思~~

    可以先搞定如何不用limit关键字实现limit:

    set @i = 0; select @i := @i + 1 AS sort_id, id from users where @i < 5;
    Query OK, 0 rows affected (0.00 sec)
    
    +---------+-----+
    | sort_id | id  |
    +---------+-----+
    |       1 | 194 |
    |       2 |   1 |
    |       3 |   5 |
    |       4 |   6 |
    |       5 |   7 |
    +---------+-----+
    5 rows in set (0.00 sec)
    

    同理:

    SET @i = 0;SELECT @i := @i +1 AS i, B.id, B.internalname FROM B  INNER JOIN A ON B.internalname = A.internalname AND A.hx > @i WHERE internalname = 'abc';
    
  • Rails 4 升级第一弹 at 2016年06月16日

    👏

  • Ruby China Emoji 改用 Twitter Emoji 了 at 2016年06月15日

    😱 🍎

  • 谁能帮俺找回那一毫秒?[已解决] at 2016年06月13日

    Float 问题果然是月经贴啊...

    t = 236.123.to_d
    s = Time.at(t).utc.strftime("%H:%M:%S.%L")
    => "00:03:56.123"
    

    to_d 是 Rails 的方法,Ruby 里可以用BigDecimal(xx, 15)

  • Rails.cache 缓存似乎把代码缓存了,而不是把结果缓存了 at 2016年06月12日

    #5 楼 @xguox 哇,高产!

  • 电商 API 高并发设计求解 at 2016年06月08日

    库存、订单、产品是三个独立系统的意思是 microservice?数据库也分开的?

  • [杭州] 大搜车 Ruby 工程师多名 at 2016年06月08日

    域名居然不是 dasouche

  • 又创业了, 一个付费文章写作与分享工具, 欢迎大家前往体验 :) at 2016年06月08日
    1. Pocket 里一堆不用付费的好文章都读不完呐!
    2. 自己写的免费文章都没人看(逃
  • 表重构建议 at 2016年06月03日

    一言不合就重构!

  • Shellshock 第三弹? at 2016年06月02日

    http://o84x25gr9.bkt.clouddn.com/a.html test

    https://o8508s1y5.qnssl.com/a.html

  • 关于 second_level_cache 插件的 prefix at 2016年06月01日
    1. 起到 namespace 作用
    2. 可以更细粒度控制缓存的失效,比如如果想清空所有 slc 存储的内容,就可以更改 cache key prefix 的值,这样所有 slc 存储的内容就都失效了,不需要把整个 cache store 的内容都 clear 掉。
  • 关于 Unicorn 的官网为啥看起来那么古老,开发者之一 Eric Wong 做出了回答 at 2016年05月28日

    #8 楼 @1c7 你的邮件其实就是发送到了一个邮件列表,和 github 的 issue or pull request(据说把 patch 发上去就是 PR)是一样的:

    http://bogomips.org/unicorn-public/

  • 关于 Unicorn 的官网为啥看起来那么古老,开发者之一 Eric Wong 做出了回答 at 2016年05月28日

    为什么不用 github,很久之前有回复了:

    No.  Never.  Github is proprietary communications tool which requires
    users to accept a terms of service and login.  That gives power and
    influence to a single entity (and a for-profit organization at that).
    
    Contributing to unicorn is *socially* as easy as contributing to git or
    the Linux kernel.  There is no need to signup for anything, no need to
    ever touch a bloated web browser.
    
    The reason I contribute to Free Software is because I am against any
    sort of lock-in or proprietary features.  It absolutely sickens me to
    encounter users who seem to be incapable of using git without a
    proprietary communications tool.
    

    https://www.reddit.com/r/ruby/comments/2cdks1/eric_wong_on_why_unicorn_will_not_be_hosted_on/

  • 无聊爬了下 GitHub 上的开源 Rails 项目 at 2016年05月25日

    stringer 是 sinatra 的

  • 两层 N+1 查询问题 at 2016年05月25日

    Order.includes(:user => :campany)

  • [Problem, Ruby, Array] 如何检测一个字符串中包括某个数组中的元素? at 2016年05月24日

    http://shopperplus.github.io/blog/2014/11/23/trie-shu-de-ying-yong.html

  • Ruby ETL 工具漫谈 at 2016年05月24日

    #10 楼 @ericguo 解决的问题不一样。R 是 Data Science 领域的工具,内建丰富的统计分析挖掘相关的库。ETL 是 Data Analysts 领域的一个步骤,把数据从 OLTP 库转换到 OLAP 库,然后进行分析。

  • Ruby ETL 工具漫谈 at 2016年05月16日

    #5 楼 @nouse 可以理解为 FDW 其实是 ETL 的一种途径,如果你的 Destination 恰好是 Pg,并且你需要整合的资源都有对应的 FDW Wapper,那么 FDW 确实是最简单的方式。

    但我觉得像上面图中想用 FDW 替代 ETL 的想法在目前根本行不通,原因是:

    A foreign table can be used in queries just like a normal table, but a foreign table has no storage in the PostgreSQL server.

    FDW 的数据其实仍然存储在外部服务器,Pg 服务器只存储 schema,并且提供查询接口。而 ETL 是真的把数据搬 Pg 里面。FDW 和 ETL 在这点上的区别就像 View 之于 Materialized View。而 View 虽然和普通表有着相同的接口,但由于数据存储的限制,性能是一个致命问题。同样,FDW 的最大问题也是性能问题。

    Citusdata 做过一个测试:

    结论是:

    the primary benefit of foreign tables is their flexibility. With them, you can issue complex SQL queries on log files, JSON data, or MySQL. In fact, you can even join data from different sources without having to load any of it.

    https://www.citusdata.com/blog/50-postgresql-foreign-file-performance

  • Ruby ETL 工具漫谈 at 2016年05月16日

    #2 楼 @nouse 有什么更好的推荐吗?因为熟悉 Ruby 啊,Ruby 这种脚本语言做 ETL 其实还是挺好用的,处理个百万千万级还是很容易的...

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