SnailShell

Posts

How to Make Neovim Open PDF and Images External Viewers

Configuring neovim with Lua.

Hardware Accelerated Jellyfin, Docker Composed, in openSUSE

Get Hardware-accelerated encoding and decoding working with NVIDIA in Jellyfin running inside a Docker container in openSUSE

My Config File for Downloading Albums from YouTube Music

Download albums from YouTube Music with embedded metadata and properly cropped thumbnail.

Setting Wallpapers for Multiple Monitors through DBus for KDE Plasma

The Problem KDE Plasma is my favorite Linux DE, and it has its quirks and warts. The support for multiple monitors, for example, is fairly buggy at times, especially when monitors are turned on and off.

TIL: HTML Has a <time> Tag

Today I learned that HTML has a <time> tag which supplements a written date and time with a machine-readable format.1 Supposedly, this helps with parsability, and in turn, good for accessibility.

Engage the Pinky During Bow Change

How I fixed my shaky bow down bow by learning to exert my pinky · A lesson from Nathan Cole’s Video · Sensation vs Reality

A few fun discoveries about Stable Diffusion

Testing the literary limit of Stable Diffusion with literature

Fixing Grub2 Theme Preview on Opensuse Tumbleweed

To use Grub2 theme preview on openSUSE, two environment variables needs to be overridden.

Making Score In URL

Announcing Score In URL, a sheet music editor where the content is stored in the URL.

Sneaky Shift in Bach’s Preludio in Partita III

How to shift cleanly in the bariolage section.

Reading Steal Like an Artist

A short, inspirational book about how to be a productive artist.

Test Md Page

A Markdown document that tests various properties of a static site generator.

Chinese Caramel Color

Making Chinese Caramel Color, 糖色, a type of natural food coloring commonly used in Chinese cooking, for example red braised pork belly.

A Warm-up for Chords: Bowing Planes Exercise

An preparatory exercise for playing chords on the violin.

Theme-less Hugo, Almost Pure HTML, Styled with MVP CSS

Theme-less Hugo As popular as theming is, I can’t help but feel unsatisfied by a plug-and-use theme made by someone else.

Tiramisu

Rich, smooth, coffee-flavored dessert

A New Way of Presenting Recipes and Chicken Abodo

Sour, sweet, succulent chicken from the Philippines

“And Then There Were None” Reading Notes

Summary The book was the execution of ten people, carried out on an isolated island. Ten people of very different backgrounds were invited, by various ruses, to come on to the island.

南蛮鸡肉三明治 Chicken Sandwich with Nanban Sauce

Pan-fried chicken thigh, immersed in Nanban Sauce

“Pride and Prejudice” Reading Notes: Highlights and Annotations

Summary of Pride and Prejudice A young intelligent woman, Elizabeth, had a tendency to judge people quickly. Based on impressions and gossips, she deemed Mr.

Reading Notes on “The Adventure of Tom Sawyer”

An Overall Review Tom Sawyer is a kid living in a small town, under the caring of his aunt. He was a mischievous troublemaker both at school and at home.

A Constant Solution to Code-Fights Apple Boxes Problem

The Apple Boxes Problem The problem can be simply put: Input: $k$ Output: let $r$ be the sum of the square of each even integer no larger than $k$, and $y$ be that of the odd.

Count 1s in Range

在 codefights 上做到了一个很有意思的题。给你 a, b 两

Valid Number - By DFA

Introduction to the Problem The question asks the programmer to validate whether a string is a valid representation of a number.

Exceptional Control Flow

Reading Notes on CSAPP

Code Optimizations

An example: Transpose for i in rows for j in cols b[i][j] = a[j][i]However, it might be the case that we do not know the size at compilation time, so we cannot statically declare this 2D array.

Fractals

Fractal naming: fractional dimension Definition: self-similar $$\to$ when zoomed in, look the same Types: Exactly self-similar Statistically self-similar Exactly Self-similar If zoomed in, there is no way to tell that we have zoomed in.

Binary Search Tree implemented by C++

This is a simple implementation of binary search tree implemented by C++.

Production of Sentences and Properties of Languages: Parsing Techniques Notes (2)

some notes on Parsing Techniques A Practical Guide

Generative Grammar and Four Types of Grammars: Parsing Techniques Notes (1)

some notes on Parsing Techniques A Practical Guide