Category: Programming
-
[Solved] Angular sub paths not working.
Make sure to wrap your app-root element with the body tag! For example:
-
[Solved] Image corruption when uploading files in .net core.
I had a real ‘Doh!’ moment today. I was having issues uploading images to an endpoint… after scratching my head and repeating the issue a few times, it…
-
Building a Dockerized C# Email Tester: A Step-by-Step Guide 📧🐳👨💻
As developers, we often need to test email functionality in our applications. But how can we do that efficiently, especially when working with Docker containers? In this tutorial,…
-
Creating a component and adding it to an existing module.
Sometimes when creating a component, we want it to exist under a module to keep things structured and so that our app module doesn’t get huge. It can…
-

Removing Files from Git Source Control: A Quick Guide
Introduction When working with Git, you might encounter situations where you need to remove a file or folder from source control. Whether it’s a temporary build artifact or…
-
HELP! Hosting .netcore https site inside docker container.
Im currently running a dev container for my .net core project. After following the directions found here: I can get my site working, so for if example I…
-

Developing net core inside docker with https and kestrel
First of all its a good idea to just make sure you can get https dev working locally. Then you can move to https on your container. This…
-
[Solved] ERR_CONNECTION_RESET with SSL and ASP.NET
I was in the process of migrating an application from forms authentication to Azure identity authentication. Initially, everything seemed straightforward, especially since I had another application already functioning…
-
[Solved] Entity framework – Violation of PRIMARY KEY constraint ‘…’. Cannot insert duplicate key in object ‘dbo…’ the duplicate key value is (…). The statement has been terminated.
If you are struggling to create a new record in a sql db when using entity framework and you are ending up with an error that looks like…
-

String Literal Cheat Sheet (Python, C#, JS)
Python Python uses f-strings for string interpolation. Here’s an example: In this code, the variables name and age are inserted into the string using curly braces {}. C# C# uses string interpolation with…