Sunday, 6 December 2026

Byzantine Fault Tolerance

A Byzantine fault is a condition of a system (frequently a distributed system), where a fault occurs where symptoms are different to different observers. 

The name comes from The Byzantine Generals Problem (originally called the Albanian Generals Problem).

See also: Djikstra's Dining Philosophers problems.

Common Python Virtual Environments

It pays to know a few Python virtual environments, as the saying goes. 

For those who know only one, have no basis for comparison.

We start with venv.

In Python, venv is the built-in module used to create isolated virtual environments, each with its own interpreter and packages, separate from the system installation. It was added in Python 3.3. (It also replaced pyenv as the recommended tool for leveraging virtual environments). It is worth understanding how venv works under the hood, to be able to troubleshoot any issues. 

virtualenv was the predecessor to venv. This has largely been replaced unless you need compatibility with older Python setups. A subset of virtualenv is integrated into venv.

Poetry combines virtual environments and dependency management.

Conda is popular in data science, machine learning and scientific computing.

uv created by Astral has found increasing popularity.

Python Virtual Environments - The Package Conflict Problem

What are virtual environment managers and why are they needed in Python?

Well they are not explicitly needed, but they can be useful. 

A virtual env is a tool that creates and manages isolated Python environments.  Each environment posseses its own Python interpreter and installed packages - separate from your wider system.

Imagine two projects requiring different versions of Django

You have project A, needing Django 3, and project B needing Django 5 (Django is a "low-time-to-market" framework for developing web apps" - current release at time of writing is 6.1.4).

Installing packages globally will create a package conflict.  Virtual envs let each project have exactly the version it needs.

Core Benefits of Virtual Envs (Common Sense but Being Explicit for Clarity)

Avoids dependency conflicts, allows reproducible builds, keeps your Python system clean. Experimentation is safe and deployment is easier.

All Hail Virtual Environments!

Thursday, 3 December 2026

E2B

An agentic AI infra company.

Getting Productive with Ollama

Here is the GitHub for Ollama.

Ollama covers major open-weight model families, pulled from a searchable catalog on ollama.com.

Examples:

Llama (from Meta)
Qwen
DeepSeek
Mistral
Kimi
Gemma

Each model ships in multiple quantization options, enabling tradeoffs to be made between accuracy and speed and memory footprint.



How DNS Changes Propagate

DNS Propagation - First Steps

DNS propagation is the method by which DNS changes spread across the Internet - influenced by caching at multiple layers and TTL of each record.

When you update a DNS record the record is immediately updated at the authoritative DNS server. The rest of the Internet does not immediately see this change.

It may take up to 48 hours for changes to propagate!

Impact of Recursive Resolution

More precisely - recursive resolver caching.  ISPs and public DNS servers store DNS information for a specific time (TTL) before they query the authoritative server again for latest information.

Inspecting Progress

The progress of DNS propagation can be inspected by various online tools.

Further Reading

DNS design was done in the 1980s. Read more here. DNS was invented by American computer scientist Paul Mockapetris - attempting and succeeding to fix a problem he saw in the ARPAnet.

CNAME Flattening on Cloudflare

A useful blog post.