這是http://www.ruby-lang.org/zh_TW/ 站長所寫的一篇教學
網址是:http://info.sayya.org/~sjh/sjh_rubygtk.pdf
寫得很詳細、簡單明瞭!
如果有需要可以看看
Google自訂搜尋
- Mar 04 Sun 2007 01:00
Ruby/GTK 中文教學
- Mar 02 Fri 2007 19:33
不要臉的微軟
- Mar 01 Thu 2007 23:43
Balloon -- Ruby百寶箱
Here, Try a Balloon
Balloon is a site for Rubyists to create demos of their code. Have Balloon download Gems, fetch code from Subversion, run scripts and then close up without leaving a trace!
簡單的說,Balloon提供給Ruby Coders一個可以建立demo的平台,如果有玩過DOB首頁製作百寶箱作者群的人應該可以很快上手,因為跟發布文章的介面有點類似
它定義了幾個Actions:
- Run some Ruby code
- Fetch a gem
- Fetch a Ruby library(non-Gem)
- Download code from Subversion
- Use a Gem Server
可以看看底下範例:
http://balloon.hobix.com/serve.rb
http://balloon.hobix.com/Win32_MessageBox
寫好的Code還可以嵌入到部落格中喔
- Mar 01 Thu 2007 00:33
快速處理HTML/XML文件
XML文件我是用ReXML啦.. 不過我這邊不是要介紹ReXML,是要來介紹hpricot這個Library的
安裝方式: gem install hpricot
or gem install hpricot --source http://code.whytheluckystiff.net
第一個會連線到gem server去抓來裝,不會有最新的更新;第二個會連到指定的gem server,那邊更新速度較快,我還看到jruby版本的gem..
OK,廢話不多說,趕緊來看看
官方網站是:http://code.whytheluckystiff.net/hpricot/
如果會jQuery的人,這個是用jQuery當底層的喔!
我來個例子吧
require 'rubygems'
require 'hpricot'
require 'open-uri'
doc = Hpricot(open("http://article.zuso.org.tw/show.php?id=1453"))
tb = doc.search("//table")
puts "Tables: #{tb.size}"
puts tb[0]
- Feb 28 Wed 2007 23:50
I don't know you anymore -- Savage Garden ( With Lyrics )
Lyrics:
I would like to visit you for a while
Get away and out of this city
Maybe I shouldn't have called but someone had to be the first to break
We can go sit on your back porch
Relax
Talk about anything
It don't matter
I'll be courageous if you can pretend that you've forgiven me
Because I don't know you anymore
I don't recognize this place
The picture frames have changed and so has your name
We don't talk much anymore
We keep running from the pain
But what I wouldn't give to see your face again
Springtime in the city
Always such relief from the winter freeze
The snow was more lonely than cold
If you know what I mean
Everyone's got an agenda, don't stop
Keep that chin up, you'll be all right
Can you believe what a year it's been
Are you still the same?
Has your opinion changed?
'Cause I don't know you anymore
I don't recognize this place
The picture frames have changed and so has your name
We don't talk much anymore
We keep running from these sentences
But what I wouldn't give to see your face again
I know I let you down
Again and again
I know I never really treated you right
I've paid the price
I'm still paying for it every day
So maybe I shouldn't have called
Was it too soon to tell?
Oh what the hell
It doesn't really matter
How do you redefine something that never really had a name?
Has your opinion changed?
Because I don't know you anymore
I don't recognize this place
The picture frames have changed and so has your name
We don't talk much anymore
We keep running from the pain
But what I wouldn't give to see your face again
I see your face
I see your face
- Feb 27 Tue 2007 23:28
Wikibooks上的Ruby Programming中文版
現在是我跟石頭閒語的Rock一起翻譯撰寫,如果有人有興趣的話歡迎加入翻譯的工作
請將原文的文章引用後張貼,然後修改翻譯即可
感謝您的付出!謝謝!