知易行难

Archive for December, 2007

ActiveScaffold: A Rails Plugin for Dynamic AJAX CRUD interfaces

Dec 30, 2007

Tags

ActiveScaffold is a rails plugin that helps free yourself from the pain of coding CRUD interfaces for models on the admin side.

As the successor to the popular AjaxScaffold project, ActiveScaffold has these features:

Continue reading»

Netscape寿终正寝

Dec 29, 2007

Tags

Netscape官方Blog透露,2008年2月1日起将停止对Netscape浏览器所有版本提供支持。这意味着这个著名的浏览器先锋正式退出历史舞台。Netscape Navigator

Continue reading»

Safe Way to Try Ruby 1.9

Dec 28, 2007

Tags

Ruby 1.9.0备受期待:性能的大幅提高、语言本身的演进等等。不过因为这是一个development release,不适合马上用于生产环境(很多现有的库不会被兼容)。那就用一种更安全的方式来使用1.9.0吧。

Continue reading»

如何开源

Dec 27, 2007

Tags


开源 or 不开源,这一直是个问题。

Okay我承认有点标题党。这里要说的不是软件的开源,而是生计与赚钱的问题,即开源节流中的开源也。2007年是重要的一年。猪肉价格的飞涨使更多的普通老百姓知道(虽然不一定了解)了什么是CPI。大家都在说:什么都涨,就工资不涨。

Continue reading»

圣诞迷思

Dec 24, 2007

Tags



又是说Merry X’mas和Happy New Year的时候了。不知是第三极还是那座漂亮的教堂,整个下午都在播着颂歌。

2007整一年,我是在北京度过的。我打心底里不喜欢这座拥挤不堪、交通异常混乱的城市。如果你认为北京是“奋斗”中描述的那个样子,那么很遗憾,你错了。每回我说北京的坏话,总有人冒出来让我滚出北京。我们也经常骂自己的国家,但能简单的滚出国门了事吗?

Continue reading»

Leopard: Calling Dictionary Right from Browser

Dec 23, 2007

Tags

Learned from Usingmac.com today a way to launch Dictionary from the browser:

However, if you’re not thinking of using your mouse, you can move your cursor to your browser url bar (L) and then type dict://apple, which apple is the search term. For your surprise, your Dictionary will be triggered.

Leopard: Calling Dictionary Right from Browser

Also tried Firefox and found works too. Great trick!

RubyGems 1.0.0发布

Dec 21, 2007

Tags


RubyGems 1.0.0版本发布了(原最高版本为0.9.5)。用以下命令更新至1.0.0版本:

sudo gem update –system

要了解RubyGems 1.0.0与以前版本的差别,可以参考这里

rails 升级至 2.0.2

Dec 18, 2007

Tags



Rails 2.0.2版本已经放出。最主要的变化有:

  • 默认使用SQLite3数据库。作出这一调整的一个原因是SQLite3比MySql来得简单,另一个原因是Leopard的开发环境默认安装的是SQLite3。参考这里了解修改Leopard随带的Rails 1.2.3默认数据库的方法;或者在创建rails应用的时候用rails -d mysql myapp来指定使用MySql数据库。

  • 在production环境下运行时,不再监测视图模板的变化。好处是减少了IO活动,坏处是,呃,修改站点外观也要重启(应用)服务器。可以通过修改production.rb中的config.action_view.cache_template_loading来更改这一行为。

另外修改了不少bug。可以通过gem install rails来升级至2.0.2版本。建议升级前先用gem update –system将gem升级至0.9.5版本。

« Previous Entries

Archives: Monthly or