Tagged articles

Counters

5 articles · Page 1 of 1
Sohu Tech Products
Sohu Tech Products
May 15, 2024 · Frontend Development

How to Count Overflowed Tags with Pure CSS and Scroll‑Driven Animations

This article explains how to arrange tags of varying widths in a single line, detect when they exceed the container, and display the overflow count using only CSS features such as counters, view‑timeline animations, masks, and negative margins, without any JavaScript.

CountersOverflow DetectionScroll Animation
0 likes · 11 min read
How to Count Overflowed Tags with Pure CSS and Scroll‑Driven Animations
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
Liangxu Linux
Liangxu Linux
Sep 24, 2023 · Operations

Understanding Prometheus Metric Types: Counters, Gauges, Histograms, and Summaries

This article explains the fundamentals of metrics, introduces dimensional metrics, compares Prometheus, OpenMetrics, and OpenTelemetry standards, and provides detailed guidance on the four Prometheus metric types—Counters, Gauges, Histograms, and Summaries—including their use‑cases, PromQL queries, and Python client examples.

CountersGaugesHistograms
0 likes · 18 min read
Understanding Prometheus Metric Types: Counters, Gauges, Histograms, and Summaries