Lumin

Lumin @ilumin

Location:
Bangkok, Thailand
Joined:
Jan 25, 2018

Lumin
articles - 43 total

HTTP Compression VS Manual ZIP

Why I'm a lazy person. I've never done zip compression for responses to clients (although...

Learn More 0 0Jun 12

VSCode workspace set up for React+Node.js project

Location: .vscode/settings.json Content: { // --- // Editor setting "editor.formatOnPaste":...

Learn More 0 0May 11

Use Knip for finding unused code in the project

When I start working with legacy project. The first thing I need to do is to identify part of code...

Learn More 0 0Feb 5

ทำ Database Change Management ด้วย Liquibase

Definitions Changelog ไฟล์ที่รวบรวมการเปลี่ยนแปลงไว้...

Learn More 3 0Jul 26 '24

ทำ IoC ใน NestJS อย่างเหมาะสม

ใน NestJS document เค้าบอกเราว่า จะทำ IoC ใน NestJS ทำแบบนี้ // user/user.module.ts @Module({ ...

Learn More 0 0Feb 13 '24

How to make client-side logger with Amplify and CloudWatch

The client-side log is different from the server-side log because it didn't write into the file...

Learn More 10 0Mar 29 '23

Solved Node version on Mac M1

Node.js belowed v15 has a problem on Mac M1. We can't run legacy Node.js project with simply npm...

Learn More 0 0Jan 11 '23

How to read file and return as array of string or number as generic type

Actually we can write 2 functions: readFileAsArrayOfNumber and readFileAsArrayOfString, but I'm too...

Learn More 5 0Dec 6 '22

How to get back your OSX storage from node_modules

just run find . -name 'node_modules' -type d -prune -print -exec rm -rf '{}'; Enter...

Learn More 5 0Dec 6 '22

Fix Firebase error "auth/emulator-config-failed"

Official Document Said That create app instance create auth instance then connect with...

Learn More 4 1Nov 18 '22

Recommended React Hooks Convention

Related Plugin eslint-plugin-react react/hook-use-state...

Learn More 12 0Nov 15 '22

Create VSCode User Snippet

I have enough! My VSCode always autocomplete command that I don't need when I'm about to export...

Learn More 3 0Nov 3 '22

How to Implement Type in Module Federation (Poly repo)

When you're building a Typscript micro-frontend project with Webpack Module Federation, you might...

Learn More 5 0Oct 7 '22

UML Class Association Explain with Code

Short note about relation in UML class diagram. Relation and Dependency Can turn into...

Learn More 12 2Jun 14 '22

Get first date and last date of months with date-fns

Do not wasted time with native Date, use date-fns and go home! import { format, lastDayOfMonth }...

Learn More 20 1Jun 7 '22

How to expect partial value in object with Jest

Bad...

Learn More 6 0Jun 1 '22

Fixes all eslint on save

I HATE fixing these little ESLint errors and warnings (for example import order). I could ignore or...

Learn More 10 1May 19 '22

Idea on refactor GoogleMap component

Code: import { useRef, useEffect, useState } from 'react' import { Wrapper } from...

Learn More 4 0May 17 '22

Mock new Date with sinon

const mockNow = new Date() beforeEach(() => { sinon.useFakeTimers(mockNow.getTime()) }) ...

Learn More 8 0May 5 '22

Save DynamoDB space by use lzutf8

Poor man guide for DynamoDB. Since DynamoDB has some limitation on space and I want to use a basic...

Learn More 9 0May 4 '22

Vite build failed on project with aws-sdk

Vite work greate on local development. But I got this error when build. 'request' is not exported...

Learn More 8 2Apr 25 '22

Generate SHA256 Hash on OSX Command Line

Just run echo -n any string | shasum -a 256 | awk '{ print $1 }' Fin. Note AWK are not acronym of...

Learn More 14 1Feb 9 '22

มาใช้ Playwright เขียน e2e testing กันเถอะ

Playwright คืออะไร Playwright คือ e2e (end to end) testing framework ที่พัฒนาโดย Microsoft...

Learn More 14 0Nov 13 '21

Switch to yarn 3

Why switch to yarn 3? super fast super fast super fast Why wait? just go! # let check...

Learn More 11 1Nov 12 '21

Create `it.todo` in mocha

As I mention in early post, I've been working on legacy project lately and always found an oldschool...

Learn More 4 2Nov 2 '21

How to change git branch name (local and remote)

It's possible that we will do something wrong, well, we're all just human, we always do something...

Learn More 5 0Oct 27 '21

บันทึกสิ่งที่ได้จากคลาส Facilitate Training 

บันทึกการเทรน facilitate ในวันหยุดยาวสิ้นปี T^T

Learn More 1 0Oct 20 '21

Test React.useEffect on Enzyme

What Normally (in my legacy code base) I've always found that my legacy code from the old...

Learn More 5 0Oct 20 '21

Setup Raspberry Pi for Kubernetes Cluster

วิธีการติดตั้ง Raspberry Pi และลง Kubernetes แบบ step by step

Learn More 6 0Oct 15 '21

Test `history` in React Router

Problem When we use hooks useHistory of react-router-dom How to expect the history are...

Learn More 9 2Jun 7 '21