avatar
HiBit
925
213 44


Implementing Commands and Queries in Laravel 12

  • avatar
  • 766 Views
  • 2 Likes
  • 8 mins read
Preview post image

CQRS, short for Command Query Responsibility Segregation, is a simple yet powerful way to split the responsibility for writing and reading data in an application. Instead of having a single service or model method that both changes and retrieves data, you give commands the job of making changes and queries the job of fetching information. This split can make large projects much easier to follow, especially as business rules grow and read and write requirements start to differ.

Configuring multiple websites on a single Nginx server

  • avatar
  • 217 Views
  • 6 mins read
Preview post image

Nginx is a powerful and lightweight web server that's commonly used to serve websites and static content. If you're running several websites on a single machine, configuring Nginx to manage them properly is efficient and straightforward. This article walks you through installing Nginx, setting up multiple sites, configuring firewall access, and organizing your folders and logs in a clean and practical way.

How to use the AD Keyboard module with Arduino

  • avatar
  • 257 Views
  • 7 mins read
Preview post image

When working on simple Arduino projects that need basic navigation or input, the AD keyboard module is a handy little tool. It's a 5-button unit that behaves like a directional pad, with four arrow-style buttons and one additional button. It doesn't require any soldering or setup, which makes it a practical choice for prototyping or small projects. You can plug it in and start using it right away, thanks to its three-pin layout and built-in resistors.

 Join Our Monthly Newsletter

Get the latest news and popular articles to your inbox every month

We never send SPAM nor unsolicited emails

MySQL 8 setup with remote connections

  • avatar
  • 264 Views
  • 7 mins read
Preview post image

Setting up a MySQL 8 server can seem complicated at first, but with a clear and structured approach, the process becomes much more manageable. This guide explains how to install MySQL 8 on Debian-based systems, configure it to accept remote connections, and test that it is running correctly. The instructions are practical and direct, suitable for environments that require reliable and straightforward configuration.

Managing yourself in a Startup without losing focus

  • avatar
  • 261 Views
  • 4 mins read
Preview post image

Managing a startup isn't the same as managing a traditional company. Things move faster, roles shift often, and structure can be more of a goal than a reality. What works in a bigger or more stable organization often doesn't apply. People wear many hats, context changes every few weeks, and there's a constant need to adjust. In that environment, knowing how to manage yourself and others becomes less about control and more about adaptability. This article looks at how to stay effective and useful in that kind of setting, even when everything feels a bit chaotic.

Understanding Hexagonal Architecture with practical example

Available to registered members only
  • avatar
  • 411 Views
  • 1 Like
  • 7 mins read
Preview post image

Hexagonal architecture, also called ports and adapters, is a software design approach that helps structure an application by clearly separating the core logic from technical details and external systems. Instead of shaping your app around frameworks, protocols, or storage, you keep your focus on what the application does, and let everything else connect to it through interfaces. The pattern isn't tied to any specific language. The examples in this article are written in PHP to show how the idea can be applied, but the approach works the same way in any backend system.

Tag-based cache inside Laravel repositories

Available to Premium members only
  • avatar
  • 344 Views
  • 12 mins read
Preview post image

Working with cache can drastically improve the performance of an application, especially when dealing with data that doesn't change too often. While Laravel provides solid support for caching through multiple drivers, it doesn't offer native support for cache tags. To work around this limitation, we'll integrate Symfony's Cache component, which brings tag support and fits well into the repository pattern we've already established. In this article, we'll build on the existing structure and focus on using cache tags to group and clear related data more efficiently.

Understanding HMAC signatures and how they work

Available to registered members only
  • avatar
  • 914 Views
  • 4 mins read
Preview post image

HMAC, short for Hash-based Message Authentication Code, is a method used to check that a message is both authentic and unmodified. It's a common tool in webhooks, APIs, and any place where secure communication between systems matters. The idea behind HMAC is to use a shared secret key along with a hashing algorithm to create a unique signature for a message. This signature acts like a stamp of trust, if anything changes in the message or if the wrong key is used, the signature won't match.

Getting started with CQRS in PHP

  • avatar
  • 434 Views
  • 5 mins read
Preview post image

CQRS stands for Command Query Responsibility Segregation. It's a pattern that separates how an application reads data from how it writes data. This approach can help structure code more clearly, especially in systems that deal with complex business logic or need to scale certain operations differently.

Organizing Laravel helpers using Composer

  • avatar
  • 1.3K Views
  • 4 mins read
Preview post image

As a Laravel project grows, it is common to see the same small functions repeated in multiple places such as formatting values, checking routes, or handling basic text transformations. Instead of scattering these across controllers or traits, a more structured approach is to collect them into a dedicated helper file. While Laravel does not include a default setup for this, Composer's autoload configuration makes it straightforward to register a custom helper file. This ensures those functions are always available throughout the application without manual includes.



Playing popular songs with Arduino and a buzzer

avatar

HiBit

Dr. Dre ft Snoop Dogg - Still D.R.E. has been added.

Enjoy!

Playing popular songs with Arduino and a buzzer

avatar

HiBit

It's not possible to make a direct MP3 to buzzer decoder because a buzzer (especially a typical piezo buzzer) can only produce simple tones at specific frequencies, not complex audio like speech or music. MP3 files contain compressed, multi-frequency audio data far beyond what a buzzer can reproduce. At best, you could extract a basic melody or rhythm if the MP3 is extremely simple (like single-tone music), but decoding full MP3 audio into something a buzzer can play accurately isn't feasible.

Playing popular songs with Arduino and a buzzer

avatar

HiBit

Jujutsu Kaisen - Specialz has been added.

Enjoy!

Complementary filter and relative orientation with MPU6050

avatar

HiBit

Thank you, very appreciated!

The issue is likely that the MPU6050 isn't properly initialized after power-up. Make sure the setup() function runs completely each time the device is powered on, and consider adding a small delay before using the sensor.

Playing popular songs with Arduino and a buzzer

avatar

HiBit

Yung Kai - Blue has been added.

Enjoy!

Playing popular songs with Arduino and a buzzer

avatar

HiBit

First day out has been added.

Enjoy!

Playing popular songs with Arduino and a buzzer

avatar

HiBit

Vanilla Ice - Ice ice baby has been added.

Enjoy!

Getting real-time position using MPU9250

avatar

HiBit

We used an existing library for this. You can see how it was implemented in the code snippet above.

It is also accessible in our GitHub repository.

Reading MPU9250 sensors with Arduino

avatar

HiBit

The article Getting Real-Time Position Using MPU9250 explains how to calculate real-time position using sensor data.

Complementary filter and relative orientation with MPU9250

avatar

HiBit

You can learn how we calculate pitch and roll using a complementary filter in this project; the file is available on GitHub.

Playing popular songs with Arduino and a buzzer

avatar

HiBit

Assassin's Creed 2 - Ezio's Family has been added!

Enjoy!

Playing popular songs with Arduino and a buzzer

avatar

HiBit

Livin' on a prayer has been added.

Enjoy!

Playing popular songs with Arduino and a buzzer

avatar

HiBit

Crystal Castles Kerosene has been added.

Enjoy!

How to use the NRF24L01 module with Arduino

avatar

HiBit

The D10 pin has a specific function; it must be set as an output for the Arduino to operate as the master in an SPI communication protocol. In the provided wiring and code, the pin is already functioning as an output.

How to use the NRF24L01 module with Arduino

avatar

HiBit

I suggest verifying the wiring to confirm that all components are correctly connected, followed by re-uploading the code. The examples provided in the post have been tested and are operational. Please consider that there might be a physical problem, such as a damaged or defective module.

Playing popular songs with Arduino and a buzzer

avatar

HiBit

Coldplay - Hymn for the weekend has been added.

Enjoy!

Playing popular songs with Arduino and a buzzer

avatar

HiBit

Was wollen wir trinken has been added.

Enjoy!

Playing popular songs with Arduino and a buzzer

avatar

HiBit

The board has built-in memory. If additional memory is needed, an alternative board can be used.

Playing popular songs with Arduino and a buzzer

avatar

HiBit

The Doom melody requires more memory than others, so make sure your board can handle that amount. If not, you will usually encounter an error during compilation.

As a workaround, you can try removing some of the notes (along with their respective durations) to fit the melody on the board.

Playing popular songs with Arduino and a buzzer

avatar

HiBit

We couldn't find notes for that song that will sound good with a buzzer.


HiBit community member since December 2020