Skip to content

Winston Lee

  • Home
  • Projects
  • Blog
Winston Lee

NodeJS

NodeJS

Using git patch or how to live with your packages not updating

There’s a longstanding bug in react-native that has been active since 2018. Korean text is broken on iOS (especially if you move the input cursor to the beginning of the line) https://github.com/facebook/react-native/issues/19339 Various fixes were merged and reverted over the…

Read More Using git patch or how to live with your packages not updatingContinue

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

Development | NodeJS

Install npm packages directly from a github repo

The above installs a node package from github into your node_modules folder and automatically adds the dependency to your package.json!

Read More Install npm packages directly from a github repoContinue

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

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