Why My Home Internet Was Suddenly Slow — And How I Found Out It Was the ISP

Recently I ran into a frustrating issue: my home network became painfully slow. Websites I visit every day — like Google and GitHub — were loading inconsistently, sometimes not loading at all. At first, I thought something was wrong with my router or my local setup. But after a series of step-by-step tests, I discovered the real culprit: my ISP.

This post documents how I diagnosed the problem, what I learned about ISPs and connection types in Australia, and some tips you can use to avoid the same headaches.

Continue reading Why My Home Internet Was Suddenly Slow — And How I Found Out It Was the ISP

undici_upload_example

This is a complete example on how to stream uploading with undici library.

Somehow following popular results from search are not complete, or lack of description of key secret.

nodejs/undici#2202
https://github.com/nodejs/undici/blob/main/docs/examples/README.md
https://gist.github.com/PaulMougel/7511372

This is my try. It is working with current node v22.13.0. And the key secret is actually the FormData provided by undici is broken in supporting streams.

https://github.com/liyu1981/undici_upload_example

https://gist.github.com/liyu1981/e85c9ace0e9304350fb3b5c13844062d

What does “good taste of code” mean by Linus

In this TED interview of Linus, Linus himself has talked about something he values the best: good taste of code, which as I guess, at least half of audience are confused on what he is really talking about.

I can not say that I am fully understand what he really means, but below is my interpetation.

Continue reading What does “good taste of code” mean by Linus

`zcmd.zig`: a `std.childProcess.run` replacement but with the ability of running `bash` pipeline

(originally posted here: https://zig.news/liyu1981/zcmdzig-a-stdchildprocessrun-replacement-but-with-the-ability-of-running-bash-pipeline-2k0h)

Continue reading `zcmd.zig`: a `std.childProcess.run` replacement but with the ability of running `bash` pipeline