Tagged articles
binary
48 articles · Page 1 of 1

TonyBaiOct 10, 2026 · Backend Development
This article explains why native CLI tools written in Go and Rust increasingly use npm for distribution, detailing three packaging patterns, a deep dive into Feishu CLI's implementation, and a step-by-step guide to publishing a Go binary via npm with practical pitfalls.
GoGoReleaserbinary
0 likes · 23 min read

This article explains why computers use binary (0 and 1) instead of decimal, covering the physical reliability of two voltage states, binary counting and conversion methods, how all data types are represented as bit sequences, and the role of Boolean logic and hexadecimal shorthand in computing.
asciibinarybit
0 likes · 8 min read

The article explains that manufacturers label storage using decimal units (KB = 1000 B) while operating systems report using binary units (KiB = 1024 B), creating a roughly 7% discrepancy that makes a 1 TB disk appear as 931 GB, and shows that the same issue affects USB drives, phones, and SD cards.
DecimalIECKB
0 likes · 6 min read

The article explains how a binary‑encoding strategy lets you identify a single poisoned bottle out of 1000 using only ten mice by assigning each mouse to a bit position, sampling wines accordingly, and interpreting the death pattern as a 10‑bit address.
BitmapBloom filterbinary
0 likes · 7 min read

This article explains how Spring MVC’s @RequestBody annotation is a universal entry point for HTTP request bodies, supporting JSON, XML, plain text, binary streams, maps, lists, and custom media types through its HttpMessageConverter mechanism, with concrete code examples and configuration details.
Custom ConverterHttpMessageConverterJSON
0 likes · 12 min read

MySQL silently trims trailing spaces in string comparisons, causing queries with extra spaces or stored values with spaces to match unexpectedly, but using the BINARY keyword forces a strict byte‑by‑byte comparison to handle such cases.
SQLTrailing Spacesbinary
0 likes · 5 min read

This comprehensive tutorial explains how to install MySQL 8.0 and 8.4 binary packages on various Linux distributions, covering user creation, package download, environment setup, configuration, initialization, dependency handling, service script creation, password setting, and verification of the installation.
Linuxbinarydatabase
0 likes · 72 min read

This guide introduces the workbunny/mysql-protocol PHP library, outlines its PHP ≥ 8.1 and optional Workerman dependencies, shows how to install it via Composer, and demonstrates using its Binary and Packet utilities for reading, writing, and manipulating MySQL protocol binary streams.
PHPbackend developmentbinary
0 likes · 3 min read

An investigation reveals that MySQL treats trailing spaces in VARCHAR values as insignificant during string comparison, causing queries like SELECT * WHERE name='Tom' to match rows with extra spaces, and demonstrates that using the BINARY keyword restores exact matching, highlighting a potential bug in MySQL 5.7.
binarybugstring-comparison
0 likes · 4 min read

This article explains the relationships between bits, binary, hexadecimal, bytes and strings, shows how computers store and process data using binary, demonstrates hexadecimal and Base64 encodings, provides conversion tables and examples, and clarifies how UTF‑8 encodes characters.
Base64UTF-8binary
0 likes · 13 min read

Bitwise operations manipulate binary digits directly, offering fast, low‑level computation for tasks such as arithmetic optimization, parity checks, power‑of‑two detection, swapping values, counting set bits, bitmasking, and hash table enhancements, with clear examples and Go code illustrations throughout the guide.
Algorithmbinarybitwise
0 likes · 7 min read

This article explains machine numbers versus true values, defines original code, one's complement, and two's complement, and shows how modular arithmetic lets computers replace subtraction with addition, eliminating duplicate zeros and simplifying hardware design.
binarymodular arithmeticnumber representation
0 likes · 12 min read

This article explains the structure of IPv4 addresses, walks through a Rust function that parses dotted‑decimal notation into a 32‑bit integer with range checks, and provides example code demonstrating usage and error handling.
Address ConversionIPv4Rust
0 likes · 5 min read

This article explains how CPUs interpret binary signals as voltage levels, describes basic logic gates such as AND, OR, NOT, shows how they combine to perform arithmetic like addition, and clarifies that hardware itself lacks understanding, relying on human-designed instruction sets and compilers to give meaning to 0s and 1s.
CPUbinarycomputer fundamentals
0 likes · 6 min read

The article explains that a CPU merely reacts to voltage signals without any comprehension, illustrating how binary 0/1, logic gates, and combinational circuits form the basis of computation, and why compilers—not the CPU—interpret programming languages before execution.
CPUbinarycomputer fundamentals
0 likes · 6 min read

This guide explains why Intel‑based macOS libraries need architecture conversion for Apple Silicon simulators, compares XCFramework and Rosetta solutions, and provides a step‑by‑step method using lipo, ar, and custom Swift code to replace load commands and rebuild arm64 binaries for simulator use.
Mach-OSimulatorXCFramework
0 likes · 9 min read

This article explains Java's built‑in serialization drawbacks, introduces the open‑source ChronicleWire library as a high‑performance alternative supporting multiple data formats, and provides step‑by‑step code examples for encoding, decoding, and compatibility handling in real‑world Java applications.
ChronicleWireData FormatsJava
0 likes · 13 min read

This guide explains how GNU ld linker scripts work, covering their purpose, basic concepts like sections, symbols, VMA/LMA, the syntax of SECTIONS, INPUT, OUTPUT, and other commands, with practical examples and code snippets for embedded and desktop ELF binaries.
ELFEmbeddedGCC
0 likes · 30 min read

From its appearance as a rescue signal in a thriller film to its role as a triangular number, a sum of primes, and a culturally charged symbol, this article explores the many mathematical properties and cultural meanings of the number 666.
666binarycultural symbolism
0 likes · 5 min read

This article explains the ELF (Executable and Linking Format) specification, its variants for Windows PE and Linux, the classification of ELF object files, data representation, ARM‑specific extensions, and the structure of headers, sections, symbols, and related file types such as .axf, .bin and .hex.
ARMELFExecutable Format
0 likes · 41 min read

This article explains why using a float to store monetary values leads to precision errors by examining binary representation, demonstrates the problem with a Java example, and recommends using integer or decimal types for accurate financial calculations.
DecimalJavaMoney
0 likes · 7 min read

This article explains a classic interview puzzle where ten mice and a two‑hour observation window are used to identify a single toxic bottle out of a thousand by encoding the bottles in binary and interpreting the mice's survival as binary bits.
Algorithmbinarybit-manipulation
0 likes · 6 min read

This article investigates why MySQL treats strings with trailing spaces as equal during "=" comparisons, explains the underlying PAD SPACE collation rule, and demonstrates how to perform exact matches using LIKE and BINARY operators with practical examples and code snippets.
SQLTrailing Spacesbinary
0 likes · 7 min read

This article introduces the Russian peasant multiplication algorithm, explains its historical background and step‑by‑step process using halving and doubling tables, connects it to binary expansion, and provides a complete Python implementation that demonstrates its low‑memory, creative approach to multiplication.
AlgorithmRussian peasant multiplicationbinary
0 likes · 11 min read

The article explains that computers operate in binary, humans benefit from hexadecimal because each hex digit maps to four bits, while decimal lacks this direct mapping, making hex a more intuitive bridge between human readability and binary representation.
base conversionbinarycomputer fundamentals
0 likes · 7 min read

This tutorial explains the origins and evolution of character encoding, covering early ASCII, Chinese GBK/GB18030, the universal Unicode standard, UTF‑8 variable‑length encoding, and practical differences between Python 2 and Python 3 with code examples.
GBKPythonUTF-8
0 likes · 9 min read

This article narrates how two friends transform secret light‑bulb blink codes into binary representations, then progressively design logic gates, adders, a full‑adder, RAM, an ALU and a programmable control unit, illustrating the fundamentals of digital circuit design and automation.
ALURAMadder
0 likes · 12 min read

This article explores how to identify a single poisonous bottle among 1,000 using the fewest rabbits and the shortest time by analyzing pure‑time, pure‑space, balanced strategies, and finally applying binary encoding to solve the classic interview puzzle in just one day.
AlgorithmInterviewOptimization
0 likes · 5 min read

This article explores a classic puzzle where one must locate a single poisonous bottle among 1000 using rabbits as testers, comparing time‑focused, space‑focused, and balanced strategies before revealing an optimal binary‑encoding solution that finds the poison in one day with just ten rabbits.
AlgorithmOptimizationbinary
0 likes · 5 min read

In a sleepy second‑grade math class, a boy discovers binary counting with his fingers, leading his classmates to design logic‑gate circuits and ultimately build a 32‑bit adder, illustrating the fundamentals of digital computation and binary arithmetic.
Additionbinarycomputer fundamentals
0 likes · 12 min read

This article introduces the fundamentals of bitwise operations, explains each operator with clear rules and examples, demonstrates practical tricks such as parity checks and value swapping, and walks through classic interview problems—including addition without arithmetic, counting set bits, and finding unique numbers—complete with Java code snippets and visual illustrations.
AlgorithmInterviewbinary
0 likes · 15 min read


ITPUBMay 10, 2021 · Fundamentals
This article explains why computers use binary and two's complement to represent signed numbers, tracing the evolution from counting on fingers to decimal, Roman numerals, original code, one's complement, and finally two's complement, and shows how these choices simplify hardware design.
binarycomputer architecturenumber systems
0 likes · 11 min read

This article explains how to use PHP's built‑in decbin() function to convert decimal integers into their binary string representation, covering the function syntax, parameter details, return limits, and providing a clear code example with expected output.
BackendConversionDecimal
0 likes · 1 min read

This article explains why adding 0.1 and 0.2 in JavaScript (and most other languages) does not yield exactly 0.3, covering binary representation of decimal fractions, IEEE‑754 precision limits, single‑ and double‑precision formats, and practical implications for developers.
IEEE 754JavaScriptbinary
0 likes · 10 min read

A whimsical classroom story shows how elementary students discover binary counting with fingers, learn about AND, OR, and NOT gates, design a one‑bit full adder, and ultimately connect dozens of them to create a 32‑bit binary adder that solves large addition problems.
Educationbinarydigital logic
0 likes · 11 min read

A classroom tale follows elementary students as they discover binary counting with their fingers, translate it into truth tables, explore AND, OR, and NOT gates, and progressively build one‑bit and multi‑bit adders, illustrating fundamental digital logic concepts.
binarycomputer fundamentalsdigital electronics
0 likes · 11 min read

This article explains the concept of object serialization, compares generic formats like JSON/XML with binary approaches, discusses optimization principles, key performance metrics, and reviews major serialization frameworks such as Protobuf, Thrift, Hessian, Kryo, and Avro, while also covering TLV encoding, varint algorithms, and practical pitfalls.
FrameworksProtobufSerialization
0 likes · 16 min read

A whimsical classroom tale shows how elementary students discover binary representation with their fingers, translate it into truth tables, construct a one‑bit adder using AND, OR, and NOT gates, and then scale the design into a full 32‑bit binary adder, illustrating fundamental digital‑logic concepts.
binarycomputer fundamentalsdigital logic
0 likes · 12 min read

A comprehensive guide that walks you through the inner workings of a computer—from the CPU’s fetch‑decode‑execute cycle and register set, through memory hierarchy and binary arithmetic, to function calls, assembly language, and essential operating‑system concepts like APIs, multitasking and virtual memory.
CPUMemoryRegisters
0 likes · 68 min read

Explore the essential building blocks of modern computing, covering CPU architecture, memory hierarchy, binary operations, compression techniques, operating system fundamentals, and assembly language, with clear explanations, diagrams, and code examples that demystify how hardware and software interact at the lowest level.
CPUCompressionMemory
0 likes · 74 min read

This article examines current iOS modularization using CocoaPods, explains binary pod strategies to dramatically reduce build times, compares manual and automated approaches, addresses debugging challenges, and presents a practical solution that toggles between source and binary modes via environment variables and Development Pods for flexible development and fast CI builds.
Build OptimizationCocoaPodsbinary
0 likes · 19 min read


21CTODec 7, 2019 · Fundamentals
WebAssembly, now an official W3C web standard, provides a binary, memory‑safe sandbox for compiling languages like C/C++/Rust to run at near‑native speed in browsers and other environments, dramatically improving web performance and expanding the possibilities of web applications.
WasmWebAssemblybinary
0 likes · 7 min read

This article introduces five classic bitwise operation examples in Java—including checking odd/even, swapping variables without a temporary, finding a unique number, fast exponentiation, and determining the greatest power of two not exceeding N—explaining the underlying binary logic, code implementations, and their efficiency advantages.
AlgorithmJavaOptimization
0 likes · 10 min read

This tutorial explains Java's signed two's complement representation, demonstrates how to output binary strings, covers all bitwise operators (AND, OR, XOR, NOT, shifts), clarifies original/one's/complement forms, shows overflow handling, unsigned tricks with masking, and teaches packing multiple boolean flags into a single byte for efficient storage.
binarybit operationsbitwise
0 likes · 18 min read

This guide walks you through configuring a Python environment, installing essential packages such as virtualenv, IPython, requests, BeautifulSoup, and pwntools, and demonstrates how to perform network communication, binary manipulation, encoding, and C library integration, empowering you to develop security exploits efficiently.
Securitybinaryexploit development
0 likes · 9 min read


21CTOJan 10, 2018 · Backend Development
HTTP/2 replaces the text‑based HTTP/1.x with a binary, multiplexed protocol that reduces latency, eliminates head‑of‑line blocking, compresses headers, enables server push, and improves security, offering REST APIs faster, more efficient communication while preserving familiar semantics for developers.
HTTP/2REST APIServer Push
0 likes · 12 min read

WebAssembly, now standardized by the four major browsers, lets developers write web apps in multiple languages with near‑native performance, overcoming JavaScript’s speed limits, and offers a compact binary format, sandboxed security, and a readable text format for debugging and learning.
JavaScriptWebAssemblybinary
0 likes · 4 min read

On Linux, C source is turned into an ELF executable through compilation with gcc, linking of object files and libraries, and loading by the kernel, a process that depends on CPU architecture, binary formats, symbol tables, dynamic relocation, and startup code before main runs.
C++ELFLinux
0 likes · 29 min read
