Writing on AI and software

A Beginner's Guide to Vector Embeddings (with working code)
The simplest guide to vector embeddings in practice and how to use them, including video demos solving real problems at our startup by quantifying text meaning for classification and similarity tasks.
April 2025
Read article
Your LLM Problem Isn't Tooling. It's Effort
Getting great LLM output with an LLM-as-a-judge requires more effort, not more tools
April 2025
Read article
AI Needs Us? Information Theory and Humans as data
Why superintelligent AI would protect humanity as a source of complexity and knowledge
March 2025
Read article
Can we detect AI-generated text?
I tested 5 AI-text detectors that claim to detect LLM-generated text. The outcome: they don't work well.
March 2025
Read article
Making our startup's homepage search statically fast - A simple way using static speed and Next.js โšก
Using Next.js's boringly named but easy mechanism to make our homepage search as fast as possible.
December 2024
Read article
Email to Data (with an LLM)
Speeding up my taxes by converting .eml files to useful data with an LLM
November 2024
Read article
Train an AI to generate text with Python ๐Ÿง 
We'll train a real GPT AI language model from scratch using Python on macOS, specifically designed to generate Shakespearean text, using the Tiny Shakespeare dataset.
September 2024
Read article
Deploy Django Ninja to production in 9 minutes ๐Ÿฅท๐Ÿ›ฐ๏ธ
Very simple. Django or Django Ninja to production using Render
September 2024
Read article
Django Ninja + Next.js - 2 powerful frameworks ๐Ÿฅทโš›๏ธ
Django Ninja for a fast, typed API backend + Next.js (with App Router) for frontend
August 2024
Read article
Create a simple Google search bar component with React ๐Ÿ•ต๐Ÿปโ€
Simple search with sample data and debouncing
August 2024
Read article
Use React with Django Ninja (including Auth) in 15 mins โšก๏ธ
We'll create an app from scratch with a React.js frontend (including persistent user authentication) and Django Ninja
July 2024
Read article
Want to ship faster? Spend money ๐Ÿ’ฐ
The simplest hack to ship your products faster -> Don't be cheap
July 2024
Read article
React + Django + Ninja (Full-stack in 15 mins) โš›๏ธ๐Ÿฅท
React, Django, and Django Ninja (including CORS setup and Typescript).
July 2024
Read article
Use Vue with Django (including Auth) in 15 mins ๐Ÿ’
We'll create an app from scratch with a Vue.js frontend (including persistent user authentication) with Django in 10 minutes.
June 2024
Read article
How to use React with Django (in 10 mins) โš›๏ธ
The simplest way to set up a React.js frontend and a Django REST API backend
May 2024
Read article
The simplest way to add polling to Django with HTMX ๐Ÿ—ณ๏ธ
We'll build a dashboard that updates every few seconds with HTMX
May 2024
Read article
Add inline AI suggestions to your Django app ๐Ÿ—ฏ
Use a fast LLM, HTMX, and Photon Designer to recommend actions to the user.
May 2024
Read article
Stream your voice clone ๐ŸŽผ
We'll turn your voice into an infinitely-scalable instrument with Django
May 2024
Read article
The simplest way to add lottie animations to your Django app ๐ŸŒ€
Show competence with smooth animations in your app.
April 2024
Read article
Add Stripe subscriptions to Django in 7 minutes ๐Ÿ’ต
We'll add the ability for users to pay subscriptions in Django extremely quickly, including local webhook testing.
April 2024
Read article
Build a Connect Four game with HTMX and Django in 8 minutes ๐ŸŸก๐Ÿ”ด
Use HTMX with Django for fast and neat web apps. Keep state changes server-side.
April 2024
Read article
Stream AI chats using Django in 5 minutes (OpenAI and Anthropic) ๐Ÿ’ง
Simply use server-sent events with Django (no extra packages needed) to stream LLM completions. Avoid waiting for the full completion.
April 2024
Read article
Use Postgres as a simple task queue for Django ๐Ÿ˜
Simply run background tasks using Postgres and python. This has some big advantages.
March 2024
Read article
Add comment threads to Django in 9 mins ๐Ÿงต
A simple way to let people leave comments in your Django app
March 2024
Read article
7 simple examples using Django GeneratedField โšก๏ธ
Do calculations with your database in a neat and extremely fast way
March 2024
Read article
Simply add (and export) data from your Django database with YAML (3 mins) ๐Ÿงฎ
Speed up your time to useful content. A simple guide to adding and exporting data using YAML and Django's management commands
March 2024
Read article
Create a quiz app with HTMX and Django in 8 mins โ˜‘๏ธ
Build multi-stage forms with HTMX and Django very quickly.
March 2024
Read article
Simple Django mistake - Not debugging using network responses ๐Ÿ•ธ๏ธ
Avoid wasting a load of time when debugging Django apps, particularly with APIs (like AWS)
February 2024
Read article
The simplest way to add a Django worker (Using AWS Chalice) ๐Ÿท
Add an AWS lambda function, with async invocation for background tasks, to development and production (plus GitHub Actions deployment)
February 2024
Read article
Django app killer - Query in for-loop ๐ŸŒช๏ธ
Avoid killing your Django app's performance by putting a database query in a for-loop
February 2024
Read article
The simplest way to add Tailwind CSS to Django ๐Ÿ’จ
How to use Tailwind CSS with Django
February 2024
Read article
How to add python serverless functions as Django background workers ๐Ÿ—ก
I spent 14 hours adding async serverless functions. Here's the guide I was missing using DigitalOcean functions
February 2024
Read article
Build a Django AI colorization app ๐ŸŽจ๐Ÿฆพ
Use Django and webhooks to build an app that uses AI to color black and white photos.
January 2024
Read article
The simplest way to add magic link sign-in using Django โœ‰๏ธ
An easy guide to add email sign-in (and verification) to Django using Gmail and others
January 2024
Read article
The simplest way to add Google sign-in to your Django app โœ๏ธ
Avoid adding big packages (like Django-allauth or Django-social-auth). It's easier without them.
January 2024
Read article
Use English to query your Django data ๐Ÿด๓ ง๓ ข๓ ฅ๓ ฎ๓ ง๓ ฟ
Let non-technical users use English to get answers from your Django data (with OpenAI's Assistant API)
January 2024
Read article
Deploy an instant messaging app with Django ๐Ÿš€
How to deploy an app with real-time events in the easiest way (Part 2 of building an instant messaging app with Django ๐ŸŒฎ)
December 2023
Read article
The simplest way to build an instant messaging app with Django ๐ŸŒฎ
How to create an app with real-time events in the easiest way (with server-sent database events and no Redis)
December 2023
Read article
Add Notion as your Django database in 8 minutes ๐Ÿ•ฏ๏ธ
Adding Notion as your Django database is simple, free, and makes viewing and changing data very easy (you use Notion).
December 2023
Read article
Write good tests (with FactoryBoy and Faker) in 6 Minutes ๐Ÿฝ๏ธ๐Ÿ‘จโ€๐Ÿณ
Start writing good Django unit tests (quickly and clearly)
November 2023
Read article
The simplest way to add server sent events to Django ๐Ÿบ
Add server sent events to your Django app with Daphne (and minimal code).
November 2023
Read article
Add infinite scroll with Django and HTMX in 60 seconds โ™พ๏ธ
Speed your initial load - get content only when the user wants it.
November 2023
Read article
How to upload images easily with Django (and save the links to your database) ๐ŸŒค๏ธ
Simply upload images to the cloud and store the links (using Django, Cloudinary, and Alpine.js)
November 2023
Read article
Build a simple file uploader with Django (and Alpine.js) ๐Ÿ”๏ธ๐ŸŒ…
Frictionless uploading with a tiny Alpine.js component and S3.
November 2023
Read article
Snapshot any site with Django in 3 minutes ๐Ÿ–ผ๏ธ
Build a Django app to snapshot any URL using simple headless browsing
October 2023
Read article
Create a open graph social image generator with Django ๐ŸŒ
Help people share your content - create Open Graph social images for any url automatically
October 2023
Read article
How to add Google sheets as your Django database in 4 minutes ๐Ÿ“Š
An easy to add database (and free)
October 2023
Read article
3 steps to upload files properly with Django (and HTMX) ๐Ÿ“
Most tutorials give bad advice about uploading files. Here's how to avoid blocking your server.
September 2023
Read article
How to store your users' API keys securely in Django ๐Ÿ”‘
Encrypt your users' keys to increase security
September 2023
Read article
How to add serverless functions with Django in 6 mins (with HTMX and AWS Lambda) ๐Ÿง 
Add serverless functions. Banish background worker mess.
September 2023
Read article
Add instant database search with Django and HTMX ๐Ÿ•ต๏ธ
Search server-side with speed.
September 2023
Read article
How to create ChatGPT with Django and HTMX in 4 minutes ๐Ÿฆพ
Add AI to your web apps, simply and quickly (including GPT4)
August 2023
Read article
How to create a Django form (using HTMX) in 90 seconds ๐ŸŽ
Minimise javascript. Maximise building speed with Django and HTMX.
August 2023
Read article
How to add a javascript library to your Django HTML template ๐Ÿ‘”
Add a JavaScript library to your Django HTML template. Create more valuable Django apps as a result.
August 2023
Read article
How to create a Django form in 2mins using Alpine.js ๐Ÿ”๏ธ
Create an async Django form simply and neatly with Alpine.js. Boost speed, enhance functionality.
July 2023
Read article
Automatically register all Django models in Django admin
Register all of your Django models in the admin automatically. Avoid manually adding each new one.
June 2023
Read article
Django Viewset Permissions - A Guide to Setting Permissions Per ViewSet Method
We show how to set permissions using Django ViewSets (a very fast and elegant way to build a Django REST API)
June 2023
Read article
Build web apps 5-10x faster by combining Webflow and Django
A basic script and guide for exporting Webflow to Django
June 2023
Read article