Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
刘向平
@liuxiang511240
会员
第 9643 位会员 / 2013-10-19

[email protected]
北京通州区
2 篇帖子 / 32 条回帖
1 关注者
53 正在关注
38 收藏
GitHub Public Repos
  • snow_flake 1

    This is a gem can generate ID using SnowFlake

  • clap 0

    A full featured, fast Command Line Argument Parser for Rust

  • prose 0

  • fumei 0

  • hzcq 0

  • studio 0

  • rails-mongo 0

  • saltyce 0

More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • gem install nokogiri 失败: Error installing nokogiri at 2018年04月21日

    mac xcode-select --install
    http://www.nokogiri.org/tutorials/installing_nokogiri.html

  • [郑州] 河南百川环境科技有限公司招聘 Rails/ 全栈 工程师 (过年回河南的求约) at 2018年03月08日

    顶一个😀

  • 宇宙社会学:生存是文明的第一需要 at 2017年10月19日

    在地面上做一个倒立,就以为举起了整个地球💪 💪 💪

  • 树形结构数据表如何查询最底一层的所有数据 at 2017年07月19日

    只有 parent 适用于两层,不适用于多层,建议增加 level 字段,这样表结构更清晰,取哪一层都方便了

  • cache_key 如何去掉域名那一段? at 2017年04月10日

    处理字符串吗?这样 "space:views/localhost:3000/controller/method/x.json".gsub("/localhost:3000","") ?

  • 送几本《RESTful Rails Development (中文版)》 at 2017年03月08日

    支持

  • [已关闭,结果公布] 送几个蛋人网的订阅账号 at 2017年03月06日

    支持一下

  • 这样的需求该怎么设计表结构? at 2017年02月15日

    提供两种,不知道能不能满足:

    • 第一种配送方式表中建一个字段 string 类型 记录如下 2-39-456,2,2-23(数字代表省份、市、县 ID)多个区域就用逗号隔开;
    • 第二种再建一个关系表 记录配送方式表 ID,省、市、县 ID(市县为 0 时表示全省配送)
  • ActionStore - 一步到位的 Like, Follow, Star, Block ... 等动作的解决方案 at 2017年02月08日

    👍

  • 周末到了,来段代码压压惊 at 2016年11月29日

    真实不错的精华帖,哈哈蛤

  • 周末到了,来段代码压压惊 at 2016年11月29日

    好玩。。。

  • undefined method `prepend' for RuCaptcha::Captcha:Class at 2016年11月07日

    #3 楼 @huacnlee 嗯,解决了🙏

  • undefined method `prepend' for RuCaptcha::Captcha:Class at 2016年11月07日

    @huacnlee 请问这个报错是什么问题啊

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

    👍

  • 网站攻击问题--求助 at 2016年05月25日

    #11 楼 @ywencn 加了验证码耗时少了很多,多谢!

  • 网站攻击问题--求助 at 2016年05月24日

    #11 楼 @ywencn 嗯,谢谢

  • 网站攻击问题--求助 at 2016年05月23日

    #8 楼 @huobazi 云通讯的,这个没关系吧

  • 网站攻击问题--求助 at 2016年05月23日

    大家都是怎么解决的呢

  • 网站攻击问题--求助 at 2016年05月23日

    @huacnlee 分析了一下 IP,基本每次请求都是不同的 IP,不明白这种攻击是怎么发起的?

  • 网站攻击问题--求助 at 2016年05月23日

    @huacnlee 就是说不用理它吗?但是会影响服务器的速度,从昨天到现在一直是这样,有时候会报 request full 错误

  • Heroku-style config management with capistrano and dotenv at 2015年12月16日

    @hooopo 不错

  • Rails Scopes 预加载 at 2015年07月04日

    很不错。。。。

  • 碰到一个奇怪的问题,(0.6/0.2).to_i=? at 2014年12月23日

    剖析 float 型的内存存储和精度丢失问题 http://hxraid.iteye.com/blog/504293

  • 碰到一个奇怪的问题,(0.6/0.2).to_i=? at 2014年12月23日

    为什么 (0.8/0.2).to_i=4 呢?

  • 最难面试的 IT 公司!-- 你敢来挑战吗? at 2014年05月17日

    floor 15 good

    n = [3, 5, 7]
    w = %w(Fizz Buzz Whizz)
    l = lambda { |a, fn| [fn.call(a)] + a.combination(2).map { |b| fn.call(b) } + a }
    ns = l.call(n, lambda { |a| a.inject(:*) })
    ws = l.call(w, lambda { |a| a.join })
    1.upto(10).map { |i| i.to_s =~ /#{n[0]}/ ? w[0] : (f = ns.find_index { |l| i % l == 0 }) ? ws[f] : i }
    
  • 最难面试的 IT 公司!-- 你敢来挑战吗? at 2014年05月17日

    n = [3, 5, 7] w = %w(Fizz Buzz Whizz) ns = [n.inject(:)]+n.combination(2).map { |b| b.inject(:) } + n ws = [w.join]+w.combination(2).map { |b| b.join } + w 1.upto(20).map { |i| i.to_s =~ /#{n[0]}/ ? w[0] : (f = ns.find_index { |l| i % l == 0 }) ? ws[f] : i }

  • 支持中文分词的 sunspot_solr at 2014年05月15日

    这儿有配置和用法 https://github.com/sunspot/sunspot

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