Menu in HTML, CSS, and JavaScript

Tiempo de lectura: 2 minutos To create a horizontal menu with different options that change content based on the selected option, follow these steps. First, create an unordered list (<ul>) representing your menu and give it some styles to remove bullets and set a dark background. Each list item (<li>) represents a menu option and is floated left (float: left) … Read more

How to Create a Middleware to Retrieve X-REAL-IP and X-Forwarded-For in HTTP Calls with Node.js and Express

How to Create a Middleware to Retrieve X-REAL-IP and X-Forwarded-For in HTTP Calls with Node.js and Express

Tiempo de lectura: 2 minutos html Copy code In Node.js, you can use middlewares in Express.js to customize the handling of HTTP requests before or after they reach the routes. In this tutorial, you will learn how to create a middleware that extracts the X-REAL-IP and x-forwarded-for headers from incoming HTTP calls in your Express application. Prerequisites: Node.js installed on … Read more

How to Create an Interceptor or Middleware to Obtain X-REAL-IP and X-Forwarded-For in Calls with FAST-API

How to Create an Interceptor or Middleware to Obtain X-REAL-IP and X-Forwarded-For in Calls with FAST-API

Tiempo de lectura: 2 minutos Hello, today I bring you a tutorial on how to create an interceptor or middleware in FastAPI to obtain the X-REAL-IP and X-Forwarded-For headers in API calls: Introduction In FastAPI, interceptors (middlewares) are a powerful tool that allows you to customize the handling of HTTP requests before or after they reach the route handlers. In … Read more

Applying a Patch, Command, or Dependency Installation When Generating a Build with Expo in React Native

Applying a Patch, Command, or Dependency Installation When Generating a Build with Expo in React Native

Tiempo de lectura: 2 minutos Reading Time: < 1 minutes I’m going to explain how you can run the installation of an npm package with flags or any other command when generating a build with React Native: In this case, we need to apply this dependency installation: npm i react-native-picker-select –save –legacy-peer-deps Step 1: Create an .npmrc File First, create … Read more

HTML, CSS, and JavaScript Menu

HTML, CSS, and JavaScript Menu

Tiempo de lectura: 3 minutos To create a horizontal menu with different options and change the content based on the selected option, you need to follow these steps. First, create an unordered list <ul> that represents your menu and give it some styles to remove bullets and give it a dark background. Each list item <li> represents an option in … Read more

Undoing a patch applied with patch-package in React Native

Undoing a patch applied with patch-package in React Native

Tiempo de lectura: 2 minutos To remove a patch that you previously applied using patch-package, follow these steps: Open a terminal in the root of your project where the package.json file is located. Execute the following command to undo the patch: npx patch-package –reverse [package-name] Replace [package-name] with the name of the package for which you want to undo the … Read more

How to Encrypt Data in a MySQL Database Table with FastAPI and SQLAlchemy

How to Encrypt Data in a MySQL Database Table with FastAPI and SQLAlchemy

Tiempo de lectura: 2 minutos In this tutorial, you will learn how to encrypt sensitive data in a MySQL database table using FastAPI and SQLAlchemy. Encryption is essential for protecting the confidentiality of data stored in a database and ensuring its security. In this example, we will use SQLAlchemy to model the database and the Fernet function from the cryptography … Read more

How to Encrypt Data in a MySQL Database Table

How to Encrypt Data in a MySQL Database Table

Tiempo de lectura: 2 minutos In this tutorial, you will learn how to encrypt sensitive data in a MySQL database table using the encryption functions provided by MySQL. Encryption is essential for protecting the confidentiality of data stored in a database and ensuring its security. In this example, we will use the AES_ENCRYPT and AES_DECRYPT functions to encrypt and decrypt … Read more