Jamie's tech blog

The Blue Nowhere

[AIGC Note] Awesome Vector Database

Roughly collect info about Vector DB

Vector database is LLM's hippocampus.

[AIGC Note] Stable Diffusion reading group week 3 notes

Simple usage of the Diffusion model and image generation

This is from DataWhale

[AIGC Note] Stable Diffusion reading group week 1 notes

Simple usage of the Diffusion model and image generation

This is from DataWhale

[Frontend Note] A quick recap on throttle and debounce

Functions we use often but do not always fully understand

Using them again and again, I suddenly realized I was not actually that clear on the difference between the two. So this post is a way to walk myself through what each one does and the common scenarios where they are used.

[DevOps Note] Auto-switch between multiple git accounts based on the platform

Separate work git accounts from personal git accounts

In my case, my personal Git account usually goes through Github, while the code hosting platform at work is Bitbucket and uses a separate company account for the Git account. Switching authorization manually all the time is a hassle, but mixing accounts is not great either, so I looked into a way to handle this.

[Backend Note] Using socket.io or ws in NodeJS

Simple websocket usage in NodeJS and Vue

Websocket is a network transport protocol based on TCP. In a normal GET/POST http request, after the data has been transferred, the TCP connection is closed via the four-way handshake; but in the WebSocket protocol, once the client and server complete the TCP handshake, they can maintain a long-lived connection.

[Frontend Note] How Frontend Sets Up a Private CDN Site

Use an enterprise private CDN to optimize page speed and security

Using an enterprise private CDN site can not only speed up frontend resource loading and reduce bundle size, but also improve project security and reliability!

[DevOps Note] Minimal Docker + Nginx

A minimal Docker + Nginx note for frontend engineers

These are notes from work projects where the backend did not have time to help me out, so I figured out a few Docker/Nginx UAT projects on my own.

[Frontend Note] Javascript Execution Context and Scope

Understanding execution context and scope in JS gives a better grasp of how it works under the hood

Rather than stepping into traps one by one and only fragmentarily memorizing which patterns will produce bugs, it is better to dig into Javascript's underlying principles once and avoid those potential traps entirely!

[Frontend Note] Web Security from the Browser's Perspective

A minimal frontend security note

Looking at Web security from the browser's perspective, it can be roughly divided into Web page security, browser network security, and browser system security.