Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
hellorails
@hellorails
会员
第 36058 位会员 / 2018-09-20

1 篇帖子 / 95 条回帖
3 关注者
0 正在关注
0 收藏
未设置 GitHub 信息。
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • 那我也来发个贴吧;我们家狗子刚来的时候; at 2019年12月19日

    你两年前画的?

  • 那我也来发个贴吧;我们家狗子刚来的时候; at 2019年12月19日

  • 招 Ruby 花了 2 周收到 3 个简历,招 Java 花了 2 天收到 150 个简历。 at 2019年09月12日

    楼主

    2012 年招 Ruby,开 12K-16K

    2019 年招 Ruby,开 8k-14k

    所以,招不到人才是正常现象

    不是针对楼主,只是说说 Ruby 在国内的现实状况

  • 有关 Sidekiq::Worker 的 perform_async 方法传入的参数的问题 at 2019年02月27日

    The arguments you pass to perform_async must be composed of simple JSON datatypes: string, integer, float, boolean, null, array and hash.

    https://github.com/mperham/sidekiq/wiki/Best-Practices

  • 关于类变量的疑问 at 2018年12月01日

    这段代码你确定执行过吗?obj=new B 是什么鬼?

  • 2O at 2018年11月16日

    试试 https://github.com/swanandp/acts_as_list

    class Comment < ApplicationRecord
      belongs_to :post
      acts_as_list scope: :post, column: :floor_no
    end
    
  • 一招秒杀 N+1 agg 问题 at 2018年11月01日

    order_items 全表 group?

  • 一招秒杀 N+1 agg 问题 at 2018年11月01日

    巧妙。但是当 Order 有附加的 where 条件时,是否需要把这个条件带入到 aggs_sql 里?

  • Ruby Summit China 2018 PPT 下载以及在线视频播放 at 2018年10月21日

    本次大会视频似乎是被 itdks.com 垄断

  • Wiki 能开放编辑权限,保留审核权限吗 at 2018年10月21日

    https://docs.gitlab.com/ce/gitlab-basics/command-line-commands.html

  • Wiki 能开放编辑权限,保留审核权限吗 at 2018年10月21日

    的确是“各人有各人的看法”,通过 pull request 流程讨论,最终由 maintainer 决定呗。

    开源项目大多也是这样,拒掉的 pull request 也不少,不可能让所有人都满意的。

  • Wiki 能开放编辑权限,保留审核权限吗 at 2018年10月19日

    https://ruby-china.org/topics/17827

    想到了这篇帖子

  • Ruby 不用花括号表达代码块,是一个设计缺陷吗 at 2018年10月17日
    3.times { |i|
      puts i
    }
    
    3.times do |i| puts i; end
    

    都可以,只是习惯或约定不这样写而已

  • Matz:Ruby after 25 years (Matz 将在 10月13日 在 Ruby Summit China 2018 会场和大家分享 25年 后的 Ruby) at 2018年10月16日

    看到要用手机号注册我就放弃了,很反感这种非得注册才能看,就个视频而已

  • Matz:Ruby after 25 years (Matz 将在 10月13日 在 Ruby Summit China 2018 会场和大家分享 25年 后的 Ruby) at 2018年10月15日

    看个视频还要注册,被套手机号。。

  • Matz:Ruby after 25 years (Matz 将在 10月13日 在 Ruby Summit China 2018 会场和大家分享 25年 后的 Ruby) at 2018年10月14日

    很遗憾没有去参加。 大会所有的幻灯片现在可以给出了么?另外演讲视频大概什么时候出哇?

  • 编程小书大本营 at 2018年10月13日

    nice

  • 如何按照创建时间降序排列 再按照 system_id 去重?? at 2018年09月28日

    https://dev.mysql.com/doc/refman/5.7/en/sql-mode.html#sqlmode_only_full_group_by

    你的是 MariaDB,可能会有些区别(https://mariadb.com/kb/en/library/sql-mode/)

    MariaDB ONLY_FULL_GROUP_BY: For SELECT ... GROUP BY queries, disallow SELECTing columns which are not referred to in the GROUP BY clause, unless they are passed to an aggregate function like COUNT() or MAX(). Produce a 1055 error.

    我是分别在 MySQL 5.5.54 和 5.7.23 下测试的

  • 如何按照创建时间降序排列 再按照 system_id 去重?? at 2018年09月28日

    还是只适用于老版本,MySQL 的不严谨坑了好多人。。。

  • 如何按照创建时间降序排列 再按照 system_id 去重?? at 2018年09月28日

    如果不在 group by 里,就必须在聚合函数里。你的 MySQL 是哪个版本?老版本可能不一样

    https://dev.mysql.com/doc/refman/5.7/en/sql-mode.html#sqlmode_only_full_group_by https://dev.mysql.com/doc/refman/5.7/en/group-by-handling.html

  • 如何按照创建时间降序排列 再按照 system_id 去重?? at 2018年09月28日
    SELECT system_id,created_at 
    FROM (
        SELECT system_id,created_at
        FROM false_feed_backs
        ORDER BY created_at DESC
    ) t
    GROUP BY system_id
    

    你这个子查询看上去没有意义啊,另外写了 GROUP BY system_id 但是 created_at 不用聚合函数,逻辑上看还是不对。。

    使用 group by 的时候,select 出来的多个列,要么在 group by 列表中,要么使用聚合函数

  • 富文本编辑器 Trix at 2018年09月28日

    一个回车用 br,两个回车应该用 p

  • 如何按照创建时间降序排列 再按照 system_id 去重?? at 2018年09月28日
    FalseFeedback.order("created_at desc").group("system_id")
    

    你这样生成的 SQL 在逻辑上是错误的,需要补一下 SQL 知识再使用 Active Record

  • [杭州] 杭州当客招聘 Ruby 工程师一名 (10~18K) at 2018年09月26日

    我问的是 RSD

  • [杭州] 杭州当客招聘 Ruby 工程师一名 (10~18K) at 2018年09月26日

    4、熟悉阿里云服务:ECS、CDN、SLB、RSD 等;

    RSD 是什么?

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