Articles

android, ror, Ubuntu

Deploy Ruby On Rails on Ubuntu Server 17.04 Zesty Zapus from Desktop or Phone

Originally posted 2017-09-15 08:34:21. Republished by Blog Post PromoterThis tutorial will show you how to deploy Ruby On Rails on Ubuntu Server 17.04 Zesty Zapus (the latest LTS Ubuntu) from a local desktop running Ubuntu or Zorin (i’m using Zorin 12) or Android (phone). #This is a tutorial and not an explanation, so i’m just going to tell you exactly what …


Ubuntu

Ubuntu Terminal Shortcuts

Originally posted 2017-09-13 08:24:59. Republished by Blog Post PromoterUbuntu Terminal Navigation ctrl + alt + t   pwd Print working directory Up Arrow or Ctrl + P Scrolls through the commands you’ve entered previously. ls List files cd home Down Arrow or Ctrl + N Takes you back to a more recent command. cd/ root cd.. Up one directory Enter …


How to install Node JS in Ubuntu or Zorin OS and Run a Basic Application

Originally posted 2017-11-06 02:23:19. Republished by Blog Post PromoterInstall Node.js cd ~ curl -sL https://deb.nodesource.com/setup_6.x -o nodesource_setup.sh   sudo bash nodesource_setup.sh sudo apt-get install nodejs sudo apt-get install build-essential Create a basic Node.js Application cd ~ nano hello.js hello.js #!/usr/bin/env nodejs var http = require(‘http’); http.createServer(function (req, res) {  res.writeHead(200, {‘Content-Type’: ‘text/plain’});  res.end(‘Hello World\n’); }).listen(8080, ‘localhost’); console.log(‘Server running at http://localhost:8080/‘); …

Angular JS Concepts

Originally posted 2017-11-06 09:01:14. Republished by Blog Post Promoter Concept Description Template HTML with additional markup Directives extend HTML with custom attributes and elements Model the data shown to the user in the view and with which the user interacts Scope context where the model is stored so that controllers, directives and expressions can access it Expressions access variables and …

MySql Cheat-sheet

Originally posted 2017-11-06 02:38:27. Republished by Blog Post PromoterCommands Access monitor: mysql -u [username] -p; (will prompt for password) Show all databases: show databases; Access database: mysql -u [username] -p [database] (will prompt for password) Create new database: create database [database]; Select database: use [database]; Determine what database is in use: select database(); Show all tables: show tables; Show table structure: describe [table]; List all indexes on a table: show index …

Install Process Manager for Node JS in Ubuntu Environment

Originally posted 2017-11-06 02:34:40. Republished by Blog Post Promotersudo npm install -g pm2 pm2 start myapplication.js  ie  hello.js   Output: [PM2] Spawning PM2 daemon with pm2_home=/home/james/.pm2 [PM2] PM2 Successfully daemonized [PM2] Starting /home/james/hello.js in fork_mode (1 instance) [PM2] Done. ┌───────┬──────┬────────┬───┬─────┬───────────┐ │ Name  │ mode │ status │ ↺ │ cpu │ memory    │ ├───────┼──────┼────────┼───┼─────┼───────────┤ │ hello │ fork │ online …

Angular JS Helpful Information

Originally posted 2017-11-06 09:13:37. Republished by Blog Post PromoterHow Does Angular Js work? When AngularJS starts your application, it parses and processes this new markup from the template using the compiler. The loaded, transformed and rendered DOM is then called the view. AngularJS’s HTML compiler allows the developer to teach the browser new HTML syntax. The compiler allows you to attach behavior to any …

How To Configure “$ Rails New” Default Preferences

Originally posted 2017-09-15 18:26:15. Republished by Blog Post PromoterThis sets your new application install defaults for ROR. open terminal #ctrl + alt + t       2. sudo (your editor here) ~/.railsrc #this will create a new file       3. Format as follows; “–skip-” (ie bundle, test or individual gem) “–d ”  (ie mysql or postgresql to …