Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
机械唯物主义
@linjunhalida
高级会员
第 64 位会员 / 2011-11-13

[email protected]
上海
144 篇帖子 / 760 条回帖
40 关注者
15 正在关注
25 收藏
GitHub Public Repos
  • snake-challenge 77

    snake game -- by write AI!

  • blog 37

    my blog

  • scheduler 5

  • code_example 3

  • data_list_converter 1

  • focus_common 1

  • battle-city 1

  • cloud_init_demo 0

  • kamago 0

  • ansible_simple_nginx 0

More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • 访问数据,46% 的人都用 Mac 啊! at 2012年02月03日

    好像不堵。不过我日常都翻墙的。

  • 有谁在广东吗? at 2012年02月03日

    怎么打算留在广东了?勾上妹子了?

  • rails 后台统计功能? at 2012年02月02日

    也没有办法做到一些细化的操作。

  • rails 后台统计功能? at 2012年02月01日

    发现了几个 gem: https://github.com/lmanolov/railstat https://github.com/charlotte-ruby/impressionist

  • 1.9.3 的速度 at 2012年02月01日

    Bitmap Marking GC 这个重要。

  • rails 一个字符串栏位最大长度的问题 at 2012年02月01日

    恩,按照 quake 提示的这个插件,写了一下 filter, 算是把这个问题解决了。

    加了一个文件:config/initializers/auto_strip_attributes.rb

    AutoStripAttributes::Config.setup do
      set_filter :strip_return => false do |value|
        value.gsub "\r\n", "\n"
      end
    end
    
    class Topic < ActiveRecord::Base
      auto_strip_attributes :subject, :content, strip_return: true
    end
    
    
  • Rails 爬虫过来发生错误的问题 at 2012年01月11日

    哈,编码问题的 error 我也看到了,还有加上 rar 后缀的,不知道它们在干什么。

  • Can you understand this? at 2012年01月11日

    ruby 复杂的类关系啦。

  • 如何用 js 做网站截图? at 2012年01月06日

    还有就是渲染需要跨域 js(针对其他人的网站), 这个问题也无法解决. 如果是 server 端渲染,没有办法处理用户登录的页面。

  • 如何用 js 做网站截图? at 2012年01月06日

    恩,我搜索到了 html2canvas, 但是渲染不全的,效果很不好。按钮都没有办法渲染好. 看来这条路走不通...

  • 如何用 js 做网站截图? at 2012年01月05日

    或者提供一些已经实现了这样功能的网站。我直接抄解决方案就好了。

  • 什么 truncate_html gem 适合中文? at 2011年12月22日

    发现过滤中文标点是一个 issue, 有印度大哥先 K 了... 看看源码找找问题出现在哪里..

  • Rails Is Not For Beginners. HH 哥终于发话了. at 2011年12月09日

    没有经验的新手学什么都不容易,还是让他们去学 python 吧 :)

  • 执行 rake db:migrate 的时候会卡住 at 2011年12月06日

    那么连接到底是哪里可能有问题呢?以及是什么样的问题?没有思路?

  • 执行 rake db:migrate 的时候会卡住 at 2011年12月06日

    还是一样会卡住?

  • Rails 如何根据多国语言 cache 页面? at 2011年12月05日

    只是 1,2 个页面,就这样啦,只是一行代码的事情何必抽象呢。如果有再多的话考虑如何做。

  • 上海有什么公司接受 Rails 新手吗 at 2011年12月01日

    晕,出来一个新人,一堆招聘的。

  • Rails 如何根据多国语言 cache 页面? at 2011年11月30日

    caches_action :index, :cache_path => Proc.new {|c| "home/index-#{I18n.locale.to_s}"}

    酷!看了 action.rb 里面的文档,搞定了哈!

  • Rails 如何根据多国语言 cache 页面? at 2011年11月30日

    caches_action :index, :cache_path => Proc.new { |c| "home/index" } 不过这个是跟 model 的,我要根据用户的 locale 参数来选 cache... 我找找源码看看。

  • Rails 如何根据多国语言 cache 页面? at 2011年11月30日

    主要是 cache_action 不好搞...

  • 刚刚试了 css_sprite 确实很爽啊 at 2011年11月15日

    @kevinhua 测试哈。

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