Tagged articles
17 articles
Page 1 of 1
php Courses
php Courses
Oct 24, 2025 · Backend Development

Mastering PHP fileperms(): Retrieve and Interpret File Permissions

Learn how to use PHP's fileperms() function to obtain file permission data, interpret the returned integer with bitwise operations, and format it into a readable string using a helper function, complete with practical code examples and detailed explanations.

File PermissionsPHPbitwise operations
0 likes · 5 min read
Mastering PHP fileperms(): Retrieve and Interpret File Permissions
php Courses
php Courses
Sep 5, 2025 · Backend Development

Master PHP fileperms(): Retrieve and Decode File Permissions Easily

This guide explains how to use PHP's fileperms() function to obtain a file's permission bits, interprets the returned integer with bitwise operations, and provides a helper format_perms() routine that converts the raw value into the familiar symbolic permission string such as -rw-r--r--.

BackendFile Permissionsbitwise operations
0 likes · 4 min read
Master PHP fileperms(): Retrieve and Decode File Permissions Easily
Cognitive Technology Team
Cognitive Technology Team
Mar 23, 2025 · Fundamentals

Swapping Two Variables in Java Without a Temporary Variable

This tutorial explains how to exchange the values of two Java variables without using a temporary variable, covering three techniques—arithmetic addition/subtraction, multiplication/division, and bitwise XOR—along with complete code examples, step‑by‑step explanations, output results, and discussion of each method’s advantages, limitations, and appropriate use cases.

ArithmeticJavaProgramming tutorial
0 likes · 7 min read
Swapping Two Variables in Java Without a Temporary Variable
php Courses
php Courses
Nov 26, 2024 · Databases

Using Redis Bitmap Operations for Precise Statistics with PHP

This article explains Redis bitmap data structures, introduces the main bitmap commands (BITSET, BITGET, BITCOUNT), and provides a complete PHP example that demonstrates how to record user sign‑ins and count them efficiently using Redis bit operations.

BitmapNoSQLPHP
0 likes · 5 min read
Using Redis Bitmap Operations for Precise Statistics with PHP
php Courses
php Courses
Jun 5, 2024 · Databases

Using Redis Bitmaps for Efficient User Sign‑in Statistics with PHP

This article explains Redis bitmap data structures, introduces common bitmap commands such as BITSET, BITGET, and BITCOUNT, and provides a complete PHP example that records user sign‑ins and calculates daily sign‑in counts using Redis bit operations.

BitmapPHPbitwise operations
0 likes · 5 min read
Using Redis Bitmaps for Efficient User Sign‑in Statistics with PHP
Ops Development & AI Practice
Ops Development & AI Practice
Apr 17, 2024 · Fundamentals

Master Bitwise Operations: Essential Tricks for Faster Code

This article introduces the fundamentals of bitwise operations, explains common operators, presents practical tricks such as parity checks, swapping without extra space, clearing and extracting the lowest set bit, and demonstrates real‑world applications like bit counting and permission management with clear C code examples.

C programmingPerformance Optimizationbitwise operations
0 likes · 6 min read
Master Bitwise Operations: Essential Tricks for Faster Code
MaGe Linux Operations
MaGe Linux Operations
Dec 14, 2023 · Backend Development

How Redis Uses 24‑Bit Counters for Efficient LRU Caching

This article explores how counters, especially 24‑bit timestamps, are employed in Redis’s LRU eviction algorithm and other memory‑constrained scenarios, detailing implementation tricks, precision trade‑offs, and practical code examples for efficient cyclic counters and compact storage techniques.

C programmingCountersLRU
0 likes · 12 min read
How Redis Uses 24‑Bit Counters for Efficient LRU Caching
JD Retail Technology
JD Retail Technology
May 26, 2023 · Databases

Overview of Database Evolution, Types, and Data Structure Design

This article traces the history of database development from early file systems to relational models, outlines major database categories such as hierarchical, relational, NoSQL, NewSQL, and columnar stores, and explores practical data structure designs like chain tables, bitwise operations, and circular queues for modern software engineering.

Data StructuresHashingNewSQL
0 likes · 28 min read
Overview of Database Evolution, Types, and Data Structure Design
JavaEdge
JavaEdge
Nov 24, 2021 · Fundamentals

How 12306 Ticket‑Booking Uses Bitmap & Bitwise Operations to Prevent Overbooking

This article explains the 12306 train ticket reservation algorithm, showing how bitmaps combined with bitwise OR operations can model seat availability across multiple stations, using a simplified example of four seats and three segments to illustrate ticket allocation, conflict detection, and remaining‑ticket calculation.

12306Bitmapbitwise operations
0 likes · 5 min read
How 12306 Ticket‑Booking Uses Bitmap & Bitwise Operations to Prevent Overbooking
Java Backend Technology
Java Backend Technology
May 12, 2021 · Fundamentals

Master Bitwise Operations: From Basics to Classic Interview Problems

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.

Binaryalgorithmbitwise operations
0 likes · 15 min read
Master Bitwise Operations: From Basics to Classic Interview Problems
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Aug 25, 2020 · Fundamentals

Understanding Bitwise Operations in Java: Uses, Representations, and the Seven Operators

This article explains the purpose and practical benefits of bitwise operations in Java, describes signed number representations (sign‑magnitude, ones' complement, two's complement), shows how bits can optimize time and space, and details the seven common bitwise operators with examples and a reference table.

JavaPerformance Optimizationalgorithm fundamentals
0 likes · 13 min read
Understanding Bitwise Operations in Java: Uses, Representations, and the Seven Operators
Hujiang Technology
Hujiang Technology
Aug 7, 2017 · Frontend Development

Reverse Engineering a One‑Line JavaScript Animation: Step‑by‑Step Explanation

This article walks through the reverse‑engineering of a compact JavaScript one‑liner that draws a patterned image, refactors it into readable modules, explains each transformation—including variable renaming, loop conversion, ternary expansion, bitwise operations, and switch‑case replacement—while illustrating the underlying math with graphs and code snippets.

HTMLJavaScriptalgorithm analysis
0 likes · 18 min read
Reverse Engineering a One‑Line JavaScript Animation: Step‑by‑Step Explanation