em-dir-watcher: sane cross-platform file system change monitoring for Event Machine Compatible with Ruby 1.8+ Supported platforms: Mac OS X: employs FSEvents API via Ruby Cocoa. To support Ruby 1.8, forks a separate watcher process and communicates with it via pipes. (Ruby 1.9 should use threads instead, but this hasn't been implemented yet.) Linux: employs inotify via rb-inotify gem. This backend
FSSM - currently unmaintained Monitor API There are three ways you can run the monitor. Call monitor with a path parameter, and define callbacks in a block Call monitor with a block to configure multiple paths and callbacks Create a monitor object and run each step manually Monitor with path This form watches one path, and enters the run loop automatically. The first parameter is the path to watch
このウェブサイトは販売用です! twiwt.org は、あなたがお探しの情報の全ての最新かつ最適なソースです。一般トピックからここから検索できる内容は、twiwt.orgが全てとなります。あなたがお探しの内容が見つかることを願っています!
Perl での print debug の方法の紹介がブーム(?)だったので、自分がよく行ってる Ruby での debug 方法7つについて書いてみます。 p ご存じの人も多い Kernel#p メソッド。これを使うとオブジェクトの内容を見やすい形で出力してくれます。 >> p ({:foobar => :baz}) {:foobar=>:baz}Object#inspect を使うと、p で出力するときと同じ文字列を String として取得できます。 >> puts ({:foobar => :baz}).inspect {:foobar=>:baz}初心者の頃この p での出力を使う方法がわからなくて困った記憶が…。 pp pp というライブラリを使うと、p より、より見やすい形式で出力してくれます。たとえば >> a = Array.new(10) { {:foobar => :
A PDF generation tools for Ruby, with design tool for editing templates. Thinreports Thinreports is a PDF generation tool that provides Thinreports Basic Editor and Thinreports Section Editor, a design tool for editing templates, and Thinreports Generator, a Ruby library for generating PDFs. Getting Started Thinreports allows you to create PDF layouts using the Thinreports Editor, and then load th
Rubyラク過ぎる。 何がラクなのか 他の言語と比べると、やっぱりさくさく作れる→鉄を熱いうちに打てる DXRuby(後述)を使うとGUIが簡単に作れる ゲームを制作するにあたって、開発言語として何を選ぶかをいろいろ考えた。 去年作っていた「C-holic」は主にC言語で作っていたのだが、Webでいろいろ記事を見て、LL(軽量言語)がいいかな、と考え始めた。 LLの利点として、言語的にあまり面倒なこと(データの型をきちんとしたりとか)をしないで済むということが挙げられる。 だから、さっさと取り掛かってさっさと作れるのは、モチベーションの維持という視点からも優れている。 時間がかかるとどんどんやる気が無くなるから。 鉄は熱いうちにガツンガツン打っておきたい。 Rubyはバイトで使う必要が出たときに触り始めて、「C-holic」以前にゲームを作ろうとしていたこともあるのだけれど、本格的に最後ま
jeweler とは rubygems 作成支援ツールとでも言えば良いのでしょうか。 こいつ自体は gem install jeweler でインストールできます。 くわしくは Route 477 - gemspecの作り方がわからない?ならばjewelerだ 前提条件 このエントリを読む人は以下を満たしていると良いかもしれません github にアカウントを持っている(もってない人はさっさと取ってきなさい) jeweler がインストールされている rubygems でインストールさせるライブラリ等を作りたい github 用の プロジェクトのスケルトンコードの作成 まだ github のプロジェクトは作っていないので、jeweler に作ってもらいましょう。 jeweler のオプションに --create-repo オプションを追加すると、スケルトンコードの他に github 上のリ
Kwartz News (2010-10-26) kwartz-ruby 3.2.0 released (2006-10-22) kwartz-ruby 3.1.2 released (2006-09-29) kwartz-ruby and kwartz-php 3.1.1 released (2006-09-24) kwartz-ruby 3.1.0 released (2006-06-01) kwartz-ruby 3.0.0 released Introduction Fig1. Business layer and presentation layer have their own data and logic. Fig2. Kwartz vs. Other template system: Kwartz separates presentation logic from pres
■ [ruby] CSSのような概念を取り入れたJRuby用GUIライブラリ、Limelight LimelightはJRuby上で動くクロスプラットフォームなGUIライブラリだ。 詳細はチュートリアルを見て欲しいが、画面の定義(prop)と: backdrop :background_color => "black", :width => "100%", :height => "100%" do sample :width => 100, :height => 100, :background_color => "red", :text => "red" selection :id => "the_selection", :width => 300, :height => 300, :background_color => "gray" end 見た目の定義(style) を分けるのが面
JRubyでJavaのSwingを利用しようと思い、サンプルを書いてみましたが 自力でjarを作ったりするのは結構手間です。 フレームワーク的なものを探してみたところ、 Monkeybarsというのを見つけたので、チュートリアルに従って試してみました。 [参考] ・Monkeybars http://monkeybars.rubyforge.org/ JRubyのGUI用フレームワーク チュートリアル http://monkeybars.rubyforge.org/tutorials.html ・Rawr http://d.hatena.ne.jp/xibbar/mobile?date=20081220 JRubyからexeやappを作成するツール まずは、Monkeybarsを使用してプロジェクトの下地を作ります。 #インストール jruby -S gem install monkeyb
AWS News Blog Introducing the AWS SDK for Ruby Ruby is a wonderful programming language. Optimized for ‘developer joy’, it is an object oriented playground for building simple domain specific languages, orchestration tools, and most famously, web applications. In many ways, the Ruby language and Amazon cloud services such as EC2 and S3 have similar goals: to help developers and businesses build in
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く