惯例优于配置(Convention over Configuration)来源于Ruby On Rails框架的设计理念,也被认为是Rails大获成功的关键因素之一。这里所谓的惯例,可以理解为框架对编程的一些约束,我们可以根据实现制订的默认准则,通过反射技能完成对象的建立,对象的协作,甚至是使用程序...
分类:
其他好文 时间:
2014-08-25 16:29:54
阅读次数:
160
Problem 34
145 is a curious number, as 1! + 4! + 5! = 1 + 24 + 120 = 145.
Find the sum of all numbers which are equal to the sum of the factorial of their digits.
Note: as 1! = 1 and 2! = 2 are...
分类:
其他好文 时间:
2014-08-25 11:59:14
阅读次数:
243
Problem 36
The decimal number, 585 = 10010010012 (binary), is palindromic in both bases.
Find the sum of all numbers, less than one million, which are palindromic in base 10 and base 2.
(Please...
分类:
其他好文 时间:
2014-08-25 10:06:04
阅读次数:
198
Issue:Gem files will remain installed in /tmp/bundler20140825-31835-p0c0p/sqlite3-1.3.9/gems/sqlite3-1.3.9 for inspection.Results logged to /tmp/bundl...
分类:
数据库 时间:
2014-08-25 01:10:23
阅读次数:
284
配置你的服务器 你需要在你的服务器上安装Ruby的环境,你可以使用RVM或者是rbenv. 上传到github 这步需要将你的应用上传到github,在你的github上创建新的repository,然后在你本机代码位置执行下面的命令,初始化g...
如果下列任何组件之一已经被安装,请酌情忽略1.Snort参照 CentOS6.5 安装snort2.GIT非官方个3.Ruby 版本限制> 1.9.2系统自带版本过低首先卸载掉yum erase ruby ruby-libs ruby-mode ruby-rdoc ruby-irb ruby-ri ...
分类:
其他好文 时间:
2014-08-24 00:14:31
阅读次数:
663
Update: An updated version of these instructions for Ubuntu 12.10 (Quantal Quetzal) is available here.1. Install the prerequisitessudo apt-get install...
分类:
其他好文 时间:
2014-08-23 16:33:21
阅读次数:
240
About Ruby on RailsRuby on Rails is an application stack that provides developers with a framework to quickly create a variety of web applications. Ru...
分类:
其他好文 时间:
2014-08-23 13:55:20
阅读次数:
193
GitLab是利用 Ruby on Rails 一个开源的版本管理系统,实现一个自托管的Git项目仓库,可通过Web界面进行访问公开的或者私人项目。它拥有与Github类似的功能,能够浏览源代码,管理缺陷和注释。可以管理团队对仓库的访问,它非常易于浏览提交过的版本并提供一个文件历史库。团队成员可以利...
分类:
其他好文 时间:
2014-08-23 13:54:20
阅读次数:
514
一:安装memcached
1.下载memcached包
下载地址:http://www.memcached.org (最新包就在首页,点击下载就OK)
解压包:# tar -zxvf memcached-1.4.13.tar.gz (根据自身的情况解压到目录)
进入目录:# cd memcached-1.4.13
2.安装libevent
...
分类:
系统相关 时间:
2014-08-22 16:17:09
阅读次数:
327