Interests

Blog, Programming

Blazor: OnInitializedAsync Null Exceptions

One of the first issues I encountered when building data-driven Blazor pages is the dreaded NullReferenceException when trying to reference a page component from within the OnInitializedAsync override. Given the following Razor page source, which follows the recommended pattern of displaying a loading indicator while any asynchronous...

Read More

Blog, Programming

Introducing Blazor

Introduction Okay, Blazor isn’t exactly brand new. First announced over three years ago, it’s been in public preview since March 2018. However, with the release of .NET Core 3.1 in December 2019, Blazor Server support in Visual Studio (16.4 and up) is improved and there is also preview support for Blazor WebAssembly. I...

Read More

Fitness

Summer Fitness Goals

So, the clocks have finally “sprung” forward again which must mean summer is on the horizon. Time to start thinking about that beach body again! Truth be told, I never stop thinking about it, and I’m lucky that my year-round swimming regime keeps me in reasonable shape anyway. But, my diet isn’t exactly strict...

Read More

Blog, Travel

Introducing Greece Travel Guide

Everyone loves a bit of shameless self-promotion, so it’s about time I introduced my main hobby site: www.greecetravelguide.co.uk! Over the past year or so, I’ve gradually been adding content, as well as having a logo designed and buying a custom WordPress theme. For now, it’s mostly a diary of my (many) trips to Greece...

Read More

Movies

Thor: Ragnarok Review

Having just treated myself to an Odeon Limitless subscription, my friend and I decided we’d go and see Thor: Ragnarok as it’s been out a while now. A friend who’d already seen it gave it a thumbs up so we figured it’s worth a shot. Quick disclaimer: although I’ve seen all the previous Thor movies, …...

Read More

Featured, Programming

Diagnosing IIS 500 Internal Server Errors

Recently I was tasked with deploying a new version of my company’s website onto a clean Windows Server 2012 host and encountered a rather frustrating issue with the dreaded “500 Internal Server Error” page. Despite there being many articles attempting to cover this error online, none of them addressed my specific case...

Read More

Programming

Debugging Visual Studio Extensions

If you ever need to debug a Visual Studio extension to diagnose problems or just test that it’s behaving how you expected, it’s quite easy to do by taking the following steps: Firstly make sure your extension isn’t currently installed (if you’re working on a newer version or fixing bugs) – if so, uninstall...

Read More

Programming

Implementing simple caching in MVC applications

Whenever I develop a new MVC-based website there is always a question of how best to implement caching so that it’s unobtrusive and fits neatly with the standard Repository pattern without adding too much extra coding requirement on top. I’m going to be using dependency injection (DI) for this example so if your solution...

Read More

Movies

Paranormal Activity 4 Reviewed

Haven’t added a movie review in ages (who even reads these? Probably just me…) but what’s a blog without some posts? Now that me and the missus have BT Infinity — fibre-to-the-cabinet a.k.a “super-fast” broadband (depending on what the speeds are like where you’re reading this, of course) —...

Read More

Programming

• One Comment

Improving Entity Framework performance by tracking changes manually

Introduction While working on a recent personal project, I had the not-too-unfamiliar pleasure of fighting Entity Framework to try and get some half-decent performance out of a console application that I was using to bulk add and update records based on some external data feeds. It’s often said that EF isn’t really geared...

Read More
Close

Warning: Use of undefined constant XML - assumed 'XML' (this will throw an Error in a future version of PHP) in /var/www/html/willappleby/wp-content/plugins/wp-syntaxhighlighter/wp-syntaxhighlighter.php on line 1048