OpenTelemetry With Application Insights

In order to follow the direction of the industry, Azure Monitor and Application Insights is moving towards OpenTelemetry. So how would one setup a minimal error logging?

Force Stop Docker Container

This is just a quick note about how to forcefully stop a docker container when simple docker stop isn’t working.

Self Contained Single File App With .NET Core

In .NET Core there is now an easy way to publish your app as a single exe. No extra dependencies, no installers. But with some caveats that you need to be aware of.

AES Encryption in C#

Have you ever wanted to encrypt some sensitive data? Then you have probably came across various articles about AES (Advanced Encryption Standard). As of August 2019, AES is still the recommended algorithm to use so let’s look at how you can use it.

Cross Platform DateTime in .NET Core

If you are deploying to multiple platforms or even just developing on Windows and then deploying to linux, dealing with time zones might trip you up.

Windows Commmand Line Tips

Lately I have been spending a lot of time at the command line so I thought I’d share some useful commands, shortcuts, tips and maybe some lesser known features and write it down for future reference.

Local Dev Server for Static Files

If you are looking for a quick way to start up a local dev server for serving static files, there are many options available. I’m going to describe some of the ones I use.

Working with xls files in C#

There is a really neat library for working with xls/xlsx from C# called NPOI.

The biggest selling point of NPOI is that you don’t need to have Office installed on your server in order to use it.

LiteDB - Embedded NoSQL database

As the title states - LiteDB is embedded nosql one file database. In terms of features it offers quite a lot:

Simple Windows service with Topshelf

What is Topshelf? The authors describe it as

… a framework for hosting services …

Topshelf makes developing and installing Windows services super easy.