Upload to Azure Storage with PHP

Upload to Azure Storage with PHP

I had the wonderful task to change a 20 year old PHP software during a Lift-and-Shift migration to Azure, so that it doesn’t store files directly in the web folder anymore, but uploads them to an Azure Blob Storage.

Read Blog Post
Run MSSQL on Docker for Windows

Run MSSQL on Docker for Windows

For some time now, Microsoft has been providing various MSSQL Server versions for Docker - for Linux and for Windows. This means that spending a few hours to install MSSQL Server on your own PC is a thing of the past and is now available with Docker in a few moments.

Read Blog Post
Twitch MediatR with ASP.NET Core

Twitch MediatR with ASP.NET Core

Twitch

Twitch is the leading streaming platform for video games and Co.

Starting small, Twitch hosts monthly over 3.5 million streamers that can be watched over the shoulder while playing games, cooking or driving a car. This platform is therefore very well known, especially with the younger generations. More than 70% of the viewers, whose average age is 21 years, belong to the millennials. The average Twitch user already spends almost 2 hours a day on the platform to watch videos.

Read Blog Post
Load an image into a byte-array with C#

Load an image into a byte-array with C#

This pretty simply snippet exports your Image into a byte-array.

1public static byte[] ToByteArray(this System.Drawing.Image image)
2{
3    using(MemoryStream memoryStream = new MemoryStream())
4    {
5        image.Save(memoryStream);
6        return memoryStream.ToArray();
7    }
8}

Usage:

1System.Drawing.Image myImage = .....
2
3byte[] imageAsByteArray = myImage.ToByteArray();

Hint: ImageSharp

ImageSharp uses the same signature to export bytes into a MemoryStream

Read Blog Post
Use a GoPro Hero as Webcam

Use a GoPro Hero as Webcam

The GoPro Hero series is the most popular action cam on the market. The current GoPro Hero 7 also offers USB-C, a micro-HDMI port as well WiFi and Bluetooth. However, the GoPro is just too good to have a life in a bag until I’m next on holiday. That’s why I had the idea to replace my Logitech 720p webcam with my the GoPro Hero 7.

Read Blog Post