Skip to content

Winston Lee

  • Home
  • Projects
  • Blog
Winston Lee

nodejs

How to install nvm
Development | NodeJS

How to install nvm

This is a follow up to [How to install npm the right way]. It turns out that while convenient for Node development, nvm is notoriously slow. Thanks to reddit user sscotth we can solve that quite easily. First, install nvm…

Read More How to install nvmContinue

Development | NodeJS

Self-note: Resume / recover a MongoDB change stream

Introduction Sometimes replicator needs to be restarted We cannot afford to lose one or two entries in time-series since it would throw the statistics off, and in exceptional cases, lost the max and min value Resume & recoverĀ  Check for…

Read More Self-note: Resume / recover a MongoDB change streamContinue

NodeJS | Web

How to connect to MySQL / MariaDB using Node.JS (the right way)

Use a connection pool. It helps Conserve resource, connections got recycled Better reliability: it automatically reconnects when there’s a problem How? Simple, instead of creating a connection, just create a pool. It’s designed as a drop in replacement for client.query()…

Read More How to connect to MySQL / MariaDB using Node.JS (the right way)Continue

NodeJS

How to install Node.JS

“Isn’t it just simply googling ‘how to install Node’” you asked? Yes it isn’t. The default Node installer will require administrator privilege The node process will require admin privilege also if installed that way (which is a bad idea: every…

Read More How to install Node.JSContinue

NodeJS

About mongo’s useNewUrlParser warning

Recently I got this warning when trying to create a new MongoDB application (node:28962) DeprecationWarning: current URL string parser is deprecated, and will be removed in a future version. To use the new parser, pass option { useNewUrlParser: true }…

Read More About mongo’s useNewUrlParser warningContinue

Cloud

Solving MongoDB timeout

Sometimes you may encounter an error like this While it’s easy to blame it on an overloaded server, there may be other reasons like You changed something in your database access code You are using a specific version of Mongoose…

Read More Solving MongoDB timeoutContinue

Cloud

Building a web application with Thing+ platform

These days buzzwords get thrown around a lot about the “4th industrial revolution”. While it’s simply a collection of upcoming technology to make our lives easier, the barrier of entry to new tech is always high. Thing+ platform was developed…

Read More Building a web application with Thing+ platformContinue

I’m an English / Vietnamese / Korean speaking software solution provider living in Korea

Get In Touch

To reach me, please use the contact form

© 2023

Github Linkedin
Scroll to top
  • Home
  • Projects
  • Blog