Apr 1, 23
Adding webcomponents to a hugo blog
If you're looking to add some reactive frontend elements to your simple blog without having to resort to more complex frameworks like React or Vue, web components might just be the answer you're looking for. In this blog post, I'll walk you through how I added web components to my Hugo blog using Lit components and Vite as a simple build system.
Mar 30, 23
Building a better blog
My content over the years has teeter-tottered between good and bad. Here's my plan to ensure I'm producing quality, educational content moving forward.
Mar 15, 23
Manage your Environments with ASDF
ASDF is a version management syste for tools, which ensures different versions of programming languages, libraries and other tools are used in the right places.
Jan 22, 23
Naive Bayes Classifier in Rust trained on Taylor Swift lyrics
I wrote a Naive Bayes Classifier in Rust and trained it on Taylor Swift Lyrics which allows us to feed our program a set of lyrics (ideally not from Taylor Swift) and classify those lyrics as more likely to be featured in a song by Country Taylor Swift (circa 1989 album) or more likely to be featured in a song by Pop Taylor Swift (post 1989 album). The classifier features ideas such as Laplace Smoothing, tokenization, reading from files and more. Let's talk through building it!
Jan 4, 23
Do have a cow, man
Let's start by clearing the air. Rust has cows. These cows don't moo, can't be milked (or can they?), and can't even be tipped. In fact, theses cows aren't cows at all -- they're Cows (Clone On Write).