blog.mengw.io
WMXPY's automated bug factory
~/mengw.io$echo "hello world!"
writing, mostly to think out loud→ tags42 / 42
- 01Why I keep an Entry Point repo→A fictional theatre needs its tickets to show when the doors open. Its programme and box office live in separate repos.#ai#git#toolingNov 20, 2026
- 02Astro: a working setup→How this blog is built — content collections, @sudoo i18n, and a one-file Cloudflare Pages deploy.#astro#metaMay 20, 2026
- 03Hello, world (again)→Re-launching this blog on Astro. Same person, fewer adjectives.#metaMay 10, 2026
- 04Rethinking How We Write Documentation→What an open-source project's docs need to provide beyond what a generator can output.#documentation#writing#open-sourceOct 27, 2020
- 05Angular and .NET Notes→C# threading, JS vs C# GC, TypeScript type tricks, and the Angular lifecycle and DI.#csharp#angular#typescript#notesApr 10, 2019
- 06Generators and Coroutines: From spawn to async/await→The stackless coroutine that powers JS generators, and how async/await desugars to a generator + executor.#javascript#generators#asyncApr 09, 2019
- 07Redis: Single-Threaded but Still Fast→Why Redis is single-threaded and still hits six-figure QPS.#redis#performanceApr 01, 2019
- 08How HTTP Ends→HTTP's blank-line terminator, the chunked transfer-encoding shape, and how both relate to a filesystem's EOF.#http#networkingMar 31, 2019
- 09Extracting Function Argument Types in TypeScript→Pulling parameters and return types out of a function with `infer`, and where it stops working on unions.#typescript#type-systemMar 26, 2019
- 10Idempotence and Side Effects→What happens when a user pounds the submit button — designing for idempotent APIs.#api-design#http#restMar 22, 2019
- 11Python / ML / CV Notes→Common interview-style questions across Python, ML, and CV.#python#machine-learning#computer-vision#notesMar 21, 2019
- 12Binary Search Tree→BST properties, operation costs, and the worst-case degeneration into a linked list.#data-structures#treesMar 19, 2019
- 13How HashMap Handles Collisions→The linked-list shape Java's HashMap uses for hash collisions.#data-structures#javaMar 18, 2019
- 14HTTP Protocol Versions, Recapped→What changed across HTTP 1.0/1.1, SPDY, and HTTP 2 — multiplexing, header compression, server push, and how multiplexing differs from keep-alive.#http#networkingMar 16, 2019
- 15Flattening Arrays: From Recursion to Generators→Three takes on the array flattening problem: recursion, hand-rolled iterators, generators (yield*).#javascript#generators#iteratorsMar 14, 2019
- 16A Decent Cloud Web Architecture→GCP vs AWS load-balancer comparison, plus a deployment shape for a typical web app.#cloud#architecture#aws#gcpMar 12, 2019
- 17Wiring a JS/TS Project into Sonarqube→Sonarqube's Java docs are deep. JS/TS, less so — here's a working setup.#javascript#tooling#qaMar 07, 2019
- 18Quick Sort→An in-place quicksort in TypeScript, with a note on why a left-side pivot forces right-to-left scanning.#algorithms#sortingMar 05, 2019
- 19Dynamic Programming→What DP is, and what kinds of problems it's actually useful for.#algorithms#dynamic-programmingMar 04, 2019
- 20A Few Nginx Tuning Knobs→A handful of Nginx config knobs worth knowing: workers, file descriptors, TCP options.#linux#nginxFeb 15, 2019
- 21Checking 'Is This an Array?' in JS→Array.isArray, instanceof, and Object.prototype.toString.call, and where each one breaks.#javascript#typesSep 09, 2018
- 22Webpack Config Notes→A few webpack pitfalls hit while wiring up ghoti-cli's fully-static React template.#javascript#webpackMar 28, 2018
- 23Reverse-Proxying a Node Service with Nginx→Routing traffic through Nginx to a Node app listening on a non-standard port.#linux#nginx#nodeMar 24, 2018
- 24Securing a New Linux Server→First-pass hardening on a fresh DigitalOcean Droplet: non-root user, SSH port, key-only login.#linux#security#sshMar 14, 2018
- 25Multi-Process Node with cluster→Using Node's cluster module to spread work across cores.#node#concurrencyDec 07, 2017
- 26React Native Environment Setup→Setting up React Native on Windows / Ubuntu / CentOS.#mobile#react-native#androidNov 28, 2017
- 27CentOS Install Cheatsheet→A handful of common install commands on CentOS.#linux#centosOct 17, 2017
- 28Shrinking JS: the Ternary→When the wire format is text, code size is cost — reach for the ternary.#javascript#minificationAug 10, 2017
- 29Reaching the Outer Object from a Nested Method→An old caperjs refactor and the `this` chain that wasn't.#javascript#scopeAug 09, 2017
- 30Installing native-dep npm packages on Windows→A few npm packages ship C++ or Python code that needs node-gyp. On Windows that means windows-build-tools.#javascript#node#windowsJun 29, 2017
- 31Swift / WKWebView Photo Upload Workaround→Fixing the iPhone bug where WKWebView's photo picker also dismisses the parent NavigationController.#swift#ios#webviewJun 26, 2017
- 32Hybrid App Gotchas→Notes from a stretch of hybrid-app work — WebView interop, layout, packaging.#mobile#hybrid#webviewJun 23, 2017
- 33PHPUnit Basics→Common PHPUnit assertions and a simple test example.#php#testingJun 02, 2017
- 34Electron / Node / TS / Vue Gotchas→A handful of things I tripped on while building UpgradeE.#javascript#electron#nodeApr 20, 2017
- 35Closures and Private Variables in JavaScript→Using closures to implement private in JavaScript.#javascript#closuresApr 13, 2017
- 36Guessing Gender from a Chinese Name with Bayes→A small idea for guessing gender from a Chinese name using Bayes.#javascript#experimentsApr 12, 2017
- 37DN-02: Frontend Notes→Drive-by frontend notes, part two.#javascript#frontend#notesApr 03, 2017
- 38DN-01: Frontend Notes→Drive-by frontend notes, part one.#javascript#frontend#notesMar 17, 2017
- 39Review.md Project Notes→Loose observations from working on Review.md.#javascript#notesMar 16, 2017
- 40Ubuntu Install Cheatsheet→Common install and cleanup commands for Ubuntu, kept around for copy-paste.#linux#ubuntuMar 13, 2017
- 41ES6 Notes: let and const→Notes adapted from Ruan Yifeng's ES6 introduction. This part covers let and const.#javascript#es6Nov 16, 2016
- 42Vue Notes→Notes from learning Vue 1.x.#javascript#vueMay 14, 2016