`
文章列表
1.自行颁发不受浏览器信任的SSL证书   参考:Ubuntu下配置Nginx HTTPS http://www.mike.org.cn/articles/ubuntu-config-nginx-https        Ubuntu下配置Apache HTTPS http://www.mike.org.cn/articles/ubuntu-config-apache-https 2.受浏览器信任的StartSSL免费SSL证书   startssl http://www.startssl.com/   说明:要我们有自己的域名,且有域名注册时的邮箱才可测试部署情况   申请参考:http:// ...
http://wiki.ubuntu.org.cn/index.php?title=Git%E6%9C%8D%E5%8A%A1%E5%99%A8Gitosis%E5%AE%89%E8%A3%85%E8%AE%BE%E7%BD%AE&variant=zh-hans
一 、apache+passenger 1. 安装好 ror 环境     bundle exec rake RAILS_ENV=production db:create bundle exec rake RAILS_ENV=production db:migrate 2. 安装apache    sudo apt-get install apache2 apache2-mpm-prefork apache2-prefork-dev 3.安装 passenger   sudo gem in ...
First Create a New Repository   project name :company   Next steps:   mkdir company cd company git init touch README git add README #git add . commit all git commit -m 'first commit' git remote add origin git@github.com:pobing/company.git git push -u origin master       Exi ...
To remove RVM, first you need to implode:   1.  rvm implode 2.  Then check out your ~/.bashrc and remove the line   echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"' >> ~/.bashrc 3.  Finally, RVM will leave its settings on the s ...
11.04中安装Eclipse后发现所有的斜体字都显示为方框,而中文可正常显示,应不是编码的问题,而是字体找不到的原因。 在Ubuntu软件中心中搜索“Italic Monospace”,发现有一项“Vera font family derivate with additional characters”,在线安装即可解决。
1.install openssh-server http://aofengblog.blog.163.com/blog/static/6317021201111415112526/ sudo apt-get install openssh-server sudo /etc/init.d/ssh start sudo /etc/init.d/ssh stop sudo /etc/init.d/ssh restart eg:scp copy scp -r /home/space/music/ root@www.cumt.edu.cn:/home/root/others/ sc ...
1.第一步    su root ***    安装依赖包    yum -y install gcc yum install flex autoconf zlib curl zlib-devel curl-devel bzip2 bzip2-devel ncurses-devel libjpeg-devel libpng-devel libtiff-devel freetype-devel pam-devel gcc+ gcc-c++ libxml2 libxml2-devel libxslt libxslt-devel (说明:以上包都得安装上 ...
  参考 源自Ruby迷>>原文链接地址:RSpec 2 on Rails 3入门 BDD(Behavior Driven Development)行为驱动开发现在很火,因此RSpec也非常流行。 RSpec是一个基于Ruby的BDD行为测试框架,在Rails中,很多人用它来代替默认的测试框架Test::Unit。这是一篇RSpec入门文章。 一、创建项目
    1. rake rspec #执行所有测试 rake spec:models #只执行models的测试 rake spec/models/mymodel_spec.rb # 只测试一个文件     bundle exec rspec spec/controllers/sessions_controller_spec.rb -l 11 --format progress --format html --out=report.htmlbundle exec rspec spec/controllers/sessions_controller_spec.rb -l 11  -f ...
原文地址:http://my.oschina.net/u/185728/blog/33156 首先,说明一下安装的步骤。 1、在http://rubyinstaller.org 下载需要的ruby版本,因为是exe文件,所以,你可以直接安装。 2、下载devkit文件,然后解压安装,选择自己想要的目录。(这一步的顺序挺重要,否则第4步操作可能会出错) 3、cmd进入windows命令操作,进入devkit的文件夹下,执行下面的操作: ruby dk.rb init ruby dk.rb install 4、cmd进入windows命令操作,使用gem install ra ...
rails on windows 转:http://tech.techweb.com.cn/thread-509701-1-1.html 1、ruby和编译环境 请访问一个不存在的网站 rubyinstaller.org,下载上面的ruby-1.8或ruby-1.9的7-zip压缩包和devkit。 1.1 ruby安装很简单,解压7-zip,放置到你自己喜欢的目录,如 ...
RCov, does not work with Ruby 1.9.CoverMe – Code Coverage for Ruby 1.9 https://github.com/markbates/cover_me
模拟浏览器,人工测试 http://hlee.iteye.com/blog/768459 1. 文本框填充:    直接填充   :     fill_in("#{@user.id}_name",:with=>"jdo")    通过节点赋值 :   find(:xpath,"//html/body/div[2]/div[2]/div/div/div[3]").set("123456") 2. 点击操作超链接     点击元素: 通过Id 找到名为tab_user 的元素点击     find ...
package com.zhishu; /** * java 代码打印1000以内的质数(素数) * @author Administrator * */ public class Zhishu { public static void main(String[] args) { int i = 2; while (i < 1000) { boolean flag = true; for (int j = 2; j < i / 2 + 1; j++) { if (i % j == 0) { flag = f ...
Global site tag (gtag.js) - Google Analytics