在網路上似乎找不到中文網頁Lambda在Haskell上的用法, 所以寫了這篇稍微介紹一下
lambda function其實也就是anonymous function, 在Lisp, Python, C#3.0, VB中都有support類似的語法
\x -> x + x
"\" 念做 lambda
TBC...
Posted by anivek at 痞客邦 PIXNET 留言(0) 引用(0) 人氣()
Posted by anivek at 痞客邦 PIXNET 留言(0) 引用(0) 人氣()
http://ruby-mp3info.rubyforge.org/
I tried to install through gem remote repository like:
gem install ruby-mp3info -> not work
But I got error message:
ERROR: http://gems.rubyforge.org/ does not appear to be a repository
ERROR: could not find gem ruby-mp3info locally or in a repository
So I download the gem file manually from RubyForge site and install:
F:\cmplayer\library>gem install -l ruby-mp3info-0.6.13.gem
Successfully installed ruby-mp3info-0.6.13
1 gem installed
Installing ri documentation for ruby-mp3info-0.6.13...
Installing RDoc documentation for ruby-mp3info-0.6.13...
F:\cmplayer\library>gem list --local
*** LOCAL GEMS ***
fxri (0.3.6)
fxruby (1.6.16)
hpricot (0.6.164)
log4r (1.0.5)
ptools (1.1.6)
rake (0.8.1)
ruby-mp3info (0.6.13)
ruby-opengl (0.60.0)
test-unit (2.0.1)
win32-api (1.2.1, 1.2.0)
win32-clipboard (0.4.4)
win32-dir (0.3.2)
win32-eventlog (0.5.0)
win32-file (0.5.5)
win32-file-stat (1.3.1)
win32-process (0.5.9)
win32-sapi (0.1.4)
win32-sound (0.4.1)
windows-api (0.2.4)
windows-pr (0.9.3)
Posted by anivek at 痞客邦 PIXNET 留言(0) 引用(0) 人氣()
Sometimes the connection is too slow, and sometimes I have to read doc offline. So I use the following command to mirror the whole web site to local drive.
wget -m http://ruby-gnome2.sourceforge.jp
Posted by anivek at 痞客邦 PIXNET 留言(0) 引用(0) 人氣()
See this article:
http://railstips.org/2009/5/11/class-and-instance-methods-in-ruby
Posted by anivek at 痞客邦 PIXNET 留言(0) 引用(0) 人氣()
I'm trying to install ruby-gtk binding on my iBook. That's Mac OS 10.4.11 with PowerPC based CPU. First of all, MacPorts is fucking slow! Sencond, MacPorts will not handle package dependency problems automatically. I have to install separate packages by myself. That's so sad...
Instruction to install ruby-gtk:
sudo port install rb-gnome... and take care a lot of dependency problems...
Posted by anivek at 痞客邦 PIXNET 留言(0) 引用(0) 人氣()
I got a book - Ruby by Example Concepts and Code.
Link is here:
http://www.amazon.com/Ruby-Example-Concepts-Kevin-Baird/dp/1593271484/ref=sr_1_1?ie=UTF8&s=books&qid=1231599489&sr=8-1
I want to read one chapter a day starting from today.
Why I want to learn Ruby?
No idea...
Maybe just a belief...
Posted by anivek at 痞客邦 PIXNET 留言(0) 引用(0) 人氣()
根本也沒用過這邊的blog, 也沒跟別人說過
竟然今天有四個人的人氣, 是哪裡有毛病阿 @@
都快忘了這個帳號了
只有一個人會知道它的意思, 如果還記得的話
哇 好久了 酷
正在看星光大道
下次看到這篇文章的時候, 這個節目還會活著嗎
曾佩慈"溫柔的慈悲" 開頭唱的不錯
Posted by anivek at 痞客邦 PIXNET 留言(0) 引用(0) 人氣()