- 浏览: 111050 次
- 性别:
- 来自: 南京
最新评论
文章列表
名词解释code example:
An executable example of how the subject code can be
used, and its expected behaviour (expressed with expectations) in
a given context. In BDD, we write the code examples before the
subject code they document.
名词解释:example group
A group of code examples.
名词解释:s ...
- 2009-09-07 15:53
- 浏览 1016
- 评论(0)
1.起床后锻炼5分钟,不仅为身体充电,而且能加倍燃烧卡路里。很多人误认为晨练必须5点钟爬起来跑上几公里,其实是不必要,也不太现实的。你只消花5分钟, 做做俯卧撑和跳跃运动,使心率加快,就能达到理想的效果;要么对着镜子冲拳100下,感受那种能量积蓄的过程。
这条我试过,还不错
2.养成喝水习惯
处于缺水状态的你,会时常感觉衰惫。清早起来先喝一杯水,做一下内清洁,也为五脏 六腑加些“润滑剂”;每天至少喝进去一升水,不过也不是多多益善。
3.讲究吃早餐
美国有研究发现,不吃早餐的人身高体重比(BMI)偏高,也就是体重超标,还爱犯困,做事无精打采;讲究吃早餐的人则精力充沛得多, ...
- 2009-07-06 00:07
- 浏览 724
- 评论(0)
bug1:/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- prawn (MissingSourceFile)
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
- 2009-07-02 09:46
- 浏览 821
- 评论(0)
发现按照网上一些文章配置的CVS总是出现 no such repository问题。现总结如下,只要按照我说的一步步配,绝对没有问题。经在Ubuntu 9.04下测试通过。
1.联网,配置好Ubuntu 9.04源,执行:shell>sudo apt-get install cvs
2.shell>sudo apt-get install cvsd 。此时会问你repository的位置,我按默认配制,没做修改,建议你也不要改,如果你不清楚的话。()
3. 创建这个/myrepos。
shell>cd /var/lib/cvsd
shell>sudo mkdir m ...
- 2009-06-29 18:56
- 浏览 902
- 评论(0)
ubuntu9.04最近发布了正式版
安装:
1.下载ubuntu9.04安装包,默认是ISO文件。注:安装包不能直接解压缩运行WUBI.EXE安装,必须通过虚拟光驱引导才能安装。
2.运行虚拟光驱DAEMOON TOOLS选择Ubuntu的ISO镜像文件,选择INSIDE WINDOWS INSTALL
3.选择安装路径,简体语言,输入用户名密码,安装文件以后会提示重新启动,启动后会出现双系统选择菜单,选择UBUNTU LINUX,继续安装文件,一切OK.
配置ADSL上网:
1.选择网络配置,点击DSL选项卡,点击ADD按钮,输入ADSL用户名(固定电话号码),密码 ...
- 2009-05-26 09:05
- 浏览 1124
- 评论(0)
以下是出错信息:
ddo:~/桌面/fcitx-3.5> make
make all-recursive
make[1]: Entering directory `/home/ddo/桌面/fcitx-3.5'
Making all in doc
make[2]: Entering directory `/home/ddo/桌面/fcitx-3.5/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/ddo/桌面/fcitx-3.5/doc'
Making all in xpm
make ...
- 2009-05-13 20:09
- 浏览 1306
- 评论(0)
BillHiggins 写道
Roy, what do you think is the reason that so many people who think they are doing REST get it wrong?
Fielding 写道
Hi BillHiggins:
To some extent, people get REST wrong because I failed to include enough detail on media type design within my dissertation. That’s because I ran out of ti ...
- 2009-05-04 19:44
- 浏览 878
- 评论(0)
1. module B
2. def test
3. module_eval do
4. def talk
5. puts "Hello"
6. end
7. end
8. end
9. end
10.
11. class A
12. end
13.
14. A.extend B
15.
16. A.test
17. A.new.talk
- 2009-05-03 15:53
- 浏览 630
- 评论(0)
"本配置和注释主要来源于<<Vim 实用技术,第 3 部分: 定制 Vim>>----http://www.ibm.com/developerworks/cn/linux/l-tip-vim3/
"整理:陈刚 ( http://www.chengang.com.cn )
"注释。其中包含一个模式行
" vim:shiftwidth=2:tabstop=8:expandtab
"判断系统是否具有“自动命令”(autocmd)的支持
if has('autocmd')
"清除所有的自动命令,以方便调试
a ...
- 2009-04-27 23:54
- 浏览 2799
- 评论(0)
目的:让nginx随服务器启动
操作系统:
<code>
Linux localhost.localdomain 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:27:17 EDT 2006 i686 i686 i386 GNU/Linux
</code>
以下内容保存为文件nginx到/etc/init.d/目录下
<code>
#! /bin/sh
# chkconfig: - 58 74
# description: nginx is the Nginx daemon.
# Description: S ...
- 2009-04-27 22:19
- 浏览 1482
- 评论(0)
ferret采用will_paginate实现分页
rails_env有ferret经典教材有分页的实现,但貌似有点点粗.我结合will_paginate改了下
原来的代码
------------------------------------
def self.full_text_search(q, options = {})
return nil if q.nil? or q==""
default_options = {:limit => 10, age => 1}
options = default_options.merge options
# g ...
- 2009-04-27 13:59
- 浏览 540
- 评论(0)
== Parameters
#
# All request parameters, whether they come from a GET or POST request, or from the URL, are available through the params method
# which returns a hash. For example, an action that was performed through <tt>/weblog/list?category=All&limit=5</tt> will include
# ...
- 2009-04-15 21:38
- 浏览 697
- 评论(0)