Chen Riang's Blog

Live everyday like it's your last

Running Apache Spark standalone cluster in one machine

Apache Spark is a complex framework that provide parallelized in-memory data processing. Often time during development, we just want to focus on creating the business without having to worried abou...

TimeScaleDB

A Supercharged Postgres Database that you should know

Changing database technology is very difficult decision when coming to modernizing a legacy product. Don’t believe me? Try asking your DBA about changing existing database technology and see what y...

Running IntelliJ IDEA in WSLg (Window 11)

I have been using WSL for development for sometime and turn up 80% of my tools has moved to WSL instead of native Window. However, if you’re a WSL heavy user like me, you will surely understand the...

Java 8 Date Time

Java’s date time API can be quite confusing when you’re new to it. Java introduced another new set of date time API to replace the legacy API in version 8. In this article, we will be looking into ...

JDBC - Date Time

Storing date-time data is not straightforward as we think when the software will be running in different region. Often when dealing date-time data with JDBC, we will use Date, Time, and Timestamp f...

Spring Cloud Open Feign

Make REST Communication easy

In a microservice world, every service is recommended to be small and independent. As a developer, it is fortunate because we only need to look work on a relatively small code base. However, the dr...

Fix ZSH histroy file corruption

Today after a force reboot, I get a ZSH history file corruption error message. zsh: corrupt history file /home/chenriang/.zsh_history Solution Solution to solve this error message is relat...

Springboot autowire in non-bean object

In Spring there is a feature autowiring, that will auto resolve and inject object dependency. With the help of autowriring, we does not need to explicitly inject the dependency and reduce the amoun...

Java Concurrency - Future

When we talk about Concurrency topic in Java, for sure you will come across to this term, Future. In this article, we are going to learn about what is Future, and how can we use it. java.util.conc...

Groovy ExecutorService submit Callable

the little annoying thing

I have been using Spock instead of JUnit for a few months now. Today, I’m trying something around thread safety and I found something about Groovy that annoyed me. In my unit test, I need to submit...