Thursday, December 22, 2016

Linux - Convenience Settings

To make directory color and VIM comment color visible in dark background
.vimrc:  set bg=dark
.dir_colors:  DIR 01;36

To make VIM tab space = 4 instead of 8
.vimrc:  set tabstop=4

How to create React apps with "Create-React-App"?

https://github.com/facebookincubator/create-react-app

Installation
npm install -g create-react-app


Create app

create-react-app my-app
cd my-app/

Start Server to see your app
npm start

Then open http://localhost:3000/ to see your app.


Deployment

When you’re ready to deploy to production, create a minified bundle with 

npm run build

Inside the directory

Inside that directory, you can run several commands:

  npm start
    Starts the development server.

  npm run build
    Bundles the app into static files for production.

  npm test
    Starts the test runner.

  npm run eject
    Removes this tool and copies build dependencies, configuration files
    and scripts into the app directory. If you do this, you can’t go back!

We suggest that you begin by typing:

  cd MyReactApp1
  npm start


Tuesday, April 19, 2016

How to overcome 2gb ram limit on visual studio 2015 emulators?

https://guido1993.wordpress.com/2015/05/05/how-to-overcome-the-2-gb-ram-limit-on-android-visual-studio-2015-emulators/

“Visual Studio Emulator for Android: The emulator is unable to verify that the virtual machine is running: Not enough memory is available in the system to start an emulator that uses 2048 MB of startup RAM. Please close other applications and try to launch the emulator again. If closing other applications doesn’t help, please follow the instructions on this KB article: http://support.microsoft.com/kb/2911380/en-us”

C:\Users\[YourUserName]\AppData\Local\Microsoft\VisualStudioEmulator\Android\Containers\Local\Devices


In the config files, change 

device.vm.ram.size=2048 to
device.vm.ram.size=1024


FROM: device.vm.ram.size=2048
TO: device.vm.ram.size=1024