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
Choose your favorite categories and topics. You will find extremely useful content over the site.
Comment
Communicate with authors and users. Provide them your feedback and collaborate with the community.
Rate
Authors will be happy to receive your positive vote on articles you found helpful and enjoyed reading.
Trending articles
How common Git commands work and what they affect
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.
The internet is having a very bad cybersecurity week
Within a single day, several unrelated security problems came to light and kept security teams occupied. PHP disclosed two critical remote code execution flaws, Node.js released a security update fixing four high-severity issues, a malicious LiteLLM version showed up in public package and container registries, and an Indian certificate authority was found to have eight intermediate keys that anyone could guess. Every one of these problems affects a different layer of the stack, and seeing them together shows how many points of exposure a single server or container image can have at once.
Premium articles
ESP8266 Firmware update
The ESP8266 is a popular Wi-Fi module used in many IoT projects. Keeping its firmware up-to-date ensures you have the latest features, security patches, and bug fixes. Updating the firmware might seem difficult, but it's quite straightforward once you understand the steps involved. In this article, we'll explore how to update the firmware of the ESP8266 module, a crucial task for maintaining optimal performance and security. This update process can be carried out either locally, using a USB connection, or remotely via cloud. We'll examine both methods to provide a comprehensive understanding of how to keep your ESP8266 up-to-date with the latest firmware version.
Boost social media engagement with Open Graph meta tags
In the bustling world of social media, where every click and share matters, businesses and content creators strive to maximize their online presence. In the array of strategies, a frequently underestimated yet potent tool is the incorporation of Open Graph meta tags. These HTML tags serve as the backbone for enhancing how content appears when shared on platforms like Facebook and Twitter, providing a visual and informational boost that can significantly impact engagement.
Recent articles
Create Laravel 13 project from scratch
Laravel is a PHP framework built around the Model View Controller pattern, designed to make web development more organized and less repetitive. It has become one of the most widely used frameworks in the PHP ecosystem, and its yearly major releases keep bringing refinements to routing, database handling, testing, and application structure. Laravel 13 continues that pattern with a required PHP version bump, additional PHP attributes for controllers and queues, and a first party AI SDK, while leaving most day to day development patterns unchanged. Creating a new Laravel 13 project begins with installing PHP, Composer, and Laravel itself, followed by a short round of configuration that prepares the application for development.
Reading light levels with an LDR and Arduino
A light dependent resistor is a component that changes its electrical resistance according to how much light falls on it. Bright light makes it conduct easily, darkness makes it conduct poorly, and an Arduino can turn that difference into a number. It arrives in two forms. The raw component is a small disc with two legs, and it needs one extra resistor to work. The other form is a sensor module, a small board with the component already soldered on together with everything else the circuit needs, ready to connect to the Arduino with three or four jumper wires. Both versions do the same job and both show up in real projects. Automatic garden lights, night lights, display backlight dimming or simple daylight loggers all work on the same principle.
How to create a Composer package from scratch
A helper class, a small client wrapper or a set of validation rules often starts in one project and ends up copied into the next one. From that point the copies drift apart, a bug fixed in one of them stays open in the rest, and there is no version number to refer to when something changes.
Turning that code into a Composer package removes the copies. The requirements are modest, since a package is a directory containing a valid composer.json file, a Git repository hosting it, and a listing on Packagist that tells Composer where to find it.
Popular on HiBit
Mastering the E88 Pro drone
The E88 Pro Drone is an exceptional flying device that combines advanced features, reliable performance, and a user-friendly design. Built with innovation in mind, this drone offers an immersive aerial experience for beginners and enthusiasts alike. Operating the E88 Pro Drone is a breeze, thanks to its intuitive controls and user-friendly interface. The drone can be easily controlled using a dedicated remote controller or a smartphone application. The remote controller offers precise maneuverability, while the smartphone app provides a comprehensive set of features and flight modes. From automated flight paths to real-time video streaming, the app enhances the drone piloting experience and unlocks advanced functionalities.
Domain Driven Design: Layers
Developing applications that can perform complex tasks can be a challenging process, and it requires careful planning and design. One approach to managing this complexity is to use a Layered Architecture. This architecture separates the application's code into layers, each with a specific responsibility and purpose. These layers are typically organized in a hierarchy, with higher-level layers depending on lower-level layers.
Domain Driven Design with Laravel 9
Modern web frameworks teach you to take one group of related concepts and split it across multiple places throughout your codebase. Laravel is a robust framework with a big community behind it. Usually it's standard structure is enough for most starting projects.
Building scalable applications, instead, requires a different approach. Have you ever heard from a client to work on controllers or review the models folder? Probably never - they ask you to work on invoicing, clients management or users. These concept groups are called domains.