Jim Cheung

Friday, February 02, 2024

I found zephyr-7b-beta is quite good for using locally (mac mini m2 8GB)

llamafile I couldn't make it work for command line, but the api server works well

$ ./llamafile -m zephyr-7b-beta.Q4_K_M.gguf --port 9876 --nobrowser --log-disable

check the docs

I have a htmx client for chatgpt, simply just change endpoint and everything works

Tuesday, February 20, 2024

to turn on standalone mode for a webpage when adding to home screen (ios), add this line:

<meta name="apple-mobile-web-app-capable" content="yes">

learn ericclemmons/click-to-component from React Server Components with Dan Abramov (JS Party #311)

need a bit setup but it's much faster than react devtools

I create a simple script to add / remove it:


if [ "$1" == "add" ]; then
  yarn workspace app add click-to-react-component
  gsed -i -e '26 a import { ClickToComponent } from "click-to-react-component"' -e '73 a <ClickToComponent />' $FILE
elif [ "$1" == "remove" ]; then
  gsed -i '27d;75d' $FILE
  yarn workspace app remove click-to-react-component
  echo "'add' or 'remove'"

saw couple extension of PRQL recently:

haven't written SQL for a long time, may need to find a use case to practice PRQL

this is so clever: htmz - a low power tool for html

I love htmx, but this is magic:

<base target=htmz>

<iframe hidden name=htmz onload="setTimeout(()=>...)"></iframe>

1.5+ million PDFs in 25 minutes

I don't need a fast PDF pipeline, but the stack is quite interesting:

more about go:

Kent Beck's Mastering Programming

I also reading his book: Tidy First?

about LLM:

Groq is super fast, but the web-ui is frustrating: laggy input box, can't mouse select within code block

Friday, February 23, 2024

it's very fun to browse Kagi Small Web

super fast image generation: SDXL Lightning, combine with Groq could be very productive

very usefulf emacs info: Susam's Emacs Pages

read Planner programming blows my mind, makes me really want to try Picat

Thursday, February 29, 2024

a good use case for practicing rust: cloudflare/pingora: A library for building fast, reliable and evolvable network services.

there's already a project is working on it: memorysafety/river: This repository is the future home of the River reverse proxy application, based on the pingora library from Cloudflare.


this is real, not in a movie: Five Minutes from LEO to Earth (uncut version)

recent reading:

Blog Archive