Netlify suddenly cannot build my site (fully SPA with VueJs) 2 days ago (with the same codebase) and I cannot figure out why.

  • Netlify consumes GitHub repo to build the site
  • Go to your site / Deploys/ Build settings / Publish directory = dist)

Correct fix: continue to build on CI (Netlify)

  • Move the entire thing in your package.json, from devDependencies to dependencies
  • WHY? most CI processes (include Netlify build) will set the NODE_ENV to production and npm will skip devDependencies with that variable set.

Dirty quick fix: build on local

  • prebuild your SPA site to /dist on local machine
  • include (modify your .gitignore) and push the /dist folder to GitHub repo (then Netlify…

You write a new NPM package and it helps you earn too much money to be a billionaire. OK fine, you can keep it as private repo on GitHub, no devs can access it, … BUT, include you!

Here is the fix if you want other projects (project A) of yours can access that private repository

  • after this step, you have a token ghp_bbpO_SO_GOOD_26APth
  • in project A’s…

Theo tôi đây ko phải câu hỏi ngu mà là hỏi rất hay. Đã xin phép tác giả post để trả lời 1 thể.


  • xxxOps: là các job được gọi là Ops (nói chung, là cả cloudOps lẫn devOps)
  • Dev: là các ông phát triển phần mềm chuyên nghiệp, software engineer (backend, frontend, fullstack)
  • Sysadmin: là những người làm hạ tầng, vận hành (hay được gọi là system engineer, hay system administrator trong các Job Description)

Tư tưởng đc mô tả như trong câu hỏi của ông em kia là KHÔNG TỐT cho doanh nghiệp. Cái tư tưởng…

Open your Chrome DevTools., sometime you found a wonderful REST API and want to see it in action, with several changes in the REST arguments.

Here is a gist to fetch result from (feel free to change it)

and display it right in the Console

// GET:
const response = await fetch('')
console.log(await response.json())
let r = await fetch('', {
method: "POST",
headers: {
"Content-Type": "application/json",
body: JSON.stringify({ lockevn: 1 }),
console.log(await r.json())

This help me a lot of time, but I always forget how to get `json()` from response, hahaha

Nếu đang buồn buồn chán chán, cần t ìm cái hobby gì thay đổi cho vui tay, ko lụt nghề, anh em Developer có thể thử mấy gợi ý sau đây nhé.

1. Tự động tưới nước cho cây cối

Kiếm một con Arduino (hay Raspberry Pi), sensor độ ẩm, và bơm nước, ống gen nhỏ, và đầu tưới nhỏ giọt.
Viết tí code để tưới khi độ ẩm xuống thấp.

Được gì:

  • cây sống lâu
  • code tí phần cứng
  • bốc phét là IoT ko ai dám chê.

2. Nghịch AI, máy học, hay cái gì trendy tí, phân loại hoa lan

The new Windows Terminal is now available officially 1.0. But as a power user (that’s why you use Terminal, right?), you might want to open it in any context with just a few keystrokes.

I myself use to press Windows R, then type cmd, enter to open the good old Command Prompt. I want the same thing to open Windows Terminal.

UPDATED Dec 2020: from now on, you can simply type wt in run to launch the terminal

type wt directly to open the new terminal
  • Windows R, type . (the dot) then enter. This will open your home folder.
  • Create a shortcut from C:\Users\lockevn\AppData\Local\Microsoft\WindowsApps\wt.exe (remember to change…

TL;DR I pick Dell Precision 5530 on Sep 2019

UPDATED-2: after 6 months, I still feel good with this choice.


  • 97Wh battery and Full-HD monitor for full-day mobility working
  • 32GB RAM, no time to upgrade
  • Core i7 gen8, close to top performance, but reliable (avoid over heat problem of i9 and Xeon on small chassis), and is the best performance/price
  • ~2kg for everyday carrying

Final list

  • Lenovo P1 (mobile workstation/performance line)
  • Lenovo P72 and Dell Precision 7730 (true mobile workstation, big and powerful)
  • Lenovo P52, Dell Precision 5530
  • Dell XPS 15 (2019) or Lenovo X1 Extreme Gen2 (business line)

Some takeaway statements

  • P1 is 1.7kg, a bit more lightweight than XPS 15, Precision…

You can use chalk to color your console.log()for better CLI experience. But it might not work in VSCode, it still shows black and white. The problem is in Debug Console of VSCode.

Debug Console is NOT a terminal emulator and it only implements a small number of ANSI control codes.

We should use the external console by open launch.json, set the "console": "integratedTerminal"

enable integrated terminal feature to have coloring output

Solution from


The next release after .NET Core 3.0 (September 2019) will be .NET 5 (aka .NET Core vNext) (November 2020, and then, every November, in GA and LTS flavor).

It will be just one .NET going forward, and you will be able to use it to target all platform (Windows, Linux, macOS, iOS, Android, WebAssembly, …), a single .NET runtime and framework that can be used everywhere.

All new features (APIs, runtime, languages) will be add to .NET 5 (You saw Windows Forms, WPF, Entity Framework 6 …)

  • Open source and community-oriented on GitHub.
  • Optimization, bugfixes, … will be built faster into the .NET 5 (daily)

(I omit things about compiler and runtime, …)

Final word: It’s bold move. .NET become simpler but also have broader and more expansive capability and utility.

I use VSCode, sometime after upgrading VSCode (along with the bundled-TypeScript), I cannot transpile (compile) my TypeScript project. Visual Studio Code includes TypeScript language support but does not include the TypeScript compiler, tsc

It seems that the tsc command in console (and in build script) does not have the same version with what I have in VSCode.

To fix it, simple remove the global TypeScript, and reinstall it again with newest version.

npm uninstall -g typescript
npm install -g typescript

You can test your install by checking the version. tsc --version

Another option is to install the TypeScript compiler locally in your project (npm install --save-dev typescript) and has the benefit of avoiding possible interactions with other TypeScript projects you may have.


Developer, Sportman. Write code with joy, bake app with heart. Opinions are my own. If you feel I save your time, go

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store