Gerald Nguyen

Engineering Lead. I write about software development, and sometimes writing itself. Mostly original.

Categories
Tags

Singapore Nationwide AWS LLM League 2024

Only 5 got on stage, but all 1000+ participants are winners

October 3, 2024 · 2 min read

Singapore Nationwide AWS LLM League 2024

My Notes of the Singapore TechLawFest 2024

Gen AI everywhere

September 12, 2024 · 2 min read

My Notes of the Singapore TechLawFest 2024

Hugo - Displaying Quotes the Medium styles

Learn the Block quote and Pull quote ways

August 29, 2024 · 2 min read

Hugo - Displaying Quotes the Medium styles

Hugo - Displaying Images the Medium way

Markdown, Figure, Multi-figures ways

August 26, 2024 · 2 min read

Hugo - Displaying Images the Medium way

Behavior Driven Development (BDD) with Selenium in Python

A beginner guide

May 20, 2024 · 8 min read

Behavior Driven Development (BDD) with Selenium in Python

How to join video files in a semi-automated way

Simple tech tip

May 4, 2024 · 2 min read

SOLID in Action: the Dependency Inversion Principle

Depend upon Abstractions. Do not depend upon concretions.

February 21, 2023 · 4 min read

SOLID in Action: the Dependency Inversion Principle

Five Minimum Viable Interview Questions series — Updated 17 Feb 2023

Interviewer: ask them if your interview is running out of time. Interviewee: practice them if your preparation is running out of time.

February 17, 2023 · 1 min read

Five Minimum Viable Interview Questions series — Updated 17 Feb 2023

“Look Good to Me — Approve”

The Chrome extension that approves Gitlab merge requests with a friendly comment

January 29, 2023 · 3 min read

“Look Good to Me — Approve”

SOLID in Action: the Interface Segregation Principle

Many client-specific interfaces are better than one general-purpose interface

January 27, 2023 · 4 min read

SOLID in Action: the Interface Segregation Principle

AFF Cup needs VAR

For the development of football in the region

January 26, 2023 · 2 min read

AFF Cup needs VAR

Are you a full-stack developer?

Let’s talk about the different aspects of that title

January 21, 2023 · 3 min read

Are you a full-stack developer?

Top Publications For Technical Writers — Jan 2023

Find out which publication can offer the highest ROI for your content

January 19, 2023 · 4 min read

Top Publications For Technical Writers — Jan 2023

Kotlin, Spring Data, and MongoDB: Develop a “GET /comments” API endpoint

With 4 Flavors of Data Retrieval

January 17, 2023 · 12 min read

Kotlin, Spring Data, and MongoDB: Develop a “GET /comments” API endpoint

What is a 2-Factor Authentication(2FA)?

A lesson from a popular fable for children

January 16, 2023 · 2 min read

What is a 2-Factor Authentication(2FA)?

Shift Left Testing

January 16, 2023 · 2 min read

Shift Left Testing

Five Minimum Viable Spring REST Interview Questions

Interviewer: ask them if your interview is running out of time. Interviewee: practice them if your preparation is running out of time.

January 12, 2023 · 7 min read

Five Minimum Viable Spring REST Interview Questions

#STYOut or #STYSTAY — What is better for Indonesian Football?

A commentary from a Vietnamese fan

January 12, 2023 · 4 min read

#STYOut or #STYSTAY — What is better for Indonesian Football?

SOLID in Action — the Liskov Substitution Principle

Subclasses should be substitutable for their base classes

January 9, 2023 · 7 min read

SOLID in Action — the Liskov Substitution Principle

DevOps: Divide and Conquer with Gitlab Parent-Child Pipeline

How to break down a complex pipeline into manageable modules

January 9, 2023 · 3 min read

The Home Deity is Not Divine

Notes about a popular Vietnamese idiom

January 7, 2023 · 2 min read

The Home Deity is Not Divine

Maven — 3 Free Resources for Beginner and Intermediate Java Developers

I find them helpful. I hope you do too.

January 7, 2023 · 2 min read

Maven — 3 Free Resources for Beginner and Intermediate Java Developers

AFF Championship and the love for football that unites people

Watch it live or follow it from afar. Love it regardless.

January 7, 2023 · 1 min read

AFF Championship and the love for football that unites people

Work-hard Verifying or Work-smart Mocking

Testing is hard work, let’s make it easier

January 4, 2023 · 3 min read

Work-hard Verifying or Work-smart Mocking

Writers, please go to sleep earlier

Because holidays are ending

January 2, 2023 · 3 min read

Writers, please go to sleep earlier

Retry WebClient Request

Retrying a WebClient request using RetrySpec, and unit-testing it

December 30, 2022 · 4 min read

Retry WebClient Request

Regional economic development in Vietnam — Reform & “Reorder”

A commentary by my father, an economist-turn-writer — translated from Vietnamese

December 29, 2022 · 9 min read

Regional economic development in Vietnam — Reform & “Reorder”

What Are APIs?

A non-technical explanation of APIs and where they belong

December 27, 2022 · 3 min read

What Are APIs?

The story of the drums in Singapore

My father’s observation when he visited Singapore in 2012 — translated from Vietnamese

December 27, 2022 · 2 min read

The story of the drums in Singapore

Singapore: City in a Garden

My father’s observation when he visited Singapore in 2014 — translated from Vietnamese

December 25, 2022 · 4 min read

Singapore: City in a Garden

From Programmer to Writer

From writing codes to writing articles

December 25, 2022 · 3 min read

From Programmer to Writer

SOLID in Action — the Open-closed Principle

“A software entities (classes, modules, functions, etc.) should be open for extension but closed for modification”

December 24, 2022 · 5 min read

SOLID in Action — the Open-closed Principle

Simple Code — Effective UI — Month Picker

If you want to let users pick a specific month within a year, what’s the most simple yet effective UI?

December 22, 2022 · 1 min read

Simple Code — Effective UI — Month Picker

Thu Duc, Ho Chi Minh City, Vietnam in December

December 18, 2022 · 1 min read

Thu Duc, Ho Chi Minh City, Vietnam in December

SOLID in Action — the Single Responsibility Principle

“A class should have one, and only one, reason to change.”

December 14, 2022 · 4 min read

SOLID in Action — the Single Responsibility Principle

Five Minimum Viable Javascript Interview Questions

Interviewer: ask them if your interview is running out of time. Interviewee: practice them if your preparation is running out of time.

December 9, 2022 · 6 min read

Five Minimum Viable Javascript Interview Questions

Becoming a SOLID developer

By following SOLID software engineering principles

December 7, 2022 · 4 min read

Becoming a SOLID developer

The best way to fix Hibernate’s MultipleBagFetchException

Adapting from https://vladmihalcea.com plus sample codes for Spring Data JPA

December 4, 2022 · 6 min read

The best way to fix Hibernate’s MultipleBagFetchException

Echo API

A maven library of a /echo API that echoes HTTP request’s details back to the caller.

November 30, 2022 · 2 min read

Echo API

Unit testing Java’s try-with-resource

November 29, 2022 · 3 min read

Unit testing Java’s try-with-resource

Java Method Reference

Method reference lets you use an existing method as a lambda as long as their signature (input & output) are compatible.

November 27, 2022 · 4 min read

Java Method Reference

Code Review as an interview tool

Reviewing code as a way of learning and contributing

November 22, 2022 · 3 min read

Code Review as an interview tool

Java Stream Interview Tests - takeWhile

Stream has been an important part of Java development since Java 8. This test assesses candidates' understanding of Stream’s mechanics

November 1, 2021 · 4 min read

Java Stream Interview Tests - takeWhile

Java Stream Interview Tests - Distinct Characters

October 30, 2021 · 3 min read

Java Stream Interview Tests - Distinct Characters

Spring REST API Interview Questions

Use these to assess multiple practical aspects of a candidate’s skills and experience

October 19, 2021 · 4 min read

Spring REST API Interview Questions

Enable Comment in Hugo site

October 17, 2021 · 2 min read

Kubernetes Memory Units

September 13, 2020 · 1 min read

javax.transaction.Transactional vs org.springframework.transaction.annotation.Transactional

It’s easy to mix especially when we only need the default setting

September 10, 2020 · 1 min read

Using Bootstrap with React

Because both are great!

April 20, 2020 · 1 min read

What Happened When You Assigned State to a Stateless Session Bean?

It’ll probably result in an EJBTransactionRolledbackException caused by a NullPointerException

September 10, 2013 · 1 min read

[Excel] Bulk Linking Cells to Sheets Whose Name Equates Cell's value

If you have an excel with an index page and many detailed sheets, you may find the below macro useful. The only requirement is to name your sheet with value of your cell/link in the index page

September 10, 2013 · 1 min read

[VBA] Save Attachements from Multiple Emails

September 2, 2013 · 1 min read

[Unix] – Recursively Listing Files Under a Directory

July 22, 2013 · 1 min read

[Database] Exists or Inner Join: Duplicate Records

June 16, 2013 · 4 min read

Which Form of String Comparison Is Supported

May 21, 2013 · 2 min read

Myths of Secure Web Browsing

May 18, 2013 · 2 min read

JSR 303 – Bean Validation – Let Your Bean Validate Itself

December 20, 2012 · 1 min read

JDBC Transaction Without EJB

EJB 3 is simple enough that delegating transaction management to it only cost little in creating and annotating an EJB business interface method. However, if you want to skip EJB altogether yet ensure all queries get executed inside a transaction, here’s a quick way

October 24, 2012 · 1 min read

JSR 303 – Bean Validation – Custom Constraints

August 25, 2012 · 2 min read

JSR 303 – Bean Validation – Nested Validation

August 9, 2012 · 2 min read

JSR 303 – Bean Validation – Basic

August 3, 2012 · 2 min read

ILLEGAL SPORT BETTING DURING EURO CUP

A cover of Tuoitre Cuoi magazine

July 10, 2012 · 0 min read

SPRING MVC – SESSIONATTRIBUTES ANNOTATION

June 30, 2012 · 1 min read

HOW YOUR CONSUMPTION BENEFIT SOCIETY?

Is $2000 = $3000 ? Mathematically no. Economically yes (or at least it seems to)

June 27, 2012 · 1 min read

Java XML Parse error: Tried all: '1' addresses, but could not connect over HTTP to server

March 9, 2012 · 1 min read

How do you display input validation error

February 24, 2011 · 1 min read

What makes Israel so innovative and entrepreneurial?

February 10, 2011 · 5 min read

Static vs Singleton Revisited

February 10, 2011 · 3 min read

Harvey Balls

○ ● ◐ ◑ ◒ ◓ ◔ ◕

January 23, 2011 · 1 min read

Static method vs Singleton class

Sometimes we write java class that has no state, each of its method is self-sufficient. It's then make sense (convenience, performance gain included) to convert those methods into static. Or, we can apply Singleton pattern on that class. So, which way?

January 16, 2011 · 3 min read

How Sun's certification exam are prepared

Insight from Berth Bates, lead developers of many Sun's certification exam

January 9, 2011 · 2 min read

Consistency in framework design

January 6, 2011 · 3 min read

Who owns the source code? Employee or employer?

December 21, 2010 · 1 min read

Quicksort vs Merge sort in Java

December 12, 2010 · 2 min read

How do you initialize an EJB3 Stateful Session Bean ?

November 20, 2010 · 2 min read

Weblogic SAXParserFactory Issue

October 26, 2010 · 2 min read

Recursive Tagfile

This is my experience with recursive tagfile on Weblogic 10.3. I also describe a few problems encountered and how I solved them

March 24, 2010 · 2 min read

Interesting - AKA

March 10, 2010 · 1 min read

Combine EJB and WAR file in a same web service EAR

March 2, 2010 · 3 min read

2-way SSL with WebLogic server 10.3

February 3, 2010 · 2 min read

J2EE Programming Tips

May 4, 2009 · 2 min read

Interesting - 2009

March 8, 2009 · 1 min read