Category advent-of-code-2022

Advent of Code 2022, Day six - Part Two

Get the first character after the start of packet marker from the stream.

Advent of Code 2022, Day six - Part One

Find the start of packet marker in the data stream.

Advent of Code 2022, Day six - Sanitizer

Turn the input into a stream returned from a signal.

Advent of Code 2022, Day 5 - Part Two

Execute the instructions to move the cargo from one stack to another in the same order.

Advent of Code 2022, Day five - Part One

Execute the instructions to move the cargo from one stack to another.

Advent of Code 2022, Day five - Sanitizer

Turn the input into a list of stacks and another list of operations for the crane.

Advent of Code 2022, Day four - Part Two

Find the compartments that overlap completely between the different assignments.

Advent of Code 2022, Day four - Part One

Find the compartments that overlap between the different assignments.

Advent of Code 2022, Day four - Sanitizer

Turn the input into a list of assigned compartments for the elves to unload.

Advent of Code 2022, Day three - Part Two

Find the item type that is common between two or more elves.

Advent of Code 2022, Day three - Part One

Find the same items that are stored in the two compartments of each rucksack.

Advent of Code 2022, Day three - Sanitizer

Turn the input into a list of rucksacks.

Advent of Code 2022, Day two - Part Two

Calculate the strategy we need to play to get the expected outcome based on our opponents move.

Advent of Code 2022, Day two - Part One

Get the outcome of each rock-paper-scissors match.

Advent of Code 2022, Day two - Sanitizer

Turn the input into a list of rock-paper-scissor games.

Advent of Code 2022, Day one - Part Two

Calculate which elve is carrying the most calories

Advent of Code 2022, Day one - Part One

Count the calories that each elve is carrying

Advent of Code 2022, Day one - Sanitizer

Parse the input for day one into a table of elves.

Introduction to Advent of Code 2022

In the next couple of weeks I'll be working on last years Advent of Code to get a better understanding of Kotlin.

Category kotlin

Kotlin giving an empty char literal error

How to fix the Empty Char Literal error messages in Kotlin.

Category backpacking

Backpacking Pieterpad - Swolgen to Vierlingsbeek

The second leg of our Pieterpad vacation will take us to another province. All the way from Swolgen to Vierlingsbeek.

Backpacking Pieterpad - Venlo to Swolgen

Because our trip to Sweden was cut short, we decided to start walking the Pieterpad for two weeks. Our first leg in those two weeks was Venlo to Swolgen.

Backpacking Pieterpad - Sittard to Roermond

We've walked the first leg of the Pieterpad in April, in the Netherlands around this time of the year there's still a reasonable chance that it might freeze at night.

Backpacking Sweden

Last summer my girlfriend and I decided to go backpacking in the wilderness of Sweden for three weeks. But because of Hans, this turned out in one night and one day.

Backpacking Pieterpad

The Pieterpad is one the most well known long distance trails of the Netherlands. It spans the entire length of the country from the far south all the way to the north.

Backpacking introduction

Since it's almost summer time in the Netherlands, it's time to plan the summer vacation. This year it's going to be backpacking in Sweden.

Category pieterpad

Backpacking Pieterpad - Swolgen to Vierlingsbeek

The second leg of our Pieterpad vacation will take us to another province. All the way from Swolgen to Vierlingsbeek.

Backpacking Pieterpad - Venlo to Swolgen

Because our trip to Sweden was cut short, we decided to start walking the Pieterpad for two weeks. Our first leg in those two weeks was Venlo to Swolgen.

Backpacking Pieterpad - Sittard to Roermond

We've walked the first leg of the Pieterpad in April, in the Netherlands around this time of the year there's still a reasonable chance that it might freeze at night.

Backpacking Pieterpad

The Pieterpad is one the most well known long distance trails of the Netherlands. It spans the entire length of the country from the far south all the way to the north.

Category security

Software Bill of Materials

As a software developer it's important to keep your software safe and up-to-date, but can you rest assured that your dependencies are safe and up-to-date as well?

Category software

Releasing Upset

I've been struggling with my work laptop which meant that I had to reinstall everything a couple of times. So, offcourse I wrote an application to automate this process.

Releasing It Depends

Gat a grip on the versions of the dependencies your using by visualizing a generated CycloneDX SBOM file.

Category cmake

Building a Qt Windows Executable using CMake

Build a stand-alone Windows executable of your Qt application using CMake.

Building a Qt MacOS bundle using CMake

Build a stand-alone Windows executable of your Qt application using CMake.

Use CMake target in another folder

Use the same CMake target from one folder in another (sub)directory using CMake's include function.

Category google-home

Naming your automations

Keep your automations yaml clean by adding names to each automation.

Keep your automations clean

Keep your automations overview clean by adding multiple automations in the same yaml-file.

Keep your smart plug turned on

Keep your Philips Hue smart plug turned on even when you ask Google to turn off all the lights.

Easily turn on or off multiple lights

Cleanup your automations by controlling multiple lights in the same step.

or condition in Google Home

Upgrade your automations by adding an OR condition.

and condition in Google Home

Make your Google Home even smarter by adding an AND condition to your custom automation.

Category c-sharp

.NET benchmarks

Have you ever wanted to test if a solution or algorithm you've written or refactored is performing faster than the previous iteration? In this post, we'll take a look at how you can use the BenchmarkDotNet library to write benchmarks for your C# code.

C# 12 updates - Collection expressions

C# 12 finally introduces some new syntactical suger that I'm eager to use in production because it improves the readability of the code.

C# 12 updates - Default lambda parameters

In C# 12, Microsoft has added the ability to specify default values for your lambda parameters.

C# 12 updates - ref readonly

In C# 12, Microsoft has added the ref readonly parameter modifier.

C# 12 updates - Primary Constructor

For those of you coming for Javascript or Kotlin, you're going to love this new feature. Set your member variables through a primary constructor.

C# 12 updates - Introduction

A couple of weeks ago Microsoft has released C# 12 which packed a lot of new features. In the upcoming weeks I'll be diving into these update and writing about it.

Category miscellaneous

Change the executable bit of file on Windows without WSL

When using Linux pipelines in your development process, it might happen that you need to execute a script. However, sometimes these scripts don't have the right permissions to be executed.

Copy to clipboard using vim bindings in Intellij

Copy the contents of the yank operation from vim to your clipboard when using any Intellij IDE.

Category windows

Install Oh My Posh on Windows

Install Oh My Posh on Windows to customize your Powershell.

Category android

Plural string resource in your Android app

When your app supports multiple languages using the string resources, it's pretty assumable that at some point you'll be needing a string that is different for multiple amounts. In this blogpost we'll be discussing the solution on how to achieve this.

Automatically testing the UI of your Android app

During your development phase, you'd like everything that can be automated to be automated. This also goes for your UI testing, you can either click through the UI yourself, our let the test runner do that for you.

Enable UI preview in Android Studio

When developing an Android app, you're likely to iterate through multiple UIs. When going through this process you don't want to build and run your app every iteration, for this you can use previews in Android Studio.

Support multiple languages in your app

The user base for your application includes multiple nationalities, so why don't you update your app to allow for multiple languages?

Set up Material Design with Jetpack Compose

You've just set up Jetpack Compose, and now you want to make your app look like a native Android app. This is just as simple as setting up Material Design and updating your UI components.

Set up View Models with Jetpack Compose

You've just set up Jetpack Compose, but how do you properly separate the UI from the business logic? This is were Android has you covered with View Models.

Set up Jetpack Compose

In Android development, the new standard for building UI's is Jetpack Compose. But how do you actually set it up for your application?

Create an Android app

Have you ever wanted to build your own Android app? We'll in this story we're going to dive straight into the details on how to do this!

Category benchmark

.NET benchmarks

Have you ever wanted to test if a solution or algorithm you've written or refactored is performing faster than the previous iteration? In this post, we'll take a look at how you can use the BenchmarkDotNet library to write benchmarks for your C# code.

Category dotnet

.NET benchmarks

Have you ever wanted to test if a solution or algorithm you've written or refactored is performing faster than the previous iteration? In this post, we'll take a look at how you can use the BenchmarkDotNet library to write benchmarks for your C# code.