Header image for WTF is BM25?  The Intuition Behind the Algorithm

WTF is BM25? The Intuition Behind the Algorithm

BM25 is an unsung hero powering heaps of stuff you use every day – think search bars, recommendation systems, or even those fancy AI chatbots that somehow dig up the right info from a mountain of text (we're looking at you, Retrieval-Augmented Generation).

Header image for ⚡️ Latent Space - The new OpenAI Agents Platform

⚡️ Latent Space - The new OpenAI Agents Platform

OpenAI have dropped their new Agents Platform. Swyx and Alessio chat with Nikunj Handa and Romain Huet of OpenAI to discuss the release.

Header image for The Quick Tutorial on Python Lambda Functions That You Never Asked For

The Quick Tutorial on Python Lambda Functions That You Never Asked For

Let's be real, nobody wakes up in the morning thinking, "You know what I need more of in my life? Python lambda functions." But here we are. Buckle up, because this is the lambda tutorial you didn't ask for—but secretly need.

Header image for Founders #383: Todd Graves and his $10 Billion Chicken Finger Dream

Founders #383: Todd Graves and his $10 Billion Chicken Finger Dream

I listened to Senra's great episode on Todd Graves of Raising Cane's fame this morning. Here are my snips from the episode.

Header image for How to Add Custom HTML Pages to a Pelican Site

How to Add Custom HTML Pages to a Pelican Site

Pelican is a powerful static site generator written in Python, primarily designed for blogs. However, sometimes you need to include custom HTML pages that don't fit into Pelican's standard content model. This guide explains how to add standalone HTML pages to your Pelican site while preserving their exact formatting and …

Header image for Using the BytesIO Class in Python

Using the BytesIO Class in Python

The io.BytesIO class in Python is an in-memory stream for binary data. It provides a file-like interface that lets you read and write bytes just like you would with a file, but all the data is kept in memory rather than on disk. This can be extremely useful when …

Header image for Linking to Posts in Python Pelican

Linking to Posts in Python Pelican

Pelican provides a syntax for linking to another post by its filename.

Header image for Copying Files & Directories in Linux with Progress Indication

Copying Files & Directories in Linux with Progress Indication

I’ve long used rsync for high fidelity, detailed copies of large swathes of files in Linux. For example:

Header image for Why An 8TB Drive Isn’t 8 Usable TB

Why An 8TB Drive Isn’t 8 Usable TB

I bought an 8TB external SSD to use as a live boot Linux device. I knew that this issue was due to the way that bits are aggregated into terabytes, but — thanks to our mate ChatGPT — here’s a nice explanation of why my 8TB SSD only shows 7,452 …

Header image for Wrap with HTML tags in VSCode

Wrap with HTML tags in VSCode

Using the Emmet capabilities in VSCode (see previous TIL) you can highlight a section of HTML code and quickly wrap it with other HTML using Emmet shortcuts.