Dot Net What Not Posts

Accessing Google Drive from an ASP.NET application looked easy until I tried it, and discovered that pretty much all the information out there is either misleading or plain wrong.

This blog post explains the three approaches I tried, and why the first two didn’t work. There are also plenty of links to the only reliable source of information I could find.

Sending messages between Blazor components is very simple, and can be very useful. If you’re used to messages in MVVM, and want to know how to do this in Blazor, read on…

As a follow-up to a previous post, where I wrote some Linq code to find the two closest factors of a number, I decided to do the same in Racket.

The code was nice, but the execution time was initially very disappointing, until I learnt something interesting about Lisp.

OK, so the title is really misleading, as you can’t really compare two such different languages, but it’s interesting to try to anyway.

Anyway, being a rank beginner, I had to start with everyone’s favourite recursive function, the factorial. This is a good one, as it’s so simple, but quickly generates numbers so big that it’s pretty useless unless you do something more than the basic coding. The results were surprising.

Spurred on by my son’s amazingly ugly CSS-only background, I decided to go one better and animate it.

Along the way, I rediscovered some of what made the early days of the web the wild, whacky and downright ugly place it was!

Get your sunglasses out before reading this blog post!

I was browsing the latest C# questions on StackOverflow, and came across one that caught my eye. Sadly, it was quickly closed by people who, in my opinion, didn’t read it properly. The question was…

I am trying to write a program to find the factor of a number with minimum difference. For Ex: for 20 it should be 4×5 or vice versa. How can this be achieved for a really BIG number. lets say 989287498274928743928174192847219347123984723498. Please guide

Ignoring the usual SO rules about showing some effort or research, the question is not simply “How do I find the factors of n?”, which is what all the linked answers were about. This question was how to find the two closest factors. Sure you can do that by finding them all, then sorting them by their difference, but for a big number, that’s hugely inefficient. There are ways of solving this specific question much more efficiently, which is what I decided to do.