Skip to content
Friday, 4 September 2026 · LondonENع
Rayan Azhari.Sustainability · Energy · Carbon · Built EnvironmentOccasional detours into philosophy, religion or programming, wherever curiosity leads
Topic

Essays

Risk of Ruin Monte Carlo: Resample the Cause, Not the Effect

Most risk-of-ruin Monte Carlo resamples a strategy's realised P&L, which quietly bakes in the good luck you are trying to stress and understates the tail. Here is the correction that made my honest drawdown distribution far fatter than my first one, plus the relative gate a long-only sleeve actually needs. First person, British English, illustrative numbers only.

· 9 min

Walk Forward Optimization Is Not Automatically Out of Sample

Everyone sells walk-forward validation as proof a strategy is out-of-sample. It is not. I ran my own walk-forward pipeline on pure random-walk noise and it still produced a healthy positive stitched Sharpe, because out-of-sample is a property of provenance, not partitioning. Here is the random-walk control that tells you whether your pipeline, or your edge, produced the number.

· 9 min

Look-Ahead Bias in a Backtest: The Corrupt-the-Future Test That Catches It

Look-ahead bias is the default state of careless backtest code, not an exotic edge case, and it survives review because it reads as ordinary pandas. Here is the corrupt-the-future causality test I now gate on: poison every price after a date, then assert nothing computed before it moves. If the past shifts when you poison the future, the strategy is reading ahead.

· 9 min

The Deflated Sharpe Ratio: Why Your Grid-Search Winner Is Probably Noise

The expected best Sharpe of a parameter sweep climbs as the grid grows, even when every strategy in it is worthless. Here is the deflated Sharpe ratio explained as a practitioner sees it, with a small N to noise-ceiling lookup table you can apply to your own sweep tonight, and the one rule that killed my proudest grid-search winner: N is the pool, not the podium.

· 9 min

Migrating from WordPress to Next.js: A Field Guide

A practical, end-to-end guide to moving a content site from WordPress to Next.js without losing your search rankings: the URL-preservation rule that governs everything, a content pipeline that survives the move, bilingual and RTL handling, the SEO and security work, and a cutover you can roll back.

· 20 min

The Knowledge Escalator

How an ordinary teenager came to out-know Ptolemy, and why the same structural progress makes every one of us more ignorant than anyone who has ever lived. Hand a modern fifteen-year-old a blank sheet of paper and ask them to map the architecture of the cosmos, and they will sketch, without a moment’s hesitation, a

· 14 min

Inheriting Zeus: From the Pantheon to the Possibility Space

Inheriting Zeus: From the Pantheon to the Possibility Space If oxen and horses had hands, and could draw with their hands, they would draw the gods to look like oxen and horses. Xenophanes of Colophon, c. 570 BCE Two and a half thousand years before the science of psychology described projection, Xenophanes had already noticed

· 22 min

I Stopped Paying for WordPress Hosting

Managed WordPress hosting is a tax you pay in money, in performance, and in security anxiety. Here is how I kept the WordPress editor I love, ran it locally for free, and served the public site as static HTML on the edge: a zero-dependency Node crawler I have open-sourced.

· 7 min

Scripts for the End of Time

Policymakers in Washington and Tehran are increasingly reading Middle Eastern volatility as prophecy rather than as crisis, and the two eschatologies are tuned to each other because they share the same Abrahamic architecture. That adds an Apocalypse Premium to every escalation: a layer of volatility in which compromise reads as betrayal rather than as strategy. The danger is not belief itself, but the shift from awaiting a script to performing it with modern military power.

· 9 min

Game Theory Proves Kindness Wins

Game theory is routinely read as proof that being nice pays. The real result is sharper: what wins is kindness with a spine, cooperation that opens generously, retaliates promptly, forgives completely and never surrenders the capacity to punish. From the Prisoner's Dilemma through Tit for Tat, Ostrom's commons, GRIT and superordinate goals, seven mechanisms show how that kind of cooperation gets built at every scale.

· 15 min

Essays in your inbox

New writing on Syria, sustainability and finance, a few times a month.

Unsubscribe anytime. Read by 4,200+ professionals.