Posts
ESP32 Web Server, Web Sockets And HTTP API Calls
In this post, I’ll show you how to make API requests from the ESP32 or ESP8266, how to set up a web server on the ESP and use AJAX to…
C# Covariance And Contravariance
In this code snippet, we’ll take a look at covariance and contravariance in C#.Covariance and contravariance enable implicit type conversion for arrays, delegates and generic interface type arguments…
C# Image Classification With ML.NET
In this code snippet, we’ll see how to do image classification in C# using the ML.NET machine learning framework. It provides a user friendly GUI for creating, training and deploying…
GPU Acceleration For Your C# App With ILGPU
In this code snippet, we’ll see how to use GPU acceleration in C# using the ILGPU library. ILGPU provides you with a fairly simple interface to run code on your GPU…
C# COM Objects, Interop with PInvoke And Type Marshalling
In this code snippet, we will take a look at COM objects, interop using PInvoke and type marshalling in C#…
Controlling WS2812B LEDs With An ESP8266 and WLED
In this post, I will show you how to control WS2812B, WS2811 or SK6812 individually addressable LEDs with an ESP2866 or ESP32 by using WLED. With the WLED firmware, the…
Blazor IdentityServer Error: “There was an error trying to log you in” Solution
I ran into this issue recently, so I thought I’d share the solution in case it helps someone else.I was contacted by a user saying they can’t log in and…
C# Lambda Expressions
In this code snippet, we will take a look at lambda expressions, Func and Action in C#.Func is simply a more compact way of defining a delegate/function pointer while Action…
C# Unsafe code, Pointers, Stackalloc and Spans
In this code snippet, we will take a look at unsafe code, pointers, stack allocation and spans in C#. C# has managed memory unlike for example C/C++. This means that…