Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
Deshi Xiao
@xds2000
VIP
NO. 202 / 2011-11-23

北京
70 Topics / 1107 Replies
29 Followers
0 Following
3 Favorites
follow me on twitter: xds2000
GitHub Public Repos
  • k8e 418

    K8E - Kubernetes Easy Engine

  • docker-for-production-... 66

    《容器技术生产实践指南》容器技术生产实践指南,收集百家之长,弘扬类似本草纲目之精神,把中国用户的开发经验积累汇集成册,以资借鉴

  • binance-bot 28

    qcat automate trading bot

  • cranfly 6

    Cloud Native Container Image Distribution mesh

  • conflux-remix 2

    remix based on Conlux Web

  • cilium 0

    eBPF-based Networking, Security, and Observability

  • ethtracking-bot 0

    feature exchange for eth tracking price.

  • README 0

    A pupil in the computer world.(Felix Fu)

  • conflux-rpc-mockserver 0

    conflux rpc api for openrpc format

  • k3s 0

    Lightweight Kubernetes

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • 如何测试 rails 网站在高并发下的性能? at May 03, 2012

    这个方面要研究起来还需要系统化,网上很多。 十个免费的 Web 压力测试工具

  • 你现在正在用的 vim 配色方案是神马.. at May 01, 2012

    colorscheme badwolf

  • 俺们这也应该搞个 reputation 这样的系统... at May 01, 2012

    建议:可以给 ruby-china 加一个问答模块不就解决了。

  • gitscore 来排名了 at April 30, 2012

    @fredwu 分好高阿,祝贺。 http://gitscore.com/user/xiaods

  • 安装 Octopress 时报错,求办法!! at April 30, 2012

    windows 上玩 ruby 应该专门改一个分支。

  • 用 Sinatra 开发的应用如何使用 will_paginate 翻页? at April 30, 2012

    搜索谷歌。

  • controller VS model at April 29, 2012

    http://rails-bestpractices.com/ 说到底还是经验的积累,看看最佳实践吧。

  • Learn ruby the hard way 第六节 问题 at April 29, 2012

    不解。bypass 吧。

  • NodeJS 适合用来做什么? at April 27, 2012

    nodejs 只是一个点,基本做 web.app,用 nodejs 做啥都可以。

  • Nginx (Passenger)+Mongodb+Redis 占了 460Mb 内存正常吗 at April 26, 2012

    楼主做一些基准测试就可以得到相应经验了。

  • 磨 Vim 技术的游戏。 at April 26, 2012

    @jiffies 必须保密!

  • config.threadsafe!: JUST DO IT at April 26, 2012

    这个 slide 我看过了。我把自己的理解发在这里, 1、green-threaded 并不会被 GIL 限制。通过 config.threadsafe! 加到 application 可以提高程序执行效率。 2、通过http://railsplugins.org/ 可以查到哪些 gem 支持 threadsafe!

  • 怎么北京没人组织这类活动呢 at April 26, 2012

    @blackanger 咖啡馆到处都是,但合适的比较少。一天到晚都 focus 在代码上,没啥经验在选择咖啡屋上。

  • 找个技术合伙人组队 at April 26, 2012

    有诚意,望有实力的考虑一下。

  • 怎么北京没人组织这类活动呢 at April 26, 2012

    缺会议室。。。

  • 说一下 Ruby China T 恤发货情况 at April 26, 2012

    @saberma 收到,感谢。

  • Rails 中 save 的事务问题 at April 25, 2012

    @cdredfox 这两行是啥情况?没见过。另外你应该在调用用户之前就复制给 current_user 变量,你的代码 User.where 查一次库并不是很优雅。

    user_info.session_update_date=Time.now
    user_info.session=@top_session
    
    
  • Railsconf 2012 at April 25, 2012

    这次不少话题,关注中。推特上已经放出不少 slide.

    1. Securing your site
    2. Presenters and Decorators: A Code Tour
  • Rails 中 save 的事务问题 at April 24, 2012

    楼主最好把环境贴一下。

    1.9.3p125 :001 > Project
     => Project(id: integer, name: string, created_at: datetime, updated_at: datetime) 
    1.9.3p125 :002 > a = Project.new(:name => "New ONE")
     => #<Project id: nil, name: "New ONE", created_at: nil, updated_at: nil> 
    1.9.3p125 :003 > a.save
       (0.1ms)  begin transaction
      SQL (416.5ms)  INSERT INTO "projects" ("created_at", "name", "updated_at") VALUES (?, ?, ?)  [["created_at", Tue, 24 Apr 2012 14:51:50 UTC +00:00], ["name", "New ONE"], ["updated_at", Tue, 24 Apr 2012 14:51:50 UTC +00:00]]
       (183.3ms)  commit transaction
    
    

    我的环境 fedora16, rvm, ruby1.9.3,rails 3.2.x 即使取出 id,并没有问题。所以希望楼主提供更详细的背景

  • 想把 Ransack 搜索结果导出到 Excel,但每次导出的却是该 model 的全部数据 at April 19, 2012

    http 406 错误 ref: http://stackoverflow.com/questions/3751030/rails-3-returning-a-http-406-not-acceptable @doitian 说的就是我想说的。

  • 想把 Ransack 搜索结果导出到 Excel,但每次导出的却是该 model 的全部数据 at April 18, 2012

    点击“导出为 excel”按钮,相当于另一次请求。params[:q] 就会为空,导致@projects实例就为 Project.all

  • Ruby China T 恤第一期的赠送名单公布 at April 16, 2012

    :D 坐等优惠码....

  • rbenv 每次需要 rehash,和 rvm 比,可用性也太差了吧。 at April 09, 2012

    安装一个 gem: rbenv-rehash 就解决我提到的困惑啦。 https://github.com/scoz/rbenv-rehash

  • 悲催,数据库被删,博客被格式化 at April 08, 2012

    试试 tumblr 看看。在没多少流量之前可以一用。

  • 请教,如何缩短整体测试的运行时间? at April 07, 2012

    @bluecoda require 同一个文件,不会重复加载的。 No matter how many times you require the same feature in your program, only the first time is significant. Ruby will not re-read a file a second time, this is the first fundamental difference from how load works.

  • 有谁试过用 Ruby 调用 Excel 画数据图? at April 07, 2012

    @ruby_sky 可以,不过就需要你研究代码了。 http://rubyforge.org/projects/spreadsheet https://github.com/harvesthq/simple_xlsx_writer

  • Rails 快速报表方案 at April 07, 2012

    要不你改改。

  • 请教,如何缩短整体测试的运行时间? at April 07, 2012

    @ery Oops,不用了,没细看。见谅。

  • 有谁试过用 Ruby 调用 Excel 画数据图? at April 07, 2012

    跑题太厉害。 回答楼主,可以。 http://rubyonwindows.blogspot.com/2008/06/automating-excel-creating-charts.html

  • 求一个轻量级的 orm at April 07, 2012

    datamapper 吧。

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