Posts

Showing posts from February, 2025

AI with Aspire

  Aspire with AI Today I came back across the best AI refactoring video out there done by Steve Sanderson: https://www.youtube.com/watch?v=yMGTUQhjtlM&ab_channel=dotnet

Problems with Floating Point Math

 FLOATING POINT MATH   Floating point math causes two major errors in computer science: the "floating point" math error and "penny error" problem.   A "floating point math error" in computer science refers to inaccuracies that occur when performing calculations with real numbers on a computer due to the limitations of how computers store decimal values. The "penny error" problem occurs when adding lots of currency values together.   This is also common in probability math. Probability = (Number of Favorable Outcomes) / (Total Number of Possible Outcomes).    LIMITATIONS 1) Computers have limited storage limits, while some fractions are unlimited like 1/3. Computers just round the last digit it can hold. 2) Computers have limits to screen display size.  Super long numbers get chopped off on screens or when stored. Especially common back in the days of calculators. 3) A decimal fraction like 0.1 (which is 1/10) has an infinite repeating binary repr...

EF to work with .NET 9

  I had some problems with getting EF to work with .NET 9 and Azure.  It has been a number of months since I last was getting things to work.  These are some of other people's blogs to fix the problem. ORIGINAL PROBLEM https://github.com/dotnet/efcore/issues/35179 https://github.com/dotnet/efcore/issues/35126#issuecomment-2643338661 FIXES Resolving Multiple EF Core Database Providers in ASP.NET Core Integration Testing https://www.devgem.io/posts/resolving-multiple-ef-core-database-providers-in-asp-net-core-integration-testing SOLVED: EF 8 to 9 migration database provider exception https://jackyasgar.net/solved-ef-8-to-9-migration-database-provider-exception/