Jim Cheung

Saturday, March 02, 2024

didn't know about Cilium until I read K8s Service Meshes: The Bill Comes Due

using eBPF, I remember linkerd mentioned eBPF may have performance concern since it's operating on user space

then found another link in my bookmarks: Bootstrapping K3s with Cilium

that's good news: CACM Is Now Open Access – Communications of the ACM

link for issues

Streaming HTML out of order without JavaScript

interesting part is the declarative shadow DOM

(exmaple from HN comment)

  <template shadowrootmode=open>
    This is <slot name=a></slot> and <slot name=b>
  <span slot=b>sunny</span>
  <span slot=a>funny</span>

Tiny Predictive Text

may try it with a custom dictionary, could be useful for config / rules engine etc.

Wednesday, March 06, 2024

quite an interesting episode: Building a text editor with Nate Hunzaker

the guest's text editor isn't open-source, but mentioned slate and lexical

for code editing, may consider monaco, from vs code

Peter Taoussanis, the talk Some controversial truths and this REPL episode

interesting finding in this comment, it's about sending highlight text to llm using mac os services menu (from any app), more in this gist

about graph

Gleam released version v1.0.0, something I really want to try on a project, and I really like their language tour


Thursday, March 07, 2024

list of talks by Alan Kay

watching Alan Kay, 2015: Power of Simplicity

trying out Observable Framework

it requires node >= 20.6, I have to get a updated version of node:

first install fnm, then run in the project folder:

$ cat "20.11.1" > .node-version
$ fnm install
$ fnm use
$ node -v


Tuesday, March 12, 2024

automated some tasks using pyautogui, the library is pretty simple, I also use pynput to record mouse click

since I'm using htmx, api endpoint returns html code, sometimes I use them under terminal

I found pandoc produces very good plain text output:

[api data] | pandoc -f html -t plain

Wednesday, March 13, 2024

this new book Computer Architecture is surprisingly good, I'll buy the print edition only for chapter one

Thursday, March 14, 2024

watched an udemy lecture about Astro framework, Astro Islands is an interesting concept

also noticed few useful tools:

also watch a lecture about transformer, gathered some links aboud the groundbreaking paper "Attention is All You Need" (2017)

pyautogui is nice but quite hard to select application windows

since I'm basically only work on mac os, using applescript is more easy, like I can do a lot based on this template:

tell application "Google Chrome"
    tell active tab of front window
        execute javascript "
          document.querySelector('input[type=text], textarea')?.focus();
    end tell
end tell

but default you'll see a warning: To turn it on, from the menu bar, go to View > Developer > Allow JavaScript from Apple Events.

Sunday, March 17, 2024

a very good list of talks: Top Tech Talks Of 2023

reminded me I should finish the book Release It!

Tuesday, March 19, 2024

a self host trello like app: plankanban/planka: The realtime kanban board for workgroups built with React and Redux.

looks good but I need a pure js library that I can add to my notebook. I found bevacqua/dragula, I tested it a bit, it's just what I wanted

The Only Time You Should Use Polymorphism

Monday, March 25, 2024

these commands are quite useful:

/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome \
  --headless --dump-dom \


/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome \
  --headless \
  --screenshot=/tmp/shot1.png \

screenshot with window size:

/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome \
  --headless \
  --window-size=375,667 \
  --screenshot=/tmp/shot2.png \

from: Google Chrome –headless mode

also this project maybe useful for generating images from backend: chearon/dropflow: A CSS layout engine

Blog Archive