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....

2025-07-07 · 6 min · 1212 words · alikia2x

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.

2025-04-06 · 3 min · 630 words · alikia2x

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”.

2025-01-24 · 2 min · 339 words · alikia2x

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.

2024-11-17 · 2 min · 332 words · alikia2x

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.

2024-09-01 · 3 min · 557 words · alikia2x

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.

2024-08-14 · 4 min · 718 words · alikia2x

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?

2024-08-13 · 2 min · 292 words · alikia2x

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.

2024-07-15 · 4 min · 851 words · alikia2x

Passing Props in React Function Components

Recently discovered a subtle detail about passing props in React

2024-06-02 · 2 min · 376 words · alikia2x

The OSI Model

My learning notes about the OSI model

2024-04-09 · 5 min · 875 words · alikia2x