Code Singularities

Technical implementations and algorithms

One SKU, Five Markets: Where the iPhone 18 Pro Pre-order Broke

One SKU, Five Markets: Where the iPhone 18 Pro Pre-order Broke

Eight availability queries across five markets in the first half hour of iPhone 18 Pro pre-orders. Pro Max 1TB Burgundy was at zero in Hong Kong and Shenzhen while Pro Max 2TB sat in stock down the road, which makes this SKU concentration rather than a shortage.

T

The Sun Is a Square: Inside Apple's iPhone 18 Pro Pre-order Page

Press Cmd-A on Apple's iPhone 18 Pro pre-order page and the sky breaks: the landscape is a 1200px square whose edge pixels are the exact same blue as the page background. A teardown of the cover page, its 65-second heartbeat, and the proof-of-work puzzle your browser quietly solves.

I

IPv6 Broke My Server — But I Blamed Apache First

Intermittent 522 errors, a perfectly healthy server, and a wrong diagnosis — the real culprit was invisible IPv6 routing failure. Here's how I chased Apache ghosts before finding the two sysctl lines that fixed everything.

H

Hotlinking and Anti-Hotlink Techniques, Explained

What hotlinking is, why it happens, how referer-based anti-hotlink protection works, and how it can be bypassed.

T

The Anatomy of an SSR Address

An ssr:// link is just Base64. Decode it and the structure is clear: IP, port, protocol, cipher, obfuscation, password, remarks.

S

Self-hosting the Fiora Chat Room with aaPanel (宝塔)

A beginner-friendly walkthrough for deploying the Fiora chat room with aaPanel: dependencies, PM2, MongoDB, Redis, systemd and reverse proxy.

T

The SSR Link Format

How an ssr:// link is structured: the parameter block, the password part, and the final Base64 wrapping.