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
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • 找个技术合伙人组队 at 2012年07月27日

    #72 楼 @liuzihua 哈啊哈哈哈哈 笑死了

  • 怎么拿到 Rails request.url 的 anchor 后的字段 at 2012年07月26日

    url 写错了? # => ?

  • 测测你的功力,数组问题 at 2012年07月26日

    其实还有递归哈希的:

    1.9.3p194 :032 > a = {:a => 1}
     => {:a=>1} 
    1.9.3p194 :033 > a[:b] =  a
     => {:a=>1, :b=>{...}} 
    1.9.3p194 :034 > a[:b]
     => {:a=>1, :b=>{...}} 
    1.9.3p194 :035 > a[:b][:b]
     => {:a=>1, :b=>{...}} 
    1.9.3p194 :036 > a[:b][:b][:b]
     => {:a=>1, :b=>{...}}
    
  • 测测你的功力,数组问题 at 2012年07月26日

    这是递归数组,在表示 Directed graph 的时候很直观: Alt text here

    http://stackoverflow.com/questions/10606734/what-are-recursive-arrays-good-for

  • [北京][2012年07月21日] Ruby 活动小结 at 2012年07月26日

    #56 楼 @hellojane96 好哇!

  • 数字转数组 at 2012年07月26日

    #5 楼 @chyanog

    1428.to_s.bytes.each_with_object(48).map(&:-)
    
  • 关于 image_tag 的问题 at 2012年07月25日

    有的。。根据图片的宽高自动给 image 标签加宽高 据说这也可以有前端性能优化的作用

  • %I{ .. } returns a list of symbols with interpolation at 2012年07月25日

    #3 楼 @huacnlee 这个真没有。。一般都用 range 吧 还有就是 ruby 数组写法本身就简单,字符串和符号需要敲引号和冒号,所以才有了各种内插..

  • %I{ .. } returns a list of symbols with interpolation at 2012年07月25日

    #1 楼 @huacnlee 是的

    ruby -v -e "p %i{a b c}"
    ruby 2.0.0dev (2012-07-25 trunk 36531) [i686-linux]
    [:a, :b, :c]
    
    
  • Programming Ruby (3rd) 的一段翻译,请指教 at 2012年07月24日

    #1 楼 @touch 我只能看个略懂,翻译真的很难:-)

  • 折腾 1 天, Sinatra 终于在板子上跑起来了 at 2012年07月24日

    搞个 rails on mruby 吧

  • [北京][2012年07月21日] Ruby 活动小结 at 2012年07月24日

    #46 楼 @hellojane96 大把单身姑娘都不给我介绍一个........

  • 折腾 1 天, Sinatra 终于在板子上跑起来了 at 2012年07月24日

    什么板?

  • 法文 rake db:seed 失败 at 2012年07月24日

    #10 楼 @stc 换成 faster csv 吧

  • 法文 rake db:seed 失败 at 2012年07月24日

    #6 楼 @stc 用的 csv 还是 faster csv?

  • 法文 rake db:seed 失败 at 2012年07月23日

    你的代码怎么写的啊 这么谁能猜出来问题在哪

  • [北京][2012年07月21日] Ruby 活动小结 at 2012年07月22日

    @mvj3 最左边穿一身黑的是你么?好像冯唐呀。。

  • require 的问题 at 2012年07月22日

    #14 楼 @googya 是两个点。。 好吧 其实 Rails 就是用的这种写法

  • 现在 Rails 工资都那么高么? at 2012年07月22日

    不知道。。每次看招聘帖,再想想自己实习生水平的工资就没心情干活儿了。。

  • require 的问题 at 2012年07月22日

    #15 楼 @dfang 你切换到其他目录再执行

  • require 的问题 at 2012年07月22日

    #12 楼 @dfang ruby1.9 把当前路径从$LOAD_PATH 移除了。因为像你这样写会随着当前路径的变化加载不同的文件。

  • 有无好 gem 来注释 migrate? at 2012年07月21日

    如果没有可以一起搞一个啊

  • Rails 项目部署太复杂,或许可以搞个一站式的软件,直接快速部署 at 2012年07月20日

    据说 chef 是第二代 puppet 啊

  • Thin 重启有什么平稳的办法? at 2012年07月20日

    没用过,不过看 changlog,thin 是可以平滑重启的啊

    == 0.6.2 Rambo release
     * Server now let current connections finish before stopping, fixes #18
     * Fix uploading hanging bug when body is moved to a tempfile,
       also delete the tempfile properly upon completion, fixes #25
     * 'thin restart' now sends HUP signals rather then stopping & starting, closes #17
     * HUP signal now launches a new process with the same options.
    

    而且还可以通过发信号来日志切割:

    == 1.4.0 Chromeo
     * kill -USR1 $PID for log rotation [catwell].
     * Fix HUP signal being reseted after deamonization [atotic].
     * Fix error with nil addresses in Connection#socket_address.
    
  • Rails should have data migration. at 2012年07月20日

    #6 楼 @lgn21st 预测和谨慎与自动化工具不冲突。 自动化工具主要起一个约定目录结构和给迁移文件排列顺序的作用。 人制定计划之后如果能形成自动化任务一定比手动执行快,减少宕机时间。 由于 Rails 没重视 data migration 这一部分内容,大部分普通开发者没有处理这种情况的经验,经常遇到在 migration 里写迁移数据的代码(滑板书里面也没反对这么做),最终导致 rails migrate 跑不起来了。

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