summaryrefslogtreecommitdiff
path: root/2026-05-19.txt
diff options
context:
space:
mode:
authorZhineng Li <im@zhineng.li>2026-05-20 10:19:51 +0800
committerZhineng Li <im@zhineng.li>2026-05-20 10:19:51 +0800
commitbce94c890d0b73a3bfa5e92d61f273328fc743e7 (patch)
tree2b098478dc281608ffe596a54b017c64c1397658 /2026-05-19.txt
parent3eb88c9344e2465ab13060d4c3ed1219ec8bc1f6 (diff)
downloadzhineng.li-bce94c890d0b73a3bfa5e92d61f273328fc743e7.tar.gz
zhineng.li-bce94c890d0b73a3bfa5e92d61f273328fc743e7.zip
Add May 19, 2026 post
Diffstat (limited to '2026-05-19.txt')
-rw-r--r--2026-05-19.txt54
1 files changed, 54 insertions, 0 deletions
diff --git a/2026-05-19.txt b/2026-05-19.txt
new file mode 100644
index 0000000..536066c
--- /dev/null
+++ b/2026-05-19.txt
@@ -0,0 +1,54 @@
+The replacement set of keycaps arrived this afternoon, and I couldn't
+wait to install them on the keyboard. The quality is inferior to the
+original ones. The symbols printed on the keycaps are not consistent
+with Apple's. The edges on the back side of the keycaps are shaper, and
+I can see the "P" key is slightly higher than the surrounding keys.
+
+The most unsatisfying one is the Delete key. When you press the top or
+bottom of the key with a little force, it feels loose and moves up and
+down. You can definitely feel that Apple puts a lot of effort into
+product quality. But I can live with it for now. I don't know where to
+get an official replacement, and I can delete characters with ctrl+h
+instead.
+
+Completed Unit 2, Transformation properties and proofs, on Khan Academy
+today as planned. We can leverage the properties of rigid
+transformations in geometric proofs. Translation, rotation, and
+reflection preserve the lengths of line segments and the measures of
+angles. Dilation preserves angle measures and the relationships between
+different parts of a shape.
+
+It's been a decade since I last coded in Python, and reading the
+documentation gave me a new perspective on how to make use of the
+language. If I want to generate a random number in the range of [1, 10],
+I can simply use the random module.
+
+ python -m random 10
+
+Getting similar results in PHP or Node.js is more verbose compared to
+Python in this case:
+
+ php -r 'printf("%d\n", rand(1, 10));'
+ node -e 'console.log(Math.ceil(Math.random() * 10))'
+
+In addition to numbers, you can also randomly retrieve an element from a
+list, like picking what you want to eat for lunch today:
+
+ python -m random burger pizza ramen
+
+You know what? I think I am gradually building the habit of writing this
+kind of log or journal whenever I have time. It's not simply deliberate
+practice for learning English, it also helps me organize my thoughts and
+think more deeply. Writing is indeed an artifact of thinking. Wrapping
+up my day, recording what I've learned, and reflecting on myself for the
+better.
+
+I've been going to bed late recently. I guess I treat myself too
+harshly. I want to achieve too many things in a single day, and I think
+I need to lower my expectations a little to protect my sleep.
+
+Writing the log while listening to this album. It contains many
+fast-beat tracks. Sharing it with you, hope you like it too.
+
+BBD SELECTS 021: Chinatown Records 華埠錄音 (DJ Mix)
+https://music.apple.com/us/album/bbd-selects-021-chinatown-records-%E8%8F%AF%E5%9F%A0%E9%8C%84%E9%9F%B3-dj-mix/1895919235