bitScry - Blog

Eating all the data

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 is licensed under a Creative Commons Attribution 4.0 International License.
Programming

React Router 404 on Refresh in Azure Static Website

If you’re building a Single Page Application (SPA) then routing tends to be taken care of on the client side by your index.html root document which requires it to be loaded first. If you’re hosting your site as a static Read more…

By Shinigami, 4 years ago
Programming

Checking if a dll Has a Strong Name

I manage a PGP encryption library call PGPCore and have recently been making some changes to try and move some of the deployment overhead into a git pipleline. The library is strongly named and as part of the work I’ve Read more…

By Shinigami, 4 years ago
Azure

Deploying WordPress on an Azure Web App

You can deploy WordPress onto an Azure Web App by copying the files directly to the FTP site behind it but the easiest option is to clone it directly from the offical WordPress Github repository. This can be done by Read more…

By Shinigami, 4 years ago
Programming

Pascal Case Naming in Newtonsoft

When serializing object to JSON using Newtonsoft it’s possible to change the naming of the properties by updating the serializer naming conventions as detailed here. It’s also possible to create your own custom naming strategy if none of the inbuild Read more…

By Shinigami, 4 years ago
Programming

InvalidAuthenticationTokenTenant Exceptions

If you want to debug an app that accesses Azure resources using Managed Service Identity (MSI) in Visual Studio or VS Code then you may well find yourself getting an error similar to that below. Although the error message is Read more…

By Shinigami, 4 years ago
Programming

Checking if an IP Address is in a Subnet

If you need to whitelist/blacklist an IP address for a client sometimes they’ll give you a subnet range rather than a list of IP addresses. If the site is being hosted in Azure then this is simple to do but Read more…

By Shinigami, 4 years ago
Programming

OAuth2 Authentication of Azure Functions in React

Since I wrote the post Azure Active Directory Authentication for React I discovered that the library used (react-aad-msal) is being depreciated as Microsoft are now providing their own offical library (@azure/msal-react) for these purposes. There’s good documentation of the msal-react Read more…

By Shinigami, 4 years ago
Programming

SHA256 in SQL

In SQL you can use the HASHBYTES function to generate the hash of an input, the output is the binary represention of the hash. If you want to get this as a unicode value then you can use the below Read more…

By Shinigami, 4 years ago
Programming

Azure Active Directory Authentication for React

Usually when I build a website it’s an ASP.NET Core Razor site created from Visual Studio but I’ve recently started to try to get to grips with the React framework (again within Visual Studio). This means I’m having to relearn Read more…

By Shinigami, 4 years ago
Programming

Azure Table Storage Dependency Injection

Extension methods for adding a BlobServiceClient are provided by Microsoft as previously mentioned, however there’s no equivlent for adding access for Table (or Cosmos DB) storage. The below extension allows CloudTable and CloudTableClients to be injected. Though as Table storage Read more…

By Shinigami, 4 years ago

Posts pagination

Previous 1 … 3 4 5 … 21 Next
  • About
  • Blog
  • Contact
  • Create your website with blocks
  • Sample Page
  • Sample Page
Hestia | Developed by ThemeIsle