Jim Cheung

Friday, January 12, 2024

a comprehensive collection of web components: Shoelace: A forward-thinking library of web components.

it has Split Panel, I'm also implementing a split pane component, can reference to that

it uses some nice library too:


listening to SE Radio 596: Maxim Fateev on Durable Execution with Temporal

Temporal is another abstraction besides event and queue, called durable execution, I found it quite interesting

Friday, January 19, 2024

html to pdf: htmldocs - HTML to PDF document editor and API

I was using wkhtmltopdf but found WeasyPrint is quite simple to use too:

$ python3 -m venv venv
$ source venv/bin/activate
$ pip install weasyprint
$ weasyprint sample.html out.pdf

and some resources about css paged media module:


another small model: Stable Code 3B: Coding on the Edge

I'm playing TheBloke/deepseek-coder-1.3b-instruct-GGUF with llamafile, but still couldn't figure out how to give good instructions

reading few books about prompt engineering:


this one is interesting: vanna-ai/vanna: Chat with your SQL database. Accurate Text-to-SQL Generation via LLMs using RAG.

browsing the source code is easier to understand the "magic", I also gathered some RAG reads:


also reading Programmer Passport: Prolog, just to get some ideas

Saturday, January 27, 2024

I like the idea of Portable EPUBs

My notebook has export as a single html file feature: converting web components to images and embedding them. I thought it was perfect for sharing, but it is not.

System treats html files as potentially dangerous and cannot be opened without bypass certain warnings. I also couldnot find an easy way to share html on internal collaboration tools (gitlab, google docs etc.) as well.

In the end, I still need to convert it to a PDF to share with colleagues.

Sunday, January 28, 2024

a MEAP from Manning: rasbt/LLMs-from-scratch: Implementing a ChatGPT-like LLM from scratch, step by step

another guide book found online: The GenAI Guide

Blog Archive