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
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • 别在服务器上安装 RVM at 2013年05月29日

    #15 楼 @RainFlying 好像是 p0?

  • 别在服务器上安装 RVM at 2013年05月29日

    #12 楼 @luikore 这个地方踩过了.. https://rvm.io/support/faq/#shell_login

  • 别在服务器上安装 RVM at 2013年05月29日

    #11 楼 @jasl https://github.com/jasl/a_rails_start_up_omakase/blob/master/config/deploy.rb#L29-L39 这是什么?还有你确定你部署使用的是 rvm 设置的 ruby?

  • 别在服务器上安装 RVM at 2013年05月29日

    #8 楼 @jasl 都没有额外设置/装 gem? postfix 在用 alias pipe scripting 的时候就出问题了。

  • 别在服务器上安装 RVM at 2013年05月29日

    #6 楼 @huacnlee 所有和环境变量相关的都有问题,比如 cron、cap、postfix。

  • 别在服务器上安装 RVM at 2013年05月29日

    #1 楼 @leopku #2 楼 @skandhas 就是说你用到了下面的每个软件和 rvm 集成都需要额外的设置 这里面列的好像还不全,比如就漏了 postfix

    Databases
    Zsh
    Fish
    Bundler
    MemProf
    Passenger
    Textmate
    Emacs
    Netbeans
    Culerity
    Capistrano
    Chef
    SketchUp
    Cron
    God
    Jenkins
    MacPorts
    QT Ruby
    TeamCity
    Tk
    Vagrant
    Vim
    Gnome-terminal
    XTerm
    
  • [上海、杭州] CodeJam 开发比赛 at 2013年05月29日

    #9 楼 @luikore 居然没有“神码咖啡”

  • [上海] GitCafe 团队继续招有一定项目经验的 Rails 工程师 at 2013年05月29日

    #4 楼 @bhuztez 这位大哥真是歪楼专家啊..

  • Teahour.fm 第 17 期发布,访谈嘉宾 @luikore 和 @skandhas at 2013年05月29日

    #40 楼 @jjym 这不是好玩的事情..

  • 又是关注又是喜欢又是收藏? at 2013年05月28日

    建议加个 不喜欢 和不关注..

  • Teahour.fm 第 17 期发布,访谈嘉宾 @luikore 和 @skandhas at 2013年05月28日

    马克。 先感谢一下两位嘉宾:前几天在沈阳蹭了勇哥一顿豪华大餐,还有吕哥的“遗产”

  • 实例说明 Ruby 多线程的潜力和弱点 at 2013年05月27日

    #24 楼 @vincent GVL 只限制 Ruby,C 扩展里没有这个限制。Ruby2 的 zlib 库做了修改,Release GVL in zlib when calling inflate() or deflate()

    @luikore 的 slide 里有提到...: https://speakerdeck.com/luikore/ruby-2-dot-1-walk-thru-title-bait?slide=53

  • 新人论坛项目 at 2013年05月24日

    #1 楼 @Saito 补充链接:http://robots.thoughtbot.com/post/50852570430/how-to-write-a-great-readme

  • Ruby 有没有实现完整的 exec 系列系统调用? at 2013年05月24日

    #30 楼 @luikore http://docs.python.org/2/library/subprocess.html#replacing-older-functions-with-the-subprocess-module

    这里说的是:

    output=`dmesg | grep hda` # 以前的这种写法如果前面的管道fail掉,结果还会正常返回,会Silent Failures
    # becomes
    output=check_output("dmesg | grep hda", shell=True) #用subprocess之后同样写法会Fail Fast。
    

    也就是这篇里提到的一个问题:http://julialang.org/blog/2012/03/shelling-out-sucks/

    注意是还使用 shell 的管道写法,不是用程序自己拼接管道。

  • Ruby 有没有实现完整的 exec 系列系统调用? at 2013年05月23日

    #26 楼 @luikore

    output=`dmesg | grep hda`
    # becomes
    p1 = Popen(["dmesg"], stdout=PIPE)
    p2 = Popen(["grep", "hda"], stdin=p1.stdout, stdout=PIPE)
    p1.stdout.close()  # Allow p1 to receive a SIGPIPE if p2 exits.
    output = p2.communicate()[0]
    

    这招 Ruby 搞起来就很困难,只能用set -o pipefail;

  • Ruby 有没有实现完整的 exec 系列系统调用? at 2013年05月23日

    #26 楼 @luikore spawn gem 还是 Ruby 自带的spawn?貌似 spawn 这个 gem 因为 Ruby 自带了 spawn 然后改名成 spawnling 了。

  • 掉到 Array 链式调用的坑里了 at 2013年05月23日

    #15 楼 @fsword Ruby = 函数式 + 面向对象。 函数式看重返回值,面向对象强调修改状态。 而修改状态的方法(包括带叹号和语意本身就表示修改状态的方法,比如 delete, pop, push)这些方法除了修改对象本身状态之外,还利用返回值提供了更多的信息,返回的信息对减少重复或节省代码有很多作用,比如:

    if item = array.pop 
    else
    end
    

    当然,有得必有失,这样容易和不带叹号的混淆,不看文档或想当然的时候会中招。

  • Ruby 有没有实现完整的 exec 系列系统调用? at 2013年05月23日

    #21 楼 @luikore 还是ri厉害!

  • Ruby 有没有实现完整的 exec 系列系统调用? at 2013年05月23日

    #16 楼 @iBachue 四个参数只是表象..perform_exec的时候就是最终的状态了。

    [4] pry(main)> $ Rubinius::Spawn.exec
    
    From: /Users/hooopo/.rvm/rubies/rbx-head/kernel/common/process19.rb @ line 243:
    Owner: #<Class:Rubinius::Spawn>
    Visibility: public
    Number of lines: 6
    
    def self.exec(env, prog, argv, redirects, options)
      setup_redirects(redirects)
      setup_options(options)
      ENV.update(env)
      Process.perform_exec prog, argv
    end
    
  • Ruby 有没有实现完整的 exec 系列系统调用? at 2013年05月23日

    #14 楼 @skandhas 区别不在这里,看完这两篇就明白 py 的 subprocess 还是挺先进的....

    • http://julialang.org/blog/2012/03/shelling-out-sucks/
    • http://julialang.org/blog/2013/04/put-this-in-your-pipe/
  • Ruby 有没有实现完整的 exec 系列系统调用? at 2013年05月23日

    #10 楼 @bhuztez http://docs.python.org/2/library/subprocess.html 这东西和 Ruby 的 system/exec/popen 有啥区别?

  • Ruby 有没有实现完整的 exec 系列系统调用? at 2013年05月23日

    不知道楼主说的参数调用是什么意思,ruby 里的 exec 相关命令都可以直接字符串和数组做参数的:

    [1] pry(main)> exec "ls", "-lh", "."
    total 3627464
    
  • 掉到 Array 链式调用的坑里了 at 2013年05月23日

    函数式写法都不用加叹号的。。因为就是为了获取返回值啊

  • 前几天来吐槽了阿里云的销售,今天来说说阿里云的 云盾 at 2013年05月23日

    #4 楼 @bhuztez 把这个 css 强制no-cache就行..

  • 用 Ruby 实现一个简易的粒子系统 at 2013年05月23日

    #9 楼 @skandhas wok!是这样的.. thx

  • 前几天来吐槽了阿里云的销售,今天来说说阿里云的 云盾 at 2013年05月23日

    #2 楼 @ywencn yay! 蜗牛这招已经还不错~

  • 用 Ruby 实现一个简易的粒子系统 at 2013年05月23日

    这是什么情况?

    brew install sdl_gfx
    ==> Downloading http://www.ferzkopp.net/Software/SDL_gfx-2.0/SDL_gfx-2.0.24.tar.
    Already downloaded: /Library/Caches/Homebrew/sdl_gfx-2.0.24.tar.gz
    Error: SHA1 mismatch
    Expected: 34e8963188e4845557468a496066a8fa60d5f563
    Actual: 2abc07786ae41a5d873ea17e41782c4b7560bb49
    Archive: /Library/Caches/Homebrew/sdl_gfx-2.0.24.tar.gz
    (To retry an incomplete download, remove the file above.)
    
  • 想询问一下南方的朋友对北京的冬天的看法 at 2013年05月23日

    北方室内室外切换开销太大

  • Working With Unix Processes for Rubyist at 2013年05月22日

    #24 楼 @xwf286 好像没有吧

  • Github Open Source Contributions Calendar. at 2013年05月21日

    git 不但可以伪造时间 还能伪造作者啊

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