Fading Coder

One Final Commit for the Last Sprint

Weekly Contest Solutions: Frequency Analysis, Division, and Traversal

Maximum Substring Frequency Problem Statement: Given a string s, determine the maximum frequency of any substring that satisfies the following constraints: The number of unique characters in the substring must not exceed maxLetters. The length of the substring must be between minSize and maxSize (in...

Handling Exceptions in Python

Understanding Exceptions During program execution, various errors can occur. Some stem from code bugs that require fixing, while others result from invalid user input and can be handled through input validation. Additionally, unpredictable runtime issues like network failures or file access problems...

Implementing the Kannala-Brandt Fisheye Camera Model in C++

While studying the ORB-SLAM3 source code, I recreated and refactored its camera model implementation. A key discovery was that despite both pinhole and fisheye cameras having distortion parameters, the fisheye model cannot use cv::undistort for correction. After visualizing the depth-normalized plan...

Installing Apache DolphinScheduler in a Multi-Node CentOS 7 Cluster

Architecture and Node Planning A distributed Apache DolphinScheduler setup relies on decoupled Master, Worker, and API server components. The following hostnames and roles will be used throughout this guide: 192.168.30.141 s141 (Master) 192.168.30.142 s142 (Master) 192.168.30.143 s143 (API Server) 1...

Handling Optional Values in Go Using the samber/mo Library

The samber/mo library brings functional programming abstractions, specifically monads like Option, to Go. A monad can be visualized as a wrapper that holds a value and defines a standard way to chain operations. This chain stops immediate if any step fails to produce a value, lifting the burden of r...

Lessons Learned: Extracting Page Numbers from PDF.js

When working on a project that required retrieving the current page number from an embedded PDF viewer, I encountered several obstacles that took considerable time to resolve. This article documents the challenges I faced and the solutions I eventually implemented. Initial Setup The PDF viewer was h...

CSP-J2019 Jiangxi Province Problem Solutions

This problem requires comparing the area of a square with side length a against the area of a rectangle with sides b and c. The solution involves straightforward calculation with attention to equal area cases. #include<iostream> using namespace std; int main() { long long side, width, height;...

C++ Const and Mutable Modifiers Explained

Understanding C++ Const and Mutable Modifiers In C++, the const keyword is used to declare constants or immutable values. It can be applied to variables, pointers, function parameters, member functions, and more. Using const enhances code safety and readability by preventing accidental modifications...

Academic Assistance Management System Built with Spring Boot and Vue

System Overview This project implements a comprehensive platform designed to facilitate academic support activities. The architecture leverages a modern separation of concerns, utilizing a robust backend API coupled with a dynamic frontend interface to manage tuotring relationships and student progr...

CSS Fundamentals: Understanding Styles, Layouts, and Visual Formatting

Core CSS Concepts CSS serves as the presentation language for web pages. It encompasses two primary areas: (1) Style computation involving declarations, cascading, inheritance, and default values. (2) Visual formatting model, which governs layout rules determining how page boxes arrange themselves t...