<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4646860664305909205</id><updated>2024-09-17T08:49:07.331+09:00</updated><category term="ruby"/><category term="swfupload"/><category term="javascript"/><category term="rails"/><category term="rubygems"/><category term="authlogic"/><category term="continuous integration"/><category term="devise"/><category term="drupal"/><category term="flash"/><category term="gems"/><category term="llvm"/><category term="mac"/><category term="macruby"/><category term="metric"/><category term="metric_fu"/><category term="prawn"/><category term="railstokyo"/><category term="rr"/><category term="signal"/><category term="trollop"/><title type='text'>eitoballの練習帳</title><subtitle type='html'>英語力を鍛える為に海外からの興味ある主にRubyに関したブログ記事やマニュアルページなどを日本語に訳していこうと思っています。訳文に間違いや分かりにくい点があればコメントやメールで指摘して頂けるとうれしいです。</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://eitoball.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4646860664305909205/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://eitoball.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>eitoball</name><uri>http://www.blogger.com/profile/08527590952330555204</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>16</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4646860664305909205.post-188756958123756885</id><published>2010-03-15T11:11:00.000+09:00</published><updated>2010-03-15T11:11:07.102+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="rr"/><category scheme="http://www.blogger.com/atom/ns#" term="ruby"/><category scheme="http://www.blogger.com/atom/ns#" term="rubygems"/><title type='text'>rr README.rdoc（バージョン 0.10.10）私訳</title><summary type="text">今回はrr（double ruby）というRuby製のテスト用のダブルオブジェクトを作成するライブラリのREADME文書（バージョン0.10.10時点）を訳してみました。ダブルとはユニットテスト書く時などに作るダミーのオブジェクトの総称で、モックやスタブもその1種です。

Rubyには、この様なライブラリがflexmockやshouldaなどがあります。ある勉強会で聞いた話だと、rrが、xUnit Patternsで定義されているダブルの定義に一番忠実に沿っているそうです。

個人的にはRSpecでテストを記述する際にrrを使っています。簡潔にダブルを書くことができるのでとても気に入っています。


</summary><link rel='replies' type='application/atom+xml' href='http://eitoball.blogspot.com/feeds/188756958123756885/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4646860664305909205/188756958123756885' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4646860664305909205/posts/default/188756958123756885'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4646860664305909205/posts/default/188756958123756885'/><link rel='alternate' type='text/html' href='http://eitoball.blogspot.com/2010/03/rr-readmerdoc-01010.html' title='rr README.rdoc（バージョン 0.10.10）私訳'/><author><name>eitoball</name><uri>http://www.blogger.com/profile/08527590952330555204</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4646860664305909205.post-1217014144788782180</id><published>2010-02-06T01:21:00.000+09:00</published><updated>2010-02-06T01:21:35.342+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="metric"/><category scheme="http://www.blogger.com/atom/ns#" term="metric_fu"/><category scheme="http://www.blogger.com/atom/ns#" term="ruby"/><title type='text'>metric_fuを使用してのコード品質の向上</title><summary type="text">今回は、devver.netという会社が運営しているCaliperというRubyコードメトリックスを計測するツール群であるmetric_fuについてのブログ記事を訳してみました。

コードメトリックスはコードの品質をわかりやすい形で表現してくれるいいツールです。metric_fuで使われているSaikuroという循環的複雑度を計測するライブラリは同僚が開発したもので、実際、仕事でのコードに適用してリファクタリングとかを行っていました。



Metric_fuを使用してのコード品質の向上

大抵、人々は、コードメトリックスについて、興味はあるけど、それを使って何をすればいいのか分からない」と考えています。コードメトリックスは有益ですが、プロジェクトのコード品質を向上する時に使うことができる時には、さらに価値があるものとなります。metric_fuは、たくさんの素晴らしいメトリック情報を</summary><link rel='replies' type='application/atom+xml' href='http://eitoball.blogspot.com/feeds/1217014144788782180/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4646860664305909205/1217014144788782180' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4646860664305909205/posts/default/1217014144788782180'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4646860664305909205/posts/default/1217014144788782180'/><link rel='alternate' type='text/html' href='http://eitoball.blogspot.com/2010/02/metricfu.html' title='metric_fuを使用してのコード品質の向上'/><author><name>eitoball</name><uri>http://www.blogger.com/profile/08527590952330555204</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4646860664305909205.post-1262374433233579615</id><published>2010-01-14T22:13:00.000+09:00</published><updated>2010-01-14T22:13:37.168+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="swfupload"/><title type='text'>SWFUpload v2.2.0.1 文書 素訳完成</title><summary type="text">遅くなりましたが、あけましておめでとうございます。

前回、2009年12月31日に書いた「SWFUpload v2.2.0.1 文書」の翻訳がとりあえず完成しました。SWFUploadの事がよく分かっていないので、変な訳が多いですが、これから少しずつ見直しをしていきたいと思っています。

これからは、また、ブログ記事の翻訳とかを定期的にできればと思っています。</summary><link rel='replies' type='application/atom+xml' href='http://eitoball.blogspot.com/feeds/1262374433233579615/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4646860664305909205/1262374433233579615' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4646860664305909205/posts/default/1262374433233579615'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4646860664305909205/posts/default/1262374433233579615'/><link rel='alternate' type='text/html' href='http://eitoball.blogspot.com/2010/01/swfupload-v2201.html' title='SWFUpload v2.2.0.1 文書 素訳完成'/><author><name>eitoball</name><uri>http://www.blogger.com/profile/08527590952330555204</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4646860664305909205.post-9214732342373285848</id><published>2009-12-31T00:43:00.000+09:00</published><updated>2009-12-31T00:43:19.338+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="flash"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="swfupload"/><title type='text'>SWFUpload v2.2.0.1 文書</title><summary type="text">今回は、SWFUploadというHTMLページ上からファイルをアップロードするためのライブラリのマニュアル文書を訳してみました。まだ、未完成で素訳ですが、GitHub上に公開しています。




訳文に間違いや分かりにくい点があれば、コメントやメールで連絡を頂ければ幸いです。</summary><link rel='replies' type='application/atom+xml' href='http://eitoball.blogspot.com/feeds/9214732342373285848/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4646860664305909205/9214732342373285848' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4646860664305909205/posts/default/9214732342373285848'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4646860664305909205/posts/default/9214732342373285848'/><link rel='alternate' type='text/html' href='http://eitoball.blogspot.com/2009/12/swfupload-v2201.html' title='SWFUpload v2.2.0.1 文書'/><author><name>eitoball</name><uri>http://www.blogger.com/profile/08527590952330555204</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4646860664305909205.post-7019736036205352526</id><published>2009-11-21T02:48:00.001+09:00</published><updated>2009-11-21T02:51:36.734+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="authlogic"/><category scheme="http://www.blogger.com/atom/ns#" term="ruby"/><title type='text'>Authlogic バージョン2.1.3 （README.rdoc）</title><summary type="text">今回はAuthlogicというRuby製の認証用ライブラリのREDME文書（バージョン2.1.3時点）を訳してみました。先日、Deviseについての記事（私訳）を読んだのですが、その記事の中で比較として挙げられていたライブラリでした。Deviseも良さそうですが、実際に記事の言っていることが正しいのかを判断しようと思い、Authlogic自体を理解するためにREADMEを文書を読んで、ついでとして、訳してみることにしました。

仕事で認証な必要なウェブアプリケーションを書いたことがあるのですが、Authlogicでできることと重複するようなことをやってることに気づきました。うーん、DRY。機会があれば、AuthlogicやDeviseなどを使って、書き直すことができればなぁ…


AuthlogicAuthlogicは、簡潔で柔軟なRubyで記述された認証ソリューションです。

コードで</summary><link rel='replies' type='application/atom+xml' href='http://eitoball.blogspot.com/feeds/7019736036205352526/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4646860664305909205/7019736036205352526' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4646860664305909205/posts/default/7019736036205352526'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4646860664305909205/posts/default/7019736036205352526'/><link rel='alternate' type='text/html' href='http://eitoball.blogspot.com/2009/11/authlogic-213-readmerdoc.html' title='Authlogic バージョン2.1.3 （README.rdoc）'/><author><name>eitoball</name><uri>http://www.blogger.com/profile/08527590952330555204</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4646860664305909205.post-8745952799250611854</id><published>2009-11-16T11:31:00.000+09:00</published><updated>2009-11-16T11:31:27.998+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="devise"/><category scheme="http://www.blogger.com/atom/ns#" term="rails"/><category scheme="http://www.blogger.com/atom/ns#" term="railstokyo"/><category scheme="http://www.blogger.com/atom/ns#" term="ruby"/><title type='text'>Devise: Rails向けの柔軟性のある認証ソリューション</title><summary type="text">先日、2009年11月15日（日）にRails勉強会@東京第45回に参加させて頂きました。とてもいい雰囲気でとても楽しむことができました。本当にありがとうございました。

残念なことに、最近、新規の参加者が少ないとのことでした。もしこれを読んでいて、Rails勉強会@東京に参加したいけど、敷居が高いかなぁとかRailsに興味があるけど使ったことないからどうしようと思っていたら、一度、ぜひ、参加してみて下さい。初心者向けのセッションもあります。あと、もうRailsは大丈夫というかたでも、最新のRails事情などの情報を集めたりするいい機会だと思います。

自分は、普段、岐阜に住んでいるので、毎月の参加はできないですが、機会があれば、参加させて頂きたいと思います。

今回は、自分の理解を深めるために勉強会で話題になったRailsで使うことのできる新しい認証方式のDeviseについての記事に</summary><link rel='replies' type='application/atom+xml' href='http://eitoball.blogspot.com/feeds/8745952799250611854/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4646860664305909205/8745952799250611854' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4646860664305909205/posts/default/8745952799250611854'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4646860664305909205/posts/default/8745952799250611854'/><link rel='alternate' type='text/html' href='http://eitoball.blogspot.com/2009/11/devise-rails.html' title='Devise: Rails向けの柔軟性のある認証ソリューション'/><author><name>eitoball</name><uri>http://www.blogger.com/profile/08527590952330555204</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4646860664305909205.post-6467914147483804978</id><published>2009-11-14T20:47:00.000+09:00</published><updated>2009-11-14T20:47:58.037+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="gems"/><category scheme="http://www.blogger.com/atom/ns#" term="prawn"/><category scheme="http://www.blogger.com/atom/ns#" term="ruby"/><category scheme="http://www.blogger.com/atom/ns#" term="rubygems"/><title type='text'>Gemsスポットライト: Prown</title><summary type="text">今回は、About.com:rubyより、「Spotlight on Gems: Prown」という記事を取り上げたいと思います。

Prownは、Rubyで記述されたPDF作成のライブラリです。割と簡単にPDF文書が作成できるようです。日本語の取り扱いについてなどどうかがとても興味あります。



Gemsスポットライト: Prown
About.com:ruby

PrawnはPDFファイルを生成するためのRubyのみで記述されたライブラリです。Rubyコードから、色々な内容や大きさのPDFファイルを作成することができます。レポートを生成するだけでなく、文書を生成したり、プログラムの出力をポータブルな形式で提供したりするのに適しています。PrawnはRubyのみで記述されており、コンパイルしたり、制限のある他のライブラリに依存しません。

Prawnのインストール

Prawnは</summary><link rel='replies' type='application/atom+xml' href='http://eitoball.blogspot.com/feeds/6467914147483804978/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4646860664305909205/6467914147483804978' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4646860664305909205/posts/default/6467914147483804978'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4646860664305909205/posts/default/6467914147483804978'/><link rel='alternate' type='text/html' href='http://eitoball.blogspot.com/2009/11/gems-prown.html' title='Gemsスポットライト: Prown'/><author><name>eitoball</name><uri>http://www.blogger.com/profile/08527590952330555204</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4646860664305909205.post-4002350103845062518</id><published>2009-11-09T23:46:00.722+09:00</published><updated>2009-11-11T15:01:06.180+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ruby"/><title type='text'>Ruby言語で好きなこと10項目</title><summary type="text">Yehuda Katzさんの「My 10 Favorite Things About the Ruby Language」という記事を取り上げたいと思います。

さっと考えるとクラスがオープンであること、全てがオブジェクトであること、文字列の表現が豊富であることの3つぐらいしか思いつきません。5つぐらいは挙げることができるように修行をしたいと思います。


Ruby言語で好きなこと10項目
Yehuda Katz

私は毎日Rubyを使って仕事をしています。日がたつにつれRubyを使うのが本当に楽しくなっています。Rubyについて本当に好きな項目の一覧を挙げます。何項目かは言うまでもないことだし、いくつかは他のプログラミング言語にも存在するようなことです。Rubyについて好きな項目を共有するのは他の言語と比較したり対比することではありません。

1. 動的な型付け

静的な型付けをする</summary><link rel='replies' type='application/atom+xml' href='http://eitoball.blogspot.com/feeds/4002350103845062518/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4646860664305909205/4002350103845062518' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4646860664305909205/posts/default/4002350103845062518'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4646860664305909205/posts/default/4002350103845062518'/><link rel='alternate' type='text/html' href='http://eitoball.blogspot.com/2009/11/yehuda-katz-my-10-favorite-things-about.html' title='Ruby言語で好きなこと10項目'/><author><name>eitoball</name><uri>http://www.blogger.com/profile/08527590952330555204</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4646860664305909205.post-3284076148634810922</id><published>2009-11-08T19:43:00.177+09:00</published><updated>2009-11-09T15:11:16.614+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ruby"/><title type='text'>なぜ、私はRubyでプログラムを書くのか？（そして、なぜ、あなたはRubyを使わない方がいいのか？）</title><summary type="text">今回は、Giles Bowkettさんのブログから「Why I Program In Ruby (And Maybe Why You Shouldn&#39;t)」という記事を訳してみたいと思います。

この記事は2007年11月に書かれた記事ですが、まつもとゆきひろ（Matz）さんがTwitterでつぶやいて、興味を持ちました。自分もおもに仕事でRubyを使っているのですが、どうしてRubyなんだろう？言語Xでもいいのではと思うときがあります。結局はRubyがいいやになるのですが、どうしてその結果でいいのかということを考えたことがありませんでした。今回、この記事を読みながら、その理由を考えていきたいと思います。


なぜ、私はRubyでプログラムを書くのか？（そして、なぜ、あなたはRubyを使わない方がいいのか？）
Giles Bowkett

Neal Fordが、最近、おもしろいポッド</summary><link rel='replies' type='application/atom+xml' href='http://eitoball.blogspot.com/feeds/3284076148634810922/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4646860664305909205/3284076148634810922' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4646860664305909205/posts/default/3284076148634810922'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4646860664305909205/posts/default/3284076148634810922'/><link rel='alternate' type='text/html' href='http://eitoball.blogspot.com/2009/11/giles-bowkettwhy-i-program-in-ruby-and.html' title='なぜ、私はRubyでプログラムを書くのか？（そして、なぜ、あなたはRubyを使わない方がいいのか？）'/><author><name>eitoball</name><uri>http://www.blogger.com/profile/08527590952330555204</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4646860664305909205.post-53518477014310938</id><published>2009-11-06T12:19:00.000+09:00</published><updated>2009-11-06T12:19:21.396+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="continuous integration"/><category scheme="http://www.blogger.com/atom/ns#" term="ruby"/><category scheme="http://www.blogger.com/atom/ns#" term="signal"/><title type='text'>Signalで作るとても簡単な継続的インテグレーションシステム</title><summary type="text">今回は、Diego Carrionさんのブログから「Really easy continuous integration with Signal」という記事を訳したいと思います。元記事がいいと思う方は、Working With RailsというサイトでDiegoさんへこのリンクより投票して下さい。

Continuous Integration （継続的インテグレーション、CI）は、開発初期から定期的に（4時間後とか毎コミットとか）ビルドやテストを行い、インテグレーションの時に発生する可能性のあるエラーなどを早期に発見してそれらを随時修正しながら進めていく、XP（eXtream Programming）のプラクティスの一つです。

継続的インテグレーションを実施するにあたり、自動でビルドを行ったりテストをしたりするシステムを作るのはとても大変です。Signalで記事の題名通り簡単に継続的</summary><link rel='replies' type='application/atom+xml' href='http://eitoball.blogspot.com/feeds/53518477014310938/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4646860664305909205/53518477014310938' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4646860664305909205/posts/default/53518477014310938'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4646860664305909205/posts/default/53518477014310938'/><link rel='alternate' type='text/html' href='http://eitoball.blogspot.com/2009/11/signal.html' title='Signalで作るとても簡単な継続的インテグレーションシステム'/><author><name>eitoball</name><uri>http://www.blogger.com/profile/08527590952330555204</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4646860664305909205.post-6219777146622192759</id><published>2009-11-04T23:22:00.001+09:00</published><updated>2009-11-04T23:23:36.816+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="llvm"/><category scheme="http://www.blogger.com/atom/ns#" term="mac"/><category scheme="http://www.blogger.com/atom/ns#" term="macruby"/><category scheme="http://www.blogger.com/atom/ns#" term="ruby"/><title type='text'>MacRubyコンパイラの使い方</title><summary type="text">今回は、Antonio CangianoさんのZen and the Art of Programmingより、「Getting MacRuby’s compiler to work」という記事を取り上げたいと思います。MacRubyはRubyの実装系の一つです。MacRubyでは、RubyスクリプトをMac OS X上で実行できる形式にコンパイルするようです。Mac用のプログラムを作成するのに使えるかもしれません。そして、ゆくゆくはiPhone上でも実行できるプログラムがコンパイルできるようになるのでしょうか？


MacRubyコンパイラの使い方
By Antonio Cangiano.

本日（訳者注:2009年10月8日）、Ruby界隈において大きなニュースがあります。MacRubyチームが（実験段階でRuby言語を完全に実装していない）バージョン0.5の最初のベータをリリース</summary><link rel='replies' type='application/atom+xml' href='http://eitoball.blogspot.com/feeds/6219777146622192759/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4646860664305909205/6219777146622192759' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4646860664305909205/posts/default/6219777146622192759'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4646860664305909205/posts/default/6219777146622192759'/><link rel='alternate' type='text/html' href='http://eitoball.blogspot.com/2009/11/macruby.html' title='MacRubyコンパイラの使い方'/><author><name>eitoball</name><uri>http://www.blogger.com/profile/08527590952330555204</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4646860664305909205.post-6978642436260746637</id><published>2009-11-04T11:12:00.289+09:00</published><updated>2009-11-04T22:38:12.551+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ruby"/><title type='text'>使いやすいRubyのオブジェクト</title><summary type="text">Eric HodelさんのSegment7というブログより「Friendly Ruby Object」という記事を訳してみたいと思います。この記事は少し古い記事ですが、Rubyを使う上で大事な基礎事項だと思います。RubyのEnumerableモジュールなどはとても便利ですが、このモジュールを利用するにはある約束事を守る必要があります。この記事はその約束事やクラスに実装しておくと便利なメソッドなどについて解説しています。


使いやすいRubyのオブジェクト
Eric Hodel

Ruby Quickrefを補足するためオブジェクト同士を円滑に作用させる様々な方法についての記事です。ほとんどの例でRubyGemsのコードを使用しました。そのため、いくつかの例では次のリリースの
RubyGemsまで動作しない場合があります。

Enumerable 

Enuerableモジュールは#</summary><link rel='replies' type='application/atom+xml' href='http://eitoball.blogspot.com/feeds/6978642436260746637/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4646860664305909205/6978642436260746637' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4646860664305909205/posts/default/6978642436260746637'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4646860664305909205/posts/default/6978642436260746637'/><link rel='alternate' type='text/html' href='http://eitoball.blogspot.com/2009/11/eric-hodel-segment7-friendly-ruby.html' title='使いやすいRubyのオブジェクト'/><author><name>eitoball</name><uri>http://www.blogger.com/profile/08527590952330555204</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4646860664305909205.post-5981898840690874366</id><published>2009-10-30T11:47:00.015+09:00</published><updated>2009-11-04T15:06:23.630+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="rails"/><category scheme="http://www.blogger.com/atom/ns#" term="ruby"/><category scheme="http://www.blogger.com/atom/ns#" term="swfupload"/><title type='text'>Rails 2.3.4とSWFUpload</title><summary type="text">Jetpack Flight Logから2009年10月29日の「Rails 2.3.4 and SWFUpload – Rack Middleware for Flash Uploads that Degrade Gracefully」という記事を勉強がてら訳してみした。


Rails 2.3.4とSWFUpload - Flashを使用したアップローダの互換性のあるRackミドルウェア


ウェブブラウザからのアップロードを制御はここ数年同じ方法で行ってきました。それらはスタイルするのが難しく、様々なブラウザに対して同じように表示されません。おそらく、一番、大きな問題は送信時間がどれくらいかといったフィードバックがユーザーに対してないことです。アップロードにFlashを使うという一つの方法があります。多くのライブラリがありますが、SWFUploadがお気に入りです。あなたがこの記事</summary><link rel='replies' type='application/atom+xml' href='http://eitoball.blogspot.com/feeds/5981898840690874366/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4646860664305909205/5981898840690874366' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4646860664305909205/posts/default/5981898840690874366'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4646860664305909205/posts/default/5981898840690874366'/><link rel='alternate' type='text/html' href='http://eitoball.blogspot.com/2009/10/rails-234swfupload.html' title='Rails 2.3.4とSWFUpload'/><author><name>eitoball</name><uri>http://www.blogger.com/profile/08527590952330555204</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4646860664305909205.post-4766419604114154117</id><published>2009-10-29T00:40:00.002+09:00</published><updated>2009-11-02T11:48:16.229+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="drupal"/><title type='text'>ホワイトハウスのウェブサイトにオープンソースソフトウェアのDrupalを採用</title><summary type="text">元のcnetの記事は、Stephen Shanlandの「White House Web site makes open-source move」です。

島根県や徳島県などの地方自治体ではRubyやRuby on Railsを使った自治体のサイトを作成しているようです。日本政府もRubyやRuby on Railsなどを使って、ウェブサイトを構築するとかすればいいと思うのですが、いつになるのでしょう？


ホワイトハウスのウェブサイトがオープンソースソフトウェアの利用を推進
Stephen Shanland


WhiteHouse.govウェブサイトでは、現在、Drupalと呼ばれるオープンソースソフトウェアを採用しており、それを使ってサイトのコンテンツの管理や公開をしています。このプロジェクトは熱烈な支持されています。、設立2年目の新興企業であるAcquiaが保守を行っています。
</summary><link rel='replies' type='application/atom+xml' href='http://eitoball.blogspot.com/feeds/4766419604114154117/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4646860664305909205/4766419604114154117' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4646860664305909205/posts/default/4766419604114154117'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4646860664305909205/posts/default/4766419604114154117'/><link rel='alternate' type='text/html' href='http://eitoball.blogspot.com/2009/10/drupal.html' title='ホワイトハウスのウェブサイトにオープンソースソフトウェアのDrupalを採用'/><author><name>eitoball</name><uri>http://www.blogger.com/profile/08527590952330555204</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4646860664305909205.post-5101316792863415863</id><published>2009-10-27T22:43:00.004+09:00</published><updated>2009-11-02T11:47:49.586+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ruby"/><category scheme="http://www.blogger.com/atom/ns#" term="trollop"/><title type='text'>Trollop</title><summary type="text">About.com:ruby にTrollopというコマンドライン引数をパースするライブラリの記事が掲載されていました。ありました。勉強ついでに記事を訳してみました。元の文書はこちらです。

以前の記事で、Rubyの標準ライブラリのOptionParserクラスを使ってのコマンドラインオプションをパースする方法について、説明しました。このクラスはかなりよく動作しますが、けっこうくどいです。たった4つのオプションを定義するのに20行そこらのコードが必要になり、理想的ではありません。また、OptionParserクラスの使い方を覚える必要がありますが、いつも使うものではありません。Trollopは、これらの問題を解決する素晴らしいライブラリです。（名前が的を得ているが下品であることを無視すればですが）オプションパーサーを簡単にすることを目的としており邪魔になりません。それは小さい単一の</summary><link rel='replies' type='application/atom+xml' href='http://eitoball.blogspot.com/feeds/5101316792863415863/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4646860664305909205/5101316792863415863' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4646860664305909205/posts/default/5101316792863415863'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4646860664305909205/posts/default/5101316792863415863'/><link rel='alternate' type='text/html' href='http://eitoball.blogspot.com/2009/10/trollop.html' title='Trollop'/><author><name>eitoball</name><uri>http://www.blogger.com/profile/08527590952330555204</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4646860664305909205.post-1756680769748978019</id><published>2009-10-27T11:13:00.066+09:00</published><updated>2009-11-02T11:47:21.353+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ruby"/><title type='text'>RubyForgeが閉鎖へ</title><summary type="text">[ruby-core:26344]の「RubyForge and RubyGems and GemCutter..」という題名のメールが大変興味をひかれました。

Hi all -

This has been announced in various forums, but we should have sent a message here in the initial flurry. &amp;nbsp;To summarize, some major gem indexes are going to be consolidated - GemCutter and gems.rubyforge.org will move to rubygems.org and form one massive gem index. &amp;nbsp;This index will be fronted by </summary><link rel='replies' type='application/atom+xml' href='http://eitoball.blogspot.com/feeds/1756680769748978019/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4646860664305909205/1756680769748978019' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4646860664305909205/posts/default/1756680769748978019'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4646860664305909205/posts/default/1756680769748978019'/><link rel='alternate' type='text/html' href='http://eitoball.blogspot.com/2009/10/ruby-core26344rubyforge-and-rubygems.html' title='RubyForgeが閉鎖へ'/><author><name>eitoball</name><uri>http://www.blogger.com/profile/08527590952330555204</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>