Fading Coder

One Final Commit for the Last Sprint

Using the uses-feature Element in Android Manifest for Hardware and Software Capability Declaration

The <uses-feature> element in an Android manifest informs external systems about hardware or software capabilities an app requires or optionally uses. It enables services such as Google Play to filter apps so that they are visible only on devices meeting those capability requirements. Syntax &...

Deploying FineBI 6 on openEuler with MySQL 8 and Tomcat 9

System Preparation and Package Updates sudo yum upgrade -y sudo yum install -y vim tar net-tools wget sudo systemctl reboot MySQL 8 Database Configuraton sudo yum install -y https://repo.mysql.com/mysql84-community-release-el9-1.noarch.rpm sudo yum repolist enabled | grep mysql sudo yum install -y m...

Understanding C++'s Relationship with C and Namespace Usage

C++ emerged from Bell Labs in 1979, developed by Bjarne Stroustrup as an extension of the C language, incorporating object-oriented principles. It is characterized by high performance, low-level control, and object-oriented features. The evolution of C++ reached a significant milestone with the rele...

ConfigMap Management, Advanced Scheduling, Rollback, and Scaling of Pods in Kubernetes

ConfigMap is a Kubernetes resource object used to store application configuration data, decoupling configuration details from container images. This allows flexible management and updates to application configurations without modifying the image. Key characteristics of ConfigMap: Configuration Separ...

Scraping NetEase Cloud Music Hot Comments to Generate Word Clouds

Data Collection Building a word cloud requires raw data first. For NetEase Cloud Music, this involves several steps: Packet analysis to locate the API endpoint Handling encrypted request parameters Extracting hot comment content Packet Analysis Using Chrome DevTools, the comment API endpoint becomes...

Proper Usage of sync.WaitGroup in Go Programming

The sync.WaitGroup type provides a mechanism to wait for a set number of operations to complete. Typically, it's used to await the completion of multiple goroutines. Let's first examine its public interface and then analyze a common mistake that leads to non-deterministic behavior. A WaitGroup can b...

Using Swift Auto Layout for Dynamic and Fixed UI Elements

Position two UILabel instances in code where the top label miantains a fixed size and the bottom label wraps text based on its content using Auto Layout. import UIKit class LayoutController: UIViewController { let headerLbl: UILabel = { let lbl = UILabel() lbl.translatesAutoresizingMaskIntoConstrain...

Cross-Domain Data Fetching Using JSONP in JavaScript

Standard XMLHttpRequest-based AJAX cannot retrieve resources from domains not explicitly permitted due to same-origin policy restrictions. JSONP bypasses this limitation by leveraging the ability of certain HTML tags, notably <script>, to load external resources. A <script> tag fetches i...

Scanning the Java Classpath for Specific Annotation Types

Identifying all classes decoratde with a particular annotation requires traversing the runtime classpath and inspecting type metadata. The standard Java reflection API cannot enumerate classes on its own; it only inspects types that have already been loaded by the classloader. Consequently, an exter...

Graceful Restart of Windows Explorer via the Restart Manager API

Graceful termination of the Windows shell process requires more than brute-force methods like TerminateProcess or taskkill. The Restart Manager API provides a cooperative mechanism that preserves user session state and allows clean resource reclamation while minimizing the need for system reboots. R...