Fading Coder

One Final Commit for the Last Sprint

Making Cross-Domain Requests with Axios Using JSONP in Vue

JSONP (JSON with Padding) enables cross-origin data retrieval by injecting a <script> tag whose source points to a remote endpoint returning executable JavaScript. Unlike standard XHR, it bypasses same-origin restrictions by exploiting how browsers load external scripts. Cross-domain request f...

Implementing Command-Line Interfaces in Flask with Flask-Script

Flask-Script extends Flask applications by integrating a command-line interface. It enables developers to execute external tasks directly from the terminal, such as launching development servers, running database migrations, scehduling background jobs, or invoking custom utility functions outside th...

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...