(C) John Mair (banisterfiend) 2011 Retrieve the binding of a method's caller in MRI 1.9.2 The binding_of_caller gem provides the Binding#of_caller method. Using binding_of_caller we can grab bindings from higher up the call stack and evaluate... 続きを読む
A quick overview of adding tags to a Jekyll-powered blog. (from Charlie Park)Update: Using Github Pages to serve up your blog? Me, too! Even though plugins won’t work on Github Pages, you can still have tags on your site. You just need to ge... 続きを読む
Rubyists are people who generally value elegance over performance. “CPU time is cheaper than developer time!” is a mantra Rubyists have repeated for years. Performance has almost always taken a second seat to producing beautiful code, to th... 続きを読む
README.md MethodProfiler MethodProfiler collects performance information about the methods in your objects and creates reports to help you identify slow methods. The collected data can be sorted in various ways, converted into an array, or pr... 続きを読む
本当は怖いObjectSpace.each_object Slide 1: 本当は怖い ObjectSpace.each_object nari(中村) ネットワーク応用通信研究所 Powered by Rabbit 0.5.7 Slide 2: 自己 紹介 Slide 3: 自己紹介 nariと申します 九州Ruby01会議でGCについて喋ったもの です はてなで... 続きを読む
随分長いことブログ放置してしまったのだけどネタ見付けたので久々の記事。 UnicornはPassengerより遅かった? なんかTwitterで「アクセス少ないときはPassengerよりUnicornのが速いのに、アクセス多くなってきたらその逆になった」って話をみかけたので、それ... 続きを読む
ライブラリを使う時、バージョンが合わなくてうまく動かないという問題は、Rubyに限らず、どのプログラミング言語でも常に悩みの種である。特にDepedencyの多いライブラリをインストール/インクルードするときは、大体この問題で躓く。C++とかでGUI関係のライブ... 続きを読む
以下のようにメインスレッドにファイナライザを登録すると、ファイナライザ実行後に止まってしまいます。 ObjectSpace.define_finalizer(Thread.main) {} trunk と ruby_1_9_3 ブランチの先頭で発生することを確認しています。 trunk は以下の gist に貼った pa... 続きを読む
Flapjack: rethinking monitoring for the cloud by Lindsay Holmwood on Nov 05, 2009 13,445 views Flapjack is a scalable and distributed monitoring system. It natively talks the Nagios plugin format, and can easily be scaled from 1 server to 100... 続きを読む
When writing libraries we often need “global”ish variables. In Ruby what most people use are class variables along with accessor methods to modify them. For example MyLibrary.my_variable. This is basically just namespacing a global: class S... 続きを読む
Instant jemalloc injection into Ruby apps, for better performance and less memory. Why jemalloc? Ruby relies on malloc(3) for its internal memory allocation. Using better malloc() implementation will boost your application performance, and su... 続きを読む
Forks gist: 1694982 by marcweil ruby-1.9.3-p0 cumulative pe... created January 28, 2012 gist: 1694991 by yfeldblum ruby-1.9.3-p0 cumulative pe... created January 28, 2012 gist: 1695494 by rinaldi... ruby-1.9.3-p0 cumulative pe... created Janu... 続きを読む
2012年11月2日、Ruby 2.0.0-preview1のリリースがアナウンスされました。Ruby 2.0はRuby生誕20周年となる2013年の2月24日にリリースが予定されています。 Ruby 2.0のリリースマネージャ、遠藤侑介さんがメーリングリストに流したアナウンスによれば、2.0.0の主... 続きを読む
ruby | 14:34 | 俺得メモ。もう3回くらい同じこと調べたんでいい加減メモ残しておく。 Net::HTTP にset_debug_outputってメソッドがあってコイツに出力先を渡せばいい。残念ながらこのset_debug_outputはドキュメントには載ってないのでnet/httpのソース見てね... 続きを読む
README.md Typedocs : Human/Machine readable method specifications The goal of the project is to provide user-friendly type annotations for Ruby. Installation Add this line to your application's Gemfile: gem 'typedocs' And then execute: $ bund... 続きを読む
Dismiss Octotip: You've activated the file finder by pressing t Start typing to filter the file list. Use ↑ and ↓ to navigate, enter to view files. 続きを読む
pry Gemfile group :development, :test do gem 'plymouth', require: false gem 'pry-exception_explorer' gem 'pry-nav' gem 'pry-remote' gem 'pry-stack_explorer' end breakpoint binding.pry_remote connect $ bundle exec pry-remote ruby-debug Gemfile... 続きを読む
open3 のはなし 田中哲 独立行政法人 産業技術総合研究所 情報技術研究部門 東京Ruby会議03 2010-02-28 目的 ● プロセスを動かす良い方法を提供する ● 使いやすい API をデザインする プロセス起動の用途 ● 出力を less 経由でユーザに見せる ● エディタを... 続きを読む
1 RT
最近はお仕事で久々にがっつりrubyを書いてます。rails難しいです。それはさておき、railsコマンドの実行が遅いのがつらいので、色々探していたら、jugyoさんのrails-shを見つけました。rails-shはscalaのsbtとかみたいに、railsを読みこみ済みの環境を起動しっ... 続きを読む
1 RT
高速検索で素早く探せるRubyリファレンスマニュアルるりまプロジェクトの成果物であるRuby日本語リファレンスマニュアルのビューアです。高速な検索とキーボード操作で目的の項目を素早く見つけることができます。 Ruby 1.9.2 リファレンスマニュアル キーボー... 続きを読む