From f9fd3f556a6361cd36ad112b6c02104a2d6661d6 Mon Sep 17 00:00:00 2001 From: Zhineng Li Date: Fri, 15 May 2026 11:29:07 +0800 Subject: add May 15, 2026 post --- 2026-05-15.txt | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 2026-05-15.txt (limited to '2026-05-15.txt') diff --git a/2026-05-15.txt b/2026-05-15.txt new file mode 100644 index 0000000..984cdb0 --- /dev/null +++ b/2026-05-15.txt @@ -0,0 +1,55 @@ +Spent about a week grinding through Algebra 1 on Khan Academy. Even +though it's still only the very beginning of understanding how LLM +works, I am determined to stick with it, pratice mathematical skills +whenever I have time. The next course will be Geometry which contains 9 +units. I think I should be able to finish them within another week. + +I find it convenient to write commit messages in Neovim since it wraps +text at 72 characters by default, and I want to have the same feature on +my blog becuase it greatly improves readability. + + set textwidth=72 + +Hosting a plain-text blog like this one is dirt cheap in 2026. We have +many options, and some of them are even free, such as GitHub Pages, +Cloudflare Pages, or simply uploading files to object storage services +like AWS S3 or Alibaba Cloud OSS. All of them save us from maintaining +servers. Still, I think it's cool to tinker with Linux servers nowadays +because it gives me the opportunity to dig deeper and eliminate +abstractions. + +As an English learner, writing can be difficult. Luckily, living in the +LLM era means I can leverage these tools to improve my writing skills. I +have no interest in delegating my writing entirely to LLMs. I prefer to +draft posts by myself first, then use AI to fix grammar mistakes and +rewrite unnatural sentences without losing authorship. + +There is a shortcut ctrl+; to insert the current date while working in +Excel. You may also notice the same YYYY-MM-DD pattern in this post's +filename. Instead of typing the date manually, I wanted the same +shortcut outside of Excel as well. The following command works on macOS: + + printf "$(date +%F)" | pbcopy && osascript -e 'tell application "System Events" to keystroke "v" using command down' + +%F is a format specifier for the date command, producing a date in the +YYYY-MM-DD format. printf removes the trailing newline and sends the +result to pbcopy, which stores it in the system clipboard. Finally, +osascript runs an AppleScript command that simulates ⌘V, pasting the +current date into the focused application. + +Last but not least, bind ctrl+; to the command in Karabiner, and the +shortcut works system-wide. + + { + "description": "insert current date (control+;)", + "manipulators": [ + { + "from": { + "key_code": "semicolon", + "modifiers": { "mandatory": ["control"] } + }, + "to": [{ "shell_command": "printf \"$(date +%F)\" | pbcopy && osascript -e 'tell application \"System Events\" to keystroke \"v\" using command down'" }], + "type": "basic" + } + ] + } -- cgit v1.2.3