bitScry

  • Home
  • About
  • Blog
  • Contact

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
  • Mocking Hangfire BackgroundClient Jobs
  • Running Shinobi CCTV on a Raspberry Pi
  • Visual Studio CoreCLR Error
  • Adding Healthchecks to a .NET Core 6 API
  • Getting Location From IP Address
Tag Cloud

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

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, 10 months26 October 2021 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, 10 months25 October 2021 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, 10 months20 October 2021 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, 10 months20 October 2021 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, 12 months18 August 2021 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, 1 year20 July 2021 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, 1 year18 May 2021 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, 1 year11 May 2021 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, 1 year6 May 2021 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, 1 year9 March 2021 ago

Posts navigation

Previous 1 2 3 … 19 Next
  • Facebook
  • Twitter
  • Instagram
  • Email
Hestia | Developed by ThemeIsle