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

Finding Entities in Azure Table Storage That Are No Longer in Local Storage

I have a table in Azure Table Storage that I need to keep as a replica of a local SQL table. Adding/updating rows from the local table is simple enough but it is slightly more complicated to find rows that Read more…

By Shinigami, 6 years ago
Programming

Using CsvHelper to Write a DataTable to a Blob

CsvHelper is handy for reading and writing CSV files but there’s no obvious way to write out a DataTable to a CSV file. Therefore in order to do this we need to loop through all the rows and columns of Read more…

By Shinigami, 6 years ago
Programming

Reading Data from an ICloudBlob

Previously when I’ve wanted to read a blob from Azure Storage I’ve opened it as a CloudBlockBlob which allows you to read it using just OpenReadAsync(). If you want to use an ICloudBlob then you need to provide AccessCondition, BlobRequestOptions Read more…

By Shinigami, 6 years ago
Programming

Converting a Char Character to an Enum in Entity Framework

If you’re using Entity Framework with a legacy database then you may well have single character status flags in some of the columns such as “O” = Operational, “M” = Marketing. Ideally these would be numeric IDs that match to Read more…

By Shinigami, 6 years ago
Programming

Selecting All Data from a VARCAR(MAX) Column

If you’re using VARCHAR(MAX) columns in SQL then you may occasionally want to view the stored values in SQL Server Management Studio (SSMS) as part of the debugging process. Because a VARCHAR(MAX) field can store up to 2GB of data Read more…

By Shinigami, 6 years ago
Programming

Azure Active Directory Token Caching

I’ve been working on a web portal that users Azure Active Directory (AAD) for user authentication and for requesting permissions to the Azure Graph API, the code for which is based on this sample project. This uses a library called Read more…

By Shinigami, 6 years ago
Programming

Querying Views Without Primary Keys in Entity Framework

Entity Framework is a nice way of accessing databases without having to write any data access code. Because Entity Framework is able to modify data in your database it needs a primary key to be defined in order for it Read more…

By Shinigami, 6 years ago
Programming

Generating Event Hub Shared Action Signature

It’s easy enough to send messages to an Event Hub using the EventHubs NuGet package as specified here, but if you want to test it by making you’re own HTTP POST requests to the endpoint then it becomes a bit Read more…

By Shinigami, 6 years ago
Hardware

Turning Off Lights on Logitech G Pro Wireless Mouse

I bought the Logitech G Pro Wireless mouse last week as my old mouse was getting a bit skanky and I wanted something nice to replace it with. So far I like it but the one annoyance was that when Read more…

By Shinigami, 6 years ago
Programming

Getting a Randomly Generated String in SQL

If you want to get a random string in SQL then you could use newid to generate a GUID and take the alphanumeric characters from it, however while these should obviously be unique from each other they don’t contain the Read more…

By Shinigami, 6 years ago

Posts pagination

Previous 1 … 8 9 10 … 21 Next
  • About
  • Blog
  • Contact
  • Create your website with blocks
  • Sample Page
  • Sample Page
Hestia | Developed by ThemeIsle