Hi! I'm Surinder!
A .NET Developer based in Oxford
delivering CMS and custom build solutions to
a wide variety of high profile clients.
My programming language of choice is C# and passionate in building interesting large scale web applications. With around 10 years experience in the industry, I am just as passionate about coding as I was from the very first console app I created many moons ago that read out: "Hello World!".
Latest Blog Posts
Since working from home, my laptop is constantly left plugged into the mains as there isn’t much of a reason to ever disconnect. I’ve been told leaving your laptop on charge has a negative impact on the longevity of your battery. I’ve been looking into charge limiting applications and the benefits.
It'll soon be coming up to a year working from home full-time due to the pandemic and I thought I'd write a post about my current setup as it has evolved over the months. Starting from a bare empty room with just a desk and chair has now become a fitting place to ensure maximum productivity and comfort.
After many years, I reinstated a search to my site - this time using Algolia. I decided to make small customisation to Algolia's Gatsby plugin where the search term can be sent to the index without using the (somewhat restrictive) SearchBox component. I detail how I read a search term from a query-string parameter so searches can be tracked in Google Analytics.
ASP.NET Core contains a variety of useful Tag Helpers with one, in particular, giving the ability to cache bust links to static resources using the 'asp-append-version' attribute. This approach works perfectly if linking to static resources using the relevant HTML tags - img, script or link. For complex cache busting, the application build date comes in handy.
Security headers add a layer of security by helping to alleviate attacks and security vulnerabilities - a must on any site including static variants hosted on Netlify. Securing website headers on a Netlify hosted site couldn't be simpler. In this post, I will explain a quick process to add basic security headers.