Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
ltl3884
@ltl3884
高级会员
第 622 位会员 / 2011-12-29

北京
4 篇帖子 / 48 条回帖
0 关注者
1 正在关注
8 收藏
ri,这家伙没签名啊!
GitHub Public Repos
  • venus 2

    从抖查查收集抖音信息

  • pcolor 1

    let the method "p" with color

  • ltl3884.github.com 1

    ltl3884 blog

  • dbscan 1

    dbscan for ruby

  • test 1

    git test

  • forum_post 1

    get the forum_post content

  • myvim 1

    myvim config

  • fluentd 1

    Fluentd event collector, Logs as JSON stream

  • spock-spring-boot-example 0

    An example of testing Spring Boot application with Spock framework

  • cashasst 0

More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • 为什么 JRuby + TorqueBox 相比 Ruby + Passenger 没有显著的提升? at 2015年10月27日

    #5 楼 @robbin 能否给一个正确的测试 ruby 和 jruby 性能的方式?比如说 cpu 要用到多少?内存要用到多少?

  • 帮忙分析一下网站的 慢查询,该怎么优化呢 at 2015年10月19日

    可以试试 oneapm 这个和 Newrelic 差不多 可以免费用一段时间 rails 应用的话一般是 sql 和页面的渲染比较耗时

  • RSpec 求实际执行时间 at 2015年10月19日

    自己手动实现一下

    Rspec.configure do |config|
     config.before(:each) do
       @start_timer = Time.now
     end
    
      config.after(:each) {}
        puts "Spec ran in #{Time.now - @start_timer}s"
      end
    end
    
  • JRuby 线程安全 问题 at 2015年09月18日

    @doitian 您有 QQ 或者是其他社交工具吗?希望能加你好友

  • JRuby 线程安全 问题 at 2015年09月10日

    #8 楼 @doitian 就用 Thread Local Storage 解决就行吧?看你的分享就是这么做的

  • JRuby 线程安全 问题 at 2015年09月09日

    @jimrokliu 我这个例子不好 应该是举一个每个线程都有一份独有数据的例子

    我这个例子的代码其实在多线程下 影响不大 最坏多查几次

  • JRuby 线程安全 问题 at 2015年09月08日

    这里是 ruby 大会的 jruby 分享
    提到了多线程下 jruby 的处理方法

    提到了 Thread Local Storage 的问题

  • JRuby 线程安全 问题 at 2015年09月08日

    #2 楼 @48hour

    if Thread.current['Configuration'] .nil?
      Thread.current['Configuration'] = Configuration.all
    end
    Thread.current['Configuration']
    

    是这样写吗?

  • 最近开始写博客,发现一个在线的 Markdown editor 还不错,推荐一下,不知道大家用的什么呢? at 2012年12月10日

    chrome 的 made 插件

  • [北京][2012年09月01日] Ruby 活动公告 at 2012年08月28日

    报名 刘天麟 15010025012 [email protected]

  • [北京][2012年08月11日] Ruby 活动公告 + 媒体资料 + 小结 at 2012年08月02日

    报个名

  • 此处的 return 作用? at 2012年07月10日

    这里的 return 和 return nil 是一样的

  • find (id) 抛出错误时,大家更倾向于哪种解决方法? at 2012年06月11日

    其实当你确定有这个 id 的时候就应该用 Model.find(id), 没有就应该抛出异常

    不确定有没有 id 的时候用 Model.find_by_id(id)

    不要 rescue find(id) 的异常

  • ruby 1.9.2 和 rails 3.2.5 都安装好后,重启终端出错了 at 2012年06月05日

    可以把需要的 gem 写在 Gemfile 里 之后 bundle install 就可以了

  • 有没有 Cucumber 和 RSpec 的最新书籍? at 2012年05月08日

    #1 楼 @zhaowenchina 多谢了 rspec 的看过了

  • Ruby China T 恤 宝雷杭团队 at 2012年05月07日

    哪个是 ery?

  • ruby 错误 at 2012年05月03日

    不太明白你想做什么?ARGV 是实参的数组 ruby xxx.rb a b ARGV[0] # => "a" ARGV[1] # => "b"

    name = ARGV[0]
    puts "Hello #{name}, how old r u?"
    age = ARGV[1].to_i
    if age < 18
    puts "Hi, boy."
    elsif age >= 18 and age <=40
    puts "Hi, the yong man"
    else
    puts "Hello, the old man"
    end
    
    
  • Ruby China 最近两个月流量分析 at 2012年04月23日

    windows 的好多啊 开发 ruby 不都是在 linux 或是 mac 上吗?

  • Ruby China T 恤第二期的赠送名单公布 at 2012年04月23日

    还送吗?两次都没有我

  • Ruby China T 恤第二期报名活动开始啦![已结束] at 2012年04月20日

    貌似晚了

  • Ruby China T 恤第二期报名活动开始啦![已结束] at 2012年04月20日

    我报名 啊

  • 针对大量数据跑任务 at 2012年04月18日

    mongdodb 是可以用 MapReduce 的 可以尝试一下

  • 本机装 ruby-china 遇到了个问题,麻烦达人来看看 at 2012年04月18日

    #8 楼 @ywjno 正解 , ps 错误提示比较 2, 应该打印出一些建议的呀

  • meta_search 帮助你实现复杂的组合查询 at 2012年04月17日

    好东西呀 收藏先

  • 请教为什么对象回传不到 create 上,我已经按照例子上的写了 at 2012年04月17日

    debugger 看看 params[:user] 是什么 还有就是 为什么 model 的名字要复数呢 (Users)

  • 请问 ruby 怎么读取和解析 html 文件呢? at 2012年04月16日

    nokogiri 不错 是用 C 的 好像得装 libxml 这个包

  • 关于 textarea 解析问题 at 2012年04月16日

    Ruby 解析 Textile 是用 redcloth 这个 gem https://github.com/jgarber/redcloth

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