C# LINQ Basics
In this code snippet, we will learn how to do some basic queries using LINQ(Language Integrated Query) in C#.LINQ is used to work with data within C# and can be used on enumerable types(IEnumerable
In this code snippet, we will learn how to do some basic queries using LINQ(Language Integrated Query) in C#.LINQ is used to work with data within C# and can be used on enumerable types(IEnumerable
In this post, I will list and briefly describe the docker container I use on my home server. There are a bunch of very useful apps or services out there that you can simply run as a docker container on your home server. By self hosting you get total control over your services and data.
In this post, I will document the build process for my mini portable server made from an old Bitcoin miner case and an Orange Pi Zero Plus. One day I was looking through my SBCs parts bin and saw the Orange Pi Zero Plus board(still in its packaging) I had bought many years ago but never used. I got the idea to make a small portable server that could maybe run an MQTT broker, act as an AP, run a web server, etc.
In this post, I will show you the contactless clamp power meter I made. I used a readily available SCT-013 current transformer clamp. The great thing about this is that you can measure the current flowing through a wire without having to put an amp meter in series with the load and source. This means you also don’t have to expose yourself to a potentially dangerous voltage.
In this post, I’ll show you how to do OTA(over the air updates) to your ESP32/ESP8266. This means that you don’t have to connect your ESP board to your PC by cable and can instead push firmware updates wirelessly over the network(as long as you are connected to the same network). The process of uploading the firmware remains almost the same. The only difference is you have to select a network port under Tools -> Port -> Network Ports instead of a COM port.
In this post, I will show you how to access a local website running on localhost(Windows). Specifically, I will show you how to do this for Visual Studio when you are running/debugging your web app/server during development.
This can be very useful for checking if your website works properly on mobile and allows other people(within your network, unless you port forward) to test your site without having to deploy your site on some remote dev./test server.
In this post, I will show you how to fix Ubuntu not booting after you resize the disk of the virtual machine in VirtualBox. I just recently ran into this problem so I thought id would share/document the solution.
In this post, I’ll talk about the online GDS File Viewer/Editor I made(or I’m making as it’s still a work in progress). For now, I will make the development version of the app available online so people can find it and test it. Eventually, I will post the code on Github but first I want to add some more features, refactor the code and maybe write some unit tests.
In this code snippet, we will take a look at bitwise operators in C#. Bitwise operators can be used to manipulate individual bits of a variable. These operations can be quite cryptic and hard to understand compared to regular code. So only use it when it makes sense(for example bit masking) and don’t prematurely optimize your code. In C# we can use enums in conjunction with the Flags attribute to do bitmasking. This gives us cleaner and more readable code.
In this code snippet, we will take a look at pattern matching in C#. Pattern matching is simply testing if an expression matches certain criteria. For example, Regex often times gets used for more complex pattern matching of strings.