Welcome to HiBit

HiBit is a platform made by and for enthusiasts of the IT world.

Recent articles

HyperLogLog for counting unique elements with fixed memory

HyperLogLog for counting unique elements with fixed memory

  • 102 Views
  • 12 mins read

Counting unique visitors sounds like a small task until the numbers grow. Every distinct ID has to be remembered, every new visit needs a check against the ones already seen and memory keeps rising with each new person. HyperLogLog is an algorithm that skips the remembering. It estimates how many different items went through a stream while keeping a few kilobytes of state and in return it accepts a small error that can be measured in advance.

Read more
How to track online users with Redis

How to track online users with Redis

  • 844 Views
  • 11 mins read

The number of people using a website right now is a common metric. It shows how active the site is at a given moment, and it makes traffic visible while it happens instead of after the fact. Analytics services can report it, but with a delay and outside the application. Redis can keep it inside your own code: each page view records the visitor, and the count is read for the last X minutes, where X is a value from the configuration file that can be changed at any time.

Read more
How common Git commands work and what they affect

How common Git commands work and what they affect

  • 778 Views
  • 14 mins read

Git is a widely used version control system, and its commands cover everything from saving a single change to rewriting the history of an entire repository. Each command acts on a specific part of the repository, and choosing one without knowing what it changes can rewrite shared history or discard work that was never saved anywhere else.

Read more