White and Blacklist Logic using Java 8

I was creating a new maven application for my employer’s release process automation. In this maven plugin I need to able to detect a white and black list keyword that could be executed or not. In this example, the snippet code below is my working solution.

Please note, the code itself only works on the Java 8 and above due to usage of lambda functions. Further down, you need to use JDK version 8 and above to run the logic, other parts are omitted due to confidential information.

Lock down in Malaysia

Lock down in Malaysia
Imaginary picture of a lock down.

Malaysia has been imposed lock down since March 18th 2020 due to ongoing global pandemic COVID-19. Now, the current status of COVID-19 in Malaysia looks like going to approaching its ending. This caused by a long control order which imposed three stages of lock down.

  1. MCO (Movement Control Order)
  2. CMCO (Conditional MCO)
  3. RMCO (Recovery MCO)

Apart of that, there was also EMCO (enhanced MCO). This EMCO is done to a specific areas/site whereas the COVID-19 cases has an increased spike more than 40 cases. (I don’t know the time range to impose but it looks like 40 is an overall per daily basis).

Now let’s dig in on each of the stages and why Malaysia could be potentially finish this COVID-19 race earlier than other countries.

  • MCO

During the MCO period, a lot of restriction given to the Malaysian. For an example, only certain shops are allowed to operate mainly groceries and small groceries shop. But, wet market was not allowed to operate. We had curfew as well, by 8PM no one allowed on the streets, except there were some critical circumstances e.g. going to hospital, etc.

A friend of mine, was detained on during MCO period due to going out after 8 PM to buy some food. He was released after paid a summons amounting RM1,000 and jail terms for two-week period.

Increase Testlink Upload Limit

TestLink is an open source tool for test plan management, managing builds and getting reports and stats on your projects. It facilitates software quality assurance. During the first time user is login in, you can start your first test project, write your requirements, link requirements to test cases, or create test plans.

Unfortunately, when a user wanted to do some test which including upload a big attachment, the default value is only 2MB. Hence, we need to increase the size of it.

Step by step guide to increase Testlink upload limit as follows:

  1. Login to your testlink server by SSH or access the remote/physical console.
  2. Search where is the file located. Normally it should be inside the testlink htdocs folder. You may use this command to check:
find / -type f -name

Once you get your location of, do edit by typing vim ; and look out for these three configuration:

10 Things People Regrets in Their Life

What is your biggest regret in life? A lot of response stories to share. But the real regrets are bad choices in love, loss and held by a fear of self-blame.

Life is full of choices and a lot of uncertainty. We never know what will happen if you made a different choice. No one will life happily ever after, life is up and down, some choices are easy to make at the time but turns out to be poorly made due to lack of information; others are hard at first.

Now think what people would say about you, what a life you want to lead? Don’t bring any regrets to your after-life.

I wish I don’t care what other people think

Stop wasting your time thinking what people would say about you. It is your life, not theirs. Ultimately, there just opinions what’s best from their lenses.

I wish I had spent more time with people I love.

Time will never comes back, it is easy to slip away from you. Hence, maximized your time to do what you love with people you love.

I wish I had live my own life.

Invest your energy at the things you need to achieve – or even attempt. Build a business, develop an incredible vocation, raise a child, run a long distance race. The best achievement lies in carrying on with your life in your own way.

Hello world! This is a New Home

Migrate your OpenShift Container to AWS Platform

Welcome to WordPress. This is your first post on a new server. Edit or delete it, then start writing!

Probably you have noticed that tagline when first installing a WordPress blog on your own or creating a new blog under domain. Welcome to WordPress.

Yes, this blog just migrated on September 2017 from my old hosting, OpenShift server from Red Hat. Previously, I was running this blog and its component from the OpenShift Cloud by Red Hat.

If you have read my few first post about the technology behind this blog, you probably know that OpenShift was giving free “cartridge” or free space instance inside their AWS server as a container. (Update on 2018 – all OpenShift platform is no longer free of charge)

Unfortunately, after OpenShift version 3 launched in September, as I was running on OpenShift version 2, the version was going to decommission. Exactly on 30 September 2017, the version 2 no longer be accessible and all customers need to migrate their account to the new version. But, with a new regulation, the basic plan needs the website owner to turn off their instance around 18 hours after 72 hours of runs (

This doesn’t make sense if you had an OpenShift version 2 that was giving you free and unrestricted uptime unless you have very minimal traffic or for a testing environment.

Artificial Intelligence and Machine Learning

Artificial Intelligence using Machine Learning.

Artificial Intelligence using Machine Learning.
Machine Learning Technologies

Artificial intelligence is not a new technology. Everything is now based on artificial intelligence. From shopping related products on Amazon, Google Maps, Waze, even getting an Uber everything is using artificial intelligence to make it smarter, easier and enhance user experience.

The base technology behind an artificial intelligence is machine learning. The technology is trained to learn pattern based on some test data. Then based on it, a new data used for predicting the future. There is a video made by Google developers to explain in further.