Visual Studio code settings

Install the following plugins:

  1. vscode-icons
  2. Netbeans keymaps
  3. Vue.js extension pack

Disable the following settings (search in settings):

  1. Explorer autoreveal

Disable line annotations:

File ->Settings->Extensions->GitLens: disable Current line blame annotations

 

Enable zoom via mouse:

  1. Ctrl+Shift+P (or View->Command Palette…)
  2. Type Open User Settings
  3. Edit settings.json
  4. Add “editor.mouseWheelZoom”: true
  5. Save it.

Vue links

Basics

  1. Official Style guide (v2)
  2. Deverus Style guide
  3. https://michaelnthiessen.com/26-time-saving-tips/

Authentication

  1. JWT authentication (not vendor specific)
  2. Authentication best practices (theory) 🏅
  3. Authentication in spa, the right way 🏅
  4. Consuming JWT (cookie storage)
  5. (theory) Token based authentication
  6. User authentication with Vue and Vuex (jason watmore)
  7. https://scotch.io/tutorials/handling-authentication-in-vue-using-vuex (scotch.io)
  8. Cookie authentication for APIs

Rest API

  1. Implement with Vuex
  2. API calls with Vuex
  3. API calls without Vuex 🏅

Tools

  1. Basic understanding of elixir, gulp and webpac
  2. https://ponyfoo.com/articles/json-web-tokens-vs-session-cookies

Forms

  1. Submit with enter
  2. Use autofocus

Components

Validation

  1. masks

Routing

  1. https://stackoverflow.com/questions/30414860/how-can-i-define-a-route-differently-if-parameter-is-not-integer
  2. https://css-tricks.com/storing-and-using-the-last-known-route-in-vue

Templates

  1. Best Vue JS templates 2018
  2. https://stackoverflow.com/questions/50891858/vue-how-to-pass-down-slots-inside-wrapper-component

Deployment

  1. https://appdividend.com/2018/07/13/vue-history-mode-routing-tutorial/

Vuetify

  1. https://vuetifyjs.com/en/styles/spacing

Audio staggering in Windows 10

Update:

There are now two better solutions:

1. Disable dynamic tick

  1. Open Command prompt (Admin) to bring up elevated command prompt.
  2. Type BCDEDIT /SET DISABLEDYNAMICTICK YES command and press Enter to fix the high DPC latency
  3. restart the computer

2. Install and use TCP optimizer:

  1. Download TCP optimizer
  2. Set settings to optimal
  3. restart the computer

If the above does not work, you can try the older solutions mentioned below.

Continue reading Audio staggering in Windows 10

Use PostMan to post JSON to REST backend

  1. Set web method to POST
  2. Add to the Headers:
    1. a key named: Accept with value application/json
    2. a key named: Content-Type with value application/json
  3. Optionally, if authentication is required:
    1. a key named: Authorization with value: bearer: token
  4. Add the JSON data to the raw area of Body of Postman
  5. Click send.

Token example::

Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9sb2NhbGhvc3RcL21pYWNcL2FwaVwvYXV0aFwvbG9naW4iLCJpYXQiOjE1NTc2NjgwOTUsImV4cCI6MTU1NzY3MTY5NSwibmJmIjoxNTU3NjY4MDk1LCJqdGkiOiJDa0VRVUZDa2xTZm9OcTZHIiwic3ViIjoxLCJwcnYiOiI4N2UwYWYxZWY5ZmQxNTgxMmZkZWM5NzE1M2ExNGUwYjA0NzU0NmFhIiwibmFtZSI6Ik1pQWMifQ.AWCjjEQh-Tmc4I9z3R0AA1QLUm5IuZAYSlRjeL5IrLo

Headers:

postman_laravel

Body:

postman_laravel_2