blog podcast

Poor addDays

I picked it up here. It’s a great way to be able to add (or remove) days to a Date object in Javascript. Enjoy (and check out the linked web page for more stuff.)

Read More
15 Jan 2022

Poor Man's ISO 8601

ISO 8601 is the date format yyyy-mm-dd. It’s quite convenient. If you like javascript it’s unfortunately not readily available to you unless you’re using some date formatting library (which by all means might be a good idea). You can achieve it with a one liner though:

Read More
15 Jan 2022

The Clustered Lock

For a while now I’ve been inspecting the Clustered Lock in Infinispan. Here are some thoughts.

Read More
15 Jan 2022

Tools for K8s

If you have enough energy to cross the threshold, there’s a lot to win by looking into kubernetes tools. One of these tools is Stern. It’s a convenient tool that helps you follow the logs of multiple pods at the same time, separating the pod output through color coding. Very convenient! On thing that might trouble you is the installation though. If you’re on Mac it’s easy, just use Brew and you’re up and running. If you’re on Linux you’re adviced to setup Go and install the tool. My recommendation is to not do this. Instead I recommend you to install Brew on your Linux machine and install it there. I know, it feels bad to add yet another package manager, but it really simplifies things. Reading the instructions on installation otherwise it says you must use Govendor, which is a deprecated project.

Read More
04 Jan 2022

Default in Java

I came across the keyword default in an interface in Java. Java used to be a very basic language, but in my view it has suffered severely from it’s own popularity. Because it’s so popular it has to keep it’s backward compatibility. At the same time it wants to add new cool features that are coming in other languages. Instead of JVM fans picking up new languages like Kotlin that have been designed to accomodate these features from the start there’s a big enough group of people that insist that these features need to be built into the Java language.

Read More
04 Jan 2022

Profiling JVM inside Kubernetes

Have you ever needed to profile a problem that is occurring inside your kubernetes cluster? There are a couple of commercial tools available for this, but for the puritan there’s also a way to do this without having to have a license (at least as long as you’re not doing it on your production Cluster). You can use Java Flight Recorder. Please read the details about the licensing before using it though.

Read More
19 Dec 2021

Github Package

We recently encountered the problem that we needed to patch a 3rd party library. Now this library lives in an eco-system of many dependencies and we just wanted to do some small changes to two of the modules. The question is, how do you patch a library and then make it available for your other projects to use?

Read More
17 Dec 2021

Kotlin to Groovy Gradle DSL

I wanted to follow this example on how to use a github maven repository for your dependencies with Gradle. Unfortunately Github only supports authorized access to packages, which means you need to configure credentials in gradle. The following section contains the configuration:

Read More
16 Dec 2021

Scalar

I started reading through the documentation for Proto buffer, a language for defining messages that can be sent efficiently over the network between different languages. Think of JSON, but even more efficient.

Read More
04 Dec 2021

Logging and Libraries with Quarkus

Quarkus allows you to configure log level. I was using this together with Infinispan, but for some reason I was unable to get TRACE logs to work in infinispan. It turns out you not only have to configure your log level with:

Read More
30 Nov 2021