Getting Started with Redis
Redis is an in-memory key-value NoSQL database with low latency and rich data structure support. Compared with traditional relational databases, Redis does not strictly constrain data formats and supports horizontal scaling. Common commands include key-value operations, hash operations, list operations, and set operations. Jedis and Spring Data Redis are the main Java clients for interacting with Redis, providing convenient APIs and connection pool management. Data serialization can be optimized with custom strategies to reduce memory usage.
CSAPP Chapter 1: A Tour of Computer Systems
A computer system consists of hardware and system software and runs applications through a program life cycle of creation, execution, output, and termination. Information is made of bits and context, and programs are transformed into executables by the compilation system. The processor reads and executes instructions, using caches to improve performance. The operating system manages hardware and provides abstractions such as processes and virtual memory to support concurrency and parallelism. Abstraction is a core concept in computer science, and virtual machines provide an abstraction of an entire computer.
missing-semester-class01
This article introduces the basic features and usage of the shell, including how to run programs, navigate paths, manage file permissions, redirect input/output streams, and manage root user privileges. It provides multiple bash command examples and after-class exercises to reinforce learning.
Dreams and Hope Overflowing, Self-Forgiveness and Reverie — Sakura, Moyu.
My experience with Sakura, Moyu. followed a long arc from excitement to giving up and then rekindled passion. The release of the Chinese localization patch helped me finally finish it. This post is about that process, the dreams and hope carried by the song "さくら、もゆ", and the emotional impact the characters and story left on me.
Algorithm Study: Bitwise Operations, Discretization, and Interval Merging
This article introduces algorithms for bitwise operations, discretization, and interval merging. Bitwise operations are used to process binary numbers, discretization is used to optimize storage and queries for sparse data, and interval merging uses sorting and overlap checks to efficiently merge multiple intervals. Related examples and reference code are provided to help understand their applications.
Algorithm Study: Prefix Sum, Difference Array, and Two Pointers
This article introduces the principles and applications of prefix sums, difference arrays, and the two-pointer technique. Prefix sums are used to quickly compute subarray sums, difference arrays are used to efficiently handle range updates, and the two-pointer method optimizes query efficiency by maintaining pointers. Related examples and reference code are provided to help understand and apply these algorithms.
Learning HTML
Learning HTML covers basic concepts such as document structure, text tags, images, audio and video, hyperlinks, forms, lists, tables, semantic tags, and special symbols. Important elements include <html>, <head>, <body>, <div>, <span>, <img>, <audio>, <video>, and <form>, providing foundational knowledge and example code for building web pages.
Core Java Study Day 02
This article mainly discusses core Java topics including the basic concepts of object-oriented programming, class definition and usage, operations on predefined classes such as LocalDate, construction and encapsulation of custom classes, static methods and fields, package management, creation and use of JAR files, and techniques for writing documentation comments. It emphasizes important design practices such as data encapsulation, initialization, and class design principles.





