Skip to content

Latest commit

 

History

History
executable file
·
70 lines (61 loc) · 2.97 KB

README.md

File metadata and controls

executable file
·
70 lines (61 loc) · 2.97 KB

VIM SETUP

  1. Install vim, ConEmu, and mysgit
  2. Add "C:\Program Files (x86)\Vim\vim74" to Path system variable
  3. Install Vundle by cloning into %USERPROFILE%/vimfiles/bundle/Vundle.vim
  4. https://github.com/VundleVim/Vundle.vim/wiki/Vundle-for-Windows Gonna have to use this command (explained in link):
  5. Clone dotfiles from github
  6. git clone https://github.com/dphuang2/dotfiles.git
  7. Copy and paste dotfile into %USERPROFILE% directory
  8. Open ConEmu and import settings
  9. Run Vim from ConEmu and :PluginInstall!

Rails Notes

Installation:
  1. Download RailsInstaller: http://railsinstaller.org/en
  2. Open Git bash and run: curl http://installrails.com/update_rubygems.rb | ruby
  3. must "gem intall rails" to install rails
  4. bundler install: "gem install bundler"

Notes

  • coffeescript doesn't work on windows so include this in Gemfile for every new rails project: gem 'coffee-script-source', '1.8.0' and run: bundle update coffee-script-source
  • This is done to force coffeescript to older version that works for Windows
    Solution explained: http://stackoverflow.com/a/28331807

IM Setup from Scratch on Windows 10 64 bit

  1. Download RailsInstaller (Ruby 2.2.4 version)
  2. Clone from github: https://github.com/berkmancenter/internet_monitor.git
  3. Gemfile specifies ruby version 2.1.6 so need to change to 2.2.4
  4. Install PostgreSQL
  5. "gem install pg"
  6. add C:\Program Files\PostgreSQL\9.5\bin to Path system variable
  7. this is to allow command line PostgreSQL tasks
  8. Create user: postgre w/ password: postgre
  9. use pgadmin or command line
  10. Run bundle
  11. rake db:setup
  12. Run rails server

Errors

  • config/database.yml is missing (because it is included in .gitignore)
  • Solution: temporarily placed base database.yml file in there
  • Please install the sqlite3 adapter: `gem install activerecord-sqlite3-adapter` (sqlite3 is not part of the bundle. Add it to Gemfile.) (LoadError)
  • Solution: add "gem 'sqlite3'" to Gemfile and run "bundle install"
  • When visiting localhost: Could not find table 'categories' error in app/controllers/application_controller.rb:8:in `load_groups'
  • Install PostgreSQL
  • "gem install pg"

Apachi-Nifi setup for Windows 10 64 bit

  1. Download apachi-nifi
  2. execute run-nifi in the bin folder
  3. open localhost:8080/nifi