Category: Programming
-
Avoiding Syntax Errors with the Conditional Operator in C#
I was having a strange bug in my code, everything looked right, but for some reason, it just wouldn’t work as expected. I had written a simple conditional…
-
Two-Way Data Binding with Dates: A Common Gotcha
I was having issues getting dates to bind. I realised that when the data came down as a string, the data binding worked fine, but when it came…
-
Getting HTML Datepickers to Display Bound Data Correctly
I was trying to get a HTML datepicker to show the underlying data that it was bound to, but was running into issues with the date format. The…
-
Pulling a Close Button to the Right in Bootstrap 5
I was wanting to pull a close button to the right in Bootstrap 5 recently. After some research and experimentation, I ended up finding that the text-end class is a…
-
[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.…
-
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…
-
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…
-
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…
-
[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:…
-
Web.config transforms and git. Ending the frustration.
In the world of MVC projects, managing web.config transformations can often be a tricky task, especially when working with source control systems like Git. A common issue that developers face…