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)

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


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


noteworthy:

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


noteworthy:

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"
    activate
    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!


Blog Archive