【vim命令相关】 1/2/3/4 dw:删除word dd:删除行 yy:复制,p粘帖(下一行) x:删除光标 r:替换当前光标值 u是撤销 ctrl+r:重做 w按word移动 /word(?word):查找,用n查找下一个 dpkg是Debian Package的缩写 gg+dG:clear Read More
posted @ 2014-02-27 21:42 Sophiawow Views(435) Comments(0) Diggs(0) Edit
在ubuntu14.04上安装msyql-server时出错, 用了下面的方法解决了问题: $ sudo apt-get --yes autoremove --purge mysql-server-5.5 $ sudo apt-get --yes autoremove --purge mysql-c Read More
posted @ 2016-02-04 14:28 Sophiawow Views(976) Comments(0) Diggs(0) Edit
系统为mac os 10.11,command tool什么的都安装了 在执行bundle install时出现下面错误: An error occurred while installing nokogiri (1.6.2.1), and Bundler cannot continue. Make Read More
posted @ 2016-02-03 00:21 Sophiawow Views(1638) Comments(0) Diggs(0) Edit
在执行bundle install时出现以下错误: Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /usr/local/bin/ruby extconf.rb checking fo Read More
posted @ 2016-02-02 22:29 Sophiawow Views(1354) Comments(0) Diggs(0) Edit
1. RAILS_ENV=production rails s启动服务器 2. RAILS_ENV=production rails generate controller ProductionArray 3. RAILS_ENV=production rails generate migratio Read More
posted @ 2016-02-01 15:05 Sophiawow Views(105) Comments(0) Diggs(0) Edit
在执行rails 命令时出现: diudiugirl@DIUs:~/ashelf$ rails s /home/diudiugirl/.rvm/gems/ruby-1.9.3-p545/gems/json-1.8.0/lib/json/common.rb:67: [BUG] Segmentation Read More
posted @ 2016-02-01 15:00 Sophiawow Views(341) Comments(0) Diggs(0) Edit
在执行rails s时出现“`block in replace_gem': Please install the mysql2 adapter: `gem install activerecord-mysql2-adapter`”错误: diudiugirl@DIUs:/var/www/ashelf Read More
posted @ 2016-02-01 11:28 Sophiawow Views(782) Comments(0) Diggs(0) Edit
在运行 bundle install时遇到下面问题: diudiugirl@DIUs:/var/www/ashelf$ bundle install Fetching gem metadata from https://ruby.taobao.org/........... Fetching ver Read More
posted @ 2016-02-01 11:18 Sophiawow Views(2298) Comments(0) Diggs(0) Edit
diudiugirl@DIUs:/var/www/ashelf$ RAILS_ENV=production rails s Usage: rails new APP_PATH [options] Options: -r, [--ruby=PATH] # Path to the Ruby binary Read More
posted @ 2016-02-01 11:15 Sophiawow Views(316) Comments(0) Diggs(0) Edit
1. 将当前用户添加到vboxusers用户组sudo adduser diudiugirl vboxusers2. 下载Oracle VM VirtualBox Extension Pack(根据virtualbox版本下载相应的扩展)3. 安装扩展在File->preferences->Exte... Read More
posted @ 2015-12-16 15:38 Sophiawow Views(513) Comments(0) Diggs(0) Edit
移动硬盘因为mac格式成exfat了,在ubuntu下无法识别,找到一个解决方法,安装package:sudo apt-get install exfat-fuse exfat-utils即可 Read More
posted @ 2015-10-20 17:19 Sophiawow Views(367) Comments(0) Diggs(0) Edit