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.

W

What Is SSO? From 玉玺 to WeChat Login

Guan Yu had to fight through five gates. You just click "Sign in with WeChat." A culturally-biased look at what Single Sign-On really is, why Asia's SSO story is different from the West's, and the price of one seal that opens every door.

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

How to add new fonts on Collabora Online - Built-in CODE Server?

It works for me! I am adding new fonts to NextCloud Office ( Collabora Online - Built-in CODE Server ) as I found that it does not support Chinese characters originally. My settings are: Ubuntu,...

W

Windows 0x57 Error and Blue Screens

A first-hand fix for blue screens: scan and restore system files with DISM, then sfc /SCANNOW.

Upgrading OpenSSL on aaPanel (宝塔), 2021 Edition

Upgrading OpenSSL on aaPanel (宝塔), 2021 Edition

aaPanel servers often still ship OpenSSL 1.0.x. Here is how to compile and install a newer OpenSSL by hand.

Y

Your VPS Has More Potential Than You Think

A Zhihu read on squeezing far more out of a VPS than just hosting sites.

A

A Roundup of Excellent Public DNS Servers, Domestic and Abroad

Public DNS servers worth using: Google, Norton ConnectSafe, OpenDNS, DNS Watch, Comodo, Verisign, OpenNIC, GreenTeam, Cloudflare — plus 114, Tencent, Ali, Baidu and CNNIC in China.

R

Recommended Self-hosted Image Hosting: Chevereto

Chevereto — a solid self-hosted image hosting (图床) program.