软件世界:使用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
- 打开字典软件


