道喜技术日记 .^. 天天红玉世界

Rails Ruby MacOSX 。。。创新来自于刻苦的实践和勤奋的思考... www.hhtong.com


网站世界:设计最好的演讲稿网站parleys.com

Gudao Luo2008-12-30 at 09:50发表的

标记: hhtong, ppt, websites

Apple世界:在iPhone上利用软件Stanza阅读电子图书

Gudao Luo2008-12-29 at 08:05发表的

在iPhone上利用软件Stanza阅读电子图书
  • 前提条件
    • 在iPhone上软件Stanza安装软件
  • 使用方法
    • 在Stanza上输入网站地址:http://218.85.74.53/ebooks
  • 在Mac/PC上访问iPhone书库网站
    • http://feedbooks.com/
    • http://www.hifiwiki.net/stanza/library
    • http://218.85.74.53/ebooks/index.asp
  • 在iPhone上软件Stanza的书库网站
    • http://books.blah.me/index.atom
    • http://books.80.hk
    • http://books.blah.me/books/index.atom
    • http://www.hifiwiki.net/stanza
  • 参考资料
    • http://apple4.us/2008/03/iphone-22.html
    • http://groups.google.com/group/blah-library
    • http://apple4.us/2008/11/stanza.html
    • http://www.someok.com/2008/10/iphone-epub-library.html
    • http://toc.oreilly.com/2008/11/experimental-oreilly-ebook-iphone-integration-with-stanza.html
    • http://blog.threepress.org/category/epub/
    • http://www.ibm.com/developerworks/edu/x-dw-x-epubtut.html
标记: apple, epub, iPhone, stanza

Rails2.2世界:国际化功能问与答(五)

Gudao Luo2008-12-28 at 15:02发表的

国际化功能问与答(五)
* 本地化问题(五):如何对模型进行本地化?
模型文件代码
# db/migrate/20081115224456_create_posts.rb
class CreatePosts < ActiveRecord::Migration
def self.up
create_table :posts do |t|
t.string :title
t.text :body
t.boolean :published t.timestamps
end
end
针对模型的本地化文件
# config/locales/zh-CN.yml
# I18n.locale="zh-CN"
# I18n.translate 'activerecord.models.post'
# I18n.translate 'activerecord.attributes'
# I18n.translate 'activerecord.attributes.post'
# I18n.translate 'activerecord.attributes.post.title'
zh-CN:
activerecord:
models:
post: 帖子
attributes:
post:
title: 标题
body: 内容
published: 发布时间
标记: Rails, chinese, faq, i18n, rails22

Rails框架世界:Rails 3有哪些传闻

Gudao Luo2008-12-26 at 11:30发表的

Rails 3传闻
  • Rails 3传闻
    • Rails 3 将在2009年5月的RailsConf大会上发布开发版本;
    • Rails 3 让用户选择持久层 ActiveRecord 或者 DataMapper使用
    • Rails 3 让用户选择 完整Rails版本 或者 核心Rails版本使用;
    • Rails 3 = Rails 2.2.3 + Merb 1.0
    • 性能提高是Rails 3的重点
标记: Rails, merb, rails3

计算机世界:创造你的计算机程序语言

Gudao Luo2008-12-14 at 13:43发表的

创造你的计算机语言
  • 说明
    • 你是否在创造。。。

      a full programming language
      完整程序语言,
      a domain-specific language
      特定领域语言(DSL)
      a simple data format
      简单数据格式,

    • Waxeye将使得你变得更快。

Rails2.2世界:国际化功能问与答(四)

Gudao Luo2008-12-13 at 10:04发表的

国际化功能问与答(四)
  • 本地化问题(四):本地化工作方法
    • 重新载入本地化文件命令:
      I18n.reload!
    • 设置当前本地化语言
      I18n.locale = “zh-CN”
    • 查看当前本地化语言
      I18n.locale
    • 查看本地化内容信息
      I18n.t “time.formats”
    • 简化本地化函数方法
简化本地化函数方法
class String
def t(locale="zh-CN")
I18n.t self.to_sym, :locale => locale
end
end
"hello".t
"hello".t "en"
标记: Rails, chinese, faq, i18n, rails22

Ruby实例世界:静态网页生成器Jekyll on Thin

Gudao Luo2008-12-12 at 03:57发表的

静态网页生成器Jekyll on Thin
使用Jekyll on Thin软件方法
git clone git://github.com/mojombo/jekyll
cd jekyll
 
git clone git://github.com/mojombo/tpw.git
 
bin/jekyll ./tpw/ ./sites/public/
 
thin start -A file -c sites/public/
 
http://localhost:3000/index.html
  • 说明
    • Jekyll是一款简单易于创建博客的静态网页生成器。
    • TPW是Jekyll的应用实例。

Windows世界:系统优化工具CCleaner下载超过二亿次!

Gudao Luo2008-12-11 at 04:57发表的

系统优化工具CCleaner下载超过二亿次!
  • 英文说明
    • CCleaner is a freeware system optimization, privacy and cleaning tool.
  • 中文说明
    • 一款免费的系统优化工具;
    • 清除系统的不使用和临时文件;
    • 使得系统运行更快;

网站推荐:澳大利亚社区网站

Gudao Luo2008-12-10 at 02:37发表的

澳大利亚社区网站
标记: Rails, Ruby, websites

Apple世界:设置环境变量实例

Gudao Luo2008-12-09 at 10:21发表的

设置TextMate的环境变量方法
cd ~
 
mkdir bin
 
ln -s /Applications/TextMate.app/Contents/Resources/mate ~/bin/mate
 
vim .bash_profile
export PATH="$HOME/bin:$PATH"
 
source .bash_profile
 
mate .

Cucumber实例世界:Cucumber on Rails深化实例(四)

Gudao Luo2008-12-05 at 08:48发表的

Cucumber on Rails深化实例(四)
标记: Rails, Ruby, Testing, bdd, cucumber, sdd

Apple世界:通用即时通讯工具Adiumx

Gudao Luo2008-12-04 at 02:51发表的

通用即时通讯工具

图书世界:免费的RJS教程

Gudao Luo2008-12-03 at 14:57发表的

免费的RJS教程
  • 说明
    • RJS教程是使用早期的Rails版本为基础的
    • RJS中文教程不是完整的翻译版本
    • 谁来着手以Rails 2.2版本重新写该教程的命令?

网站推荐:获取网络世界知识的快速途径www.yeeyan.com

Gudao Luo2008-12-02 at 10:34发表的

标记: Rails, Ruby, website, yeeyan

Cucumber实例世界:Cucumber on Rails最简单实例(三)

Gudao Luo2008-12-01 at 23:09发表的

Cucumber on Rails最简单实例