Writing on AI and software

AI Needs Us? Information Theory and Humans as data
Why superintelligent AI would protect humanity as a source of complexity and knowledge
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.
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.
Read article
Email to Data (with an LLM)
Speeding up my taxes by converting .eml files to useful data with an LLM
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.
Read article
Deploy Django Ninja to production in 9 minutes ๐Ÿฅท๐Ÿ›ฐ๏ธ
Very simple. Django or Django Ninja to production using Render
Read article
Django Ninja + Next.js - 2 powerful frameworks ๐Ÿฅทโš›๏ธ
Django Ninja for a fast, typed API backend + Next.js (with App Router) for frontend
Read article
Create a simple Google search bar component with React ๐Ÿ•ต๐Ÿปโ€
Simple search with sample data and debouncing
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
Read article
Want to ship faster? Spend money ๐Ÿ’ฐ
The simplest hack to ship your products faster -> Don't be cheap
Read article
React + Django + Ninja (Full-stack in 15 mins) โš›๏ธ๐Ÿฅท
React, Django, and Django Ninja (including CORS setup and Typescript).
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.
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
Read article
The simplest way to add polling to Django with HTMX ๐Ÿ—ณ๏ธ
We'll build a dashboard that updates every few seconds with HTMX
Read article
Add inline AI suggestions to your Django app ๐Ÿ—ฏ
Use a fast LLM, HTMX, and Photon Designer to recommend actions to the user.
Read article
Stream your voice clone ๐ŸŽผ
We'll turn your voice into an infinitely-scalable instrument with Django
Read article
The simplest way to add lottie animations to your Django app ๐ŸŒ€
Show competence with smooth animations in your app.
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.
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.
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.
Read article
Use Postgres as a simple task queue for Django ๐Ÿ˜
Simply run background tasks using Postgres and python. This has some big advantages.
Read article
Add comment threads to Django in 9 mins ๐Ÿงต
A simple way to let people leave comments in your Django app
Read article
7 simple examples using Django GeneratedField โšก๏ธ
Do calculations with your database in a neat and extremely fast way
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
Read article
Create a quiz app with HTMX and Django in 8 mins โ˜‘๏ธ
Build multi-stage forms with HTMX and Django very quickly.
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)
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)
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
Read article
The simplest way to add Tailwind CSS to Django ๐Ÿ’จ
How to use Tailwind CSS with Django
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
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.
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
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.
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)
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 ๐ŸŒฎ)
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)
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).
Read article
Write good tests (with FactoryBoy and Faker) in 6 Minutes ๐Ÿฝ๏ธ๐Ÿ‘จโ€๐Ÿณ
Start writing good Django unit tests (quickly and clearly)
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).
Read article
Add infinite scroll with Django and HTMX in 60 seconds โ™พ๏ธ
Speed your initial load - get content only when the user wants it.
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)
Read article
Build a simple file uploader with Django (and Alpine.js) ๐Ÿ”๏ธ๐ŸŒ…
Frictionless uploading with a tiny Alpine.js component and S3.
Read article
Snapshot any site with Django in 3 minutes ๐Ÿ–ผ๏ธ
Build a Django app to snapshot any URL using simple headless browsing
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
Read article
How to add Google sheets as your Django database in 4 minutes ๐Ÿ“Š
An easy to add database (and free)
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.
Read article
How to store your users' API keys securely in Django ๐Ÿ”‘
Encrypt your users' keys to increase security
Read article
How to add serverless functions with Django in 6 mins (with HTMX and AWS Lambda) ๐Ÿง 
Add serverless functions. Banish background worker mess.
Read article
Add instant database search with Django and HTMX ๐Ÿ•ต๏ธ
Search server-side with speed.
Read article
How to create ChatGPT with Django and HTMX in 4 minutes ๐Ÿฆพ
Add AI to your web apps, simply and quickly (including GPT4)
Read article
How to create a Django form (using HTMX) in 90 seconds ๐ŸŽ
Minimise javascript. Maximise building speed with Django and HTMX.
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.
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.
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.
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)
Read article
Build web apps 5-10x faster by combining Webflow and Django
A basic script and guide for exporting Webflow to Django
Read article