Mon 10 November, 2008

IBM have just wrapped up a new DB2 adapter that fixes a bunch of bugs, adds support for a range of features, and works with the rails -d setup to create a new Rails application straight for DB2. Check it out: A major milestone for DB2 on Rails.
add to del.icio.us. look up in del.icio.us.
add to furlSun 09 November, 2008

add to del.icio.us. look up in del.icio.us.
add to furlSat 08 November, 2008

Rails, as you probably know, is under active development. So, for those of you who don’t have time to read every commit to the source, we’ve decided to revive this section of the weblog. This time around, I’m covering 3 weeks of commits: the time since Rails 2.2 RC1 (otherwise known as Rails 2.2.0) was released. Though there aren’t any major new features being added as Rails drives towards the 2.2 release, that doesn’t mean the source has been completely quiet: there have been about 75 commits in that three-week period. Here’s a look at some of those changes.
In the run-up to 2.2, we’re seeing a batch of little bug fixes, as people try to ensure quality in the release. These include:
- Squashing a binary data corruption bug that surfaced in the PostgreSQL adapter. commit
- The regex behind redirect_to can now accept a wider variety of URL schemes, making it possible to redirect to some destinations that were previously inaccessible. commit
- A regression in date_select and datetime_select that could raise a Null Pointer Exception under some circumstances has been fixed. commit
- The sanitize helper has been fixed to avoid double escaping already properly escaped entities. commit
- FormTagHelper has been stopped from generating illegal HTML if the name contains square brackets. commit
- A memory leak was squashed in Active Record scoped methods. commit
Some of the major features for 2.2 have been getting fine-tuned as well. There’s been work to clean up some loose ends in the thread safety department, and changes to make the I18n backend reload its translations in development mode. The included Prototype bits were bumped to the latest 1.6.0.3 release. The code for configuring, loading, and vendoring gems has had some attention, and the code for maintaining database connection pools has come in for some fine-tuning as well.
Just because we’re in feature freeze doesn’t mean that a few new features can’t sneak in:- The current_page method is a bit more reliable now in that it ignores options you don’t explicitly supply (making it more friendly to URLs that use the query string for pagination and the like). commit
- The default logging has been cleaned up to be less chatty: you’ll see fewer duplicate log messages as Rails goes about its business. commit
- The render method now takes a
:jsoption to allow you to directly render inline JavaScript without using RJS. commit - If you’ve got a current (Ruby 1.8.7 or greater) version of Ruby, Action Mailer turns on
STARTTLSif the server supports it; this makes Action Mailer compatible with GMail without the need for plugins. commit
One final note: I’m deliberately not trying to cover every single commit here; just those ones that struck me as most interesting. But if I left out something that you think is highly significant, feel free to add a pointer in the comments!
add to del.icio.us. look up in del.icio.us.
add to furlFri 07 November, 2008

Thu 06 November, 2008


- 安装说明
- 下载:wget http://tinyurl.com/5odt4o 。
- 解压: 双击文件wget.zip
- 进入该解压目录,可以看到文件:wget,wgetrc和wget.1 。
- 设置环境变量“:/usr/local/bin”,具体方法参考: 如何设置环境变量 MacOSX on Leopard
- 执行下面命令
- 说明
- 上面是使用可执行文件的安装方法,如果想从源代码开始安装它的话,那么请看下面参考文献的连接。
- 参考文献
- wget for Mac OS X Leopard http://tinyurl.com/4rlzns
- Building wget for Mac OS X http://tinyurl.com/d9b39
add to del.icio.us. look up in del.icio.us.
add to furlWed 05 November, 2008

add to del.icio.us. look up in del.icio.us.
add to furl
听着张惠妹的《解脱》,看着奥巴马当选美国总统的新闻。
对于政治,我不那么关心,对于奥巴马的当选,我看到的更多是一个美国梦的实现。和人说过,如果奥巴马当了总统,我就去买一本他的《无畏的希望》来读,看来要多读一本书了。当选的奥巴马经过了最初的喜悦,很快就会面对的更现实的问题:经济危机。经济危机,这个最初曾在初中政治课本上见识到的词,这一次迈着大步重回人间。
曾以为经济危机离自己很远,直到公司厨房里的零食开始减少,我才知道,原来,还是会有一些影响的。
今天下午,当我和几个同事正在热火朝天的讨论一个问题的时侯,忽然项目组召集开会。老大告诉我们一个坏消息,项目取消了!
原因很简单,在这个经济危机的冬日,客户准备扎紧腰带过苦日子了,所以,所有的项目都要取消了。比起厨房的零食,这次,经济危机的冲击更加直接。虽然老大说了很多,说我们这段时间的工作是有价值的,希望大家最后在把一些整理和收尾的工作做好。但散会后,大家的表现一目了然,刚还在为一个问题争论不已的我们,一下子失去了前进的动力。我们操起了放下好久的Wii,放肆的在“工作”时间打起了网球,甚至在其他人还在忙碌的时侯,一群人就奔向了KTV,准备引吭高歌一番。
对于我而言,听到“取消”的那一刻,我的思绪却飞回了六年前。
那时,我刚刚离开校门,还是一个干劲十足的毕业生。我放到了一个Java项目上,做的是一个彩信网关,那时侯,我们称之为多媒体短信(MMS)。这是我在职业路上真正意义的第一个项目,我不懂业务,不了解Java,不知道网关为何物。于是,我拼命的学着项目需要的各种各样的技术,写着尽可能有用的代码,也犯着初学者可能的各种各样的错误。还记得当时我是分配和一个在读研究生一起写协议,还有一个用于测试的客户端模拟器,他忙着写自己毕业论文,于是,我几乎一手包办了所有代码。当我的模拟器与我们的系统成功互通,我无比的满足。
在2003年新年到来之前,项目负责人宣布,项目取消了。当时的我,一下子就懵了,我拼命的回忆着自己到底做错了什么。现实是,这个彩信网关当时根本就没有需求,完全是部门领导拍脑门想出来的东西,当他们看到短时间之内不可能有真正的需求时,终止了这个项目。
那个飘雪的冬夜,项目负责人带着我们几个在一家朝鲜族饭店吃了散伙饭。
那之后,我知道,原来技术并不能决定一切。
时隔六年,现如今的我经历了很多,也能够更加坦然的面对同样的场景。项目死掉的直接原因通常与程序员无关,好程序员可以对一个项目的成功推波助澜,但却很难毁掉一个项目,放在大背静下更是如此。
冬天来了,春天还会远吗?
add to del.icio.us. look up in del.icio.us.
add to furl
add to del.icio.us. look up in del.icio.us.
add to furlTue 04 November, 2008

If you are speaking at RubyConf this year, we have a special opportunity for you.
Are You Speaking at RubyConf 2008?
If so, congratuations! And have we got a deal for you …
Wednesday evening, Nov 5, at 6:00 pm, (that’s the night before the conference) we are inviting all speakers to a special training session. I’m going to be sharing some ideas for putting together and delivering a good presentation.
After my talk, Patrick Ewing and Adam Keys are geared up to do some Powerpoint Karaoke with everyone there. I’m not even sure what Powerpoint Karaoke is, but it sounds like fun.
I hope to see everyone there.
Update (4/Nov/08)
I’ve talked to Adam today. He says that Patrick isn’t going to able to make RubyConf this year, but we will be ready to roll with Powerpoint Karaoke anyways.
Update (5/Nov/08)
It looks like the speakers training will be in the Olympic Room tonight. The Olympic Room is on the same floor as the registration desk. Go to the left past the elevators and turn right down that hall (or ask someone who looks like they know what they are doing).
add to del.icio.us. look up in del.icio.us.
add to furl
If you haven’t looked at the state of Rails documentation lately, it’s time to look again. The new Ruby on Rails Guides page includes 14 separate guides for Rails developers, with topics ranging from “Getting Started” to routing, security, testing, and debugging. That’s over 70,000 words of help content for Rails users that didn’t exist two months ago when we launched the Rails Guides project.
But we’re not done yet! We’re starting phase 2 of the Guides project, and planning a fresh batch of content to add to what’s already there. Our goal is to have a single page where you can find all of the information you need to be an effective Rails developer. Remember, though: this is open source. That means we want your help too!
Here’s what you can do to get involved:
- Read about the process of and rewards for contributing on the Hackfest page.
- Check the list of available tickets in our Lighthouse project, and sign up to write a guide.
- Submit corrections, suggestion, bugs, or patches for the existing guides. You’ll find a link to the relevant Lighthouse ticket at the bottom of each guide.
- Let us know what other guides you think should be added – whether you want to write them, or just hope that someone else will. Just leave a note in the comments here and we’ll get your idea into the process.
You’ll usually find some of the documentation team hanging around in #docrails on IRC. Come join us and help the community!
add to del.icio.us. look up in del.icio.us.
add to furl
add to del.icio.us. look up in del.icio.us.
add to furlSun 02 November, 2008


- 说明
“Its interesting to see that recently things like CouchDB or BigTable, and other implementations treat the database as a big hash. Or implement a big hash as a database are popping up and that’s very interesting.”—-DHH
- CouchDB on Rails何时到位?
- 值得好好学习的数据库系统!
- Ruby语言实现的CouchDB接口
- ActiveCouch home http://activecouch.googlecode.com/
- ActiveCouch Source
- CouchResource
- CouchObject
- CouchObject Home
- CouchObject RDoc
- 参考文献
- Installing CouchDB on MacOSX
- 最简单地安装CouchDB到MacOS
- 基于RESTful的面向文档数据库
- ActiveCouch – A Ruby Wrapper for CouchDB
- Futuretalk: CouchDB
- ActiveCouch – a CouchDB library in the spirit of ActiveResource and ActiveRecord
- Installing CouchDB 0.8.0 on Ubuntu 8.04
- ThruDB for Rails? ActiveDocument
- Thrudb – faster, cheaper than SimpleDB
- Damien Katz
- CouchDB Implementation
add to del.icio.us. look up in del.icio.us.
add to furl


