Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
Hooopo
@hooopo
管理员
第 8 位会员 / 2011-10-28

[email protected]
nil
北京
160 篇帖子 / 3013 条回帖
360 关注者
0 正在关注
74 收藏
聪明的妖怪录下了唐僧的紧箍咒
打赏作者
GitHub Public Repos
  • oh-my-github-circles 47

    GitHub User Circle Generator Using GitHub Actions

  • hackernews-insight 21

    Hackernews Insight using TiDB Cloud

  • repo-track-pipeline 6

    🔄 A flexible open-source data pipeline for seamlessly syncing data from any repository to your da...

  • oh-my-github-pipeline 6

    🔄 A flexible open-source data pipeline for seamlessly syncing data from any github user to your d...

  • chatgpt-xiaoai 3

    小爱音箱集成LLM,SaaS 服务

  • repo-contributor-circles 1

    GitHub repo contributor circles generator.

  • ossinsight-x 1

    Automatically post trending repos to Twitter every day.

  • mi-service 1

    XiaoMi Cloud Service for mi.com

  • hooopo 0

  • streamlit-echarts-demo 0

    Demo for Streamlit ECharts component

More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • 为什么想学 Ruby 就这么难~ at 2011年11月23日

    @bl0ckme 你是那个用猴子头像的?

  • 为什么想学 Ruby 就这么难~ at 2011年11月23日

    @huacnlee 还算早吧 当时学的时候不知道 Rails,只觉得 ruby 很有趣儿。我也忘记是 07 年还是 08 年开始学的。 08 年写过一个 ruby 版的豆瓣客户端(http://code.google.com/p/doubanclient-ruby/),算是正式入门,之前连代码需要缩进这样的常识都不知道..

    唯一的遗憾是学的时候用的 windows,走了很多弯路。

  • 竟然才知道这个社区。。。井底之蛙了 -_- at 2011年11月23日

    哇 来自 Australia 的同学..

  • 为什么想学 Ruby 就这么难~ at 2011年11月23日

    能学。 我学 Ruby 的时候就没有一点基础,当时只会用 vb 拖几个控件玩。我是非计算机专业的,学过一点 c 语言,二级考试还没过...

    后来买了一本《Learning Ruby》,书看完,把书上的例子敲了一遍。然后自己动手写了些网页抓取和文本解析方面的工具自娱自乐。

  • 警惕 Ruby 函数最后行默认作为返回值的陷阱 at 2011年11月22日

    以前遇到过这问题,现在还有阴影.. 每次写 callback 都想加一个 return true 在最后一行....

  • 为什么都用 mongodb? at 2011年11月22日

    是的

  • 为什么都用 mongodb? at 2011年11月22日

    @wxianfeng 你是 yottaa 的呀?我还去那里面试过...

  • Ruby-China.org 选择用 Thin 还是 Unicorn? at 2011年11月21日

    @lgn21st 管理一组应用进程用 foreman 比较不错:http://blog.daviddollar.org/2011/05/06/introducing-foreman.html

    Heroku 用的就是 foreman,deploy 以后所有进程一起重启。 在开发环境用起来也很方便。

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

    小狼你举手干啥 招人吗

  • 给 Mongoid 加上 find_by_xxx 方法 at 2011年11月21日

    AR 好像支持 find_by_number! 抛异常

  • 给 Mongoid 加上 find_by_xxx 方法 at 2011年11月21日
    def find_by_id(*args)
      find(*args) rescue nil
    end
    

    好像这样就可以

  • 给 Mongoid 加上 find_by_xxx 方法 at 2011年11月21日

    ORM 支持 where 这样的查询之后 find by xx 这种的 api 很鸡肋 User.where(:id => 1).first User.find_by_id(1) 我感觉没什么区别

    当然如果是支持 find_or_create_by_oo_and_xx 这样的 API 还是比较不错的。

  • 提醒功能上线 / 部分用户名带空格或者非组词字符的同学请进 at 2011年11月20日

    twitter-text-rb 这个 gem 的设计初衷和你们的需求好像就不符和呀 这个 gem 是专门为 twitter 这种应用设计的: 1.区分 at 和 mention 2.autolink,其中还有域名检测等特性 3.hashtag 4.user list 5.国际化指的是支持全角和半角的 at 符号 还有一些其他 white space 6.支持表情 7.点击高亮 8.支持各种 ruby 版本 1.8.7,1.9,jruby 等

  • 有在生产环境开启 http streaming 的没? at 2011年11月20日

    咦 为啥我的就是 http1.0 的 你什么版本的 nginx 呀

    http://wiki.nginx.org/HttpProxyModule

    It is an HTTP/1.0 proxy without the ability for keep-alive requests yet. (As a result, backend connections are created and destroyed on every request.) Nginx talks HTTP/1.1 to the browser and HTTP/1.0 to the backend server. As such it handles keep-alive to the browser.

  • 有在生产环境开启 http streaming 的没? at 2011年11月19日

    两个都有也不能说明使用了 http streaming。你还得看一下 app server 的日志。如果反向代理和 app server 之间通讯使用的是 http1.0 协议还是不行的。

  • 有在生产环境开启 http streaming 的没? at 2011年11月19日

    可能是盛大云使用了反向代理吧 我在 heroku 试过是可以的: curl -i http://rails3demo.herokuapp.com/articles https://github.com/hooopo/rails3demo

  • 有在生产环境开启 http streaming 的没? at 2011年11月19日

    nginx+unicorn? 你测试过效果没有。如果用 nginx 做反向代理的时候 nginx 和 unicorn 通讯使用的 http1.0 协议。对于一个 http1.0 的请求 unicorn 是不会使用 chunked 编码的。

  • Rails 3.1.2 has been released at 2011年11月18日

    @huacnlee 者也的推送挂了? http://zomet.zheye.org/application.js

  • Rails 3.1.2 has been released at 2011年11月18日

    warning 是 webrick 的问题。用 thin 就没了。 开发环境 ActiveRecord 很慢我这里都上千 ms..不过生产环境没有问题。

  • 提醒功能上线 / 部分用户名带空格或者非组词字符的同学请进 at 2011年11月18日

    支持中文话题,当时没有中文用户名的需求.....所以没改。

  • 提醒功能上线 / 部分用户名带空格或者非组词字符的同学请进 at 2011年11月18日

    @blankyao 可以试试这个:https://github.com/hooopo/twitter-text-rb

  • 提醒功能上线 / 部分用户名带空格或者非组词字符的同学请进 at 2011年11月08日

    @_@

  • 提醒功能上线 / 部分用户名带空格或者非组词字符的同学请进 at 2011年11月07日

    @Rei sleep 8.hours

  • 提醒功能上线 / 部分用户名带空格或者非组词字符的同学请进 at 2011年11月07日

    睡觉去。谁来 at 我一下呀

  • 现在回帖会有邮件提醒了 at 2011年11月07日

    要怎么才能收到邮件?我一直没收到过邮件..

  • Ruby-China.org 选择用 Thin 还是 Unicorn? at 2011年11月06日

    从@lgn21st 的描述上看不管换 Thin 还是 unicorn 都无法解决问题。用切腹的方式也只是暂时缓解问题。 我觉得主要原因是用了太多的 gems(https://github.com/huacnlee/ruby-china/blob/master/Gemfile.lock ),有些功能重复的,比如 Mongoid 和 ActiveRecord。 至于 Memory Bloat 问题是完全可以人为控制的。 还有以目前的规模和需求来看,像 resque 这样的吃内存大户也不需要用,发邮件时 fork 一下也 ok。

  • 用 Github 信息构建你的简历 at 2011年11月04日

    so 也有这个了,还可以把读过的书和链接加到里面 http://careers.stackoverflow.com/hooopo

  • Ruby 中有 strtotime 这种时间转换函数么? at 2011年10月31日
    >> Date.parse "2011-10-31"
    => Mon, 31 Oct 2011
    >> Time.parse "2011-10-30 15:00:22"
    => 2011-10-30 15:00:22 +0800
    
  • 一个帖子可以属于多个节点吗?类似 tag? at 2011年10月31日

    我也觉得 tag 好,tag 虽然分散但是也可以推荐出一些热门的当成现在的节点功能

  • 关于 rails 调试的问题 at 2011年10月31日
    <%= debug(@user) %>
    

    被编辑器吃掉了..

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