Categories
Alpine
Alpine.js
ASP.NET
ASP.NET Core
Blog
C#
Clearing the smoke
DaisyUI
Docker
EasyNMT
Email Newsletter
Entity Framework
FluentEmail
Freelancing
GitHub Actions
Google Auth
Grafana
Hangfire
Highlight.js
HTMX
IHostedService
ImageSharp
Interviewing
introduction
Javascript
Legacy Code
Logging
Markdown
Mermaid
Microsoft
Moq
Nuget
OpenSearch
PagingTagHelper
Polly
Postgres
Prometheus
Random
Razor
Resume
RSS
Seq
Serilog
TagHelper
Tailwind
Umami
Unit Testing
WebAPI
xUnit
A Whistle-stop Tour of HTMX Extensions and Using HTMX with ASP.NET Core
HTMX is a powerful JavaScript library that allows you to create dynamic web applications with minimal JavaScript. It enables you to make AJAX requests, swap HTML content, and handle events directly in...
Friday, 02 May 2025 20:30
//15 minute read
An Alpine.js and HTMX 'Clear Query String Parameter(s)' tag helper for ASP.NET Core
Just a quick one, I had a need in a work project for the ability to 'clear' URL parameters from a URL. This is useful when you have a URL with multiple parameters, and you want to remove one or more...
Friday, 25 April 2025 23:00
//7 minute read
An Auto-Update Partial Updater with Alpine.js and HTMX
So in what's becoming a series, in a work project I wanted to add the ability for a partial to auto-update on a given timescale.
Here's how I did it using Alpine.js and HTMX.
Requirements
So I wanted...
Wednesday, 23 April 2025 19:30
//7 minute read
Using SweetAlert2 for HTMX Loading indicators (hx-indicator)
On a work project I've been using and abusing HTMX to build an admin UI. As part of this I'm using the lovely SweetAlert2 Javascript library for my confirmation dialogs. It works great but I also...
Monday, 21 April 2025 20:05
//13 minute read
A Copy Button For Highlight.js
In this site I use Hightlight.js to render code snippets client side. I like this as it keeps my server side code clean and simple. However, I wanted to add a copy button to each code snippet so that...
Saturday, 28 September 2024 14:15
//5 minute read
Switching Themes for Mermaid (Updated)
I use Mermaid.js to create the dope diagrams you see in a few posts. Like the one below.
However something that annoyed me is that it wasn't reactive to switching themes (dark/light) and there seemed...
Thursday, 29 August 2024 05:00
//7 minute read
Adding XSRF for JavaScript
When adding the search box in the prior article, we left out a critical security feature: XSRF protection. This article will cover how to add XSRF protection to the search box.
What is XSRF?
XSRF...
Thursday, 22 August 2024 05:30
//2 minute read