Open in app

Sign In

Write

Sign In

tanut aran
tanut aran

37 Followers

Home

About

Mar 21

How to Test Sending SMTP Email locally with Nodemailer

The local SMTP service with SMTP4Dev Thanks to this repos https://github.com/rnwood/smtp4dev This can receive and see the email content. You can easily spin the service up with docker and go to localhost for the web admin. docker run --rm -it -p 8090:80 -p 2525:25 rnwood/smtp4dev There are two service :2525 is the SMTP service and :8090…

Nodejs

2 min read

How to Test Sending SMTP Email locally with Nodemailer
How to Test Sending SMTP Email locally with Nodemailer
Nodejs

2 min read


Mar 13

Golang Unit Testing with Gorm and Sqlmock PostgreSQL — Simplest setup

In this tutorial I will highlight the Gorm and mock SQL part which I believe is the hard part. There will be no unit test assert here to make it short and concise. Simplest Gorm INSERT and test case Here is the simple product file package product import ( "gorm.io/gorm" ) type Product struct { Code string Price…

Golang

2 min read

Golang

2 min read


Mar 9

Nest.js TypeORM Streaming Query to CSV File — Perf not so good

TypeORM have the stream method on the createQueryBuilder then we can chain this to some processing like newLineToSpace , make the CSV and send back to the response. The code may look like below import { ReadStream } from 'typeorm/platform/PlatformTools'; import { pipeline } from 'stream/promises'; // ... Nest.js Controller ... const manager…

Web Development

2 min read

Web Development

2 min read


Feb 16

Jenkins Pipeline on MacOS yarn: command not found Adding PATH

You might encounter the classic command not found line 1: yarn: command not found You can visit the information of PATH variable in Manage Jenkins > System Information and found that on Mac homebrew path is not there Adding Path with Plus Sign Now you fix this by going to Manage Jenkins > Configure System…

DevOps

1 min read

Jenkins Pipeline on MacOS yarn: command not found Adding PATH
Jenkins Pipeline on MacOS yarn: command not found Adding PATH
DevOps

1 min read


Feb 6

AADSTS9002326: Cross-origin token redemption is permitted only for the ‘Single-Page Application’ client-type. Request origin: ‘http://localhost:3000'

This error occurs when I try to do the Azure Active Directory Sign in in React using @azure/msal-react The message suggests something to be fixed in the Azure console. In my case I have a lot of application type and the problem is http://localhost:3000 is duplicated. (Blue and Red Arrow) …

Web Development

1 min read

AADSTS9002326: Cross-origin token redemption is permitted only for the ‘Single-Page Application’…
AADSTS9002326: Cross-origin token redemption is permitted only for the ‘Single-Page Application’…
Web Development

1 min read


Feb 4

Format PostgreSQL Beautifully on Dbeaver with pg_formatter External Formatter

We need on shortket Ctrl+Shift+F and the query must look like this. Problem we have The default formatter and compact formatter is bad in Default formatter — too much line break SELECT * FROM my_table will have line break Compact formatter — Need scroll horizontally INSERT INTO will be so so long

Web Development

2 min read

Format PostgreSQL Beautifully on Dbeaver with pg_formatter External Formatter
Format PostgreSQL Beautifully on Dbeaver with pg_formatter External Formatter
Web Development

2 min read


Jan 9

Fix: Azure Container Registry Restarting Infinitely for Image Build from M1

Docker image run local gracefully. Deploy and stuck at infinite reboot The problem is at your Docker File build from Mac M1 You must include this options to let it know that your build is for x64 architecture. --platform=linux/amd64 Example in Node.js image is: FROM --platform=linux/amd64 node:16-alpine

DevOps

1 min read

DevOps

1 min read


Jan 2

Inconvenient Truth: Why half of the World is an Unintentional Scam or Ponzi Scheme

Do you think investing in the fund or stock is the scam? What about buying the insurance, investing in the new housing project and the start up? Yes and no depending on the definition. Familiar story People on the top get super rich and when the scheme need to give money back…

Investing

5 min read

Inconvenient Truth: Why half of the World is an Unintentional Scam or Ponzi Scheme
Inconvenient Truth: Why half of the World is an Unintentional Scam or Ponzi Scheme
Investing

5 min read


Jan 2

Inconvenient Truth, The Random Advice: Consulting, Life coach, Get-rich-fast, Business Guru and Books

After 10+ years of chasing the non-existing secret of being successful fast. Starting just like normal teenager, we are all desperately willing to be successful. Since there is only successful way in the advice giving career, we will explore how Good people Who start with good intention Bad people Who want…

Motivation

3 min read

Inconvenient Truth, The Random Advice: Consulting, Life coach, Get-rich-fast, Business Guru and…
Inconvenient Truth, The Random Advice: Consulting, Life coach, Get-rich-fast, Business Guru and…
Motivation

3 min read


Published in CODEMONDAY

·Nov 25, 2022

PDF Form Submission Acrobat to REST API Server

What this solution is for People who still want the client filled PDF Document. Mostly because of the government regulation or some legacy work process. But they are too painful with the PDF human key in mistake or tedious work of doing so. Warning This solution is possible in Adobe Acrobat only. This will never work…

Web Development

3 min read

PDF Form Submission Acrobat to REST API Server
PDF Form Submission Acrobat to REST API Server
Web Development

3 min read

tanut aran

tanut aran

37 Followers

Co-founder and Coder at work !

Following
  • Netflix Technology Blog

    Netflix Technology Blog

  • EventHelix

    EventHelix

  • Suparerk Yodcharoen

    Suparerk Yodcharoen

See all (11)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech