A implementation of delegate pattern (2)》的相关内容

Rails 1.2新特性体验(杂记)

1 Range#to_s(:db) >> (7.days.ago..1.day.ago).to_s(:db) => "BETWEEN '2006-12-11 02:06:50' AND '2006-12-17 02:06:50'" 2 Time Calculations >> Time.days_in_month(2) => 28 >> Time.now.seconds_since_mi ...
by melin 2006-12-21 浏览 (10315) 回复 (11) 关键字:

Rails的怪异作法 -- 关于config

说ruby是怪异的语法有点不妥当,动态语言里面不乏这样的语法出现。但是看了一些源码后发现,使用ruby的用法真的各有不同,就像大家以前说的,ruby每个人写出来的可能都不同。 现来说Rails里面如何加载config的吧。 在java里面config绝对是一个resource文件,然后通过读取配置的工具加入进来,在分析处理。 在ROR里面完全不是这么回事。 1.首先大家要了解的是,在我们启 ...
by 差沙 2006-11-21 浏览 (8846) 回复 (19) 关键字:

自己翻译的Java.In.A.Nutshell.5th中泛型一章,欢迎拍砖把文章砸的漂亮一些

做些说明吧:转网页的东西,改起来稍觉得的麻烦,就可能滞后。不过pdf文件会不定时的及时更新 4.1. Generic Types Generic types and methods are the defining new feature of Java 5.0. A generic type is defined using one or more type variables and has ...
by Julysea 2006-09-21 浏览 (11470) 回复 (19) 关键字:

Ruby每周一测 - 容易记的电话号码

Ruby每周一测 - Ruby Quiz 是Ruby Talk邮件列表上的一个持续了很长时间活动,每周有一个小题目被提出来,然后大家进行解答讨论。Amazon上还有相关的书: Best of Ruby Quiz。我尝试挑选其中的一些题目进行翻译,做一个每周一测系列,欢迎大家参与讨论。 -----题目分割线----- 以前在国外的影视或者广告中看到出现含字母的电话号码,比如1-800-PICK- ...
by Quake Wang 2008-04-16 浏览 (4707) 回复 (16) 关键字:

TOB - An ORM Replacement Unleashes Real Power Of Java OO Per

Useful Links: * See http://tob.ableverse.org/benchmarks.html to get shock by extreme database performance! * See http://www.webofweb.net ( CDDL source code at http://wow.dev.java.net ) for TOB in ac ...
by 歆渊 2006-11-23 浏览 (10759) 回复 (52) 关键字: tob

8.1. Working with Arrays

Arrays in Ruby are indexed by integers and are zero-based, just like C arrays. There the resemblance ends, however. A Ruby array is dynamic. It is possible (but not necessary) to specify its size ...
by 温柔一刀 2008-01-19 浏览 (2449) 回复 (0) 关键字: the ruby way

9.2. Working with Stacks and Queues

Stacks and queues are the first entities we have discussed that are not strictly built into Ruby. By this we mean that Ruby does not have Stack and Queue classes as it does Array and Hash classe ...
by 温柔一刀 2008-01-19 浏览 (2450) 回复 (0) 关键字: the ruby way

非常有用的101道算法部分常见面试题

1. Given a rectangular (cuboidal for the puritans) cake with a rectangular piece removed (any size or orientation), how would you cut the remainder of the cake into two equal halves with one straight ...
by utopiazh 2006-10-07 浏览 (343) 回复 (1) 关键字:

关于Rails的用户认证

最近对于用户认证研究了一下,有点心得 把资源顺便整理一下,以备后用 http://notahat.com/posts/19 http://onrails.org/articles/2006/02/18/auto-login The "remember me" checkbox 2 months ago Here's a nifty solution that I came up ...
by 夜鸣猪 2008-05-16 浏览 (387) 回复 (0) 关键字: rails login

A implementation of delegate pattern (1)

First of all, use SimpleDelegator class 1.first new a class 2.new another class extends SimpleDelegator,and donot forget require "delegate" at top of file 3.in this subclass ,super(obj) should be add ...
by 默海飞瀑 2006-10-30 浏览 (479) 回复 (0) 关键字: ruby

在Grails中如何配置过滤器?我找不到web.xml!

突然发现找不到地方写过滤器配置,因为WEB-INF中没有web.xml文件! 使用grails war生成的war包中倒是有,看来是临时生成的! 现在我想配置自己的过滤器该往哪里写?!
by zengsun 2007-12-02 浏览 (956) 回复 (10)

Jim Weirich -- Advanced Ruby Class Design

Jim Weirich 是rake,builder等作者,他在做<<Advanced Ruby Class Design>>演讲的时候,列出了一段很漂亮的代码, 在此提供给大家分享,供大家学习,Jim Weirich可是骨灰级的programmer哟 # BlankSlate provides an abstract base class with no predefined ...
by Transformers 2007-12-20 浏览 (407) 回复 (0)

DMD 1.015 has been released!

This is NOT the const/final/invariant thing. It is necessary to correct a memory corruption bug in the gc. http://www.digitalmars.com/d/changelog.html http://ftp.digitalmars.com/dmd.1.015.zip
by oldrev 2007-06-06 浏览 (418) 回复 (4)

DMD 1.011发布

引用 What's New for D 1.011 Apr 11, 2007 New/Changed Features     * Extended Codeview symbolic debug output with LF_OEM types.     * Extended Dwarf symbolic debug output ...
by qiezi 2007-04-11 浏览 (443) 回复 (4)

关于ddbi的问题

原因搞清楚了,原来是调用约定的问题,mysql导出的方法名可能是用def文件指定的,而在ddbi中,根据extern (windows)的约定会用_mysql_free_result@4的方法来引用函数名 按照qizi的方法,重生成一个lib就OK了 qiezi 写道 1、从dll生成def文件 2、在def文件中使用alias改名 3、从def生成lib 网上有一些,比如这篇http://w ...
by tomqyp 2007-03-24 浏览 (709) 回复 (4)

ruby 1.9标准库的变动

还在开发版本的ruby 1.9对标准库进行了大量的修改,主要的修改包括: 1、base64库被删除,改用Array#pack和String#unpack来代替 2、增加了CMath库,提高数学运算速度 3、Enumerator已经内建 4、增加了Fiber库,引入了协程编程这种新的并发编程技术 5、jcode被删除,编码信息可以用注释来声明 6、增加了json库 7、SOAP库被删除 8、调用W ...
by robbin 2008-04-13 浏览 (1163) 回复 (5) 关键字: ruby 1.9

Rails 2.0 Preview Release

原文: http://weblog.rubyonrails.org/2007/9/30/rails-2-0-0-preview-release Action Pack: Resources 1,RESTful风格改进: /people/1;edit将变成/people/1/edit 2,添加routing名字空间 map.namespace(:admin) do |admin| ad ...
by hideto 2007-10-04 浏览 (1026) 回复 (0) 关键字: Rails 2.0

拉风+酷毙的HotRuby: 在一个JavaScript和Flash的虚拟机上跑Ruby

HotRuby是一个在Javascript和flash上的虚拟机上跑ruby代码并编译成opcode的项目。你可以通过在网页上嵌入<script type=”text/ruby”>…</script>并在之间写ruby脚本。HotRuby会识别并编译为远程脚本然后由javascript和flash的虚拟机来执行,显示在页面上。这里演示一 ...
by robertlyc 2008-03-27 浏览 (5829) 回复 (21) 关键字:

相关问答

赞助商链接