My C# solution to LeetCode problem 222, counting islands. A first (slightly incorrect) attempt in a procedural manner, followed by a Linq solution that worked
Dot Net What Not Posts
One of the nice things about a modern IDE like Visual Studio is the help you get when coding. XML documentation, which shows up as a pop-up below the line of code you’re writing helps you check you’re using the right method.
Sometimes it tells you a little bit more than that…
Just to prove that Windows isn’t the only piece of software out there that is capable of amusing me, Thunderbird gave me a laugh today
Another excuse to have a laugh at the expense of some very clever Microsoft engineers!
Just browsing some books on Amazon, and saw this lovely example of what happens when you forget to HTML-encode your text…
Another amazing Microsoft error message
Whilst Hot Reload is a great feature of Visual Studio, I found that it was very slow in on specific project, often taking 30-60 seconds before the changes were applied.
This post describes the cause of the problem, and briefly discusses some solutions.
Quick post on how to convert from an integer to its equivalent hex value and back again in C#. Written as a reminder for myself, as I forget every time!
My son just noticed that if you go to google.com and enter “last day of march 2022”, then you are given an, erm, interesting result!
A few weeks ago, I blogged about some code I was writing to simulate buses arriving at bus stops and picking up passengers.
I mentioned at the end that the code shown there had three major shortcomings. Having nothing better to do with an hour this afternoon (meaning: not being bothered to do what I was supposed to be doing and preferring to have a play instead), I decided to address those shortcomings.
This blog post explains the changes, and how they led to a very pretty, but probably wrong simulation!
Leave a Comment