Code Singularities

Technical implementations and algorithms

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,...

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.

Changing the ServerAdmin Email on aaPanel (宝塔)

Changing the ServerAdmin Email on aaPanel (宝塔)

Where to change the ServerAdmin email for a site on aaPanel: edit the domain's vhost config file.

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.

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.

.

.htaccess Tutorial

A practical .htaccess tutorial: creating the file, custom index and error pages, disabling directory listing, IP allow/deny, redirects, and password protection.

About the Server I Bought at Pesyun.com

About the Server I Bought at Pesyun.com

A brief review of Pesyun.com hosting: two one-year servers, a "US" high-defense VPN box whose IP turned out to be Chinese, and a Namepros blacklist surprise.