Nginx with PHP8.1 FPM on Ubuntu 20.04

  • avatar
  • 15.2K Views
  • 17 Likes
  • 6 mins read
Preview post image

PHP is a general-purpose scripting language geared towards web development. PHP code is usually processed on a web server by a PHP interpreter implemented as a module, a daemon or as a Common Gateway Interface (CGI) executable.

By default Nginx is not capable of processing dynamic web pages with PHP so it requires the use of specific additional plugins for this purpose. One of these plugins is FPM (FastCGI Process Manager). FPM is an alternative PHP FastCGI implementation with some additional features (mostly) useful for heavy-loaded sites. It is the preferred method of processing PHP pages with Nginx and is faster than traditional CGI based methods.

How to install MongoDB 5 on Ubuntu 20.04

  • avatar
  • 2.1K Views
  • 12 Likes
  • 6 mins read
Preview post image

MongoDB is one of the popular open source and document oriented database systems. It belongs to a family of databases called NoSQL, which is different from the traditional table based SQL databases. It makes use of collections, each having multiple documents, and allows the user to store data in a non relational format. Data is stored in flexible, JSON-like documents where fields can vary from document to document.

How to install or upgrade to Composer v2

  • avatar
  • 41.1K Views
  • 17 Likes
  • 4 mins read
Preview post image

Composer is an application-level package manager for the PHP programming language that provides a standard format for managing dependencies of PHP software and required libraries. It manages them on a per-project basis, installing them in a directory (e.g. vendor) inside your project.

 Join Our Monthly Newsletter

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

We never send SPAM nor unsolicited emails

Install PHPStan and configure for Laravel application

  • avatar
  • 14.0K Views
  • 13 Likes
  • 3 mins read
Preview post image

Unlike compiled languages, in PHP if you make a mistake, the program will crash when the line of code with the mistake is executed. When testing a PHP application, whether manually or automatically, developers spend a lot of their time discovering mistakes that wouldn’t even compile in other languages, leaving less time for testing actual business logic.

Reading MPU9250 sensors with Arduino

  • avatar
Preview post image

MPU-9250 is one of the most advanced combined accelerometer, gyroscope and compass small size sensors currently available. It replaces the popular MPU-9150 lowering the power consumption, improving gyro noise and compass full scale range performance. It has many advanced features, including low pass filtering, motion detection and even a programmable specialized processor.

Conventional commits

  • avatar
  • 2.7K Views
  • 15 Likes
  • 3 mins read
Preview post image

The Conventional Commits specification is a lightweight convention on top of commit messages. It provides an easy set of rules for creating an explicit commit history; which makes it easier to write automated tools on top of.

The commit message should be structured as follows:

<type>[optional scope]: <description>

[optional body]

[optional footer]

Decimal, binary and hex representations

  • avatar
  • 4.0K Views
  • 7 Likes
  • 5 mins read
Preview post image

When working with any kind of digital system in which numbers are being represented, it is important to understand the different ways numbers are represented in these systems.

In electronics, almost without fail, numbers are represented by two voltage levels which can represent a one or a zero. The number system based on ones and zeroes is called the binary system: because there are only two possible digits. In HTML programming, colors can be represented by a 6-digit hexadecimal number: FFFFFF represents white whereas 000000 represents black.

Using switch buttons with Arduino

  • avatar
  • 2.5K Views
  • 3 Likes
  • 4 mins read
Preview post image

Let's speak now about switch buttons, the wiring and how to implement the code for this circuit elements in Arduino. Switch buttons connect two points in a circuit when you press them and maintain the state without the need to keep the button pressed. That means that logic state of the circuit change every time you press the button.

Regulated power supply module based on AMS1117

  • avatar
  • 1.8K Views
  • 5 Likes
  • 3 mins read
Preview post image

We often use the power supplies like batteries or direct AC/DC supply which are normally in higher ranges compared to the actual requirement for the circuit. In that cases we need this kind of voltage regulators which can regulate and vary the voltage levels for the circuit requirement.

The AMS1117 series of chips are linear voltage regulators with low voltage drop. The modules based on the AMS1117 chip provide constant 3.3V or 5V outputs from an unregulated DC input. It's very compact and can be included in your project schema or you can use it together with a breadboard for circuit testing.

Play Christmas melody with Arduino and a buzzer

  • avatar
  • 8.4K Views
  • 3 Likes
  • 5 mins read
Preview post image

Christmas melody is a heartwarming musical composition that captures the festive spirit of Christmas. With its enchanting blend of traditional holiday tunes and modern arrangements, this melody serves as a musical journey through the joy and warmth of the season.

Buzzer is used to generate sound, beep or even melody of a song. It can be found in alarm devices, computers, timers and confirmation of user input such as a mouse click or keystroke. A piezo buzzer is not like a regular speaker that you might think of. It uses a material that actually changes shape when you apply electricity to it which in turn creates noise. The faster you bend the material, the higher the pitch of the noise that is produced.