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 2014年03月09日

    #4 楼 @bhuztez 不能同意更多。

  • 请教如何让 ActiveRecord 的查询按照某个虚拟字段排序 at 2014年03月03日

    Hack News: 

    Reddit: 

    从数学角度两者相差不大,但是从实际开发角度,第二种(reddit)模型要远远优于第一种模型。

    第一种算法的分数是一个动态值,如果想排序有两种途径:

    select * from problems order by f(current_time, othor_value) desc limit 20;
    

    很显然,上面的排序无法利用索引。

    还有一种办法是每隔一段时间去计算一次所有条目的 score 值,这样是可以利用索引排序的,但是排名不够平滑。

    Reddit 的算法就完美解决了这个问题,无论什么时间,score 都是一个定植,只需要在相关因素有变动的时候去更新一下对应的 score 值。既可以利用索引,排序又平滑,并且简单。

    select * from problems order by rank desc limit 20;
    
  • [上海 / 成都] 招 1 名 rails 开发,有 angular 经验优先 at 2014年02月28日

    #1 楼 @tumayun 说什么?

  • ActiveRecord Transaction 的疑问 at 2014年02月18日

    #19 楼 @bhuztez #18 楼 @fleuria isolation level?

    • https://github.com/rails/rails/commit/392eeecc11a291e406db927a18b75f41b2658253
    • http://www.postgresql.org/docs/9.1/static/transaction-iso.html
    • https://dev.mysql.com/doc/refman/5.0/en/set-transaction.html
  • [广州] 创业团队招聘 Ruby on Rails 工程师 at 2014年02月15日

    👍

  • 豆瓣 code 开源了…… at 2014年02月14日

    阉割版的?只有 4 个表?

  • [杭州] 端点网络科技有限公司 [Java / JavaScript] at 2014年02月11日

    Java(script)? V5!

  • 有人将 spree 集成到 rails 中的经验吗?希望可以讨论讨论。 at 2014年02月05日

    #15 楼 @realwol Yes, u can. just do it.

  • 有个 linux 下的工具能画文本 flow chart 的叫什么来着? at 2014年02月04日

    http://ruby-china.org/topics/7646

  • 有人将 spree 集成到 rails 中的经验吗?希望可以讨论讨论。 at 2014年01月29日

    #12 楼 @ywencn 你以为那么好写啊?

  • (已出) 出个 ipad mini2 wifi 版 16G at 2014年01月27日

    #6 楼 @ywencn 蜗牛。。

  • The Rails Way? at 2014年01月23日

    选错节点了...

  • 看到 String#[] 方法的一个用法 at 2014年01月23日

    是

  • [杭州] 脸脸招聘前端程序员/Erlang 程序员/UI 设计师 at 2014年01月15日

    #1 楼 @bhuztez “这位妇女,你心思又活络了是吗?”

  • 博士发声的公众号 at 2014年01月15日

    #18 楼 @blacktulip 博士还灌水?!

  • 令人苦恼的性能问题 at 2014年01月15日

    #11 楼 @zangcw 这是简单的缓存设计粒度问题啊

  • 大家都过来帮我出出主意吧 at 2014年01月12日

    #6 楼 @cxh116 👍

  • 项目多版本开发,更新数据库结构时的优美方案. at 2014年01月08日

    数据库迁移是有顺序依赖的,不能并行。

  • Git Flow 和 Github Flow at 2014年01月02日

    #4 楼 @ruohanc yes..

  • 很多时候业务需求不符合 restful 啊 at 2014年01月02日

    ?

  • 做 Rails 项目需要哪些数据库的知识? at 2014年01月01日

    #1 楼 @ywencn 都不会。。

  • 为什么要金额使用分为单位保存成整形在数据库中? at 2013年12月28日

    #4 楼 @kgen 。。

  • sinatra-synchrony is obsolete 了? at 2013年12月23日

    https://gist.github.com/tenderlove/1498215

  • 12306 曝重大漏洞 难挡 “刷票” at 2013年12月23日

    可见一斑

  • Gitlab 是个好东西啊 at 2013年12月21日

    #17 楼 @bhuztez git send-mail 一次就搞定了啊 不需要自己 format-patch 了!

  • Gitlab 是个好东西啊 at 2013年12月21日

    #15 楼 @bhuztez

    还需要一个 git help send-email ?

  • Gitlab 是个好东西啊 at 2013年12月21日

    #7 楼 @bhuztez 可以具体说一下么..如何集成邮件列表?

  • PR 到 4 了 at 2013年12月21日

    #11 楼 @bhuztez 除非你把 ruby china 的数据库黑了。。把自己的记录删掉。要不自杀没用的啊

  • PR 到 4 了 at 2013年12月21日

    #9 楼 @fsword 还真是问号呢 why

  • PR 到 4 了 at 2013年12月20日

    #5 楼 @bhuztez 改 id:改成 bhuuuuuuuuuuuuuuuuuuuztez 或 bhuztezzzzzzzzzzzzzzzzzz

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