Advanced Search
Search Results
245 total results found
yaml and JSON
JSON Javascript object notation, is a serialization language that converts complicated objects like Linked List to a streams of bytes that can then be transmitted over the wire or be stored in memory. This is required because you can't just transmit a "Linked...
Playing with Apache Kafka
Kafka Setup In this article I'm going to use Kafka with Zookeeper instead of KRaft. This is because Zookeeper has been for around a long time and lots of company has been using Zookeeper instead of upgrading it to KRaft. Zookeeper responsibility In older ve...
Consumer groups
This page just details out the possible scenarios where the number of partitions and consumers in a consumer group may differ. If the number of consumers is less than the number of topic partitions, then multiple partitions can be assigned to one of the con...
Loops and range
For loops The only looping construct in Go is the for loop. There is no while loop, but it is actually just merged into the for loop. Loop on condition Basically while loop except you replace the while with for i := 1 for i <= 3 { fmt.Println(i) i...
Functions
Functions To write a function you would need to use the func keyword, provide the name of the funciton, provide in the argument of the function, and finally the return type of the function: func plus(a int, b int) int { return a + b } Multiple return va...
New Page
New Page
Jacoco Plugin
What is Code Coverage Code coverage is a quality measurement during development process to see how much of your code has been tested (or executed). Your unit test should cover most of business logic of your code, however, reaching 100% of code coverage does n...
Lombok
Project Lombok Lombok is a Java library that can help you generate lots of the boiler plate code so that you don't have to end up writing them yourself. For example, getter, setter, toString, and equals method. You just have to slap an annotation onto the cla...
Maven Tests
Maven Test When you execute mvn test it will compile and test the source code that's underneath the source code folder! Maven Test allows integration with JUnit, TestNG, and POJO. We will go over JUnit because that's what we use most of the time. JUnit The...
SSL Certificate 101
How to generate a self-signed certificate If you wish to generate a certificate from an actual Certificate Authority then the flow is done like such: I will only be explaining how to generate a self-signing certificate because the process is essentially th...
ActiveMQ Authentication and Setup
Authentication The particular Docker image of ActiveMQ that I'm currently using doesn't support authentication by default, you will need to enable the authentication plugin in order to enforce some kind of authentication. To do so you will need to add the fo...
ActiveMQ 101
Background To talk about ActiveMQ we need to talk about JMS (Java Messaging Serivce). It is an API specification defining the contracts between senders and receivers on how to create, send, receive, and read messages, but it doesn't give you the implementatio...
ActiveMQ in Spring
Using ActiveMQ in Spring I just want to put this diagram here so that this can be referenced if needed in the future. If you are planning on using Spring to interact with ActiveMQ, then you will be using something called JmsTemplate. This class essentially ...
Foundational Knowledge
What is Samba
What is Samba Samba is standard Window interoperability (Able to exchange and communication information) with Unix-like system. Samba provides file services through CIFS (Common Internet File System): This is obsolete dialect of the SMB protocol SMB (Ser...
Disable These Files Might be Harmful for your Computer Warning
Windows On windows if you connect to the network drive, and tries to right click files, you might get these nasty warnings every single time you right click the file. To solve this issue you would need to trust the IP address of the network drive on your c...
SSL / TLS and HTTPS?
What is SSL / TLS and HTTPS? You have heard of all these terminologies and what do they all mean? How do they work together to provide a more secure way of browsing your web on the internet? In this article, I will explain all the basics that you will need t...
Docker Networking
Chapter 1 Driver Licenses
Driver Licenses This chapter is not tested hence it is just some useful information that is good to know. Operator, Class D driver's license is what usually people get here, it let you drive a car! Minimum age is 18 to let you to drive here. Fun fact, if yo...