Your cart is currently empty!
Category: Uncategorized
-
[Updated] Using EF migrations with multi project solutions.
When using ef migrations with an existing project, I found that that entity framework could not get a configuration, so therefore it could not get connection string etc. The reason for this is that ef migrations look at a few places, for the configuration. I tried a few work arounds, but none of those worked.…
-
Resolving Common Issues with Code First Migrations in ASP.NET Core
I was working on a multi project solution and needed to do some code first migrations. It had been a while since I had done migrations and when running them, I noticed an error I hadn’t seen before. This was a strange error, and after adding the -v switch to the dotnet ef migrations add…
-
Resolving EF Migration Errors with a Separate Database Project
As developers, we’ve all been there – stuck on a seemingly insurmountable error, with no clear solution in sight. Recently, I encountered an issue while trying to run migrations on my ASP.NET Core application. The problem was that my database was housed in a separate project from my application, which led to some unexpected errors.…
-
Here are the steps to mount a network drive permanently on a Linux system:
Step 1: Install the necessary packages You will need to install the cifs-utils package to mount a network drive on a Linux system. You can install it using the following command: Step 2: Create a mount point Create a mount point for the network drive. This will be the directory where the network drive will…
-
Backing Up Oracle Free Tier Machines: A DIY Solution
I have heard that Oracle sometimes blows its free tier machines away randomly, and I had left a backup solution too long. Sure, I backed up the boot volume in Oracle’s console, but this doesn’t include an easy way to pull those images down, so I needed to work something out for myself. I tried…
-
[Solved] Angular SocialX login showing even when user is authenticated.
I was adding third party authentication to my application, and I found a plugin which looked to solve the problem. Its located here and seems very popular: abacritt/angularx-social-login: Social login and authentication module for Angular 17 (github.com) Great! I set it up, and it worked! The only frustrating thing was that the plugin would show…
-
[Solved] Angular sub paths not working.
Make sure to wrap your app-root element with the body tag! For example:
-
Home assistant key configuration for image notifications
I put this together for those that are chasing a working config to get their camera to take a snapshot, and forward that snapshot through as a rich notification to android or IOS. Note that my phone sits on the same VPN as my home assistant instance, so the image URL will be accessible by…
-
Midea Modbus Info
-
[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 came down to this line: Notice that the CopyToAsync is asyncronous, so it will not block the code. because I was not awaiting it, it runs to…