Fading Coder

One Final Commit for the Last Sprint

Implementing a Basic Real-Time Chat Protocol via RabbitMQ Queues

Architectural Approach RabbitMQ can efficiently power point-to-point comunication by leveraging dynamic queue declaration and direct routing. In this lightweight design, each participant establishes dedicated channels for bidirectional data exchange without relying on complex exchange topologies. As...

MyBatis-Plus Insert Testing and Snowflake Algorithm

Insert Testing /* * Insert test */ @Test public void testInsert() { User user = new User(); /* * ID is automatically generated */ user.setName("kuku"); user.setAge(3); user.setEmail("2983394967@qq.com"); int rows = mapper.insert(user); System.out.println(rows); /* * The ID is aut...

BGP Fundamentals for Inter-Autonomous System Routing

To manage increasingly large networks, the internet is divided into autonomous systems (ASes). Originally, the Exterior Gateway Protocol (EGP) was used to exchange routing information between ASes. However, EGP lacked mechanisms for route selection, loop prevention, and scalability, prompting the de...

Implementing Static Coordinate Transforms in ROS using TF2

In ROS, coordinate transformations between fixed reference frames are handled through static transforms. These represent permanent spatial relationships between coordinate systems, such as a lidar sensor mounted on a robot base. C++ Implementation For a lidar sensor positioned at (0.5, 0.0, 0.3) re...

Decoupling Performance Impact and Optimization in Software Architecture

Coupling and Performance Trade-offs in System Design Consider a system with two distinct organizational unit types. While they share common fields like code, name, and parent organization, each type has unique busines attributes and behaviors. A naive design approach uses conditional statements like...

MySQL Transaction Logs: Redo and Undo Mechanisms

Redo Log Purpose of Redo Log Buffer pools help bridge the CPU-disk gap, but checkpoint mechanisms don't trigger with every change. If a crash occurs after transaction commit but before data persistence, redo logs ensure durability by recording all modifications. Redo Log Characteristics Advantages:...

Implementing Recursive Directory Deletion in C on Linux

Background The standard rmdir() system call only removes directories that contain no files or subdirectories. To delete a non-empty directory, you need to implement recursive traversal that removes contents before removing the directory itself. How rm -rf Operates When the shell executes rm -rf <...

Key Scala Concepts and Common Interview Questions

Scala is a language that seamlessly integrates object-oriented programming (OOP) and functional programming (FP). In the paradigm of functional programming, computation is treated as the evaluation of mathematical functions, avoiding state changes and mutable data. Key advantages and characteristic...

Implementing Database Read-Write Separation Using MyCAT

MyCAT Distributed Storage Service Deployment 1. Installing Java Runtime Environment [root@db01~]# yum install -y java 2. Downloading and Extracting MyCAT # Upload and extract MyCAT package [root@db01 ~]# tar xf Mycat-server-1.6.7.4-release-20200105164103-linux_.tar.gz -C /usr/local/ [root@db01 ~]# l...

Comprehensive Guide to HTML5 Fundamentals, Elements, and Best Practices

Introduction to HTML5 HTML5 is latest version of the HyperText Markup Language, used to structure and present content on the World Wide Web. It introduces new semantic elements, multimedia support, and enhanced APIs, making web development more efficient and accessible. Core Structure and Comments 1...