使用命令提交文件到googlecode
假设项目的文件夹名字是XXX
svn checkout https://XXXX.googlecode.com/svn/trunk/ XXX--username XXX
输入密码!!!!!
svn import XXX http://xxx.googlecode.con/svn/trunk/
continue
linux平台中RubyOnRails开发环境的搭建
linux平台中RubyOnRails开发环境的搭建
mysql
sudo groupadd mysql
sudo useradd -g mysql mysql
下载源码 ,然后解压缩 tar -zxvf mysql-x.x.xx.tar.gz
cd mysql-x.x.x.
./configure –prefix=/usr/local/mysql –with-charset=utf8 –with-collation=utf8_general_ci –with-extra-charsets=latin1
make
sudo make install
sudo cp support-files/my-medium.cnf /etc/mysql/my.cnf
cd /usr/local/mysql
sudo bin/mysql_install_db --user=mysql --basedir=/usr/local/mysql
sudo chown -R root .
sudo chown -R mysql /usr/local/mysql/var
ruby
下载好源码,解压缩,编译安装
gem
下载好源码 ,解压缩,然后 ,进入目录,sudo ruby setup.rb
rails
sudo gem install rails --include-dependencies
mongrel
sudo gem install mongrel
mysql适配器
sudo gem install mysql -- --with-mysql-dir=/usr/local/mysql
Vim的配置
cd ~
git init
git remote add origin git://github.com/rainux/vimfiles.git
git fetch
git checkout origin/master -b master
# 或者使用专门为 Vim 6.x 准备的 6.x 分支,注意这个分支几乎不再更新,你真的应该升级到 Vim 7.x。
git checkout origin/6.x -b 6.x
自己封装了的一个httprequest类
require "net/http"
require "net/https"
class HttpRequest
attr_accessor :cookie
def initialize
end
def get_response(domain,path)
url = URI.parse(domain)
resp = Net::HTTP.start(url.host, url.port) {|http|
http.get(path)
}
return deal_response(resp)
end
def post_request(domain,path,data)
url = URI.parse(domain)
http=Net::HTTP.new(url.host, url.port)
headers ={
'Content-Type' => 'application/x-www-form-urlencoded',
}
headers['Cookie']= @cookie if !@cookie.nil?
resp = http.post(path, data, headers)
return deal_response(resp)
end
private
def deal_response(res)
@cookie = res.response['set-cookie']
return res
end
end