Create a Docker container that allows us to run Docker commands inside it.

Create a Docker container that allows us to run Docker commands inside it.

Tiempo de lectura: < 1 minuto Today, I bring you this tutorial born out of the need to execute Docker commands using the task scheduler Ofelia (https://devcodelight.com/automatizar-tareas-con-cron-desde-docker-con-ofelia) To execute Docker commands within a container that is running with Docker on a local machine, the first thing we need to do is add a Docker client to our container. To create the … Read more

GDPR Consent Message for Admob

GDPR Consent Message for Admob

Tiempo de lectura: 2 minutos Pixabay Photo Let’s see how to create the GDPR consent message for Admob. By clicking the first option, the following informative window will appear with the next steps to perform. Next, we need to configure the GDPR-compliant consent message. In the application section within the message configuration, we must select the applications where we want … Read more

Encrypt a file and get it decrypted using FAST-API

Encrypt a file and get it decrypted using FAST-API

Tiempo de lectura: 2 minutos Today we are going to learn how to store an encrypted file and how to decrypt it to return it in a response. We will use the Fernet library. pip install cryptography First, let’s create an encryption key with Fernet. def generate_key(): key = Fernet.generate_key() return key.decode(‘utf-8’) With this function, we can obtain a random … Read more

How to Handle Errors and Send Emails in Case of Exceptions in FastAPI

How to Handle Errors and Send Emails in Case of Exceptions in FastAPI

Tiempo de lectura: 2 minutos In FastAPI development with Python, proper error handling is crucial to ensure smooth operation. In this tutorial, we will learn to implement an exception handling system that will automatically send an email to the administrator when an error occurs in our API. Step 1: Setting up the handler.py File Firstly, we will create a file … Read more

Notify by email of 500 errors or exceptions with PHP

Notify by email of 500 errors or exceptions with PHP

Tiempo de lectura: 2 minutos When developing web applications in PHP, it is essential to handle errors effectively to ensure a smooth user experience and to promptly notify system administrators of any issues. In this tutorial, we will learn how to implement a basic exception handling system that will automatically send an email to the administrator when a 500 error … Read more

Clean up unused Docker image space

Clean up unused Docker image space

Tiempo de lectura: < 1 minuto Today we will learn how to free up disk space from unused images with Docker. Before cleaning the images, you can use the following command to see how much space can be freed: docker system df This command will display a summary of the space used by different Docker resource categories, such as images, containers, … Read more

Create a terms of use acceptance widget with Flutter

Create a terms of use acceptance widget with Flutter

Tiempo de lectura: 2 minutos Today we are going to learn how to create a Widget that allows us to accept the terms of use of the system before registering on the platform. The first thing we are going to do is create this widget, which we will call condiciones_uso.dart import ‘package:flutter/material.dart’; class CondicionesUso extends StatefulWidget { CondicionesUso ({Key? key}) … Read more