QOI file format spec
QOI - The "Quite OK Image" format for fast, lossless image compression -- About QOI encodes and decodes images in a lossless format. Compared to stb_image and stb_image_write QOI offers 20x-50x faster encoding, 3x-4x faster decoding and 20% better compression. -- Synopsis // Define `QOI_IMPLEMENTATION` in *one* C/C++ file before including this // library to create the implementation. #define QOI_IMPLEMENTATION #include "qoi.h" // Encode and store an RGBA buffer to the file system....
Init your new Ubuntu server (PostgreSQL + Redis + Deno/Node.js)
Provisioning a fresh cloud server for modern web development. This post walks through setting up PostgreSQL, Redis, and your favorite runtimes like Deno and bun.
How to solve when Xcode doesn't show the "Remove Reference" option when deleting files?
Right-click on your project root directory and tap “Convert to Group”.
Svelte 5 migration guide
Svelte 5 has been released. This highly anticipated emerging front-end framework has finally taken on the form of React and Vue. Here is my migration process and thoughts.
Technical Summary of sparkastML Intent Recognition Model
I spent three days upgrading the intent recognition model for sparkast and established the sparkastML open-source deep learning lab repository, which will provide better search enhancement features for our products in the future.
Detailed Report on Malicious Activities and Spam Package Abuse in npm Community
This report details widespread malicious activities and spam package abuse within the npm community.
How to Elegantly Detect if the User's System Has Dark Mode Enabled in React
In modern web development, dark mode not only reduces eye strain but also provides a more comfortable reading experience at night. So, how can we elegantly detect if the user has enabled dark mode in a React application?
Implementing LCA (Lowest Common Ancestor) Query Using Binary Lifting
Here’s a implemention of finding LCA in C++ with detailed comments to help you understand this algorithm.
Passing Props in React Function Components
Recently discovered a subtle detail about passing props in React
The OSI Model
My learning notes about the OSI model