网络图书:《Learn Ruby The Hard Way》繁体版本
由Gudao Luo在2011-10-12 at 19:58发表的
软件世界:Mac系统屏幕取词
由Gudao Luo在2011-08-09 at 20:26发表的
- 道喜评论:
- 欧路词典在Mac上可以屏幕取词的词典翻译软件。
- 欧路词典号称是“首个支持苹果系统屏幕取词、划词搜索的词典软件”。
- 欧路词典是免费的。
- 使用方法
- 标记英文单词
- CMD+SHIFT+2
- 参考资料
- 打开 Mac App Store 购买和下载应用软件
- http://www.iteye.com/wiki/topic/1083389
- 欧路词典下载网址
网站推荐:rubylang.info
由Gudao Luo在2011-08-08 at 22:51发表的
Rails实例世界:超轻量级授权包Six
由Gudao Luo在2011-08-07 at 11:04发表的
软件世界:键值数据库LevelDB
由Gudao Luo在2011-08-06 at 10:07发表的
图书世界:MongoDB in Action (free PDF)
由Gudao Luo在2011-08-05 at 09:13发表的
Rails世界:Rails第四版翻译思考(五)
由Gudao Luo在2011-08-04 at 17:34发表的
- 英文:
- Default scopes apply to all queries that start with this model.
- We ask our customer whether she had a preference regarding the order things should be listed in, and we jointly decided to see what happened if we displayed the products in alphabetical order. We do this by adding a default_scope call to the Product model. Default scopes apply to all queries that start with this model.
- 中文:
- 这种默认的scope方法/函数适用于所有该模型的查询。
- 道喜评论
- 看来必须承认:这句话原作者说明不够透出。
- 书上代码default_scope是一个方法/函数,这是有特殊作用的方法/函数,其作用源代码是这样说明的:http://tinyurl.com/6zdewb3
- You can define a scope that applies to all finders using ActiveRecord::Base.default_scope.(这个方法/函数可以作用/适用于所有的查询。)
- 这句话使用default scopes,这说明还有不是默认(default)的scope方法/函数,请看API说明: http://tinyurl.com/366bkjo
- 这种默认方法/函数可以在一个模型里存在多个。所以原文使用复数。请看下面代码。
- function或者method,在软件科学中,我以为,它们是一个概念。但是,就是我写自己东西,也会使用方法或者函数。必须提醒开始接触Rails框架的朋友:在Ruby语言中,对象或者类的属性本身就是方法/函数。我以为,没有必要太多抓住“概念”,而是要理解“概念”,更重要的是:自己真正明白”概念“。
- 这里的Default scopes肯定是指:default_scope 方法/函数。我以为,scopes不应该翻译为“范围限定,范围设定,作用范围”等中文含义。
- 读者是否会联想到,”默认的scope(方法/函数)就是default_scope 方法/函数“?所以利用上下文关系,翻译为“所有这类函数”或者“所有这类方法”,是否更为妥当?
苹果世界:金山词霸
由Gudao Luo在2011-08-03 at 20:19发表的
网站推荐:十个最受欢迎的博客
由Gudao Luo在2011-08-02 at 18:24发表的
Ruby世界:对象属性扩展软件包
由Gudao Luo在2011-08-01 at 23:51发表的
苹果世界:学习OS Lion系统的新功能(一)
由Gudao Luo在2011-07-31 at 23:18发表的
Rails世界:软件包delayed_paperclip
由Gudao Luo在2011-07-30 at 17:21发表的
- 道喜评论
- 优化文件上传过程;
- 基于软件包 paperclip
- 实现上传过程的后台运行;
图书世界:《JavaScript: The Definitive Guide, 6th Edition》英文版本
由Gudao Luo在2011-07-29 at 10:17发表的
苹果世界:如何在iPhone和iPad上截屏
由Gudao Luo在2011-07-28 at 15:20发表的
苹果世界:轻巧好用的视频转换软件-Tegan
由Gudao Luo在2011-07-27 at 13:46发表的
Rails世界:Rails第四版翻译思考(四)
由Gudao Luo在2011-07-26 at 16:31发表的
- 原文
- But Isn’t SQL Dirty?
- It was built on the notion that SQL is neither dirty nor bad, just verbose in the trivial cases.
- 翻译
- SQL语句是灰色的吗?
- 它(Active Record)当时是以这一概念建立起来的,即SQL语言既不是灰色的也不是有缺陷的,只是很简单的SQL查询有点累赘。
道喜评论:
先理解一下,什么是“灰色收入”?存在似乎还有一定的合理性和现实性的收入。从真正意义上说,这种收入是不合理甚至是不合法的。
当然在计算机科学中,灰色(Dirty)既不是说“合理”也不是“合法”的问题,而是通过一种"不寻常"的方法达到处理数据的目的。
例如,类对象的内存地址是确定的。要是修改了该对象属性内容。参见: What’s New in Edge Rails: Dirty Objects 。该对象的内容被修改了,但其内存地址还是保持不变。在早期的Rails版本中,进行这样的修改是无法知晓的,该对象可称之为灰色对象(Dirty Objects)。
修改类对象的属性肯定是可以的。但是问题是在Rails早期版本中,不知道曾经修改了该对象。之后的Rails版本,就可以知道是否修改了该对象。这样就有了一个认知修改的方法。这是一个从灰色走向白色的过程。
Ruby世界:汉字转换成拼音
由Gudao Luo在2011-07-25 at 21:31发表的
网络世界:万能在线文件转换服务
由Gudao Luo在2011-07-24 at 09:36发表的
苹果世界:获得CPU信息(两则)
由Gudao Luo在2011-07-23 at 11:33发表的
图书世界:《Continuous Testing: with Ruby, Rails, and JavaScript》英文版本
由Gudao Luo在2011-07-22 at 10:19发表的
网站推荐:Mac中文博客
由Gudao Luo在2011-07-21 at 13:45发表的
苹果世界:新一代 MacBook Air 2011
由Gudao Luo在2011-07-20 at 00:11发表的
Rails世界:Rails第四版翻译思考(三)
由Gudao Luo在2011-07-19 at 11:36发表的
- 原文
- If we pass multiple parameters to a where call, Rails treats the first parameter as a template for the SQL to generate. Within this SQL, we can embed placeholders, which will be replaced at runtime by the values in the rest of the array.
- 参考资料: http://goo.gl/PUHGp http://goo.gl/szPRn
- “the first parameter”使用不妥。a)因为第一个参数的第一个元素作为“a template for the SQL”。b)第二个参数是什么?c)只有在这个实例中可以这样说明这个参数使用方法。
- “If we pass multiple parameters to a where call,”,这是一种通用说法,而这一段下面的代码仅仅是只有一个参数的实例。
- 要是不看代码,这一段最后的“array”使人感到很突然。
- 中文翻译
- 我们可以将一个参数传递到调用函数where。在这参数是数组(Array类)情况下,Rails把该数组的第一个元素作为生成SQL语句模板使用。在这SQL语句中,可以嵌入占位符,而在实时运行时这些占位符是由该数组的其它元素来代替。
- Order.where([“name = ? and pay_type = ‘po’”, name])
- 我们可以将多个参数传递到调用函数where。在第一个参数是字符串(String类)情况下,那么Rails把该第一个参数作为生成SQL语句模板使用。在这SQL语句中,可以嵌入占位符,在实时运行时这些占位符将由第二个参数(数组)来代替。
- Order.where(“name = ? and pay_type = ‘po’”, name)
网站推荐:蜘蛛式在线字典
由Gudao Luo在2011-07-18 at 09:34发表的
苹果世界:学习中文
由Gudao Luo在2011-07-17 at 14:02发表的
苹果世界:如何快速重新命名文件名或文件夹名(两则)
由Gudao Luo在2011-07-16 at 11:14发表的
图书世界:《Smashing jQuery》英文版本
由Gudao Luo在2011-07-15 at 10:14发表的
苹果世界:文本编辑器-Tincta
由Gudao Luo在2011-07-14 at 13:45发表的
网络世界:道喜技术周报
由Gudao Luo在2011-07-13 at 04:51发表的
Rails世界:Rails软件开发组合环境
由Gudao Luo在2011-07-12 at 23:11发表的
网站推荐:Rails中文博客
由Gudao Luo在2011-07-11 at 13:46发表的
苹果世界:通过iphone或者ipad上网
由Gudao Luo在2011-07-10 at 15:00发表的
JavaScript世界:斯坦福CS基础课程教JavaScript
由Gudao Luo在2011-07-09 at 22:11发表的
网站推荐:数学公式生成器
由Gudao Luo在2011-07-08 at 21:37发表的
软件世界:最常用的Git方法
由Gudao Luo在2011-07-07 at 17:58发表的
- 前提条件
- 本地已经安装了Git
- 有Git服务器帐号,如, Github
- 从服务器上已经下载了项目
- 参考资料
- http://sixrevisions.com/resources/git-tutorials-beginners/
- http://www.vogella.de/articles/Git/article.html
- http://www.ralfebert.de/tutorials/git/
- http://www.kernel.org/pub/software/scm/git/docs/v1.2.6/tutorial.html
- http://veerasundar.com/blog/2011/06/git-tutorial-getting-started/
- http://veerasundar.com/blog/2011/06/git-tutorial-my-git-work-flow/
苹果世界:开源排版软件Scribus
由Gudao Luo在2011-07-06 at 14:13发表的
网站推荐:Ubuntu社区杂志
由Gudao Luo在2011-07-05 at 11:07发表的
网站推荐:Mac和Ruby中文博客
由Gudao Luo在2011-07-04 at 21:58发表的
Rails世界:文件database.yml代码字符有问题
由Gudao Luo在2011-07-03 at 23:47发表的
苹果世界:免费视频转换软件Miro Video Converter
由Gudao Luo在2011-07-02 at 08:30发表的
软件世界:查看Git的两个Commit的区别
由Gudao Luo在2011-07-01 at 00:05发表的
网站推荐:苹果中文博客
由Gudao Luo在2011-06-30 at 00:58发表的
Rails世界:阅读Rails第四版原版思考(二)
由Gudao Luo在2011-06-29 at 19:20发表的
Rails世界:阅读Rails第四版原版思考(一)
由Gudao Luo在2011-06-28 at 23:19发表的

- 英文原文Page268
Inside the code of the model, we can use the read_attribute and write_attribute private methods. These take the attribute name as a string parameter.
- 网络中文翻译(一)
最后,在model本身的代码内部,你可使用read_attribute()和write_attribute()私有方法。这些接受做为字符串参数的属性的名字。
- 网络中文翻译(二)
最后,也可以使用Model自己的私有方法read_attribute和write_attribute,这两个方法使用属性名作为参数。
- 中文第三版翻译Page238
最后,在模型内部的代码中,我们可以使用read_attribute()和write_attribute()这两个私有方法,参数都是字符串形式的属性名称。
JavaScript世界:HTML5浏览器编辑器Aloha
由Gudao Luo在2011-06-27 at 08:40发表的
Google世界:网络翻译点滴(视频)
由Gudao Luo在2011-06-26 at 19:54发表的
- 说明Google翻译系统
- 过去一个句子可以让我们得到启示;
- 现在看到单词或者词组也能够让我们得到启发;
- 你可以指导它翻译,如Active Record,第一次会翻译成中文,你把中文更为英文,第二次它就不翻译了。
- 每一个人都在完善这个系统。
- 要是可以拉动单词,自由组合就更好了。
- 要是能够提供自己翻译的个性化链接,就更好了。这样可以发给其他人了。
苹果世界:音频文件转换软件XLD
由Gudao Luo在2011-06-25 at 12:52发表的

- 参考资料
- 下载链接 http://xld.googlecode.com/files/xld-gui-20110611.tar.bz2
网站推荐:Rails框架模板生成工具
由Gudao Luo在2011-06-24 at 02:00发表的
JavaScript世界:学习CoffeeScript语言(五)
由Gudao Luo在2011-06-23 at 23:50发表的
苹果世界:Github客户端软件
由Gudao Luo在2011-06-22 at 23:25发表的
网络世界:中文计算机博客《黑客志》
由Gudao Luo在2011-06-21 at 16:37发表的
JavaScript世界:学习CoffeeScript语言(四)
由Gudao Luo在2011-06-20 at 07:19发表的
JavaScript世界:学习CoffeeScript语言(三)
由Gudao Luo在2011-06-19 at 00:43发表的
网站推荐:搜索引擎blekko
由Gudao Luo在2011-06-18 at 00:26发表的
JavaScript世界:学习CoffeeScript语言(二)
由Gudao Luo在2011-06-17 at 00:19发表的
- 道喜评论
- 关键词class/constructor/this之前的空格不能多,也不能少。
- 关键词constructor之前是一个(或者两个)空格或者Tab键;关键词this之前是两个(或者四个)空格或者Tab键;
- 参考资料
- http://jashkenas.github.com/coffee-script/
- Javascript继承机制的设计思想 http://www.ruanyifeng.com/blog/2011/06/designing_ideas_of_inheritance_mechanism_in_javascript.html
JavaScript世界:学习CoffeeScript语言(一)
由Gudao Luo在2011-06-16 at 00:36发表的
- 参考资料
- http://jashkenas.github.com/coffee-script/
- Javascript继承机制的设计思想 http://www.ruanyifeng.com/blog/2011/06/designing_ideas_of_inheritance_mechanism_in_javascript.html
JavaScript世界:如何玩转CoffeeScript
由Gudao Luo在2011-06-15 at 00:00发表的

- 前提条件
- 需要软件Node.js: 如何玩转Node.js
- 需要软件npm: 如何玩转npm
- 道喜评论
- CoffeeScript是一门计算机程序语言;
- CoffeeScript编译器可以把CoffeeScript代码变成为JavaScript代码;
- 从Rails3.1起,CoffeeScript将成为Rails框架的一个默认组成部分;
- CoffeeScript语言将成为Rails框架开发的必修课;
- CoffeeScript语言使得我们开发JavaScript程序变得更加简单方便;
- CoffeeScript语言代码风格类似于Ruby语言风格;
- 在今后几个周里,我们将会介绍CoffeeScript语言;
JavaScript世界:如何玩转npm
由Gudao Luo在2011-06-14 at 14:53发表的
JavaScript世界:如何玩转Node.js
由Gudao Luo在2011-06-13 at 07:49发表的
- 道喜评论
- Node.js的JavaScript程序是服务器应用程序;
- Node.js是JavaScript服务器引擎或者说JavaScript语言运行环境;
- Node.js是一个网络服务器;
- Node.js使得JavaScript语言能够在非浏览器环境或者说系统环境下运行;
- Node.js是当前一款重要的JavaScript软件;
TextMate世界:优化软件界面风格missingdrawer
由Gudao Luo在2011-06-12 at 08:55发表的
Ruby世界:如何使得Ruby版本与Rails版本绑定Rails应用程序
由Gudao Luo在2011-06-11 at 16:10发表的
网站推荐:Rails框架用户支架库
由Gudao Luo在2011-06-10 at 00:24发表的

- 道喜评论
- 支架(scaffold)是一个简单和功能化应用雏形;
- 支架生成器(scaffold generator)是生成一个简单和功能化应用雏形代码的工具;
- Rails框架为我们提供了一套功能十分强大的代码生成器和用户支架生成器框架;
- 网站 ScaffoldHub 是Rails框架用户支架库;
软件世界:IPv6格式是什么样?
由Gudao Luo在2011-06-09 at 08:16发表的
Rails世界:学习Rails3入门教材
由Gudao Luo在2011-06-08 at 05:47发表的

- Rails3系统入门教材
- Rails 3 in a Nutshell http://rails-nutshell.labs.oreilly.com
- Learn Rails by Example http://ruby.railstutorial.org/ruby-on-rails-tutorial-book
- 免费系统入门视频学习资料
- http://www.buildingwebapps.com/learningrails
- Rails for Zombies http://www.codeschool.com/courses/rails-for-zombies (1)需要注册;(2)该网站其它视频是收费的;
- 免费视频学习资料
网站推荐:二维条形码的生成和读取解析
由Gudao Luo在2011-06-07 at 09:31发表的
浏览器世界:在博客中使用更多的特殊符号
由Gudao Luo在2011-06-06 at 11:59发表的
Rails世界:崭新内容管理系统Locomotive
由Gudao Luo在2011-06-05 at 01:12发表的

- 道喜评论
- Locomotive是基于最新Rails3版本开发的;
- Locomotive是基于革命性数据库MongoDB开发的;
- Locomotive是非常漂亮用户界面的内容管理系统引擎;
- Locomotive能够一次安装简单搞定不同域名网站内容;
- Locomotive是一款基于云的引擎框架;
- Locomotive是一款开源的引擎框架;
- Locomotive能够商业化的引擎框架;
- Locomotive采用了大量最新的Ruby软件包,如 CarrierWave 、 Devise 和 Liquid 等;
- 前提条件说明
- MongoDB: 软件世界:安装非SQL语句数据库MongoDB
- ImageMagick: 苹果世界:如何安装ImageMagick和RMagick
- 浏览器:Safari、 Firefox 和 Chrome.
Ruby语言:Nokogiri版本问题
由Gudao Luo在2011-06-04 at 03:31发表的
苹果世界:如何安装ImageMagick和RMagick
由Gudao Luo在2011-06-03 at 08:48发表的
- 说明
- 通过源代码,使用一行命令完成安装ImageMagick和RMagick;
- 上面这一行安装命令,做了两件事情:先下载文件*.sh,之后执行该文件;
- 参考资料
- http://rmagick.rubyforge.org/install-faq.html#osx
- https://github.com/maddox/magick-installer
- http://snippets.dzone.com/posts/show/4798
- http://johnford.is/installing-imagemagickrmagick-on-leopard/
- http://www.imagemagick.org/script/binary-releases.php#macosx
- http://johnford.is/installing-imagemagickrmagick-on-leopard/
苹果世界:如何把PDF文件内容导出为文本文件
由Gudao Luo在2011-06-02 at 11:42发表的
苹果世界:如何分拆和合并PDF文件
由Gudao Luo在2011-06-01 at 11:17发表的
Ruby世界:看看如何解析Ruby语言代码
由Gudao Luo在2011-05-31 at 10:16发表的
Ruby世界:Ruby语言有函数Dir.exists?吗
由Gudao Luo在2011-05-30 at 10:11发表的
Rails世界:Rails框架走向何方(五)
由Gudao Luo在2011-05-29 at 13:53发表的

- 道喜评论
- 随着HTML5不断地得到广泛应用,HTML5.pushState功能显示出越来越重要作用[ 1 ];
- 通俗地说,HTML5.pushState完成这样的功能:点击按钮,仅仅是把消息发送到服务器,更新页面部分内容,而其页面链接保持原样[ 2 ];
- 这种技术肯定会得到包括Rails框架程序在内的Web应用程序广泛采用;
- 参考资料
- http://www.rubyinside.com/dhh-keynote-streaming-live-from-railsconf-2011-right-here-right-now-4769.html
- http://blog.new-bamboo.co.uk/2011/2/2/degradable-javascript-applications-using-html5-pushstate
- https://github.com/defunkt/jquery-pjax
- http://pjax.heroku.com/
- http://webification.com/simple-javascript-routing-with-html5s-pushstate-davis-js
- http://echo.nextapp.com/site/corejs
- http://www.liquidmarkup.org/
- http://www.rubyinside.com/dhh-keynote-streaming-live-from-railsconf-2011-right-here-right-now-4769.html
Rails世界:Rails框架走向何方(四)
由Gudao Luo在2011-05-28 at 10:40发表的

- 道喜评论
- 在浏览器上看到所显示的代码都是JavaScript+HTML,但是与你在服务器端应用程序所使用的语言(Ruby.Java,PHP等)无关;
- 没有HTML也可以使用Rails框架;
- 可以这样使用Rails框架:Rails MC <= JSON => JS MCV 也是是一种趋势;
- Rails MC = Rails Model + Controller
- JS MCV = JavaScript Backbone + (Mustache/Icanhazjs/Handlebars);
- 使用JSON作为客户端与服务器之间的数据传送格式;
- 这种使用Rails框架趋势有发展前途吗?
- 说明
- Mustache是视图模板的JavaScript库;
- Mustache是无逻辑视图代码库;
- 从2010起,Mustache是Twitter网站程序的一部分[ 1 ];
- 借助于Mustache,可以将视图层分成为两个子视图层,无逻辑视图与逻辑视图[ 2 ];
- 重要参考资料
- Rails框架+Mustache.js
- 参考资料
- https://github.com/elado/isotope
- http://www.v2ex.com/t/8713
- https://github.com/defunkt/mustache
- http://icanhazjs.com/
- http://handlebars.strobeapp.com/
- http://www.json.org/
- http://code.google.com/p/google-ctemplate/
- http://www.michaelharrison.ws/weblog/?p=324
- http://blogger.forgottenskies.com/?p=585
- http://net.tutsplus.com/tutorials/javascript-ajax/quick-tip-using-the-mustache-template-library/
- http://couchapp.org/page/index
- http://sammyjs.org/intro
Rails世界:网络服务器pow管理工具Powder
由Gudao Luo在2011-05-27 at 00:45发表的

- 道君评论
- Powder使得我们使用pow更加容易;
- 只要在当前Rails程序根目录下执行命令”powder“,就可以把该应用程序纳入到pow之中;
- 只要在当前Rails程序根目录下执行命令"powder open",就可以在浏览器中打开该应用程序;
- Powder更多命令可以查看 这里 ;
- 从本质上说,Powder只是为pow穿上一件更加漂亮的外衣;
Rails框架:最实用无配置网络服务器Pow
由Gudao Luo在2011-05-26 at 04:17发表的
网站推荐:中文Rails交流网站
由Gudao Luo在2011-05-25 at 18:57发表的
Rails世界:Rails框架走向何方(三)
由Gudao Luo在2011-05-24 at 15:05发表的

- 说明
- SproutCore是基于MVC的HTML5应用程序框架;
- SproutCore使用JavaScript语言;
- SproutCore目的构建桌面式Web应用程序(Fast Rich Cloud Applications、Rich Internet Applications、Dry Rich Client Applications等);
- SproutCore的优势在于MVC到View部分;
- SproutCore源自曾经在Apple工作程序员开发的;
- SproutCore是十分重要和有价值的项目;
- SproutCore是一款完全独立的框架;
- 道喜评论
- Rails框架ActiveView从开始到现在一直没有太大改进。 今年2011RailsConf DHH报告 重点也是说明MVC到View部分。
- 我们知道,Rails和SproutCore都是独立的框架。但是有一种开发思路:Rails框架作为后台程序,而SproutCore框架作为前台程序;
- 这种思路正在向前推进:"Bulk Rails API":https://github.com/drogus/bulk_api 是这两个框架的粘合剂;
- 今年2011RailsConf也有报告: SproutCore with Rails
- 未来Rails框架是否会是:Rails Model <=> Rails Controller <=> SproutCore Model <=> SproutCore Controller <=> SproutCore View
- 重要参考资料
- http://www.onrails.org/2011/05/19/railsconf-day-3
- http://www.sproutcore.com/
- http://demo.sproutcore.com/sample_controls/
- http://demo.sproutcore.com/
- http://gmoeck.github.com/2011/03/10/sproutcore-mvc-vs-rails-mvc.html
- http://thechangelog.com/post/2155333557/episode-0-4-2-rails-3-1-and-sproutcore-with-yehuda-katz
- http://wiki.sproutcore.com/w/page/27949835/Todos+06-Building+with+Rails+3
- http://cappuccino.org/
- SPROUTCOREWITHRAILS
- http://blog.coals2newcastle.com/2008/06/ruby-on-rails-rails-sproutcore.html
- 参考资料
- http://news.ycombinator.com/item?id=1849271
- http://en.oreilly.com/rails2011/public/schedule/detail/18047
- http://en.oreilly.com/rails2011/public/schedule/detail/19412
- http://blogupstairs.com/framework/sproutcore-an-html5-application-framework-for-building-fast-rich-cloud-applications/
- http://blogupstairs.com/framework/qooxdoo-innovative-framework-for-creating-ria-apps/
- http://narwhaljs.org/
- http://angularjs.org
- http://matthiasschuetz.com/angular-erweiterte-javascript-apps-mit-mvc
- http://matthiasschuetz.com/javascript-mvc-kompakt-mit-spine
- http://sammyjs.org/
- http://mrb.github.com/2010/03/23/sammy-on-rails.html
- http://addyosmani.com/blog/building-spas-jquerys-best-friends/
- http://news.ycombinator.com/item?id=1834605
Rails世界:Rails框架走向何方(二)
由Gudao Luo在2011-05-23 at 00:55发表的

- 道喜评论
- JavaScript语言项目是越来越多和越来越细分,其发展趋势也是越来越快。
- 通用框架JavaScript有Prototype和JQuery等;
- 基于MVC的JavaScript框架有 BackBone 和 Spine 等;下面说明之。
- 桌面式Web软件框架或者说RIA框架有 SproutCore 、 ExtJS 和 qooxdoo 等,相关详细内容在后面博客介绍。
- 组件式和功能性的JavaScript软件或者框架有: 分配包库(asset packaging library) 、 表格组件库(grid/spreadsheet component) 、 函数编程库(functional programming) 、 视频组件框架(The HTML5 Video Framework) 、 JavaScript变体语言 等;
- 是否需要类似于gem一样的JavaScript软件包管理框架?
- 如何实现JavaScript软件、框架或者软件包代码是可测试、可规范和无重复(DRY)?
- Rails框架与很多其它框架一样,JavaScript代码有待改进。
- BackBone说明
- BackBone 是 MVC JavaScript框架;
- BackBone为我们提供了MVC的组织方式;
- BackBone能够很好地与Rails集成 [ 1 ] [ 2 ]。何时能够成为Rails框架的默认框架?是否还有更好的框架? [ 3 ] [ 4 ] [ 5 ]
- 在BackBone+Rails应用程序中,Rails框架控制器代码转移到了BackBone控制器代码中。
- BackBone能否与Coffeescript集成?[ 6 ]
- 重要参考资料
- http://www.jamesyu.org/2011/01/27/cloudedit-a-backbone-js-tutorial-by-example/
- http://www.jamesyu.org/2011/02/09/backbone.js-tutorial-with-rails-part-2/
- http://www.protectedmethod.com/blog/4d49b82942ba7864ce00000d/knockout_vs_javascriptmvc_vs_backbone
- http://maccman.github.com/spine/
- http://addyosmani.com/blog/building-apps-spinejs/
- https://github.com/codebrew/rails3-backbone-coffeescript
- http://mzhou.me/?p=95230
- http://www.limboy.com/2010/12/19/module-and-compiler-for-common-js/
- https://github.com/dexteryy/OzJS
- http://documentcloud.github.com/backbone/
- https://github.com/documentcloud/jammit/
- http://www.documentcloud.org/opensource
- 参考资料
- 10 Most Popular JavaScript Frameworks http://www.articlediary.com/print-563.html
- 16款最流行的JavaScript框架 http://developer.51cto.com/art/201103/249949.htm
- 推荐19个很有用的JavaScript库 http://sd.csdn.net/a/20110516/297878.html
- http://www.quora.com/Backbone-js-1/How-well-does-backbone-js-work-with-rails
- http://en.oreilly.com/rails2011/public/schedule/detail/19360
- https://gist.github.com/719080
- http://stackoverflow.com/questions/4773733/rails-mass-assignment-and-backbone-js
- http://news.ycombinator.com/item?id=1849271
- http://andrewgertig.com/2011/05/rails-backbone-js-example-screencast/
- http://rtomayko.github.com/rocco/
- http://blog.terrywh.net/develop/961/
- http://www.lainuo.info/2011/05/18/backbone-js-in-action
- https://github.com/winfield/traces
- https://github.com/codebrew/backbone-rails
- https://github.com/markbates/coffeebeans
Rails世界:Rails框架走向何方(一)
由Gudao Luo在2011-05-22 at 00:45发表的

- Rails框架走向何方(一)
- Rails 3.1将会使用Coffeescript语言,目的是改进简化JavaScript语言;
- Rails 3.1将会使用Sass,目的是改进简化CSS;
- Rails 3.1把 JQuery 作为JavaScript默认框架,目的是采用更好的和更广泛应用的JavaScript框架;
- 说明 CoffeeScript
- CoffeeScript是一门新的语言;
- CoffeeScript语言编译器采用了CoffeeScript语言写成的;
- CoffeeScript语言目的是把CoffeeScript代码可以编译为JavaScript代码;
- 引入CoffeeScript语言,以达到简化JavaScript代码的目的;
- 说明 Sass
- Sass是一门新的动态CSS语言;
- Sass具有如下的动态功能:变量(variables), 混入(mixins), 操作运算(operations) 和函数(functions)等;
- 引入Sass语言,以达到简化CSS重复代码的目的;
- 类似的软件有: less ;
- 道喜评论
- JavaScript和CSS代码一直是Web应用程序开发的死角;
- 对于Rails框架而言,使用Coffeescript和Sass仅仅是这方面改进的一个良好开端;
- 项目 Boilerplate 会给Rails框架未来带来什么影响;
- 如何解决HTML+JavaScript+CSS集成可能是Rails框架未来需要面对的课题;
- 参考资料
- http://tinyurl.com/3rf7dls
- http://tinyurl.com/3m2wkdq
- http://github.com/jnicklas/bistro_car
- http://rubysource.com/using-coffeescript-in-rails/
- http://tinyurl.com/654vke2
- http://tinyurl.com/yah8g5q
- http://tinyurl.com/3tsxly4
- http://coffeescript-seattlejs.heroku.com/#1
- http://island205.com/2011/03/17/coffeescript%E8%AF%AD%E6%B3%95%E5%9B%BE/
- http://www.infoq.com/cn/news/2010/12/languages-on-javascript-vms
- "":
- http://aya.idv.tw/post/1635479495/coffeescript
- http://news.ycombinator.com/item?id=1834605
软件世界:HTML5最重要和最佳实践项目HTML5Boilerplat
由Gudao Luo在2011-05-21 at 10:14发表的

- 什么是HTML5?
- http://zh.wikipedia.org/wiki/HTML5
- “随着HTML5的发展,观看视频或其它内容时,Adobe Flash将不再是必须的。”
-CEO乔布斯
- 什么是HTML5Boilerplate?
- HTML5Boilerplate 是一个HTML / CSS / js模板,是实现跨浏览器正常化、性能优化,稳定的可选功能如跨域Ajax和Flash的最佳实践。 项目的开发商称之为技巧集合,目的是满足您开发一个跨浏览器,并且面向未来的网站的需求。
- HTML5Boilerplate是HTML5至今为止最重要和最佳实践项目。
- 下面是一些使用HTML5开发的网站:
- 参考资料:
- http://developer.51cto.com/art/201102/246370.htm
- http://tinyurl.com/3lwru3z
- http://tinyurl.com/3usd7un
- http://developer.51cto.com/art/201103/250481.htm
- http://tinyurl.com/3zeqetu
- https://github.com/paulirish/html5-boilerplate
- http://tinyurl.com/3v5t5aj
- http://ontwik.com/html5-2/paul-irish-on-html5-boilerplate/
Debian世界:如何安装ImageMagick
由Gudao Luo在2011-05-20 at 10:56发表的
网站推荐:常用MySQL查询实例
由Gudao Luo在2011-05-19 at 11:11发表的
苹果世界:Twitter客户端软件
由Gudao Luo在2011-05-18 at 12:45发表的
网站推荐:为自己网站放置临时图片
由Gudao Luo在2011-05-17 at 06:37发表的
代码世界:如何添加页面按钮twitthis
由Gudao Luo在2011-05-16 at 10:04发表的
- 说明
- 下面参考文献1中有代码,如下面的图所示。
- 把该代码复制到博客软件相关的显示页面,如本网站所使用的软件Simplelog,其页面文件为:$ROOT_RAILS/themes/simplelog/views/posts/_item_detailed.rhtml
- 网站lycom.de使用说明
- 点击页面日期链接,如,’由 Gudao Luo 在 2011-05-15 at 08:59 发表的’。
- 一旦点击日期链接以后,就出现如上面的图所示的按钮”twitthis“,且点击之。
- 参考资料
- 写代码添页面按钮twitthis http://cranialsoup.blogspot.com/2009/01/add-twitthis-button-to-your-blogger.html
网站推荐:Ruby语言技术资料网站
由Gudao Luo在2011-05-15 at 08:59发表的
Rails世界:Groonga系列(六完)—— ActiveGroonga-Fabrication是什么
由Gudao Luo在2011-05-14 at 08:17发表的

- 说明
- Rails fixture是持久层模型对象初始化软件库。
- factory_girl 是Rails fixture的替代品。该软件包给我们提供比fixture更加丰富的功能。
- Fabrication 也是Rails fixture的替代品。它给我们提供比factory_girl还要丰富的功能。如“惰性所生成的关联(lazily generated associations)”和“针对定义和生成的块(blocks for definition and generation)”等。
- Rails fixture、factory_girl和 Fabrication都是针对持久层模型的对象生成器软件包。
- ActiveGroonga-Fabrication是基于ActiveGroonga的对象生成器软件包。
- 参考资料
- http://judywang.iteye.com/blog/792986
- http://blog.waynedeng.com/?p=222
- http://robots.thoughtbot.com/post/722112946/factory-girl-rails3
- http://railser.com/forums/14/topics/109
- http://en.wikipedia.org/wiki/Fabrication_%28metal%29
- https://github.com/ranguba/activegroonga-fabrication/
- https://github.com/paulelliott/fabrication
- http://en.wikipedia.org/wiki/Fabrication
搜索:
Sphinx groonga
Senna ruby
Rails世界:Groonga系列(五)—— ActiveGroonga是什么
由Gudao Luo在2011-05-13 at 05:59发表的
- 说明
- ActiveGroonga是全文搜寻引擎Groonga的Rails框架接口。
Ruby世界:Groonga系列(四)——rrroonga是什么
由Gudao Luo在2011-05-12 at 08:53发表的
- 说明
- rrroonga是全文搜寻引擎Groonga的Ruby语言接口。
- 安装rroonga命令
- gem install rroonga
- 在Ruby终端里使用rroonga方法
- irb —simple-prompt -rubygems -rgroonga
- 参考资料
苹果世界:Groonga系列(三)——如何使用Groonga
由Gudao Luo在2011-05-11 at 21:02发表的
苹果世界:Groonga系列(二)——如何安装Groonga
由Gudao Luo在2011-05-10 at 23:43发表的
软件世界:Groonga系列(一)——Groonga是什么
由Gudao Luo在2011-05-09 at 20:51发表的

- 说明
- Groonga是一个软件库;
- Groonga具有储存功能和全文搜寻的检索功能;
- Groonga是一款可嵌入式的全文搜寻引擎;
- Groonga是全文搜寻引擎Senna的追随者;
- Groonga储存引擎的后端就是Groonga软件库;
- 借助于Groonga储存引擎,我们可以使用在Groonga数据库中数据,如同使用传统关系数据库表的数据一样方便。
- 英语原文1:groonga is a library which have storages and indexes for fast fulltext searching. The backend of groonga Storage Engine is groonga library. With groonga Storage Engine, you can use datas in groonga as a usual MySQL tables.
- 英语原文2:An embeddable fulltext search engine. Groonga is the successor project to Senna.
Debian世界:如何安装SQLite3
由Gudao Luo在2011-05-08 at 16:43发表的
软件世界:基于系统终端的幻灯片演示文稿软件tpp
由Gudao Luo在2011-05-07 at 08:17发表的

- 前提条件
- MacOSX Snow Leopard 10.6.x + Ruby 1.9.2 (本文介绍)
- 或者
- MacOSX Leopard 10.5.x + Ruby 1.8.7 (参考资料 5)
- 说明
- 软件 Ncurses 是什么?系统终端开发工具。
- 软件包 “ncurses-ruby” 是软件 "Ncurses"的Ruby接口。
- 参考资料
- 项目ncurses首页 http://invisible-island.net/ncurses/
- 项目ncurses-ruby首页 http://ncurses-ruby.berlios.de/
- 项目tpp首页 http://www.ngolde.de/tpp.html
- http://download.berlios.de/ncurses-ruby/
- http://blog.elliottcable.name/posts/building_ncurses_and_ncurses_ruby_on_leopard.xhtml
- https://github.com/eclubb/ncurses-ruby
- 使用软件tpp说明 http://www.sourcefiles.org/Office/Presentation/tpp-1.0.tar.gz.shtml
- https://github.com/rkumar/rbcurse/downloads
苹果世界:另一种启动系统终端的方式
由Gudao Luo在2011-05-06 at 11:28发表的
网络世界:俄罗斯最大的搜索引擎Yandex
由Gudao Luo在2011-05-05 at 07:12发表的
- 说明
- 在日本,谷歌和雅虎在搜索引擎市场的份额总共达到了90%以上;
- 德国最大的搜索引擎是Google.de,市场占有率长期维持在97%左右;
- 在当前网络世界,搜索引擎市场基本上是Google一统天下。但是Google的搜索质量现在感到不尽人意,搜索结果中垃圾网站实在太多。还有专门从事开发垃圾网站的公司。
- 网络世界专业化搜索引擎势在必行,如科学智能搜索引擎: Wolfram|Alpha: Computational Knowledge Engine 。
Debian世界:如何安装版本管理系统Git
由Gudao Luo在2011-05-04 at 01:15发表的
苹果世界:视频转换软件Evom
由Gudao Luo在2011-05-03 at 05:54发表的
Debian世界:如何安装Ruby软件包管理系统RubyGem
由Gudao Luo在2011-05-02 at 04:12发表的
苹果世界:使用十分方便的解压软件Unarchiver
由Gudao Luo在2011-05-01 at 12:21发表的

- 说明
- 针对有些压缩文件如rar,Mac OSX 系统无法完成解压功能。
- 解压软件Unarchiver是免费的;
- 在安装中,解压软件Unarchiver需要设定解压文件扩展名;
- 使用解压软件Unarchiver,只需双击rar文件就可以了;
- 参考资料
- http://opnir.com/22/mac-os-x-compress-uncompress-software http://opnir.com/22/mac-os-x-compress-uncompress-software
Ruby世界:更完善的Ruby终端软件Pry
由Gudao Luo在2011-04-30 at 11:24发表的
软件世界:免费办公软件Libreoffice
由Gudao Luo在2011-04-29 at 14:30发表的

- 说明
- Libreoffice是一款免费办公软件。
- Libreoffice是一款与MS Office和OpenOffice完全类似的免费办公软件。
- Libreoffice是一款Ubuntu 11.04默认免费办公软件。
- Libreoffice将会取代OpenOffice的完全免费办公软件。
- Libreoffice拥有大量扩充插件: Libreoffice Extensions
- 安装说明
- 下载软件LibO_3.3.2_MacOS_x86_install_en-US.dmg
- 双击文件LibO_3.3.2_MacOS_x86_install_en-US.dmg
- 下载软件LibO_3.3.2_MacOS_x86_langpack_zh-CN.dmg
- 双击文件LibO_3.3.2_MacOS_x86_langpack_zh-CN.dmg
- 设置上图配置。
网络世界:创建自己网络报纸paper.li
由Gudao Luo在2011-04-28 at 09:30发表的
Ruby语言:块代码与文件创建
由Gudao Luo在2011-04-06 at 09:12发表的
软件世界:视频流服务器DSS = Darwin Streaming Server
由Gudao Luo在2011-04-05 at 15:25发表的

- 说明
- 随着家庭电视网络化越来越普及的今天,视频流服务器的重要地位也越来越凸显出来。
- 重要参考资料
- 参考资料
- http://dss.macosforge.org/
- http://stephanmund.de/tech/linux.html/2008-08-06_darwin-streaming-server-debian
- http://gpac.wp.institut-telecom.fr/mp4box/mp4box-documentation/
- http://wiki.dennyhalim.com/super-easy-debian-webcam-streaming-server
- http://ffmpeg.org/
- http://www.oav.net/mirrors/video-streaming-servers.html
- http://de.wikipedia.org/wiki/Streaming-Server
- http://lscube.org/projects/feng
Ruby世界:乐高(Lego)式软件开发软件antetype
由Gudao Luo在2011-03-27 at 13:57发表的
- 说明
- 大量的第三方软件能否很简单一条命令和统一方法进行安装和重用;
- 软件开发过程能否从一开始到结束反复自如地进与退;
- 在软件发布时,能否知道所使用了第三方软件是如何被安装到软件中;
- 在第三方软件安装以后,能否很简单地了解到底增加和修改了我们软件哪些文件;
- 软件开发过程能否如拼装乐高(Lego)结构一样。
Rails框架语言:使用Rails框架函数link_to
由Gudao Luo在2011-03-26 at 14:10发表的

- 参考资料
- http://pradeep88.wordpress.com/2010/04/19/link_toimage_tag-in-rails/
- http://snippets.dzone.com/posts/show/6722
- http://snipplr.com/view/5595/rails-link-to-an-image-instead-of-text/
- http://www.railsrocket.com/image_tag-and-link_to-helpers
- http://jquery-ui.googlecode.com/svn/tags/1.6rc5/tests/static/icons.html
- http://tinyurl.com/alocdk
- http://tinyurl.com/7htryn
软件开发世界:如何在Mac 10.5和10.6上设置环境变量JAVA_HOME
由Gudao Luo在2011-03-24 at 18:42发表的
苹果世界:练习打字软件
由Gudao Luo在2011-03-23 at 05:55发表的
Ruby语言:使用函数first
由Gudao Luo在2011-03-22 at 15:59发表的
- 说明
- 在Ruby语言中,类Array有函数first,而类String没有函数first。因此,"standard".first(2)中的"standard"被看作为类Array对象,即[“standard”]。
- 在Rails框架中,"standard"被看作为字符串String的对象。
苹果世界:批量改变文件名称可视化软件Namechanger
由Gudao Luo在2011-03-21 at 11:35发表的
Ruby世界:元编程函数一例
由Gudao Luo在2011-03-20 at 20:15发表的
- 说明
- 所有函数的不同内容都写入到变量legos中
- 函数本身参数写入do之后的两竖之中
软件开发世界:Git实用参考资料
由Gudao Luo在2011-03-18 at 09:54发表的

- 参考资料
- http://gitref.org/ 这是网站Github.com所提供的参考资料
- http://book.git-scm.com/index.html
- http://www.kernel.org/pub/software/scm/git/docs/
- http://www.kernel.org/pub/software/scm/git/docs/v1.7.4/user-manual.html
- http://www.sourcemage.org/Git_Guide
- http://sysmonblog.co.uk/misc/git_by_example/
- http://linux.yyz.us/git-howto.html
Ruby语言:使用块代码秘密
由Gudao Luo在2011-03-15 at 08:55发表的
Ruby世界:如何把Hash对象键的字符串类型变成为符号类型
由Gudao Luo在2011-03-10 at 22:23发表的
TextMate世界:如何手动安装TextMate软件包
由Gudao Luo在2011-03-10 at 05:05发表的
TextMate世界:TextMate命令行软件包管理器
由Gudao Luo在2011-03-09 at 22:50发表的

- 说明
- 什么是TextMate软件包扩展名
- TextMate软件包文件扩展名为.tmbundle。从本质上说,它是一个目录名称,但是在Finder中看到的是目录显示。
- 安装方法:
- gem install textmate
- 这些软件包安装到哪里?如图所示:
- /Library/Application Support/TextMate/Bundles
- /Library/Application Support/TextMate/Pristine Copy/Bundles
- /Applications/TextMate.app/Contents/SharedSupport/Bundles/
- ~/Library/Application Support/TextMate/Bundles
- ~/Library/Application Support/TextMate/Pristine Copy/Bundles
- 什么是TextMate软件包扩展名
Rails框架:Rails2.3框架内部结构
由Gudao Luo在2011-02-25 at 12:56发表的
苹果世界:如何软启动苹果电脑
由Gudao Luo在2011-02-24 at 15:32发表的
Ruby世界:从小开始学习Ruby语言
由Gudao Luo在2011-02-24 at 08:47发表的
苹果世界:图片文件格式转换软件XNView
由Gudao Luo在2011-02-22 at 10:28发表的
Ruby世界:Ruby程序到底调用了哪些默认目录软件库
由Gudao Luo在2011-02-06 at 12:44发表的
网络世界:汉字源头
由Gudao Luo在2011-02-02 at 14:05发表的
网络免费图书:基于Ruby语言描述的巧妙算法(Clever Algorithms)
由Gudao Luo在2011-01-26 at 22:36发表的
《Rails 3 图例》:Rails程序模板与Bundler命令
由Gudao Luo在2011-01-25 at 14:08发表的

- 《Rails 3 图例》: Rails程序模板与Bundler命令
苹果世界:点对点文件分享软件uTorrent
由Gudao Luo在2011-01-19 at 18:17发表的
Rails世界:自动生成Rails程序模板文件网站
由Gudao Luo在2011-01-16 at 12:37发表的
开发工具世界:网络软件安全评估工具Ratproxy
由Gudao Luo在2011-01-10 at 21:47发表的
网络世界:2011年新年好!
由Gudao Luo在2011-01-01 at 17:38发表的
Ruby世界:2010年十本计算机软件开源图书
由Gudao Luo在2010-12-31 at 20:30发表的
- 2010年十本计算机软件开源图书
- http://progit.org/book/zh/
- http://eloquentjavascript.net/
- http://railstutorial.org/ruby-on-rails-tutorial-book
- http://rails-nutshell.labs.oreilly.com/
- http://guides.rubyonrails.org/
- http://ruby.runpaint.org/ https://github.com/runpaint/read-ruby
- http://vim.runpaint.org/ https://github.com/runpaint/vim-recipes
- http://ofps.oreilly.com/titles/9781449380373/
- http://blog.envylabs.com/Rails_3_Cheat_Sheets.pdf
- http://www.sapphiresteel.com/IMG/pdf/LittleBookOfRuby.pdf
Ruby世界:2010年Ruby和Rails的十个博客
由Gudao Luo在2010-12-29 at 17:55发表的
Ruby世界:2010年Ruby语言十大网站
由Gudao Luo在2010-12-28 at 21:26发表的
Ruby世界:2010年Ruby语言十大软件新闻
由Gudao Luo在2010-12-27 at 19:39发表的

- 2010年Ruby语言十大软件新闻
- Ruby进入1.9时代 – Ruby 1.9.2 正式版发布
- Rails进入3.0时代 – Rails 3正式版发布
- 最具创意Rails入门教程 Rails For Zombies
- Rails软件服务器部置系统 Phusion Passenger 3 正式版发布,它是Rails网络服务器必备的软件;
- 基于Ruby1.8.7和1.9.2的一键Ruby安装软件 RubyInstaller 是Windows系统最快捷安装工具;
- 项目跟踪管理工具 Redmine 1.0正式版发布,它是软件项目开发最好的助手;
- Ruby语言虚拟机 Rubinius 1.0正式版发布;
- Ruby语言函数重写技术 refine 可以简化代码;
- Ruby语言版本管理系统 rvm 成为Ruby语言开发环境必备工具;
- Ruby软件包管理系统 Bundler 越来越普及;
Ruby世界:每周Ruby新闻摘要
由Gudao Luo在2010-12-16 at 19:22发表的
Rails世界:学习Rails3框架
由Gudao Luo在2010-12-06 at 00:17发表的
Rails3框架实例:基于HTML的PDF文件生成工具PDFKit
由Gudao Luo在2010-08-02 at 14:05发表的

- 参考资料
- PDFKit项目首页 http://github.com/jdpace/PDFKit
- Generating PDFs from HTML using PDFKit视频. http://asciicasts.com/episodes/220-pdfkit
- Generating PDFs from HTML using PDFKit文章 http://railscasts.com/episodes/220-pdfkit
- Rethinking PDF Creation in Ruby http://goo.gl/OMd3
- 使用 wkhtmltopdf 生成 pdf http://goo.gl/Y3nh
- How to generate PDF using Ruby? http://goo.gl/xGJl
Rails框架:Rails 3正式版本上市!
由Gudao Luo在2010-07-27 at 22:46发表的

- 评论
- Rails3框架是一个全新的Ruby网络应用框架,它完全不同于Rails2框架。
- Rails3框架更加结构化、更加模块化、更加独立化和更加层次化。
- Rails 3.0.0.rc是发行Beta版本最多的一个版本。
- 简单使用说明
- 需要什么Ruby版本?
- >= 1.8.7
- 如何安装Rails3?
- sudo gem install rails —pre
- 如何创建一个Rails3项目?
- rails new 项目名称
- 如何启动一个Rails3项目?下面几种方法任何一个都可以:
- rails server
- thin start
- unicorn -p3000
- 需要什么Ruby版本?
- 参考资料
- Rails 3.0: Release candidate! http://goo.gl/yYjQ
- Ruby on Rails 3.0 Release Notes http://goo.gl/gHGi
- Rails3 info http://rails3info.com/
- Ruby on Rails Tutorial http://goo.gl/hvSx 最新Rails技术免费图书!
- 8 Reasons I love Ruby http://goo.gl/ZxgE
- The Reasons I Like Ruby http://goo.gl/yYom
- Why I Like Ruby, Part 2: Blocks
- The Ruby/Rails Life – My Rails 3 Stack – Part 1 http://goo.gl/gF6u
- The Ruby/Rails Life – My Rails 3 Stack – Part 2 http://goo.gl/65g1
网络世界:值得一读的推特Ruby新闻
由Gudao Luo在2010-07-25 at 12:41发表的
Rails世界:怎么把大系统划分为若干子系统
由Gudao Luo在2010-07-17 at 21:30发表的

- 参考资料
- RailsConf 2010: we rocked the world http://goo.gl/k5X5
- From 1 to 30 – How to refactor one monolithic application into an application ecosystem http://goo.gl/Vzuy
- RailsConf 2010 演讲台上的中国人 http://goo.gl/BFmh
Apple世界:Rails IDE开发工具NetBeans
由Gudao Luo在2010-06-21 at 11:24发表的

- 使用方法
- 参考资料
- NetBeans Ruby版本下载链接 http://goo.gl/TwPs
- NetBeans下载页面 http://netbeans.org/downloads/index.html
Apple世界:基于Ruby语言的系统软件包管理软件HomeBrew
由Gudao Luo在2010-06-20 at 21:51发表的

- 说明
- 参考资料
- Homebrew: OS X’s Missing Package Manager http://goo.gl/BpbW
- 2009苹果开发环境搭建指南 http://goo.gl/3w5x
- http://goo.gl/wSdb6
图书世界:网络开放免费书籍《MacRuby: The Definitive Guide》
由Gudao Luo在2010-06-18 at 09:03发表的

- 说明
- 面对开源软件、开源硬件、免费游戏、免费邮箱和免费图书等,是否我们的网络虚拟世界正在向一个理想的共产社会发展?
- 参考资料
- MacRuby: The Definitive Guide http://goo.gl/fRN7
- Writing an open licensed book http://goo.gl/X0hE
- 开放免费图书 http://oreilly.com/openbook/
Apple世界:使用QuickTime播放wmv视频文件
由Gudao Luo在2010-06-17 at 09:20发表的

- 下载页面
- Flip4Mac Windows Media Components for QuickTime http://goo.gl/Fmcz
- QuickTimePlayer软件插件Flip4Mac
- 说明Flip4Mac WMV
- Flip4Mac WMVReally a must for most users, Flip4Mac removes most of the need to use the ageing mac version of Windows Media Player, by allowing you to play most of your WMV files directly in QuickTime.
Ruby世界:在Ruby和Rails交互界面中使用Vim
由Gudao Luo在2010-06-16 at 13:04发表的
- 安装命令
- sudo gem install interactive_editor
- 配置方法
- vim ~/.irbrc
- vim ~/.vimrc
- vim ~/.irbrc
- 使用方法
- 启动下面命令之一
- irb
- ./script/console #Rails2
- rails console #Rails3
- 输入vi或者vim
- 输入需要在交互界面的Ruby语言代码
- 退出vi或者vim
- 启动下面命令之一
- 参考资料
- Running Vim within IRB http://goo.gl/oE79
- Podcast: vimcasts http://goo.gl/NI8o
Ruby世界:使用iTune学习Ruby语言和Rails框架
由Gudao Luo在2010-06-14 at 20:17发表的

- 前提条件
- 下载软件Apple iTune for windows或者mac
- http://www.apple.com/itunes/ http://www.apple.com/itunes/
- 安装软件apple iTune
- 启动软件apple iTune
- 注册帐号
- 使用iTune
- 启动软件apple iTune
- 进入Store >>> iTune Store
- 登陆帐号
- 进入App Store
- 在搜索中,输入“ruby rails”
- 选择与Ruby和Rails相关的网络视频(Podcast)下载
- 进入资料库 >>> Podcast,就看到你下载的网络视频资料
- 点击你想看的网络视频,下载你需要的视频
Rails世界:Rails2 与 Rails3 代码比较
由Gudao Luo在2010-04-03 at 22:29发表的
软件世界:安装非SQL语句数据库MongoDB
由Gudao Luo在2010-03-30 at 05:19发表的
网络文章推荐:SQL数据库终结了吗?
由Gudao Luo在2010-03-29 at 21:55发表的
软件框架:jQuery三年来的发展趋势
由Gudao Luo在2010-03-28 at 22:28发表的
- 参考资料
- 全新JavaScript库jQuery http://www.lycom.de/past/2007/2/23/jquery2007-02-23_232016/
- 在Rails中应用jQuery http://www.infoq.com/cn/presentations/zhaolu-jquery
- 春风得意的 jQuery http://www.comsharp.com/GetKnowledge/zh-CN/It_News_K932.aspx
苹果世界:看来硬盘容量以十进制表示成为趋势
由Gudao Luo在2010-03-27 at 21:27发表的

- 参考资料
- Ubuntu implements units policy, will switch to base-10 units in future release http://www.neowin.net/news/ubuntu-implements-units-policy-will-switch-to-base-10-units-in-future-release
- Ubuntu 10.10将采用十进制表示文件大小 http://linux.solidot.org/linux/10/03/27/164215.shtml
- 苹果给硬盘GB定义争论火上浇油 http://apple.solidot.org/apple/09/08/30/0426255.shtml?tid=62
软件世界:什么字体最节省打印墨?
由Gudao Luo在2010-03-26 at 21:50发表的

- 参考资料
- Wis. college says new e-mail font will save money http://news.yahoo.com/s/ap/20100326/ap_on_fe_st/us_odd_cheaper_e_mail_font
- 字体Century Gothic下载地址 http://www.yaomao.com/down.asp?ID=9363
- 大学为省钱改变电子邮件字体 http://it.solidot.org/it/10/03/27/0149241.shtml
网络世界:2010.03.13. Google Buzz
由Gudao Luo在2010-03-13 at 22:13发表的

- 推荐文章
- 关于iPhone平台开发生态我的看法 http://tiny4.org/blog/2010/03/iphone-developer/
- "西厢计划"Ubuntu安装配置指南":http://blog.xiaogaozi.org/2010/03/ubuntu.html http://blog.xiaogaozi.org/2010/03/ubuntu.html
软件世界:使用Aquamacs的最基本方法
由Gudao Luo在2010-02-24 at 08:20发表的

- 使用说明
- 下面逗号表示放开所有键再继续按相关键;
- 下面加号表示组合键;
- 几个连着的大写字母表示是一个键,如ENTER;
- 一个或者几个连着小写字母是需求一个一个字母全部输入,如下面的revert;
- 下面分号表示或者选择其它键;
- Aquamacs最基本方法
- 退出软件
- CTRL+x, CTRL+c
- 切换内存的文件
- CTRL+x, b, >;< , ENTER
- 创建或者切换目录的文件
- CTRL+x, CTRL+f
- 关闭文件
- CTRL+x, k, ENTER
- CTRL+x, k, >;<, ENTER
- 单文件和双文件显示
- CTRL+x, 2
- CTRL+x, 1
- 移动光标到行首和行尾
- CTRL+a
- CTRL+e
- 移动光标到上一行和下一行
- CTRL+n
- CTRL+l
- 使用系统命令
- ESC, !
- 更新内存的文件
- ESC, x, revert
- 退出软件
- 参考资料
- http://community.schemewiki.org/?emacs-tutorial http://community.schemewiki.org/?emacs-tutorial
- http://www.gnu.org/software/emacs/tour/ http://www.gnu.org/software/emacs/tour/
- http://xahlee.org/emacs/emacs_basics.html http://xahlee.org/emacs/emacs_basics.html
- http://hepg.sdu.edu.cn/Service/linux/application/emacs.html http://hepg.sdu.edu.cn/Service/linux/application/emacs.html
- http://blog.xiaogaozi.org/2008/06/emacs.html http://blog.xiaogaozi.org/2008/06/emacs.html
软件世界:看看Aquamacs的Rails扩充件
由Gudao Luo在2010-02-23 at 06:28发表的

- 前提条件
- 选择Mac OS X上的emacs:Aquamacs http://www.lycom.de/past/2010/2/22/2010-02-27-aquamacs/
- 安装方法
- 参考资料
- http://github.com/walter/aquamacs-emacs-starter-kit http://github.com/walter/aquamacs-emacs-starter-kit
- http://tinyurl.com/5c57r7 http://tinyurl.com/5c57r7
- http://chinaonrails.com/topic/view/569.html http://chinaonrails.com/topic/view/569.html
- http://tinyurl.com/y95qfnu http://tinyurl.com/y95qfnu
- http://tinyurl.com/y8fae7m http://tinyurl.com/y8fae7m
- http://tinyurl.com/yz2k9l6 http://tinyurl.com/yz2k9l6
Apple世界:选择Mac OS X上的emacs:Aquamacs
由Gudao Luo在2010-02-22 at 07:13发表的

- 说明
- Mac OS X有很多版本emacs,请看下面链接。
- 选择Rails开发工具一些原则:良好中文支持、免费、跨操作系统和Ruby+Rails支持。
- 选择Mac OS X上的emacs应该是:Aquamacs。除了上面的理由之外,还有:更友好软件界面和MacOSX风格。
- 软件开发编辑器的三种层次:vim(最轻量级)、emacs(轻量级,如TextMate)和NetBeans(重量级,如Aptana)。其实我们都需要它们,只是视不同的使用场合而定。
- 接下来将会介绍:安装Rails插件到Aquamacs和使用emacs。
- 参考资料
- emacs http://www.gnu.org/software/emacs/
- aquamacs http://aquamacs.org/download.shtml
- emacs for macosx http://emacsformacosx.com/
- Carbon Emacs Package http://homepage.mac.com/zenitani/emacs-e.html
- http://news.ycombinator.com/item?id=399847 http://news.ycombinator.com/item?id=399847
- http://www.hoenn.net/blog/index.php?/archives/76-Die-Emacssituation-unter-OS-X.html http://www.hoenn.net/blog/index.php?/archives/76-Die-Emacssituation-unter-OS-X.html
- http://www.emacswiki.org/emacs/EmacsForMacOS
http://www.emacswiki.org/emacs/EmacsForMacOS
软件世界:安装非SQL语句数据库Cassandra
由Gudao Luo在2010-02-21 at 19:03发表的

- 安装方法
- 说明
- Cassandra是最初由Facebook开发的。
- Cassandra是高度灵活性、结果一致性、计算分布性和结构键值存储的第二代数据库。
- Cassandra从大量的大表非SQL语句数据库脱颖而出。
- Rackspace、Digg、Facebook、Twitter、Cisco、Mahalo和 Ooyala等公司是Cassandra数据库的用户。
- 前提条件
- 把Mac OS X 10.5.8切换到Java JDK 1.6 http://www.lycom.de/past/2010/2/20/upgrade_mac_os_x_1058_java_jdk/
- 参考资料
- 首页Cassandra http://incubator.apache.org/cassandra/
- Running Cassandra 0.5.0 on Mac OS X Leopard 10.5.8 http://tinyurl.com/y8ra4k7
- Installing Cassandra and Thrift on OSX http://www.klunde.net/2009/11/20/installing-cassandra-and-thrift-on-osx/
- 中文维克Cassandra http://zh.wikipedia.org/wiki/Cassandra
- How Twitter Is Moving To the Cassandra Database http://tinyurl.com/ygge33w
- Twitter计划迁移到Cassandra分布式数据库 http://developers.solidot.org/developers/10/02/26/099230.shtml
- Digg与Reddit加入NoSQL阵营 http://www.infoq.com/cn/news/2010/03/Digg-Reddit-NoSQL-Cassandra
Apple世界:如何把Mac OS X 10.5.8切换到Java JDK 1.6
由Gudao Luo在2010-02-20 at 12:53发表的
- 参考资料
- Upgrade OS X 10.5.8 to JDK 1.6 http://memerocket.com/2009/08/06/upgrade-os-x-10-5-8-to-jdk-1-6/
Apple世界:如何卸载出了问题的Adobe Reader软件
由Gudao Luo在2010-02-19 at 13:08发表的

- 问题说明
- 有一天,打开一个PDF文件,看到Adobe Reader一下子打开无数个PDF文件。在应用软件目录下删除了Adobe Reader又安装了它,都无济于事。因为Adobe Reader不仅此一个文件,还在其它地方分布了大量的文件。而Adobe Reader没有提供卸载软件的功能。无奈只能手工实施了。
- 操作说明
- 第一步:删除Abobe Air软件,并且搜索Abode Reader相关的文件和目录。
- 第二步:删除所有Abode Reader相关的文件和目录。
- 第三步:在安装新的Adobe Reader之前,需要恢复相目录。
- 第一步:删除Abobe Air软件,并且搜索Abode Reader相关的文件和目录。
- 评论
- Adobe卸载是一项灾难性的工作。看来在操作系统中无规则的软件安装肯定不是一件好事。
- 在终端中目录存在空格是一种灾难的事情,不小心没有输入反斜杠,就可能删除不该删除的目录。可能导致程序或者甚至系统无法运行。
- 而重新安装Adobe Reader以后,怎么也无法启动成功,是因为多删除了上面我们增加的目录。
- 参考资料
- http://discussions.apple.com/message.jspa?messageID=7065095
- http://www.project-insomnia.com/2009/07/manually-uninstalling-adobe-acrobat.shtml http://www.project-insomnia.com/2009/07/manually-uninstalling-adobe-acrobat.shtml
- http://www.rawcomputing.co.uk/macuninstall.html http://www.rawcomputing.co.uk/macuninstall.html
- http://kb2.adobe.com/cps/321/321485.html http://kb2.adobe.com/cps/321/321485.html
Rails3世界:使用抽象持久层Arel(六)
由Gudao Luo在2010-02-18 at 23:22发表的

- 说明
- Arel是框架的框架。
- Arelk可以创建自己的持久层框架。
- Arel是Rails3框架的基础。
- 参考资料
- http://github.com/rails/arel http://github.com/rails/arel
- 系列全部内容
- Rails3世界:安装Ruby1.8.7(一甲) http://www.lycom.de/past/2010/2/7/2010-02-07-rvm-ruby187/
- Rails3世界:安装Ruby1.9.1(一乙) http://www.lycom.de/past/2010/2/6/2010-02-07-rvm-ruby191/
- Rails3世界:安装Rails3.0pre版本(二) http://www.lycom.de/past/2010/2/8/2010-02-07-rails3-pre/
- Rails3世界:使用软件包管理工具Bundler(三) http://www.lycom.de/past/2010/2/10/2010-02-10-bundler/
- Rails3世界:使用另外的网络服务器Unicorn(四) http://www.lycom.de/past/2010/2/13/2010-02-14-unicorn/
- Rails3世界:使用新的命令rails(五) http://www.lycom.de/past/2010/2/17/2010-02-17-rails-command/
- Rails3世界:使用抽象持久层Arel(六) http://www.lycom.de/past/2010/2/18/2010-02-18-arel/
Rails3世界:使用新的命令rails(五)
由Gudao Luo在2010-02-17 at 11:14发表的

- rails命令说明
- rails命令与Rails2版本有比较大的变化。
- rails命令现在不仅仅是创建Rails程序,而且在$RAILS_ROOT目录下使用rails命令相当于Rails2版本"./script/"。源代码请看下面参考资料的链接(1)。
- Rails3pre的说明存在错误。请看下面参考资料的链接(2)。
- 使用命令rails(Rails3pre)
- 参考资料
- http://tinyurl.com/yblbgy8 http://tinyurl.com/yblbgy8
- Wrong examples for plugin installation and generators in usage documentation http://tinyurl.com/yc76bdj
- 系列全部内容
- Rails3世界:安装Ruby1.8.7(一甲) http://www.lycom.de/past/2010/2/7/2010-02-07-rvm-ruby187/
- Rails3世界:安装Ruby1.9.1(一乙) http://www.lycom.de/past/2010/2/6/2010-02-07-rvm-ruby191/
- Rails3世界:安装Rails3.0pre版本(二) http://www.lycom.de/past/2010/2/8/2010-02-07-rails3-pre/
- Rails3世界:使用软件包管理工具Bundler(三) http://www.lycom.de/past/2010/2/10/2010-02-10-bundler/
- Rails3世界:使用另外的网络服务器Unicorn(四) http://www.lycom.de/past/2010/2/13/2010-02-14-unicorn/
- Rails3世界:使用新的命令rails(五) http://www.lycom.de/past/2010/2/17/2010-02-17-rails-command/
- Rails3世界:使用抽象持久层Arel(六) http://www.lycom.de/past/2010/2/18/2010-02-18-arel/
代码世界:如何理解Ruby类及其函数?
由Gudao Luo在2010-02-16 at 18:15发表的

- 说明
- 首先要理解类的函数是什么意思。
- 其次类没有我们所需要的函数,但是有自己想法。
- 最后就自己写个相关函数,与大家共享。
- 参考资料
- http://chinaonrails.com/topic/view/3730.html http://chinaonrails.com/topic/view/3730.html
- http://ruby-doc.org/core/classes/Array.html http://ruby-doc.org/core/classes/Array.html
- http://carsonified.com/blog/dev/ruby-arrays/ http://carsonified.com/blog/dev/ruby-arrays/
- http://tinyurl.com/yge2k4c http://tinyurl.com/yge2k4c
Apple世界:组合自己的图片工具iConMerge
由Gudao Luo在2010-02-15 at 10:06发表的

- 参考资料
- http://github.com/mocra/iconmerge http://github.com/mocra/iconmerge
- http://mocra.com/projects/iconmerge/ http://mocra.com/projects/iconmerge/
天天红玉世界:衷心祝愿大家新年愉快!
由Gudao Luo在2010-02-14 at 00:01发表的
Rails3世界:使用另外的网络服务器Unicorn(四)
由Gudao Luo在2010-02-13 at 23:54发表的

- 说明
- Unicorn网站写到: “… Process management: Unicorn will reap and restart workers that die from broken apps.”
- 最重要的是因为存在$RAILS_ROOT/config.ru文件。
- 同样适用于Rails3类似于Unicorn的网络服务器 rainbows http://github.com/darkhelmet/rainbows
- 使用命令
- 参考资料
- http://cmelbye.github.com/2009/10/04/thin-vs-unicorn.html
- http://unicorn.bogomips.org/
- http://unicorn.bogomips.org/Unicorn.html
- http://adventuresincoding.com/2010/02/riding-ruby-on-rails-3-bundler/
- Everything You Need to Know About Unicorn
- https://github.com/defunkt/unicorn
- https://github.com/blog/517-unicorn
- http://sirupsen.com/setting-up-unicorn-with-nginx/
- 系列全部内容
- Rails3世界:安装Ruby1.8.7(一甲) http://www.lycom.de/past/2010/2/7/2010-02-07-rvm-ruby187/
- Rails3世界:安装Ruby1.9.1(一乙) http://www.lycom.de/past/2010/2/6/2010-02-07-rvm-ruby191/
- Rails3世界:安装Rails3.0pre版本(二) http://www.lycom.de/past/2010/2/8/2010-02-07-rails3-pre/
- Rails3世界:使用软件包管理工具Bundler(三) http://www.lycom.de/past/2010/2/10/2010-02-10-bundler/
- Rails3世界:使用另外的网络服务器Unicorn(四) http://www.lycom.de/past/2010/2/13/2010-02-14-unicorn/
- Rails3世界:使用新的命令rails(五) http://www.lycom.de/past/2010/2/17/2010-02-17-rails-command/
- Rails3世界:使用抽象持久层Arel(六) http://www.lycom.de/past/2010/2/18/2010-02-18-arel/
网络世界:SMS短信还需要吗?
由Gudao Luo在2010-02-11 at 23:06发表的
Rails3世界:使用软件包管理工具Bundler(三)
由Gudao Luo在2010-02-10 at 09:22发表的
Rails3框架新的结构
Rails3框架传统结构- 前提条件
- Ruby 1.8.7 + Rails 3.0pre
- 传统结构操作过程
- 新的结构操作过程
- 说明
- Ruby系统gem + config.rb = Rails2程序gem软件包。
- Ruby系统gem + Gemfile = Rails3程序gem软件包。
- 通过Bundler工具,Rails3以应用层面解决软件包依赖关系。
- Rails3程序的gem软件包,完全可以与Ruby运行环境分开来。
- bundle命令是针对Rails程序,而gem命令是针对于Ruby运行环境。
- gem软件包直接可以作为Rails程序的插件。
- 与之相关的最重要文件是$RAILS_ROOT/Gemfile。
- 参考资料
- http://lindsaar.net/2010/2/6/bundle_me_some_rails http://lindsaar.net/2010/2/6/bundle_me_some_rails
- http://yehudakatz.com/2010/02/09/using-bundler-in-real-life/ http://yehudakatz.com/2010/02/09/using-bundler-in-real-life/
- http://gembundler.com/ http://gembundler.com/
- 系列全部内容
- Rails3世界:安装Ruby1.8.7(一甲) http://www.lycom.de/past/2010/2/7/2010-02-07-rvm-ruby187/
- Rails3世界:安装Ruby1.9.1(一乙) http://www.lycom.de/past/2010/2/6/2010-02-07-rvm-ruby191/
- Rails3世界:安装Rails3.0pre版本(二) http://www.lycom.de/past/2010/2/8/2010-02-07-rails3-pre/
- Rails3世界:使用软件包管理工具Bundler(三) http://www.lycom.de/past/2010/2/10/2010-02-10-bundler/
- Rails3世界:使用另外的网络服务器Unicorn(四) http://www.lycom.de/past/2010/2/13/2010-02-14-unicorn/
- Rails3世界:使用新的命令rails(五) http://www.lycom.de/past/2010/2/17/2010-02-17-rails-command/
- Rails3世界:使用抽象持久层Arel(六) http://www.lycom.de/past/2010/2/18/2010-02-18-arel/
Ruby世界:Ruby库的发展历程
由Gudao Luo在2010-02-09 at 07:29发表的

- 说明
- RAA和Rubyforge基本上退出了历史舞台。
- Rubyforge全面转向Gemcutter。所有Rubyforge的帐号转移到了Gemcutter网站。
- Github更全面,不仅仅是库服务器。
- Gemcutter更专心,仅仅是gem服务器。Rails3也开始使用它。
- 参考资料
- RAA http://raa.ruby-lang.org/
- Rubyforge http://rubyforge.org/
- Github http://github.com/
- Gemcutter http://gemcutter.org/
- gemcutter: 假如你写了gem打算共享,准备在哪里安家? rubyforge?github?? 还有其他的选择吗? http://chinaonrails.com/topic/view/3255.html
- 还有人惦记RAA的时代吗? http://chinaonrails.com/topic/view/795.html
Rails3世界:安装Rails3.0pre版本(二)
由Gudao Luo在2010-02-08 at 10:14发表的

- 前提条件
- 系统已经安装了Ruby1.8.7版本。Ruby1.9版本还有问题。
- Rails3pre版本问题实在太多,或许改动确实太大!
- 说明
- 参考资料
- http://gist.github.com/290606 http://gist.github.com/290606
- http://tinyurl.com/yf6vkww http://tinyurl.com/yf6vkww
- http://tinyurl.com/yerlbdz http://tinyurl.com/yerlbdz
- 系列全部内容
- Rails3世界:安装Ruby1.8.7(一甲) http://www.lycom.de/past/2010/2/7/2010-02-07-rvm-ruby187/
- Rails3世界:安装Ruby1.9.1(一乙) http://www.lycom.de/past/2010/2/6/2010-02-07-rvm-ruby191/
- Rails3世界:安装Rails3.0pre版本(二) http://www.lycom.de/past/2010/2/8/2010-02-07-rails3-pre/
- Rails3世界:使用软件包管理工具Bundler(三) http://www.lycom.de/past/2010/2/10/2010-02-10-bundler/
- Rails3世界:使用另外的网络服务器Unicorn(四) http://www.lycom.de/past/2010/2/13/2010-02-14-unicorn/
- Rails3世界:使用新的命令rails(五) http://www.lycom.de/past/2010/2/17/2010-02-17-rails-command/
- Rails3世界:使用抽象持久层Arel(六) http://www.lycom.de/past/2010/2/18/2010-02-18-arel/
Rails3世界:安装Ruby1.8.7(一甲)
由Gudao Luo在2010-02-07 at 06:32发表的

- 使用说明
- 前提Mac OSX 10.5.8 + Ruby 1.8.6。
- Rails 3.0版本起将使用Ruby 1.8.7 或者 1.9.1。
- 安装Ruby 1.9.1,请看这里 使用Rails3的第一步安装Ruby1.9.1 http://tinyurl.com/y9r44gc。
- 推荐产品运行环境使用Ruby 1.8.7。
- 推荐学习运行环境使用Ruby 1.9.2。
- 摘要:“。。。 and Rails 3 will require Ruby 1.8.7 and prefer Ruby 1.9.2. ”
- 操作说明
- 参考资料
- How to Install RVM and Rails 3 on Snow Leopard http://tinyurl.com/ycdzfom
- Getting Rails 3 Beta Setup http://tinyurl.com/yeehgvc
- 系列全部内容
- Rails3世界:安装Ruby1.8.7(一甲) http://www.lycom.de/past/2010/2/7/2010-02-07-rvm-ruby187/
- Rails3世界:安装Ruby1.9.1(一乙) http://www.lycom.de/past/2010/2/6/2010-02-07-rvm-ruby191/
- Rails3世界:安装Rails3.0pre版本(二) http://www.lycom.de/past/2010/2/8/2010-02-07-rails3-pre/
- Rails3世界:使用软件包管理工具Bundler(三) http://www.lycom.de/past/2010/2/10/2010-02-10-bundler/
- Rails3世界:使用另外的网络服务器Unicorn(四) http://www.lycom.de/past/2010/2/13/2010-02-14-unicorn/
- Rails3世界:使用新的命令rails(五) http://www.lycom.de/past/2010/2/17/2010-02-17-rails-command/
- Rails3世界:使用抽象持久层Arel(六) http://www.lycom.de/past/2010/2/18/2010-02-18-arel/
Rails3世界:安装Ruby1.9.1(一乙)
由Gudao Luo在2010-02-06 at 08:41发表的

- 使用说明
- 前提Mac OSX 10.5.8 + Ruby 1.8.6。
- Rails 3.0版本起将使用Ruby 1.8.7 或者 1.9.1。Rails 3.0 Beta版本问题比较多!
- 安装Ruby 1.8.7,请看这里, 使用Rails3的第一步安装Ruby1.8.7 http://tinyurl.com/ydc32vb。
- 推荐产品运行环境使用Ruby 1.8.7。
- 推荐学习运行环境使用Ruby 1.9.2。
- 摘要:“。。。 and Rails 3 will require Ruby 1.8.7 and prefer Ruby 1.9.2. ”
- 操作说明
- 参考资料
- http://rvm.beginrescueend.com http://rvm.beginrescueend.com
- 系列全部内容
- Rails3世界:安装Ruby1.8.7(一甲) http://www.lycom.de/past/2010/2/7/2010-02-07-rvm-ruby187/
- Rails3世界:安装Ruby1.9.1(一乙) http://www.lycom.de/past/2010/2/6/2010-02-07-rvm-ruby191/
- Rails3世界:安装Rails3.0pre版本(二) http://www.lycom.de/past/2010/2/8/2010-02-07-rails3-pre/
- Rails3世界:使用软件包管理工具Bundler(三) http://www.lycom.de/past/2010/2/10/2010-02-10-bundler/
- Rails3世界:使用另外的网络服务器Unicorn(四) http://www.lycom.de/past/2010/2/13/2010-02-14-unicorn/
- Rails3世界:使用新的命令rails(五) http://www.lycom.de/past/2010/2/17/2010-02-17-rails-command/
- Rails3世界:使用抽象持久层Arel(六) http://www.lycom.de/past/2010/2/18/2010-02-18-arel/
Apple世界:不一样的命令终端DTerm
由Gudao Luo在2010-02-05 at 20:42发表的
- 安装软件
- $ curl -O http://www.decimus.net/files/DTerm.zip && unzip DTerm.zip && mv DTerm.app /Applications/ && rm DTerm.zip
- 启动软件
- $ open /Applications/DTerm.app
- 使用软件
- Shift+cmd+Enter
- 输入命令,如ls
- 参考资料
- http://www.decimus.net/ http://www.decimus.net/
- http://chinaonrails.com/topic/view/2840.html http://chinaonrails.com/topic/view/2840.html 谢谢大力!
Ruby世界:不一样的学习Ruby教程
由Gudao Luo在2010-02-04 at 19:29发表的

- 下载学习代码
- git clone git://github.com/edgecase/ruby_koans.git
- 如何研究所下载的学习代码
- 方法一:从头起研究
- cd ruby_koans
- rake
- 在这个命令执行以后,就看到有测试代码错误。这个正是我们需要学习和研究的内容。
- vim koans/about_asserts.rb
- 修改所要求的提示信息,或者代码中有两个下横杆的内容。
- rake
- 进一步学习下一个函数的内容。每一个函数上都有相关的重要学习内容说明。
- 方法二:选择性研究
- cd ruby_koans/koans
- rake about_arrays.rb
- vim about_arrays.rb
- rake about_arrays.rb
- cd ruby_koans/koans
- 方法一:从头起研究
- 参考资料
- http://github.com/edgecase/ruby_koans
- http://chinaonrails.com/topic/view/2649.html http://chinaonrails.com/topic/view/2649.html 谢谢大力!
Apple世界:字典软件与浏览器Safari
由Gudao Luo在2010-02-03 at 10:25发表的
- 说明
- 打开字典软件
- open Dictionary.app
- 选择浏览器Safari的单词
- open -a /Applications/Safari.app/ “http://www.google.com”
- 选择需要查询的单词
- 按下面组合键
- Ctrl + Command + D 或者这样写
- ^+cmd+D
- 打开字典软件
Rails误解一百例:命令“rake gems:install”
由Gudao Luo在2010-02-01 at 10:42发表的
Rails世界:发布Rails 2.3.5版本的Rails插件ActiveFPDF
由Gudao Luo在2010-01-31 at 19:21发表的

- 参考资料
- undefined method `call’ for LiquidView:Class http://groups.google.com/group/liquid-templates/msg/b58ebd9b358e4672
- PDF::Writer and Ruby on Rails 2.2.2 http://info.michael-simons.eu/2008/11/24/pdfwriter-and-ruby-on-rails-222/
- PATCHED to work with Rails 2.2.2 and Liquid Gem 1.9.0
http://pastie.org/365287
代码世界:灰色对象、灰色操作、灰色关联和灰色。。。
由Gudao Luo在2010-01-28 at 20:57发表的

- 参考资料
- What’s New in Edge Rails: Dirty Objects http://ryandaigle.com/articles/2008/3/31/what-s-new-in-edge-rails-dirty-objects
- Introducing the Dirty Associations Plugin http://opensource.sha.cornell.edu/blog/2010/01/25/introducing-the-dirty-associations-plugin/
- Dirty Associations插件首页 http://github.com/daphonz/dirty_associations
- 专业名称翻译
- 灰色对象(Dirty Objects)、灰色操作(Dirty Operations)、灰色关联(Dirty Associations)和灰色(Dirty)。。。
网上精品:编辑器Vim最好的快捷图
由Gudao Luo在2010-01-27 at 20:19发表的
软件包世界:最新IBM DB2 gem驱动软件包
由Gudao Luo在2010-01-26 at 22:20发表的

- ibm db2 for mac osx
- IBM DB2下载 http://www.ibm.com/developerworks/cn/downloads/im/udbexp/
- Install DB2 on Mac OS X and give us feedback http://antoniocangiano.com/2009/01/20/installing-db2-on-mac-os-x/
- How to install DB2 Express-C 9 on Mac OS X in about 10 minutes http://nunoveloso.eu/blog/2009/03/07/how-install-db2-express-c-9-mac-os-x-about-10-minutes
- Screencast on how to install DB2 Express-C on Mac OS X http://antoniocangiano.com/2009/04/27/screencast-on-how-to-install-db2-express-c-on-mac-os-x/
- ibm db2 gem for ruby
- ibm db2 gem 下载 http://rubyforge.org/frs/?group_id=2361
- Improve the security and performance of DB2 Ruby on Rails applications using parameterized queries http://www.ibm.com/developerworks/data/library/techarticle/dm-1001db2rubyonrailsapps/
- Install the DB2 IBM_DB Gem for Ruby on OS X https://wikihub.berkeley.edu/display/istas/Install+the+DB2+IBM_DB+Gem+for+Ruby+on+OS+X
- IBM_DB_Adapter README http://rubyibm.rubyforge.org/svn/trunk/IBM_DB_Adapter/ibm_db/README
- Using DB2 with Rails http://wiki.rubyonrails.org/database-support/db2
网络图书世界:《Ruby on Rails Web Mashup Projects》
由Gudao Luo在2010-01-25 at 07:20发表的
命令世界:在帮助信息中Rails命令没有说明的使用方法
由Gudao Luo在2010-01-24 at 03:48发表的


- 为什么我们需要这样的命令?
- Showing_SQL_statements_in_the_Rails_console
- ab rails 2.2.2
- 参考资料
- http://stackoverflow.com/questions/379141/specifying-rails-version-to-use-when-creating-a-new-application
- http://craiccomputing.blogspot.com/2008/06/using-older-versions-of-rails.html
- http://bbs.chinaonrails.com/topic/view/1994.html
- http://ruby.geraldbauer.ca/rails-downgrade.html
- http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/6a7883e4d67e5606
- http://guides.rubyonrails.org/command_line.html
网上精品:《通向Rails3:入门》
由Gudao Luo在2010-01-23 at 23:58发表的
网站推荐:Ruby和Rails社区最新新闻
由Gudao Luo在2010-01-21 at 00:08发表的

- 推荐说明
- ruby5.envylabs.com 发表的信息都是很有目光的。
Mac世界:在Mac上,如何删除自动启动软件或者驱动程序?
由Gudao Luo在2010-01-20 at 21:20发表的
软件世界:2009年MacOS的浏览器回顾
由Gudao Luo在2010-01-15 at 08:39发表的

- Mac OS X免费浏览器大全
- http://caminobrowser.org/
- http://www.omnigroup.com/applications/omniweb/
- http://www.flock.com/
- http://www.stainlessapp.com/
- http://www.seamonkey-project.org/
- http://www.apple.com/safari/ 推荐
- http://www.google.com/chrome?platform=mac 推荐
- http://www.opera.com/
- http://shiira.jp/en
- http://www.sunrisebrowser.com/
- http://fluidapp.com/ 推荐
- http://www.icab.de/
- http://lynx.isc.org/
- http://habilis.net/lynxlet/
- http://elinks.or.cz/
- http://www.tildesoft.com/Programs.html
- http://www.pure-mac.com/webb.html
Ruby世界:2009年Rails框架企业管理开源软件
由Gudao Luo在2010-01-08 at 17:03发表的

- Rails框架企业管理开源软件
- 2009年最佳企业事务管理软件Tracks http://www.getontracks.org/
- 软件项目管理软件Redmin http://www.redmine.org/
- 电子商务软件Spree http://spreecommerce.com/
- RailsERP ERP软件 http://www.railserp.com
- 网络邮件管理软件Mailr http://mailr.org/
- 企业文件管理系统Boxroom http://boxroom.rubyforge.org/
- 2009年最佳论坛管理软件El Dorado http://github.com/trevorturk/eldorado
- 论坛管理软件Beast http://svn.techno-weenie.net/projects/beast/trunk/
Ruby世界:2009年最佳Rails内容管理软件
由Gudao Luo在2010-01-07 at 23:35发表的

- 内容管理软件CMS
- Seed http://seed.mediacollectiveslice.com/
- Railscasts http://github.com/ryanb/railscasts
- Refinery http://refinerycms.com/ (2009年最佳Rails内容管理软件)
- Browsercms http://www.browsercms.org/
- Instiki http://instiki.org/show/HomePage
- Simplelog http://simplelog.net/
Ruby世界:2009年代码段网站
由Gudao Luo在2010-01-06 at 22:53发表的
Ruby世界:2009年Ruby视频聚合网站
由Gudao Luo在2010-01-05 at 22:40发表的
Ruby语言:2009年聚合新闻网站
由Gudao Luo在2010-01-04 at 23:04发表的

- 参考资料
- “http://rubyreflector.com/”http://rubyreflector.com/
- http://www.reddit.com/r/ruby/
- http://www.reddit.com/r/rails/
- http://www.dzone.com/links/tag/ruby.html
- http://rubycorner.com/
- Google Blog News
Ruby世界:2009年项目开发及其文档API网站
由Gudao Luo在2010-01-03 at 23:23发表的

- 参考资料
- https://github.com/ 软件项目代码服务器
- http://gemcutter.org/ 软件包服务器
- http://rdoc.info/ 软件代码文档服务器
- http://runcoderun.com/ 项目持续集成服务器
- http://www.ruby-toolbox.com/ 软件开发工具网站
- http://www.opensourcerails.com/ 项目展示平台网站
Ruby世界:2009年博客网站回顾
由Gudao Luo在2010-01-02 at 00:48发表的

- 说明
- http://www.igvita.com/
- 内容有深度,文章新颖而广泛,网站漂亮
-——————————————————- http://eigenclass.org/hiki/Ruby
- 内容有深度,关注Ruby和代码分析
-——————————————————- http://yehudakatz.com/
- "":http://ryandaigle.com/
- Rails框架核心成员,特别关注Rails最新技术
-——————————————————- http://robots.thoughtbot.com/
- thoughtbot公司博客,注重技术发展趋势
-——————————————————- http://themomorohoax.com/
- http://drnicwilliams.com/
- 关心程序的代码技术
-——————————————————- http://weblog.rubyonrails.org/
- Rails框架网站博客,发布Rails最新信息
-——————————————————- http://www.infoq.com/ruby/
- http://www.infoq.com/cn/ruby/
- IT行业综合新闻网站,特别关注Ruby最新技术发展
-——————————————————- http://www.rubyinside.com/
- http://www.railsinside.com/
- 及时报道Ruby和Rails及其相关发展,值得推荐
-——————————————————- http://railstips.org/
- Ruby语言相关最新技术信息
-——————————————————- http://asciicasts.com/
- 视频网站http://www.railscasts.com/的文字版本
天天红玉世界:祝大家2010新年愉快!
由Gudao Luo在2010-01-01 at 22:03发表的
Rails框架:终端应用程序的微型视图框架Hirb
由Gudao Luo在2009-12-16 at 18:19发表的

- 创建Rails程序实例演示命令清单
- 使用hirb演示实例
- 最重要的参考资料:
- http://github.com/cldwalker/hirb
- http://tagaholic.me/hirb/
- http://github.com/jeremymcanally/rails-templates
- http://railscasts.com/episodes/148-app-templates-in-rails-2-3
- http://m.onkey.org/2008/12/4/rails-templates
- 参考资料:
- http://www.ozmox.com/2009/11/01/enjoy-working-with-models-using-hirb/
- http://tagaholic.me/2009/03/13/hirb-irb-on-the-good-stuff.html
- http://github.com/BJClark/rails-templates/blob/d8889e1c771847f75641503e478c130e959e1686/scidept.rb
- http://www.geekskillz.com/articles/11
- http://tagaholic.me/2010/02/16/two-dimensional-console-menus-with-hirb.html http://tagaholic.me/2010/02/16/two-dimensional-console-menus-with-hirb.html
Rails框架:Ruby1.9+Rails3.0时代即将来到
由Gudao Luo在2009-12-12 at 14:50发表的

David Heinemeier Hansson (37signals), “Rails 3 …and the real secret to high productivity”
- 第一步:创建安装目录命令
- 第二步:针对Mac OSX 10.5的安装Readline(可选)命令
- 第三步:针对Mac OSX 10.5的安装Ruby1.9.1命令
- 第四步:在现有系统上增加切换到Ruby1.9.1方法
- 如果想要使用ruby1.9.1版本,那么每一次打开终端都需要使用命令ruby19ify,才能够切换到ruby1.9.1上面去。默认系统ruby还是当前所使用的版本。
- 第五步:针对Mac OSX 10.5的安装Rake等命令
- 第六步:安装Rails 3.0 pre命令
- 第七步:检查安装软件版本命令(可选)
- 第八步:创建Rails应用程序
- 最重要参考资料
- http://medevyoujane.com/blog/2009/12/17/edging-your-way-towards-ruby-191-and-rails-30pre.html?lastPage=true#comment6623823
- http://wonko.com/post/how-to-compile-ruby-191
- http://cardarella.blogspot.com/2009/04/ruby-18-and-19-living-together-on-mac.html
- http://oscardelben.com/articles/2009/12/06/how-to-test-rails-3.html
- 参考资料
- http://ftp.gnu.org/gnu/readline/
- http://www.macosxhints.com/article.php?story=20090731080242407
- http://www.slideshare.net/arrrrcamp/ruby-19-and-rails-30
- http://www.ruby-lang.org/en/downloads/
- http://www.tommycampbell.net/2009/06/26/ruby-1-9-on-mac-os-x
- http://blog.futureshock-ed.com/2009/06/installing-ruby-19-on-mac-os-x-105.html
- http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/13cd5dec18dfd859
- http://www.tommycampbell.net/2009/06/26/ruby-1-9-on-mac-os-x
- http://www.macosxhints.com/article.php?story=20090731080242407
- http://www.idg.co.kr/people/blog/view.do?paramDomain=mimul&postId=230195
- http://blog.vinceliu.com/2009/11/compiling-ruby-19-from-scratch-for-mac.html
- http://sdruby.org/video/075_rails3.m4v
- http://lindsaar.net/2008/1/18/installing-ruby-1-9-on-mac-osx
- http://www.slideshare.net/bradly/ruby-19-introduction?src=related_normal&rel=2537131
Apple世界:适用于苹果机的谷歌浏览器终于上线了!
由Gudao Luo在2009-12-08 at 21:44发表的
Apple世界:Mac OS X v10.6对基于AppleTalk的打印机说:再见!
由Gudao Luo在2009-12-05 at 23:45发表的


- 图片说明:
- Kyocera FS-1350DN 打印机的默认设置是基于 AppleTalk协议 的。为了使Mac OS X v10.6能够使用该打印机,就需要修改该打印机的默认协议,上图是设置打开 Bonjour协议 ,而下图设置关闭AppleTalk协议。这样,Mac OS X v10.6电脑就可以自动发现该网络打印机:Kyocera FS-1350DN, 其显示名称为KM452D6F。
Ruby世界:静态Web软件框架nanoc
由Gudao Luo在2009-09-20 at 18:37发表的
Ruby代码世界:Array排序代码实例
由Gudao Luo在2009-09-06 at 10:33发表的
Apple世界:Apple操作系统Snow Leopard的新功能视频(德文)
由Gudao Luo在2009-09-04 at 20:24发表的

- 说明:
- Apple操作系统Snow Leopard的新功能视频(德語)
- 一个新操作系统的出现,肯定会出现这样那样的问题。这一次Snow Leopard也不例外,可能问题还不少。这是可以理解的,想要完成一个兼顾32位系统的64位操作系统,的确不是一件容易的事情。新操作系统刚一开始肯定不能马上在企业或者自己工作的电脑上投入使用,一定要观望一段时间。
JQuery插件世界:动态选择框asmSelect最佳解决方案
由Gudao Luo在2009-08-09 at 14:57发表的
《Rails框架九十九例丛书 : 框架功能》-- Rails ActiveMailer系列
由Gudao Luo在2009-08-08 at 10:43发表的

- 说明
- 致谢:非常感谢王大力、冯侃、Donner So和姜伟等朋友的大力支持
- 论坛:http://groups.google.com/group/cnrails (需要注册)
- Rails框架九十九例丛书:框架功能(发送邮件完整版本)
Rails世界:源代码分析工具Excellent
由Gudao Luo在2009-08-06 at 21:05发表的
Apple世界:苹果下一版操作系统 Mac OS X 10.6 "Snow Leopard"
由Gudao Luo在2009-08-05 at 21:29发表的

- 说明
- 苹果”雪豹”(Snow Leopard)将于2009年9月发布,售价29美元。这是在Mac OS X Leopard基础上的更新版本价格,含有一个授权码=29美元。
- 苹果”雪豹”(Snow Leopard)将仅仅运行于基于intel的苹果电脑(Mac OS X Snow Leopard requires an Intel-based Mac.)
- 苹果”雪豹”(Snow Leopard)产品现在仅仅可以预定。
- 苹果”雪豹”是一款完整的64位操作系统,最大支持16TB内存。
- 苹果”雪豹”简化了开发者对多核心处理器进行编程的过程。
- 苹果”雪豹” 所有的核心软件皆为 64位。
- 苹果”雪豹” 新增中文触摸手写识别功能。
Rails世界:最好Rails网络入门教程
由Gudao Luo在2009-08-04 at 22:59发表的
第一例:基于SMTP方式的Rails软件
由Gudao Luo在2009-08-03 at 20:50发表的
Rails框架九十九例丛书:——框架功能

- 说明
- 请看:
http://hhtong.com/news/2008/12/23/rails——rails-activemailer/
或者
http://www.lycom.de/past/2009/8/8/rails99-2009-08-08/ 本书内容正在让朋友审核阅读。等到他们完成以后马上发布。你想马上阅读吗?只要发个邮件给我:gudao.luo@gmail.com ,只要在邮件标题上复制“第一例:基于SMTP方式的Rails软件”,就可以了,其它什么也不要写。但是我有一个小小的愿望,请你给我提你的意见,无论是技术上还是文字上都可以。不要忘记了!
- 请看:
Rails视频世界:利用苹果工具Xcode开发Rails软件
由Gudao Luo在2009-08-01 at 18:30发表的
- 说明
- 工具Xcode的安装目录:
/Developer/Applications/Xcode.app - 视频链接
- 工具Xcode的安装目录:
Rails开发世界:推荐Rails框架API网站
由Gudao Luo在2009-07-14 at 12:56发表的
Google世界:通过关键词bd7lx搜索Ruby信息
由Gudao Luo在2009-07-13 at 06:51发表的
技巧命令: 查询自己所需要的rake命令信息
由Gudao Luo在2009-07-12 at 08:00发表的
代码世界:Ruby/Rails反射技术实例
由Gudao Luo在2009-07-11 at 06:51发表的

- 使用正常类方法代码
@blogs = Blog.find(:all)- 使用反射技术代码(Ruby语言)
@blogs = Kernel.const_get("Blog").send(:find, :all)
@blogs = Object.const_get("Blog").send(:find, :all)
@blogs = Kernel.eval("Blog").send(:find, :all)- 使用反射技术代码(类名称包含”::”)(Ruby语言)
Model = "ActiveRecord::Base".split('::').inject(Object) do |base,item|
base.const_get(item)
end
class Blog < Model; end- 使用反射技术代码(Rails框架)
@blogs = "Blog".classify.constantize.send(:find, :all)
Rails技术系列:使用命令script/runner实现输出文件csv
由Gudao Luo在2009-07-10 at 21:05发表的


具体实现步骤
- 安装Rails框架插件fastercsv
sudo gem install fastercsv
- 创建Rails应用软件
rails demo && cd demo
ruby script/generate scaffold post title:string body:text published:boolean
rake db:migrate && rake db:fixtures:load
- 实现输出文件csv代码
vim lib/export_csv.rb
- 运行输出文件csv的代码
script/runner lib/export_csv.rb
- 查看导入数据库数据
cat cat test/fixtures/posts.yml
- 使用终端查看导出文件csv数据
cat posts.csv
- 使用OpenOffcie查看导出文件csv数据
open posts.csv
Rails参考资料:迁移类型及其限制值/默认值
由Gudao Luo在2009-07-09 at 18:45发表的
| 迁移类型 | MySQL类型 | 限制值/默认值 |
|---|---|---|
| :binary | TINYBLOB, |


































































































































