ror's tutorial
景太蓝
这个作者很懒,什么都没留下…
展开
-
Linux书籍推荐
转载 2009-05-29 22:23:00 · 331 阅读 · 0 评论 -
约定优于配置
约定优于配置是一个简单的概念。 系统,类库,框架应该假定合理的默认值,而非要求提供不必要的配置。 流行的框架如 Ruby on Rails2 和 EJB3 已经开始坚持这些原则,以对像原始的 EJB 2.1 规范那样的框架的配置复杂度做出反应。 一个约定优于配置的例子就像 EJB3 持久化,将一个 特殊的Bean持久化,你所需要做的只是将这个类标注为 @Entity 。 框架将会假转载 2011-06-09 12:43:00 · 1338 阅读 · 0 评论 -
RubyMine 3.0 注册 序列号 破解
<br />name: rubymine<br />===== LICENSE BEGIN =====<br />70414-12042010 <br />00002VG0BeoZbwmNAMNCx5E882rBEM <br />Ysn1P!e"s830EDlHcWg8gmqYVkvZMo <br />Injf4yqlO1yy"82NiwNzyYInoT7AiX<br />===== LICENSE END =====转载 2011-06-01 23:25:00 · 1166 阅读 · 0 评论 -
Ubuntu下阉割触摸板的解决方法
<br />Ubuntu下的触摸板太烦人了!总是在敲终端的时候,不小心碰到,粘贴一大段复制的其他内容上去,所以,我google了一下,找到了阉割它的办法:<br /> <br />在/etc/rc.local中添加代码:sudo modprobe -r psmouse<br /><br /><br />我的rc.local修改之后有点像这样:<br />#!/bin/sh -e<br />#<br /># rc.local<br />#<br /># This script is e原创 2011-06-01 14:51:00 · 631 阅读 · 0 评论 -
when git push got stuck
<br />Sometimes during a git remote push (i.e., to github or heroku), the client seems to stall.<br />$ git push heroku master<br />Warning: Permanently added the RSA host key for IP address '75.101.163.44' to the list of known hosts.<br />Counting原创 2011-05-28 12:00:00 · 2474 阅读 · 0 评论 -
A problem with git push via proxy
<br />when I use:<br />$ git push origin master<br /> <br />I got that:<br />ssh: Could not resolve hostname github.com: Name or service not known<br />fatal: The remote end hung up unexpectedly<br /> <br />I have tried sth like this:<br />kalvin@kalvi原创 2011-05-27 17:12:00 · 1284 阅读 · 0 评论 -
rails command not found
<br />Morning got and update the Gem<br /> <br />Then try rails -v I got that:<br />command not found...<br /> <br />search for the solution by google...<br />then I use<br />locate gem | grep bin<br />found that gem is in "/usr/local/ruby/lib/ruby/gems/1原创 2011-05-28 11:26:00 · 2198 阅读 · 0 评论 -
Have a fun
Weaknesses of This Users ResourceThough good for getting a general overview of Rails, the scaffold Users resource suffersfrom a number of severe weaknesses.• No data validations. Our User model accepts data such as blank names and invalidemail addr原创 2011-05-28 16:03:00 · 1040 阅读 · 1 评论 -
Ubuntu 10.04 Rails3
在Ubuntu 10.04上安装Rails3<br />1. 准备安装时使用的库 <br />$ sudo apt-get install gcc g++ build-essential libssl-dev libreadline5-dev zlib1g-dev linux-headers-generic<br />2. 下载Ruby1.9.2源码编译安装 <br />$ wget ftp://ftp.ruby-lang.org//pub/ruby/1.9/ruby-1.9.2-p0.tar.gz原创 2011-05-27 12:42:00 · 561 阅读 · 0 评论 -
如何在Ubuntu10.04上安装RVM及Ruby1.9.2
最近要用Ruby on rails开发一款测试工具,打算从linux安装开始做,今天在公司由于代理服务器的原因,走了不少弯路。但在Ubuntu10.04上安装RVM大概就是按照这个一步步来就好!首先,先要确认是否已安装Ruby$ which ruby$ 显示为空,说明机器上没有安装Ruby~OK,我们下来要安装一些必要软件 $ sudo apt-get install curl git-core rubyReading package lists... DoneBuilding dependen原创 2011-05-25 20:41:00 · 1537 阅读 · 0 评论 -
从Heroku看web架构
这几天给我印象比较深的是 HeroKu ,提供 Ruby 快速部署环境并提供托管能力,他们的架构图做得十分漂亮,一幅图胜过千言万语,要是对 Web 架构感兴趣,都别问架构师了,看看 HeroKu 的架构估计就明白个差不多了 :) 概览图好的架构图是画出来的,好的架构未必是设计出来的,最后架构好不好,还要看持续的改进能力。<acronym title="HyperText Transfe转载 2011-06-23 11:05:00 · 807 阅读 · 0 评论