Archive

Showing posts from 2020.

OnInitializedAsync() - No suitable method to override

OnInitializedAsync() - No suitable method to override

I've been working on a new Blazor project for a few weeks, and have been bothered by the number of seemingly odd errors reported in the Visual Studio error panel. The main reason they bothered me (other than the unhelpful fact that they all claim to be on line 1 character 1 of the relevant file, which isn't very helpful) is that the code runs fine. Whilst this has been annoying me, as things were working, I didn't spend too much time on it.

However, I just ran into another problem, and the solution turned out to solve this one as well.

How to find out what window has focus

How to find out what window has focus

I recently switched to Windows 10, and have found that one really annoying habit it has is that it will randomly switch focus without warning. I can be typing an email, scrolling down through the errors in the event viewer to see what vital parts of Windows crashed today and so on, and suddenly I find that my words are not entered into the email, the events aren't scrolling, etc.

A quick bit of searching revealed that a lot of people have had the same problem, and very few have managed to solve it. The main problem is finding out what gets the focus.

This post explains how I found out.

Windows 10, built to last

Windows 10, built to last

Whilst I'm getting increasingly frustrated with Windows 10, the number of errors that seem to crop up, and the number of basic features that seem to stop working for no good reason, it has produced more than its fair share of amusements.

Today's suggests that Microsoft have an amazing level of confidence in the staying power of Windows 10.

Erm, how urgent is it?

Erm, how urgent is it?

I just lurve clients sometimes!

Our main client has the (probably not uncommon) habit of labelling every ticket as urgent. The problem with this is that when something really urgent comes along, they have no way of making it stand out above the other urgent jobs. This predictably led to the creation of a "Very urgent" rating.

Today they outdid themselves...



This led to a lively debate as to what would come next. How about "-1. Life threatening"?

Mazes For Programmers part 3, graphical UI

Mazes For Programmers part 3, graphical UI

Part 3 in my ongoing series of how I implemented the code from Mazes For Programmers by Jamis Buck in C#.

The author rendered the mazes in graphical form using a Ruby library that allows you to create PNG images. This requires you to run the code, then open the saved image, then remember to close it before running the code again, otherwise you get a "File access denied" error, all of which seemed like hard work. As I work with WPF on a day-to-day basis, I decided to use that to render my mazes, as it was quicker and easier.

This post shows how I did it.

Mazes For Programmers part 1, introduction

Mazes For Programmers part 1, introduction

Part 1 in my ongoing series of how I implemented the code from Mazes For Programmers by Jamis Buck in C#.

In this post, I waffle on about the book, why I decided to implement the code in C# rather than Ruby, and generally spend a fair bit of time not saying much. Pretty regular blog post for me!