Detect duplicates with JQ

While working on a bug, I needed to go through JSON file containing a few thousand objects. Some objects had a duplicate id value causing errors. A nice use-case for JQ!

March 21, 2023 · 1 min

Authenticated Azure Function App

It’s really easy to create simple APIs on Azure with App Functions. In some cases, you want to protect them using Authentication. This usually done with an App Registration, that has permissions to access the API. Pretty simple, but not that easy to accomplish. These are the steps how to configure this. Disclaimer I have very little to no experience with Azure, so I might be stating the obvious....

December 1, 2022 · 4 min

Inject Page via path using Sling Model

A common use-case is configuring a path to a page via a dialog and then fetch the wrapper Page object to retrieve information about that page. And there is a really easy way to do so. ...

September 27, 2022 · 2 min

Debug Maven plugins

While working on a new project, I ran into an issue when running a Maven plugin connecting to a local web service. The dreaded Service unavailable error message appeared over and over again. As this project had a complicated setup and running the the curl version of this maven plugin was successful I turned on the debug mode of Maven. Only thing you need to do is add the -Xswitch to your maven command....

September 12, 2022 · 1 min

Sneak Preview of Devoxx.be 2022 talks

Disclaimer: TThe data is pulled from the cfp.dev API . This means this overview is a snapshot at the time this page was update on Oct 11th 2022. There might be changes to the official schedule that are not yet reflected here! styling might be off as the summary can contain inline styling these proposals have not been written by me these talks have been accepted by the program committee but are not guaranteed....

August 18, 2022 · 149 min

Proper JMS conversion to POJOs

While looking into Azure Service bus with Spring Boot, I stumbled upon a nasty stacktrace caused by an IllegalArgumentException: java.lang.IllegalArgumentException: Property name must not be null So what is going on here? Setup I configured a queue persons on Azure service bus and in my spring boot application I defined a QueueListener using the @JmsListener annotation @Component public class PersonQueueListener { private static final String QUEUENAME="persons"; @JmsListener(destination = QUEUENAME) public void receiveMessage(Person person) throws JsonProcessingException { log....

June 14, 2022 · 3 min

Mockaroo Intro - Generate Person Data

As I’m looking into GraphQL and Spring Boot, I needed some test data. I didn’t feel very creative but I didn’t want to settle for user1, user2, … either. Enter Mockaroo! Generating Person data Mockaroo offers a wide range of predefined types, such as first name, IBAN, color, email, IP, and what not. For my GraphQL application I just need this: Field Name Field Mockaroo Type firstName First Name lastName Last Name email Email Next I set the number of rows to 10 and the format to JSON....

January 10, 2022 · 1 min

Reduce docker ps Output Clutter with AWK

I’m a fan of docker, especially with my brand new macbook - spinning up loads of containers is always fun 😀. However when listing the containers, things get a bit unclear. Check the following output: CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES d52c11b67cfe docker.elastic.co/elasticsearch/elasticsearch:7.13.2 "/bin/tini -- /usr/l…" 2 hours ago Up 2 hours 0.0.0.0:9200->9200/tcp, :::9200->9200/tcp, 0.0.0.0:9300->9300/tcp, :::9300->9300/tcp vb-bo_elasticsearch_1 76fee05889f0 logstash:7.13.2 "/usr/local/bin/dock…" 2 hours ago Up 50 minutes 0.0.0.0:5044->5044/tcp, :::5044->5044/tcp, 0....

July 8, 2021 · 2 min

Summarize Latest Changes In Your Codebase

You are probably familiar with this workflow work on different stories pull requests are approved and merged deploy changes inform the team For the last part, you check your todo list to get a nice description instead of some mysterious ID. You could do this manually, but this is very time-consuming, not to mention mind-numbing. Scripts to the rescue! High level approach Fetch the version information of the environment you want to deploy to....

June 27, 2021 · 3 min

Templating as Automation

In this post, I’ll cover different examples of what I like to call templating. Doing the same over and over again, but only few parts change each iteration. Environment Variables While working on integrating an API, I had to authenticate with a Bearer token in the authentication header. These tokens are typically short-lived, so they change multiple times a day. As part of the integration, I write down the API calls in Typora, a very nice markdown editor....

April 17, 2021 · 3 min