Fading Coder

One Final Commit for the Last Sprint

Configuring Nginx for Vue History Mode with Nested Directory Support

Deploying a Vue application using the HTML5 History API requires specific synchronization between the frontend router and the web server. When serving an application from a non-root path (sub-directory), additional configuration is necessary to ensure the router correctly maps paths to the applicati...

Deploy MyCat with Docker and Configure MySQL Master-Slave

Refer to "Dockerr Deployment of Master-Slave" for deploying MySQL in Docker. The MyCat Dockerfile is referenced for starting the Docker container. FROM docker.io/adoptopenjdk/openjdk8:latest ENV AUTO_RUN_DIR ./mycat2 ENV DEPENDENCE_FILE mycat2-1.21-release-jar-with-dependencies.jar ENV TEM...

Linux Shared Memory IPC: System Calls, Lifecycle, and Practical Implementation

Shared memory represents the fastest inter-process communication (IPC) mechanism available on POSIX-compliant systems. Unlike memory-mapped files, a shared memory segment resides in kernel-managed RAM and operates independently of any single process lifecycle. Processes must explicitly attach to the...

Building a Socket-Based DiffTest Environment Between NEMU and QEMU

Overview This guide demonstrates how to establish a differential testing environment using NEMU as the device under test (DUT) and QEMU as the reference implementation (REF). The setup employs socket communication for synchronization and comparison. NEMU Compilation Setup Configuration Execute the f...

HTML Interview Essentials: Core Concepts and Practical Examples

HTML Basic Structure DOCTYPE Declaration The `` declaration informs the browser which HTML version to use for rendering the page. HTML Element The <html> element is the root element of an HTML document. The lang attribute specifies the page's language. <html lang="en"> Head El...

Core Data Types and Structures in R

Using RStudio ggplot2 The ggplot2 package providse powerful data visualization. To install it, run the following in the RStudio console: install.packages("ggplot2") Once installed, load the package in each script with: library(ggplot2) Note that in RStudio’s Source pane, pressing Ctrl+Ent...

Basic Usage and Core Concepts of RocketMQ

RocketMQ's Core Features RocketMQ offers several key features: Support for transactional messages Support for delayed messages Native support for clustering and load balancing Failed message redelivery with configurable retry count and interval RocketMQ's Components RocketMQ consists of four main co...

Dynamic Programming Solutions for Three Classic Problem Variants

This problem explores a classic dynamic programming approach with interesting variations. The fundamental question involves counting subsequences with certain properties. When the task is to count substrings, we use a well-established DP formulation: Define fi,j as the number of valid ways consider...

Reliable Background Process Execution on Linux After Terminal Disconnection

Running long-running processes on a remote Linux server often leads to interruptions when SSH sessions terminate unexpectedly. Whether due to network instability, accidental logout, or session timeout, the default behavior of the shell sends a SIGHUP signal to all child processes, causing them to te...

Five Years of Technical Growth: A Journey Through Full-Stack Development and Deep Learning

My Technical Journey: Five Years of Learning and Creation Origins Five years ago, I began my university journey and entered the world of programming with curiosity and passion. Through various courses and self-study, I explored computer networks, operating systems, data structures, algorithms, and m...