Skip to content

Blog

My Tool List of 2024

After 6 years it is time for an update of my tool list. At first, I thought that there are not that many changes, but after reinstalling my laptop I noticed that there are a few new entries that I would not want to miss.

Do you know a tool that is not on this list and that you find is a must-have? Please leave a comment with a link so that I can try it.

Goodbye 2023, Welcome 2024

We are already in the last week of 2023. This year flew by and so many things happened that I cannot recall all of them. Let us have a look at the highlights of my 2023.

Building with a great opening in the center, Amsterdam Hotel in Zaandam

How to Run a Background Task Inside Your ASP.NET Core Application

We needed a simple solution to run recurring jobs for our user group web site. WebJobs in Azure sounded like the perfect solution, but unfortunately they do not work with App Services on Linux. We needed another approach and we found a much better solution with Background Tasks. All we need to do is to implement the two interfaces IHostedService and IDisposable, and the worker runs outside of the requests to our application.

Serve Test Data From ASP.NET Web API in .Net 8

If you need an API endpoint that gives you some (static) test data, you can join the search for the most complicated solution. My current favourite in unnecessary complexity is to use MongoDB to serve a handful of JSON objects.

However, if you prefer a much lighter approach and already use .Net, I strongly recommend that you try Web API for this task. It only takes a few lines to get your data in a format that you can access from your application. And if you want to keep going on, you can add more functionality with ease.

Where to Find Test Files?

If we want to test our code, we often need files with the right format. We can create a text file without much effort, but what do we do if we need a specific video format or an audio file in OGG?

Luckily, we are not the only ones with this problem. There are dedicated sites that offers a wide range of file formats that we can use for testing.

How to Create a QR Code with .Net 6+

QR codes are a nice way to supply your users with an URL without letting them type it into their mobile devices. All they need to do is to point their camera to the QR code and scan it. There are many libraries to create QR codes with .Net. Unfortunately, not all are working with .Net 6 and newer. In this post we explore a user-friendly library that works with .Net 6 and .Net 7.