Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
Hooopo
@hooopo
Admin
NO. 8 / 2011-10-28

[email protected]
nil
北京
160 Topics / 3013 Replies
360 Followers
0 Following
74 Favorites
聪明的妖怪录下了唐僧的紧箍咒
Reward
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
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • 使用 foreman 启动 ruby-china at January 17, 2012

    #9 楼 @Saito 这个好像很久之前就提过了:-) http://ruby-china.org/topics/35#reply33 好像 foreman 就是手写的 start.sh,不过是 ruby 写的。比自己写的专业了一点点..

  • 手机发的,小偷卖 IPHONE4 手机 at January 16, 2012

    这样喔

  • 聊聊自己的编程强迫症吧~.~ at January 11, 2012

    #41 楼 @ilstar 哇 我也是唉 和习惯性敲 ls 一样.........

  • Rails 有比较好的验证码插件么? at January 10, 2012

    #16 楼 @huacnlee 原来这个验证码就是 Generate a bunch of images off-line 我一直想不明白 为什么不动态生成?为了性能? 我觉得越是这样越容易被人刷,如果动态生成验证码可能开始会浪费一些资源,但是碰撞破解的人看到根本碰撞不了的时候也就不会继续刷了。

  • 请教如何使用 mini_magick 实现这样一个效果 at January 10, 2012

    #1 楼 @Victor 不懂为啥 dev 环境要用 system,production 环境用 exec @iBachue 把图片传上来呀 要不怎么调试呢

  • 提问要有方法 at January 10, 2012

    #15 楼 @ywencn 有问题哇 影响心情呀 还有人抱怨什么国内论坛不喜欢回答新手问题 也不看看都怎么提问的

  • 提问要有方法 at January 10, 2012

    越来越水了 要采取点什么措施呀

  • Rails 有比较好的验证码插件么? at January 10, 2012

    #13 楼 @Victor 那个帖子的场景是每天产生固定量的验证码。。simple captcha 是动态生成,不存在被碰撞破解的情况

  • Rails 有比较好的验证码插件么? at January 09, 2012

    #7 楼 @huacnlee 被破解了是什么意思? 一般验证码都可以设置背景噪点和文字扭曲程度吧,很难识别的...

  • [杭州] 淘宝招聘 Ruby 开发工程师 at January 07, 2012
    对历史版本的 Rails 有足够的了解
    

    Legacy Project? XD

  • view 中的逻辑处理,helper vs draper? at January 07, 2012

    #4 楼 @richfisher 其实我最近发现 helper 很灵活的 就是一个独立的 module,不和任何类有关联 想怎么用就怎么用,唯一的魔法就是根据名字被注入到 view 里了。 所以解决你说的问题很简单,在哪几个 controller 里多次用到就 include 到哪个 controller 特别通用就放到 application controller 至于和 model 紧密相关并且和显示相关的也可以解决嘛,只是不那么 OO,有点过程式的味道。

    module UsersHelper
      def render_full_name(user)
        user.first_name + user.last_name
      end
    end
    
  • 咱也来做个 Gem-"印象码"视频验证码 at January 06, 2012

    #15 楼 @Saito 好吧 和破解 hashed password 一样哇

  • Ruby (MRI) trunk finally has a copy-on-write friendly GC at January 06, 2012

    在 fork 的时候节省内存呀 passenger 就是利用 REE 的 cow 节省内存的

  • 咱也来做个 Gem-"印象码"视频验证码 at January 06, 2012

    #4 楼 @southwolf 哇!

  • 咱也来做个 Gem-"印象码"视频验证码 at January 06, 2012

    还能收钱???????

  • 聊聊自己的编程强迫症吧~.~ at January 05, 2012

    #3 楼 @huacnlee unless 不会混乱 会混乱的是 unless else

  • 聊聊自己的编程强迫症吧~.~ at January 05, 2012

    #27 楼 @qichunren text 啊 这种事情我都不纠结了 真存在性能问题就把 remark 字段分出去

  • 聊聊自己的编程强迫症吧~.~ at January 05, 2012

    #26 楼 @ery 合并 commit 好高级呀 我还没有学会.........

  • 聊聊自己的编程强迫症吧~.~ at January 05, 2012

    #31 楼 @hlxwell ...........

  • 聊聊自己的编程强迫症吧~.~ at January 05, 2012

    #28 楼 @allenwei 哈 看到 twitter 上还有人问有没有类似%w[a b c],但是返回 [:a :b :c] 的写法

  • 谁在项目里用过 Fiber ? at January 05, 2012

    在事件驱动的程序里可以用呀 如果你使用 EventMachine 等异步 IO 相关的东西的

  • assets 线上调试的问题 at January 04, 2012

    #6 楼 @yakjuly 需要一个数据库配置,用 production 的就行了。 不过如果代码里有这样的 hard code 也会出问题:

    Rails.env == "production"
    

    还要注意不要运行 migration 把 production 数据库给弄没了...

    我觉得最通常的办法是建一个 staging 环境, 数据库从线上环境 dump 其他部署环境和配置与 production 环境一致

  • 找一篇 Rails 設計手法的文章 at January 04, 2012

    @xdite 这个? http://www.infoq.com/cn/articles/rails-app-refactoring

  • assets 线上调试的问题 at January 04, 2012

    #4 楼 @yakjuly 添加一个 production_debug 环境就可以了啊 数据库还用 production 的 修改 config/environments/production_debug.rb -> config.serve_static_assets = false 当然还可以改其他配置 然后 rails c production_debug 或 rails s -eproduction_debug

  • 《ruby 编程语言》这本书 at January 04, 2012

    #15 楼 @skandhas 双飞燕 +1

  • Could not find a JavaScript runtime. at January 02, 2012

    #13 楼 @Rei 我觉得和 sqlite3 还是有区别的 应该和系统没装 mysql 环境的情况类似 属于系统环境依赖

    这也不全是 Rails 的问题,应该是 execjs 的问题

    而 execjs 的做法也没有什么问题,execjs 的情况和 mini_magick 的情况类似,要运行 mini_magick 必须系统有 ImageMagick 或 GraphicsMagick 环境

    当我们使用 mini_magick 的时候都没有抱怨过,出错了就检查一下 identify 一下检查系统环境,没有就 apt-get install imagemagick

    同样,execjs 的情况也是,出错了 apt-get install nodejs 一下就 ok

    但是,不管怎样,Rails 的环境是越来越难搭建了......这是事实。

  • Could not find a JavaScript runtime. at January 01, 2012

    #10 楼 @ery 好吧 回想过去 2007 年 我开始学 rails 的时候 半年过去了 我连 scaffold 都没有搭建成功 然后就放弃了 学 Ruby 去了...

  • Could not find a JavaScript runtime. at January 01, 2012

    #4 楼 @ekim_sgra

    原因很简单,execjs 根据不同平台依赖不同的 js runtime:

    therubyracer - Google V8 embedded within Ruby
    therubyrhino - Mozilla Rhino embedded within JRuby
    Johnson - Mozilla SpiderMonkey embedded within Ruby
    Mustang - Mustang V8 embedded within Ruby
    Node.js
    Apple JavaScriptCore - Included with Mac OS X
    Mozilla SpiderMonkey
    Microsoft Windows Script Host (JScript)
    

    选择任何一个 js runtime 是开发者自己的事情,如果 Rails 默认在 Gemfile 里加上 therubyracer 的话也会有很多人抱怨的。

    https://github.com/rails/rails/pull/3619 这里已经有 pull request 可以在找不到系统里的 js runtime 就在 gemfile 里添加 therubyracer 的特性。但是木有被采纳。

    可能这就是 DHH 说的“Rails is Not for Beginners”吧

    对于正常的开发者,execjs 抛的一个友好提示已经足够了。

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