How to add docker client to Jenkins

There are times when you need to build docker images inside Jenkins. Well, actually that is a common practice nowadays. However, without setting up the docker client properly, you might now be able to do so. When running Jenkins without docker client, you may encounter errors like this: This post’s only purpose is to help … Read more

Create a Simple WebSocket application with Java EE

In this tutorial, I’m going to create a simple WebSocket server with Java EE that I can use Javascript Websocket API to connect and send/receive messages. I’m going to use Eclipse as the IDE. You can try with another IDE/text editor. However, I would recommend you use Eclipse since I didn’t have much luck with … Read more

Selection sort in Java

Selection sort is one of the simple sorting algorithms. Its time complexity is O(n2). Selection sort fundamental Two nested loops Involves swapping At the end of each iteration, the lowest element is at the right position Selection sort steps As mentioned above, there are two loops in this algorithm. Essentially, the steps as below: Let’s … Read more