bitScry - Blog

Shinigami

About this site

This is a blog to help me remember some of the coding challenges I’ve faced and hopefully help others out if they’re suffering the same problems.

Recent Posts
  • Adding a Sonoff Zigbee Dongle Plus P Router to Zigbee2MQTT
  • Configuring Raspberry Pi 5 with NVME Hat
  • Pass Through an iGPU to Frigate from Proxmox
  • Creating a Frigate VM on Proxmox
  • Enable Remote Root SSH Login
Tag Cloud

.NET .NET Core AAD API appsettings.json ASP.NET Core Authentication Authorization Azure Azure Active Directory Azure Function Azure Storage Blob Bootstrap C# Cloud Storage Console Application CSS CSV DataTable Dependency Injection Dictionary Docker Entity Framework Enum Extension HTML Image JavaScript jQuery JSON List MVC Newtonsoft Raspberry Pi RestSharp Serilog SQL Stored Procedure Stream Table Table Storage Web App Web Application WordPress

Copyright
Creative Commons License Any code within by Shinigami is licensed under a Creative Commons Attribution 4.0 International License.
Programming

Email Address RegEx

For this I just wanted a basic regex for email addresses, it will get nearly all emails but there’s likely to be some edge cases that it’s unhappy with.

By Shinigami, 7 years ago
Programming

Adding Serilog to an ASP.NET Core 2+ Web Application

I use Serilog to log to a SQL database in most of my web applications and although it’s pretty well documented the details relevant to my projects are spread out over a few sites so I figured I’d gather them here together for future reference. Packages Install these packages from Read more…

By Shinigami, 7 years ago
Programming

Checking for CSV Column Headers in C#

Importing CSV files into a .NET object isn’t too tricky and for this I usually use CsvHelper. However, sometimes I need to import a CSV file and only extract a couple of columns from it and these columns aren’t always guaranteed to exist. In order to do this I use Read more…

By Shinigami, 7 years ago
Programming

Checking Object Equality in C#

If you want to check if one instance of a custom class is equal to another instance of it you need to override the Equals operator for the class and implement your own. The code below is based on the articles The Right Way to do Equality in C# and Read more…

By Shinigami, 7 years ago
Programming

Returning HTTP Status Codes from ASP.NET Core Methods

Sometimes in an MVC controller you just want to return a HTTP status code from a method rather than a view or data object. This is pretty simple but is done slightly differently in .NET Core than it was done previously. Some of the more common status codes such as Read more…

By Shinigami, 7 years ago
Hardware

Raspberry Pi 3 Windows IoT Weather Station

I’ve had a raspberry Pi for a while now and one of the projects I’ve wanted to do but never actually got around to was to use it as a weather station as in this example from Microsoft. Unfortunately getting this working wasn’t as easy as expected, though this was Read more…

By Shinigami, 7 years ago
Programming

Recursive Object Properties

I’ve been working to create a virtual file system for SQL databases and represent this in a web interface. While creating the classes in .NET I realised that I needed to be able to traverse all the ancestors of a file up to the root level and to flatten these Read more…

By Shinigami, 7 years ago
Azure

Azure Active Directory Authentication in Web Applications

I’ve previously used “Individual User Accounts” authentication for authenticating users in web applications but as the management of users in the underlying SQL databases isn’t that simple it seemed that using Azure Active Directory to manage users might be a better option. The first step in the process is to Read more…

By Shinigami, 7 years ago
Hardware

Updating Gigabyte Motherboard BIOS

I recently built a new PC based on the Gigabyte Z370 AORUS Gaming 7, as this is a pretty new motherboard I figured I’d try and update the BIOS/UEFI to the latest version. Unfortunately it seems the Q-Flash utility for doing this doesn’t work properly (at least not for me). Read more…

By Shinigami, 7 years ago
Uncategorised

Sending Books to a Kindle from Gmail in Calibre

I’ve just built a new computer and have been setting up all my software on it again, as part of that I need to set up Calibre to download news and send it to my Kindle via my Gmail account. The first thing to take care of is whitelisting the Read more…

By Shinigami, 7 years ago

Posts pagination

Previous 1 … 15 16 17 … 21 Next
  • About
  • Blog
  • Contact
  • Create your website with blocks
  • Sample Page
  • Sample Page
Hestia | Developed by ThemeIsle