Upgrade button

When people run into issues or too busy and need more time, people start to ask for a “reset” button. I thought about it a long ago and realised I never need a reset button. All the time I need an “Upgrade” button. Just like what I often do to some machine I forgot to…

Install Java on MacOS cmd

Some useful @FunctionalInterface and when to use them

Functional Interface Function When to use java.util.function.Predicate<T> boolean test(T t); Boolean expression java.util.function.Consumer<T> void accept(T t); Just process T, return nothing java.util.function.Function<T, R> R apply(T t); Transform, compute from type T to type R java.lang.Comparable<T> int compareTo(T o); Compare one T object to another java.lang.Runnable void run(); Accept no params and return nothing java.util.concurrent.Callable<V> V…

All Spring Boot Starters

Common Boot Starters Name Description spring-boot-starter-thymeleaf It is used to build MVC web applications using Thymeleaf views. spring-boot-starter-data-couchbase It is used for the Couchbase document-oriented database and Spring Data Couchbase. spring-boot-starter-artemis It is used for JMS messaging using Apache Artemis. spring-boot-starter-web-services It is used for Spring Web Services. spring-boot-starter-mail It is used to support Java…

Good books on investing

1. The Intelligent Investor by Ben Graham 2. Learn to Earn by Peter Lynch 3. One Up on Wall Street by Peter Lynch 4. Beating the Street by Peter Lynch 5. The Little Book of Value Investing by Christopher H. Browne 6. Security Analysis by Benjamin Graham and David L. Dodd 7. Common Stocks and…