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

Using Llama-2 with Python and ARM64 or AMD64 Environment in a Docker Compose Container.

Using Llama-2 with Python and ARM64 or AMD64 Environment in a Docker Compose Container.

Tiempo de lectura: 2 minutos Hello, today we are going to learn how to deploy llama-2 on a server with an ARM64 environment, such as an Ampere 1 offered by Oracle Cloud. It’s worth noting that it’s also compatible with AMD64. The program in question is called LlaMA C++ and is available for multiple environments: In our case, we are … Read more

List Files and Folders in a Directory in Linux or Windows

List Files and Folders in a Directory in Linux or Windows

Tiempo de lectura: 2 minutos To list files and folders in a directory in Linux or Windows, you need to use the tree command. Of course, here’s a tutorial that explains several options and variants of the tree command on Windows systems. The tree command allows you to visualize the directory and file structure in a directory and its subdirectories … Read more