The article explains how Mac's Force Touch trackpad uses capacitive sensing to detect fingers, a linear actuator for haptic clicks, and horizontal vibrations to simulate depression, revealing why non-conductive pens fail and demonstrating programmatic control via private frameworks.
This article recounts the design decisions made during a chat assistant refactoring, covering naming consistency, UI component conventions, minimal abstraction boundaries, decoupling output language from UI language, and package structure organization, emphasizing that good refactoring is a series of well-reasoned trade-offs documented with clear rationales.
This article details a systematic refactoring of a chat assistant Android app, applying SRP, DIP, OCP, layered architecture, and naming conventions to eliminate god classes and tight coupling, while uncovering a JNI symbol mismatch bug that only appears at runtime, and sharing insights on AI-assisted coding limitations.
The article explains why most people earn below the average income using a multiplicative random walk simulation and log-normal distribution theory, showing that even with equal starting points and luck-based returns, the average exceeds the median due to compounding volatility, and validates this with China's 2025 income data.
A 2026 Nature Materials study shows that applying less than 1 GPa uniaxial pressure to the altermagnet MnTe triggers a reversible first-order transition, collapsing its anomalous Hall signal by ~40% and switching magnetic order from altermagnetic to collinear antiferromagnetic at room temperature, verified by transport and neutron diffraction.
This article explains how to deduplicate 4 billion unsigned integers within a 1GB memory constraint using Bitmap and Bloom Filter data structures, detailing memory calculations, implementation principles, false-positive trade-offs, and practical Java code examples with Guava, Apache Commons, and Redis.
This article explains when to reinstall your operating system, detailing scenarios that require a clean install versus those that don't, compares three reinstallation methods, outlines essential preparation steps like data backup and driver preparation, walks through the installation process, and lists post-reinstallation security measures.
The article argues that user-reported issues are often mere symptoms, not root causes, and demonstrates through real cases — inventory glitches, antivirus blocking, database length limits — why reproducing the symptom is essential to uncover the true problem, which may lie outside the code entirely.
This article explains disk fragmentation, why it slows mechanical hard drives, why SSDs don't need defragmentation, how to defragment using Windows tools, when to defragment, prevention tips, and key exam points for software qualification tests.
This article explains how file deletion works, why data remains recoverable until overwritten, compares recovery difficulty across HDDs, SSDs, USB drives, and cloud storage, outlines step-by-step methods for common scenarios like accidental deletion, formatting, and physical damage, recommends recovery software, and emphasizes immediate write-stopping and backups.
This article defines data storage units from bits to brontobytes, providing conversion formulas and real-world comparisons such as kilobytes holding short stories, megabytes storing classic novels, and petabytes exceeding human lifetimes of video.
This article traces the 'd' suffix in Linux daemon names like sshd and systemd to the 1963 MIT Project MAC, where developers borrowed 'daemon' from Maxwell's Demon in physics, adopted it into Unix at Bell Labs, and established the naming convention to distinguish background processes from user commands.
The article shares a career anecdote about a failed background check due to an omitted 5-day job, then provides a comprehensive solution to LeetCode 675 'Cut Off Trees for Golf Event' using BFS, A* search with Manhattan heuristic, and Union-Find pre-check for unreachable trees.
This article explores seven fundamental data structures—arrays, queues, stacks, linked lists, trees, graphs, and hash tables—explaining each with real-world analogies, use cases, advantages, and limitations to help programmers choose the right tool for efficient data management.
The article explains CPU cache hierarchy, false sharing, cache-friendly data layouts (hot/cold separation, row-major traversal, SoA vs AoS), profiling with perf and Cachegrind, and real-world cases where cache-aware changes yielded 6.8x throughput improvement and reduced CPU usage from 87% to 51%.
This article illustrates 15 classic probability fallacies grouped into three root causes—wrong denominators, sampled data, and mistaking luck for patterns—using visual examples like the base rate fallacy, Simpson's paradox, and the birthday problem to reveal how intuition misleads.
This article explains C++ memory alignment rules, why compilers cannot automatically reorder struct fields, the hardware and ABI constraints behind alignment, pitfalls of packed structures, cross-platform ABI differences, and defensive engineering practices like static assertions and SoA transformations.
This article explains the complete CPU memory access process, covering cache hierarchy (L1/L2/L3), write-through vs write-back policies, multi-core cache coherence with MESI protocol, virtual memory translation via MMU, and how memory acts as a cache for disk storage.
This article explains the distinction between Memory (RAM/ROM) and Storage (HDD/SSD/Flash), details their hierarchical classifications from SRAM to HBM and magnetic tape to SSD, clarifies terms like Cache, Buffer, Unified Memory, and debunks marketing jargon such as 'running memory'.
This article explores why linked lists often underperform arrays in modern CPUs despite O(1) insertion complexity, examining cache locality, memory walls, and real-world benchmarks from Stroustrup and Carruth, while identifying scenarios where linked lists remain essential.