Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
Deshi Xiao
@xds2000
高级会员
第 202 位会员 / 2011-11-23

北京
70 篇帖子 / 1107 条回帖
29 关注者
0 正在关注
3 收藏
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
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • mvim 如何安装插件? at 2012年03月30日

    @esnake0 我也遇到这个问题,你按回车后会自动启动 vim 下载 vbundle,自动下载字体。然后完成后就 OK 了。它的安装脚本有瑕疵。

  • mvim 如何安装插件? at 2012年03月30日

    https://github.com/codegram/vimfiles

  • [翻译] Emacs 改变了我的人生 (发生在 Emacs 和 Ruby 之间的故事) at 2012年03月30日

    各位,vim 里绑个 emacs 吧

  • 在 kickstarter 上支持 rails.app at 2012年03月30日

    这又是一个里程杯事件阿

  • [北京] Red Hat 招 Ruby Developer-Update Mar 30 at 2012年03月30日

    请有兴趣的看看。 这里有云 http://openshift.redhat.com/ 有社区 http://fedoraproject.org/ 有 linux kernel 有 jboss

  • python 和 ruby 可以混用吗? at 2012年03月30日

    多学多用阿,可以学习到各种新的理念

  • 如何让 scope 可以携带参数 at 2012年03月30日

    scope 在我体会中,一些简单的查询可以用它,加上 chained,还可以。 复杂的查询还是上 def method 吧。

  • rbenv 每次需要 rehash,和 rvm 比,可用性也太差了吧。 at 2012年03月30日

    谢谢大家的讨论。受教了

  • 求一个摄影社区的程序 at 2012年03月11日

    @dreamrise http://www.comsenz.com/purchase/nt 授权正好 3000 千。哈哈

  • 求一个摄影社区的程序 at 2012年03月11日

    楼主的需求我看了一下,3 千的资金。我给出个点子,购买一套 Discuz 部署几天就可以搞定。

  • ruby-china.org 如何备的案?好像备案官方网站没法注册了?想迁移到盛大云,备案搞不懂。。 at 2012年03月09日

    盛大客服应该知道。

  • MongoIC 蛋疼的性能 at 2012年03月09日

    不理想阿。

  • 内行人有知道 SAE 有打算会支持 Rails 或者 Sinatra 吗? at 2012年03月08日

    @suupic 何必纠结这个,对于国内用户来说,你可以把它当成免费的 Rails 实验田。这就够了。

  • 内行人有知道 SAE 有打算会支持 Rails 或者 Sinatra 吗? at 2012年03月08日

    @23c 可以直接使用模版生成, https://github.com/openshift/rails-example/ 使用 OpenShift,对 ruby 社区很简单: gem install rhc

    三步创建 rails + mysql 1) rhc app create -a railsapp -t ruby-1.8 2) rhc app cartridge add -a railsapp -c mysql-5.1 3) cd railsapp git remote add upstream -m master git://github.com/openshift/rails-example.git git pull -s recursive -X theirs upstream master 然后就可以开发你的应用拉。

  • 所有控制器都可以读取的对象,要放在那里生成呢? at 2012年03月06日

    丢到 lib 下。直接使用。

  • 我擦,昨天和今天都无法注册 at 2012年03月06日

    controller 测试,是不是就是集成测试阿。最近忙的要死。下周我会下代码关注一下测试。

  • 一个小 Bug 引发 github 安全问题泄露。Shit! at 2012年03月05日

    @dhh 老大发话了,请大家记录之: Here's the basic pattern we've been using at 37signals to guard against mass-assignment bugs: https://gist.github.com/1975644

    class PostsController < ActionController::Base
      def create
        Post.create(post_params)
      end
    
      def update
        Post.find(params[:id]).update_attributes!(post_params)
      end
    
      private
        def post_params
          params[:post].slice(:title, :content)
        end
    end
    
  • 内行人有知道 SAE 有打算会支持 Rails 或者 Sinatra 吗? at 2012年03月05日

    要不试用 OpenShift.支持 ruby/rails. gem install rhc

  • 有没有筒子觉得,Ruby 要是不用敲那么多 end,会更优美? at 2012年03月04日

    ruby 学习缩进语法,挺好的倡议。楼主听有创意。 可以用用这个库,实现 Python style indenting in Ruby. http://lazibi.rubyforge.org/index.html

  • 怎样快速学习 ruby? at 2012年03月04日

    我学 ruby 的目的就是想使用 Rails。所以我看了一本书 The Well-Grounded Rubyist.Covering Ruby 1.9 David A. Black. 纸制的,放在书桌上随时可以翻阅。我是精读这本了。 rails 主要看http://guides.rubyonrails.org/ 所谓“快速”,一般就是对 ruby 有个大概的了解。 进阶是另一个过程,欲速而不达,一般没有 10 年以上的专注基本都是浪费时间。 验证是否进阶,需要给自己规划一个检查点。在一定时间后做一次总结,看看有没偏离目标,有没改进。

  • 发起一个讨论 有关 block 的用途. at 2012年03月04日

    很好的参考。 http://www.robertsosinski.com/2008/12/21/understanding-ruby-blocks-procs-and-lambdas/

  • Rails 初学者强烈推荐的一本书! head first rails at 2012年03月04日

    http://ihower.tw/rails3/index.html 这个资源也可以参考。

  • 发起一个讨论. 你喜欢使用 unless 和 until 吗? at 2012年03月03日

    until 就没用过, unless 在 refactor 代码时用过,用它的目的无外乎就是减少一行。 语法这个东西看看就好。

  • 使用 gsub! 时发现的一个 ActiveModel 的问题 at 2012年03月03日

    注释写了 # If an attribute is modified in-place then make use of [attribute_name]_will_change! # to mark that the attribute is changing. Otherwise ActiveModel can't track changes to # in-place attributes. 如想做 in-place,向声明,然后在改内容。 没有你说的 Bug.你的代码并没有按约定去写。

  • ruby 怎样新建一个文件 at 2012年03月03日

    这样 File.new("temp.txt", "w")

  • rails 中如何做 Kerberos 或 NTLM 认证 at 2012年03月03日

    Kerberos 认证是在 HTTP 协议层,用 apache 的 mod_kerb_auth.进入到 rails 后,你需要从 session 里拿到用户名。 username = request.env['REMOTE_USER'] that's all.

  • 字符串, 数组, 哈希, 集合的相似方法归纳与比较 (Ruby1.9) at 2012年03月02日

    不知收集这个有什么用处?

  • 你使用 gemset 吗? at 2012年02月07日

    gemset 基本费了,想做 gem 升级绝缘,使用

    bundle --path vender/bundle
    
  • 缓存问题:话题相关页面 可能 半个小时内没有热门节点 at 2012年02月04日

    楼主,解决方法我给一个

    1. 去掉 controller 层的 fragment_exist? 2.去掉 views 层的<% if not @hot_nodes.blank? %>

    就搞定

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