作者: liubin 日期: 2006年05月18日  分类:Ruby  已有 4 条评论 
JRuby,BSF,JSR223
原来以为JRuby的开发可能停滞不前了,但好象目前还挺积极的。 JSR223是为了让Java和脚本语言能交互。BSF的全称是Bean Scripting Framework ,它是一些能在Java应用中执行脚本语言的类。脚本语言也可以访问Java的类和方法等。  
2197 days前 / 1,475 次浏览阅读全文
作者: liubin 日期: 2006年05月15日  分类:Ruby  快抢沙发 
Poor man’s WordPress spam prevention
在留comment的时候加上一个问题,类似于很多网站的图片文字那样。防止spam的。 http://bohnsack.com/2006/03/12/poor-mans-wordpress-spam-prevention/
2200 days前 / 1,271 次浏览阅读全文
作者: liubin 日期: 2006年05月15日  分类:Ruby  快抢沙发 
[ANN] RMagick 1.11.0
RMagick 是一个用来处理图像的库,支持90种格式,比如GIF,JPEG,PNG等。 这次发布包括修正的bug和新增功能。 软件主页: http://rubyforge.org/projects/rmagick/
2200 days前 / 896 次浏览阅读全文
作者: liubin 日期: 2006年05月14日  分类:Ruby  快抢沙发 
安装了lilina
http://ruby.nanshapo.com/ 收集的主要都是关于Ruby的blog 如果你有什么好的推荐,也欢迎告诉我一下。
2201 days前 / 1,164 次浏览阅读全文
作者: liubin 日期: 2006年05月12日  分类:Ruby  已有 3 条评论 
ANN: ruby2c 1.0.0 beta 5 released
时隔一年,ruby2c的新版本发布了。 不过,这只是个预览版。 http://rubyforge.org/projects/ruby2c/
2202 days前 / 1,039 次浏览阅读全文
作者: liubin 日期: 2006年05月12日  分类:Ruby  已有 3 条评论 
EvaluatingRuby-by martinfowler
怎么看待Ruby和Rails http://martinfowler.com/bliki/EvaluatingRuby.html
2203 days前 / 1,306 次浏览阅读全文
作者: liubin 日期: 2006年05月11日  分类:Ruby  快抢沙发 
删除一个类的定义
class A end   a = A.new   puts a.class   class Object   remove_const 'A' end   puts a.class   begin   b = A.new rescue NameError   puts 'Not Found Class A' end  执行结果:     A     A     Not Found Class A
2204 days前 / 1,348 次浏览阅读全文
作者: liubin 日期: 2006年05月11日  分类:Ruby  只有 1 条评论 
Seeing Metaclasses Clearly
meta class 是一个定义其它class的class。 http://whytheluckystiff.net/articles/seeingMetaclassesClearly.html
2204 days前 / 1,246 次浏览阅读全文
作者: liubin 日期: 2006年05月11日  分类:Ruby  快抢沙发 
Understanding Ruby blocks, Procs and methods
讲了Proc,block,方法等。 http://eli.thegreenplace.net/2006/04/18/understanding-ruby-blocks-procs-and-methods
2204 days前 / 930 次浏览阅读全文
作者: admin 日期: 2006年05月11日  分类:Ruby  已有 3 条评论 
测试代码
  def bulk_mode     result = 0     case self.status     when ACTIVE       result |= (1 << ASSIGN_CMD)       result |= (1 << RESOLVE_CMD)     when RESOLVE_RANGE       result |= (1 << REACTIVATE_CMD)       result |= (1 << CLOSE_CMD)     when CLOSED       result |= (1 << REOPEN_CMD)     end     result   end
2204 days前 / 4,130 次浏览阅读全文