`
HUYIZIZHEN
  • 浏览: 113987 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论
文章列表
For a Multi-User install you would execute the following: $ curl -L https://get.rvm.io | sudo bash -s stable install path: /usr/local/rvm source ~/.bashrc 重新加载修改过的bash配置文件 type rvm | head -1:如显示rvm is a shell function则说明RVM安装成功 rvm -v 显示当前rvm 版本 rvm list known 显示当前可用的ruby版本 rvms ...
for Ubuntu 12.10 I'm using zsh and rvm, EDITOR variable is set in ~/.zprofile with EDITOR=subl
To open a bundled gem, set $EDITOR or $BUNDLE EDITOR 解决方法: export EDITOR=gedit
注册MongoDB为系统服务(此步骤必须以系统管理员身份运行cmd,否则会报错) 以系统管理员身份运行cmd输入并切换至MongoDB的bin目录运行以下语句 mongod.exe --dbpath=d:\mongodb\db --logpath=d:\mongodb\logs\mongodb.log --install --serviceName "MongoDB" 回车 如果控制台出现类似Tue Oct 09 12:05:15 Service can be started from the command line with 'net start MongoD ...
1. 首先 $ rails new sample_app --skip-test-unit 2. 在Gemfile中添加 gem 'rspec-rails', '2.11.0' gem 'factory_girl_rails','1.4.0' gem 'capybara' 3. $ bundle install 4. $ rails generate rspec:install 5. 创建一个Controller $ rails generate controller StaticPages home help --no-test-framew ...
rails 中 mongoid.yml hosts: - - 172.18.6.80 - 27017 - - 172.18.6.80 - 27018 - - 172.18.6.80 - 27019 - - 172.18.6.81 - 27017 - - 172.18.6.81 - 27018 - - 172.18.6.81 - 27019
[Desktop Entry] Name=Eclipse Comment=Eclipse IDE Exec=/opt/eclipse/eclipse Icon=/opt/eclipse/icon.xpm Terminal=false Type=Application Categories=Application;Development;

git 常用命令

    博客分类:
  • git
Git常用操作命令收集: 1) 远程仓库相关命令 检出仓库:$ git clone git://github.com/jquery/jquery.git 查看远程仓库:$ git remote -v 添加远程仓库:$ git remote add [name] [url] 删除远程仓库:$ git remote rm [name] 修改远程仓库:$ git remote set-url --push[name][newUrl] 拉取远程仓库:$ git pull [remoteName] [localBranchName] 推送远程仓库:$ git push [remoteN ...
[size=medium][/size] 1.document.write(“”); 输出语句 2.JS中的注释为// 3.传统的HTML文档顺序是: document->html->(head,body) 4.一个浏览器窗口中的DOM顺序是: window->(navigator,screen,history,location,document) 5.得到表单中元素的名称和值: document.getElementById(“表单中元素的ID号”).name(或value) 6.一个小写转大写的JS: documen ...

rails date format

    博客分类:
  • ROR
   1.Time#strftime    2.     time.strftime( string ) => string    3.    4.     Formats _time_ according to the directives in the given format    5.     string. Any text not listed as a directive will be passed through    6.     to the output string.    7. ...

mongoDB 入门

转载自 http://www.cnblogs.com/hoojo/archive/2011/06/01/2066426.html 一、准备工作 1、 下载mongoDB 下载地址:http://www.mongodb.org/downloads 选择合适你的版本 相关文档:http://www.mongodb.org/display/DOCS/Tutorial 2、 安装mongoDB A、 不解压模式: 将下载下来 ...
试试在hosts文件中添加 74.125.237.1 dl-ssl.google.com 74.125.237.1 dl.google.com
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>CSS3文字燃烧特效示例</title> <style type="text/css"> body { background-color:#333; } h1 { margin-t ...
01 mongo –path 02 db.AddUser(username,password)  添加用户 03 db.auth(usrename,password)     设置数据库连接验证 04 db.cloneDataBase(fromhost)     从目标服务器克隆一个数据库 05 db.commandHelp(name)           returns thehelpforthe command 06 db.copyDatabase(fromdb,todb,fromhost)  复制数据库fromdb—源数据库名称,todb—目标数据库名称,fromhost—源数据库服务器地 ...
MongoDB 从入门到精通专题教程 最近有好多同事都在用mongodb,一个新的面向文档型介于面向对象与关系型之间免费的数据库,据说有拥有比传统数据库更高的性能。趁今天早上有空,就研究了一下。 首先上mongodb官网(www.mongodb.org)看了一下开始文档,下了个windows版的,装了一下,并且写了几个简单的例子,测试了一下,经过测试,mongodb确实好用,也很简单,当然其中也遇到了很多问题,因此为了能让以后的同学们更好的入门,所以做一个简单的介绍。如果你想尽快入门,则可以按照如下的步骤进行。 1,安装并启动数据库 从官网(www.mongodb.org/down ...
Global site tag (gtag.js) - Google Analytics