Create an Alert Dialog for React using a component

Create an Alert Dialog for React using a component

Tiempo de lectura: 2 minutos Today we are going to learn how to use a Custom Alert Dialog in React. To create this Dialog, I will use the Mui library (https://mui.com/) First, we need to install it: npm install @mui/material @emotion/react @emotion/styled Now let’s create our component, which we’ll call CustomAlert.js import React, { useState, useEffect } from ‘react’; import … Read more

Unravelling the Mystery: Frontend vs Backend in Web Development

Unravelling the Mystery: Frontend vs Backend in Web Development

Tiempo de lectura: 5 minutos Welcome to a journey into the heart of web development! :rocket: In this post, we’ll unravel the mystery surrounding two fundamental terms: Frontend and Backend. Have you ever wondered what makes your web application work the way it does? Let’s find out! 1. Frontend: The Visible Face What is Frontend? Frontend is the part of … Read more

GET call in Android Studio with Java

GET call in Android Studio with Java

Tiempo de lectura: 2 minutos Photo by Bri Schneiter from Pexels To create a list of elements obtained from a GET call and display them, you need to follow the steps outlined in the example below. First, create an XML file to define the view with the list. To display a list, we will use the “ListView” element. Photo by … Read more

External CSS vs JSX Within the Component in React

External CSS vs JSX Within the Component in React

Tiempo de lectura: 2 minutos The choice between using styles in an external CSS file or directly in JSX largely depends on your personal preferences, project needs, and team conventions. Both options have their advantages and disadvantages, and the “best” choice may vary depending on the context. Here are some points to consider for each approach: Styles in an external … Read more

Install Docker and Docker Compose on Ubuntu, very fast

Tiempo de lectura: < 1 minuto Let’s install Docker Compose on Ubuntu by following the official Docker website instructions. Update dependencies and install necessary packages: sudo apt-get update sudo apt-get install ca-certificates curl gnupg sudo install -m 0755 -d /etc/apt/keyrings curl -fsSL https://download.docker.com/linux/ubuntu/gpg sudo gpg –dearmor -o /etc/apt/keyrings/docker.gpg sudo chmod a+r /etc/apt/keyrings/docker.gpg # Add the repository to Apt sources: echo \ … Read more

Install Kubernetes on Ubuntu

Install Kubernetes on Ubuntu

Tiempo de lectura: 2 minutos Let’s install Kubernetes on an Ubuntu environment (https://kubernetes.io/docs/tasks/tools/included/install-kubectl-linux/) Install Docker The first step is to install Docker in our environment: Install Docker Compose on Ubuntu following the official Docker website instructions Update dependencies and install necessary packages sudo apt-get update sudo apt-get install ca-certificates curl gnupg sudo install -m 0755 -d /etc/apt/keyrings curl -fsSL https://download.docker.com/linux/ubuntu/gpg … Read more

Install Kubernetes on Windows

Install Kubernetes on Windows

Tiempo de lectura: 2 minutos Kubernetes is an open-source platform designed to automate the deployment, scaling, and operation of containerized applications. It was developed by Google and donated to the Cloud Native Computing Foundation (CNCF). Kubernetes provides an environment to efficiently and scalably orchestrate and manage containers across machine clusters. Kubernetes comes bundled with the Docker Desktop package, so let’s … Read more

Use a Docker Registry with authentication together with Kubernetes

Use a Docker Registry with authentication together with Kubernetes

Tiempo de lectura: 4 minutos If your Docker Registry requires authentication with a username and password, you’ll need to provide those credentials to the Kubernetes cluster so it can access the registry images during deployment. Here’s an example of how you can do it: Using Docker Compose with Docker Registry with Authentication Let’s assume your original Docker Compose looks like … Read more

Migrate a Docker Compose to Kubernetes

Migrate a Docker Compose to Kubernetes

Tiempo de lectura: 5 minutos Today, we’re going to learn, with an example, how to migrate a Docker Compose (https://www.docker.com/) setup to Kubernetes (https://kubernetes.io/). First, let me explain what the two mentioned technologies are: Docker Compose: Docker Compose is a tool that allows you to define and run multi-container Docker applications. With Docker Compose, you can describe the entire configuration … Read more

Add a Discord webhook to the Ofelia Docker container

Add a Discord webhook to the Ofelia Docker container

Tiempo de lectura: < 1 minuto Today, we’ll learn how to set up Ofelia to notify us via Discord about the executions of the Jobs it performs. The Ofelia container (https://github.com/mcuadros/ofelia) allows us to automate tasks with cron among our Docker containers. I find it very useful as it enables us to quickly save and replicate a Cron configuration in our … Read more