![]() 记录我们的时代 |
Tag: ruby / 热门Tag |
|
关于ruby的网志:
Ruby Community Vulnerability
Ruby社区最近有点动荡,都是从大约一周之前发现的一堆vulnerabiilty开始的。 事情的经过很简单,在Apple工作的Drew Yao发现了MRI的一堆要命漏洞,随后Ruby官网给出了一堆传说
Jan
@ 2008-07-03 11:03:07
Survey on Ruby development
http://devver.net/blog/2008/06/the-results-of-our-ruby-development-survey/ It's interesting so many
Jan
@ 2008-07-02 11:38:33
Update your ruby on production server now
Multiple vulnerabilities in Ruby may lead to a denial of service (DoS) condition or allow execution
Tag:
ruby
vulnerabilities
Jan
@ 2008-06-23 23:11:00
rand() in PHP and Ruby
See the original post I read here: http://www.boallen.com/random-numbers.html And the discussion her
Jan
@ 2008-05-21 14:43:16
Why Ruby amazes me? PRuby Chap 6 方法调用
用def可以定义一个方法,方法必须以一个小写字母开头 ** 如果使用大写字母,不会出错,但是Ruby会优先猜测这是一个常量而不是一个方法调用,解析可能出错 指定形参默认值 def cool_dude(
Tag:
ruby
Gem Gatherer
@ 2008-05-02 17:01:19
Why Ruby amazes me? PRuby Chap 5 标准类型
所有的数字也是对象。可以对各种形式的消息做出响应. 整数也支持几种有用的迭代器。 3.times { print X } 1.upto(5) { |i| print i, } 9.downto(7)
Tag:
ruby
Gem Gatherer
@ 2008-05-02 01:03:14
Why Ruby amazes me? PRuby Chap 4:容器,Blocks和迭代器
a[3.14159, pie ,49] a.class - Array a.length - 3 a[3] - nil []实际上是一个方法。 如果用负数作为索引,那么会从数组末端开始计数 数组可以嵌
Tag:
ruby
Gem Gatherer
@ 2007-10-28 21:37:33
Why Ruby amazes me? PRuby Chap 3 类,对象和变量
song = Song.new( Bicyclops , Fleck , 260) song.inspect - # Song:0x1c8ac8, @duration=260, @artist= Fl
Tag:
ruby
Gem Gatherer
@ 2007-10-28 20:42:12
Why Ruby amazes me? PRuby Chap 2 Ruby.new
Ruby是彻底的面向对象和大量运用消息的语言。 a = 3.abs .abs可以视为发给对象3的消息。 最简单的ruby函数 def say(sentence) result= Hello, I wa
Tag:
ruby
Gem Gatherer
@ 2007-10-25 00:40:07
A good article on Ruby implementations by JRuby main dev
http://headius.blogspot.com/2008/04/promise-and-peril-for-alternative-ruby.html It's pity to see XRu
Tag:
ruby
implementations
Jan
@ 2008-04-28 14:46:39
[Announce] urlview.rb
I'm glad to annouce the new boring/repetitititititititititititive tool: urlview.rb. It will help u t
Jan
@ 2008-04-15 21:05:43
Make sure to rebuild index before testing when using ferret
After beaten the bug in my acts_as_ferret model testcase, I think it's valuable to remind you: remem
Jan
@ 2008-03-04 13:23:02
Ruby 1.9 with Symbol#to_proc and (soon) curried Procs
Via InfoQ. * Symbol#to_proc本是rails的甜头。一个框架居然反过来影响了它所用的语言,甚是好玩 * 突然发现curry和linus鼓吹的DVCS颇有几分神似阿,汗
Jan
@ 2008-02-27 15:04:22
[zz] Ruby's Thread#raise, Thread#kill, timeout.rb, and net/protocol.rb libraries are broken
via Although you don't have to take my word for it, eventually you're going to have to accept the truth. Thread#kill, Thread#raise, timeout.rb, net/protocol.rb all suffer from these problems. net/protocol.rb could be fixed to use nonblocking IO (sele
Jan
@ 2008-02-25 15:25:03
Implement external iterator by callcc
Said ruby 1.9 will add a new useful feature named external iterator - the kind of iterator you used in Java/Cpp. It's interesting to implement one ourself by using callcc, in 1.8.6. Note: It's easy to turn this piece of code into a module or make the
Jan
@ 2008-02-20 13:19:24
Couldn't agree more ...
今天捧起了 The Rails Way ,越看越惊奇,Obie同志的经历和想法和我他妈的太一致了。。。我真怀疑他曾经在某公司干过。。。谈到企业级应用的时候: There are significant underlying reasons for the difficulties of software development, especially in enterprise environments: • Hard-to-understand legacy systems. &bu
Jan
@ 2008-01-31 01:17:47
Ruby Fools
Join the launch of the first Ruby Fools conference on April Fools' Day in Copenhagen, Denmark.
Jan
@ 2008-01-25 19:25:29
怒了
相同的算法,为什么我的总是outofmemory? 555 ruby 1.8在使用到1G的时候就暴了,ruby 1.9在把所有内存耗光后暴掉,不是说ruby string对象是cow的吗,靠 update: 终于搞定,问题出在Array#sort上面,string的确是cow的,但是sort会调用dup - 我没有深究,貌似是dup引起了真正的对象复制,导致内存暴涨,可能dup太底层了所以绕过了cow机制?用sort!就可以避免这个问题,内存消耗可以控制得很低。奇怪的是只能在1.8下运行通过,在
Jan
@ 2008-01-22 20:23:01
Pipelines Using Fibers in Ruby 1.9
Ruby1.9中加入的轻量级线程fiber,纤程,让人很迷茫:这玩意到底有啥用?一开始人们说可以用来模拟continuation,然后呢?Dave Thomas给我们指出了一条小路:用来模拟pipeline! 该牛人通过文章告诉我们,人们最终可以利用fiber实现如下效果: puts (even_numbers | tripler | incrementer | multiple_of_five ).resume是不是很好玩?好玩是无庸置疑的,fiber到底能用多大用处,还得实践来证明,咔咔。
Jan
@ 2008-01-11 17:51:10
Ruby 1.9 (4): block和proc,以及异常
题外:block和proc中文怎么说? -.- Proc#yield 新增的一个方法,让你直接调用一个block/proc,相当于Proc#call proc = Proc.new {|a,b| a+b} proc.yield(1,2) # = 3 修改了不带参数的block调用arity返回值 lambda{}.arity # = -1 in 1.8 lambda{}.arity # = 0 in 1.9 proc现在是Proc.new的别名 而在1.8中proc是lambda的别名, 比较
Jan
@ 2008-01-10 23:11:13
Ruby 1.9 (3): 类和模块
Module#instance_methods, #private_instance_methods, #public_instance_methods 在1.9中返回一个由Symbol构成的数组,而不是String数组 class X; def foo; end; end X.instance_methods(false) # = [:foo] in 1.9, [ foo ] in 1.8 Module#const_defined?, #const_get 在1.9中可以接受一个额外的参数,指
Jan
@ 2008-01-10 01:27:54
Ruby Parser 1.0: 用纯ruby实现的ruby解析器
ruby社区期待已久的东东,它意味着一个支持自动代码补全以及错误提示之类的不依赖Java的ruby ide将会到来, textmate怎么办? Rubinius也会获得好处, 哦也. 谢谢大牛Ryan Davis.
Jan
@ 2007-12-30 00:16:56
Ruby 1.9 (2): 内核与对象
BasicObject 1.9增加了一个新的顶级类,很纯洁 BasicObject.instance_methods # = [:==, :equal?, : ! , : != , __send__] Object.ancestors # = [Object, Kernel, BasicObject] 注意instance_methods返回的array中现在都是symbol对象,以前是string对象. #instance_exec 为特定的instance执行block BasicObjec
Jan
@ 2007-12-28 16:05:23
|
|
免费注册 -
已注册用户登入管理 -
热门关键词(Tags) -
常见问题帮助 -
设为首页 -
加入收藏夹 |