Blog
New blog address:https://super-sunset-564a.longpeng96-94a.workers.dev/#/page/blog-home
y
Navigation:
Technical blog
Repost: [The troupe performs a big show, Alibaba Cloud RDS crash story] https://zhuanlan.zhihu.com/p/715479603
70% small tests + 20% medium tests?Weibo architect Liu Zhiyong's series debunking tech myths:https://space.bilibili.com/439507793/channel/collectiondetail?sid=3308550
30 minutes a day, master Vim in 3 days (not clickbait!)
gRPC's Go implementation: why doesn't its returned error use fmt.Errorf()?
https://stackoverflow.com/questions/51953191/difference-between-init-and-sync-once-in-golang
Go: return false or return a custom error ErrValueNotFound?
Go: error 'type assertion' vs 'errors.Is()' vs '=='
Finding bugs from source code: 3 examples
Two pitfalls of using Linux command symbols
PC best reader Calibre usage pitfalls
Read the English or Chinese version of this book? Both
Redis virus backup1 backup2 backup3 backup4
Summary of gains after learning to hand-build a CPU
Prevent Goland from automatically deleting unfinished code
The easiest way to set the Go proxy: go env -w GOPROXY=https://goproxy.cn
Debug notes (Update: Valgrind: Conditional jump or move depends on uninitialized value(s))
VSCode remote connection setup & common issues
CS61C Computer Architecture (Update: Logisim Debug tips)
Why is the SB-format in RISC-V not called B-format, and UJ-format not called J-format?
There is an analogy that can explain why there is no cache that is both large and fast: the bigger your bookshelf, the harder it is to locate a book. But if you have more people and more pairs of eyes, that problem can be solved. So why don't computers have a similar design? According to @Sasha's answer, the reason is: it's expensive.
Visualizers for multiple popular languages https://pythontutor.com/c.html#mode=edit
How to block GeeksforGeeks' forced registration popup?
Relatively easy recursion beginner exercises
Non-technical blog
Onyx Boox Poke5S is a bit garbage — it inexplicably failed to boot halfway through and I lost all my data. It has some inconvenient usage aspects, which suggests their product manager doesn't really use readers. Another issue is that some epub files show overlapping text on their reader but work fine in Calibre.
The Foundation series (Galactic Empire - Foundation seven books) is pretty good, recommended. I started it about two years ago and for some reason found it boring at the time and stopped. Recently I started again and found it quite interesting.
Natural evolution and 'the meaning of life'
Nonsense column: leave enough time before making decisions
Genghis Khan and the Making of the Modern World
Sapiens: A Brief History of Humankind
Lazy Kitchen (Update: pine chopsticks)
How to quit gaming painlessly? (Update: additional explanations and other content)
[YJango] How I painfully overcame mindsets like “diode thinking, overcompetition, belittling others” and how much it affected my growth https://www.bilibili.com/video/BV1QE42137cK
What does “respect yourself” mean? Most people are good and will treat you well, but you treat yourself like a bad person — that's not respecting yourself. You respect other people's time, so you should respect your own time; don't waste your life on pointless courses.
Fogg Behavior Model: Don't fight instincts
Like never trusting user input when writing code, when collaborating with others, always assume the other side will make mistakes (not out of distrust — everyone makes mistakes over time). I used Huolala twice; both drivers discussed highway fees with me and both brought small carts, but the third driver didn't tell me about highway fees nor bring a cart and screwed me over. Update 6 months later: I couldn't believe I got tricked again — I wanted to buy a barbell without bearings, clicked a link where other items were labeled “with bearings,” and one item wasn't labeled so I assumed it had no bearings, but when it arrived it turned out not to be the case.
Thinking, Fast and Slow talks about bugs in the human brain. System 1 is intuition — fast and low energy; System 2 is slow thinking — energy intensive. So the brain generally tends to use System 1.
How to get a healthier meal at school: for spicy hotpot-style dishes pick only beef and ask the cook to make it mild, then buy a separate portion of vegetables at the general food window (spicy hotpot charges the same price by weight for vegetables and meat, so ordering vegetables there is a loss).
I've never really believed in astrology (the Barnum effect) — how could a birth date affect personality? But Outliers mentions a correlation between athletes' birth months and performance: if a kid's birth month is just right so they're a few months older than classmates in the same intake, that advantage increases their chances of success; early success in elementary school promotes success in middle school, snowballing into confidence. That's a qualitative judgement; how big the effect is is hard to say.
Humans get bored of eating a single food — could that be a result of natural selection? If a person doesn't get bored of one food and that food contains a slight toxin, over time that person might be eliminated by natural selection.
Thoughts from Fooled by Randomness: “Evil gets its comeuppance” can just be randomness at work; many wicked people die peacefully, and a few happen to die because of randomness, so the phrase is applied. “Suffering brings future blessings” and “misfortunes never come singly” are also randomness. If someone survives a disaster by chance — “see, 'surviving great hardship brings later good fortune' is true”; if after surviving she then, by chance, encounters several bad things — “see, 'misfortunes never come singly' is true.”
How learning a skill gives you an extra perspective when observing things
Some sellers on Taobao appear to exchange red envelopes for positive reviews and require you to also write follow-up reviews; the real purpose may be to make it impossible to leave a bad review even if you find quality issues after using the product for a while.
How to make a choice when indecisive?
Taleb's four works: Fooled by Randomness, The Black Swan, Antifragile, Asymmetric Risk
How to: Unrealistically solving practical problems
Outliersand The Limits of Growthhave opposite opinions in some respects and complement each other. The title The Limits of Growth sounds a bit like self-help, but the content is actually pretty good.
Interesting Principles of Economics
The first book of The Three-Body Problem is a bit boring — mainly background setup; the second book is very good.
I can't believe Li Light Shine Observes the World could be published in __, and it seems it wasn't censored either — shocking.
Metro: Exodus (Metro: Exodus) Gameplay Guide
A 600-yuan lesson: always apply tempered glass to your phone; don't believe manufacturers' bullshit about phones having some indestructible glass. It's easy to apply a tempered glass protector yourself.
Running cool water after a burn works wonders; doctors recommend 15–30 minutes, but you can rinse longer. Once my wrist was scalded red with hot water and I intermittently ran cool water for an hour and a half and the redness went away with no pain. My burned index finger also had a little cool water but the flow was weaker than on my wrist, and it hurt for two days.
Don't try making pomelo sweet soup — it tastes awful.
Allergic rhinitis sufferers can search for a “neti pot” — buy a neti pot plus nasal wash salt set; it's cheaper than buying ready-made saline.
Pyrethroid insecticide spray works well for killing cockroaches; on Taobao you can also buy ready-made boric acid mashed potatoes so you don't have to make them yourself. If you don't have either, you can use hair styling spray on roaches as an emergency measure.
Last updated