Skip to main content
Advanced Search
Search Terms
Content Type

Exact Matches
Tag Searches
Date Options
Updated after
Updated before
Created after
Created before

Search Results

195 total results found

DynamoDB Simple

AWS Solution Architect Notes

Before We Begin AWS actually offers a local DynamoDB that you can set up and you can use the --endpoint-url http://localhost:8000 to run the command rather than paying the money and hosting it on AWS. Instructions curl -O https://s3-us-west-2.amazonaws.co...

DynamoDB Complex

AWS Solution Architect Notes

Creating Table with Composite Key To create a table with composite key, it is the same process, except you will be adding an additional field to the key-schema flag: aws dynamodb create-table \ --table-name UserOrdersTable \ --attribute-definitions...

Quoting and Not Quoting Arguments

Bash Shell

Word splitting Bash shell and zsh shell will scan results of Parameter expansion: $PATH Command substitution: $(echo hi) Arithmetic expansion: $((x += 1)) For word splitting if they DO NOT occur within double quotes. Basically with word splitting the...

dumb-init for script

Docker

Problem So you got your command that you would like to run it using a docker container, problem is once you got your program running using whatever mean possible, you see that it is running, but when you want the program to finish because it is say a web serv...

yaml and JSON

NodeJs/JavaScript

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

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

Apache Kafka

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

Go / Golang Go with Examples

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

Go / Golang Go with Examples

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...

Jacoco Plugin

Java Maven

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

Java Maven

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

Java Maven

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

SSL and Certificates

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

ActiveMQ

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

ActiveMQ

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

ActiveMQ

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

Artificial Intelligence Learning

What is Samba

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

Samba

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?

SSL and Certificates

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...