Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
刘志
@LinuxGit
会员
第 1551 位会员 / 2012-03-22

北京
54 篇帖子 / 259 条回帖
1 关注者
0 正在关注
710 收藏
Try to be a Full-Stack Engineer
GitHub Public Repos
  • provider-gcp 0

    Crossplane GCP provider

  • provider-aws 0

    Crossplane AWS Provider

  • docs 0

    TiDB database documentation.

  • base 0

  • openapi-scripts 0

    Dockerfiles used in PingCAP's docs CI pipeline

  • tidb-operator 0

    TiDB operator creates and manages TiDB clusters running in Kubernetes

  • gotty 0

    Share your terminal as a web application

  • docs-tidb-operator 0

    Documentation for TiDB in Kubernetes in both English and Chinese.

  • tidb-dashboard 0

    A Web UI for monitoring, diagnosing and managing TiDB cluster

  • kops 0

    A fork to kubernetes/kops

More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • A has_many B, 如何在 A show page 创建 B at 2018年07月05日

    @coderliu @tinyfeng @alixiaomiao @lithium4010 多谢各位指点,我之前参考的 Ruby on Rails Tutorial twitter 样例,所以准备在 show page 直接创建。我最近正在补官方 rails guide。😅

  • 求有 Go 语言经验的朋友推荐入门书籍和教程 at 2018年06月03日

    https://gobyexample.com

  • 送几本《Rails 5 敏捷开发》 at 2018年01月26日

    分母 +1

  • 如何从 MongoDB 迁移到 MySQL at 2017年11月19日

    😁 配图是什么软件画的呢?

  • 送几本《Ruby on Rails 教程 (第 4 版)》纸质书 at 2017年11月02日

    💓 分母 +1

  • 录屏软件及摄像收音设备推荐 at 2017年08月17日

    @Rei 打扰,HDMI 分配器方向应该一进两出对吧:https://item.jd.com/958496.html 音频也是走的采集卡对吧。 采集卡已在官网找到国内代理: https://item.taobao.com/item.htm?spm=686.1000925.0.0.iv8gKV&id=536863746536

  • 录屏软件及摄像收音设备推荐 at 2017年08月16日

    谢谢大家的推荐,@Rei 的回答太赞了,还有配图。👍

  • 现有 wiki 模块支持按组设置查看或编辑权限吗 at 2017年04月25日

    求推荐,哈哈。开源的哈。

  • Ruby China 正在衰退吗? at 2017年03月12日

    这个很赞成。

  • Ruby China 正在衰退吗? at 2017年03月12日

    感觉很多人还不知道 Ruby。公司老的 Web 项目后端是 PHP, API 是 PHP 往 Lua 迁,新的商城用的 Go。只有内部系统用了 redmine 和 gitlab。

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

    分母 + 1

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

    Good job.

  • TextMate 2 进入 RC 了 at 2016年11月15日

    昨晚已 update

  • Ruby China 2016 纪念拉链帽衫 at 2016年11月04日

    175/63 买的 M 号 应该不小吧。

  • 我就想问下,那件熊猫衫啥时候有得卖啊... at 2016年09月26日

    帽衫

  • Ransack 搜索词为空时返回所有数据 at 2016年08月13日

    #1 楼 @martin91

    def index
        @keyword = params[:q]
        @q = User.ransack(@keyword)
        @users = @q.result
      end
    
    <% unless @keyword.nil? || @keyword.values.reject { |v| v.blank? }.empty? %>
      <%= render 'results' %>
    <% end %>
    

    多谢,暂时这样实现的。

    @FrankFang 希望实现不输入搜索词提交时,首页不展现结果。

  • 解决了用户名大小写支持的问题 at 2016年08月05日

    😂 LinuxGit 处女座的我终于要解救了。

  • The Rails Doctrine - 中文翻译 at 2016年08月02日

    看到 exit 的例子,我哭了,哈哈。

  • The Pragmatic Bookshelf 本周有优惠 (40%) at 2016年07月17日

    谢谢。刚买了本 Agile Web Development with Rails 5。

  • 分享一个 Ruby 写的小工具 - RedisScanner at 2016年07月10日

    不错的工具。想了解大家线上是否用到了 redis 集群?用的什么架构。类似 Redis cluster,Twemproxy 或 codis。

  • 大家好好工作 at 2016年05月18日

    我去 跑路了

  • 焕然一新的讲稿网 at 2016年05月17日

    您好 可以下载吗。

  • 给 Ruby 和松本行弘点赞!(Ruby 的起源故事分享) at 2016年05月12日

    😂

  • [北京][2016年5月21日] Ruby Saturday「活动召集」 at 2016年05月10日

    21 号公司组织出去玩,哭晕在厕所。

  • [北京][2016年5月14日] Beijing on Rails at 2016年05月10日

    I'm a Beginners Rubyst. Can I join you? 😂

  • [已解决] printf 格式化输出如何写入到文件 at 2016年05月09日

    #5 楼 @skandhas 原来这样就可以,对我以后写运维脚本很有用。谢谢😊。

  • [已解决] printf 格式化输出如何写入到文件 at 2016年05月09日

    #4 楼 @bajiudongfeng 谢谢,我把 File.open('query.txt', 'w') do |f| 放在脚本最外层可以了,哈哈。

  • [已解决] printf 格式化输出如何写入到文件 at 2016年05月09日

    #2 楼 @shallmentmo 嗯哇,你的可读性比我的好很多。 我还遇到个问题,😂 我的脚本文件只写入最后一行的结果,但上面的帖子却可以。

    #!/usr/bin/env ruby
    
    File.foreach("domain.txt") do |line|
      result = `host -t cname #{line}`
      domain = line.chomp
      File.open('query.txt', 'w') do |f|
        if result =~ /an alias/
          cname  = result.split.last.chop
          printf("%-40s %s\n", "#{domain}", "#{cname}")
          f << "#{cname}\n"
        elsif result =~ /no CNAME/
          ip = `dig +short #{line}`.split.join("   ")
          printf("%-40s %s\n", "#{domain}", "#{ip}")
          f << "#{ip}\n"
        else
          printf("%-40s %s\n", "#{domain}", "================Please check this domain.==============")
          f << "Please check this domain.\n"
        end
      end
    end
    
  • [已解决] printf 格式化输出如何写入到文件 at 2016年05月09日
    f << "%-10s, %s\n" % ["Ruby", "Python"]
    

    微信群提示先格式化,我测试下用上面的方法可以写入。

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