2024 Advent of Code Day 1
It’s that time of the year where we can do Advent of Code 2024! Day 1 - Part 1 The Advent of Code 2024 Day 1 Challenge (Part 1) gently introduces the idea of pairing the same ordered elements in two lists. To find out, pair up the numbers and measure how far apart they are. Pair up the smallest number in the left list with the smallest number in the right list, then the second-smallest left number with the second-smallest right number, and so on....
Cryptopals Set-1 Convert Hex to Base64
Introduction I’ve been learning Rust with the aid of ‘The Rust Book’, and Rustlings. It’s also a good idea to suplement learning by taking on small exercises and projects, so I thought it’d be fun to tackle Cryptopals. Disclaimer: I am no expert in Rust and this will reflect in my code. I’m happy to receive feedback 😄 Starting Out The first Cryptopal challenge is to convert the hex string...
Writing Math With Hugo
I initially attempted to follow the setup of mathematics in content management section of Hugo. Not knowing how it worked, I assumed I can copy and paste these configurations straight out of the box, but this did not work. I wanted to run and I wanted to run fast without first understanding the underlying architecture of Hugo In comes a bit of googling and running into this article by Misha Brukman in Writing Math with Hugo....
Using Hugo to generate my static blog
I initially created a small blog using Svelte + Firebase to generate a static website for my blog, however the development effort required to build up a static website caused too much friction. I wanted to create blog posts fast, and found Hugo to support Code blocks with syntax highlighting out of the box. Example Code block: #include<iostream> using namespace std; int main() { cout << "Hello, World" << endl; return 0; } Using math notations using in Markdown using LaTeX or TeX requires some configuration and research, in which I will go into in the the next blog post....