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

Script to Calculate Contribution Percentage in a Git Repository

Script to Calculate Contribution Percentage in a Git Repository

Tiempo de lectura: 2 minutos Introduction In collaborative software development, understanding each team member’s contribution is essential. This tutorial introduces a Bash script that calculates the percentage of contribution for each author in a Git repository. Let’s see how to use this tool to gather valuable insights into the work done by each person in a project. Prerequisites Before you … Read more

Differences between FullStack and Specialist. What is better? And what do companies ask for?

Differences between FullStack and Specialist. What is better? And what do companies ask for?

Tiempo de lectura: 2 minutos In the competitive world of software development, the choice between full-stack profiles and specialists has become a hot topic for both professionals and companies. The question of which of these profiles is more in demand does not have a single, definitive answer, as it depends on various factors. Below, we will explore the differences between … Read more

List in Android Studio using Java

List in Android Studio using Java

Tiempo de lectura: 2 minutos To create a list of items and display them on Android, follow these steps as shown in the example. First, create an XML file to define the view with the list. To display a list, we will use the “ListView” element. <?xml version=”1.0″ encoding=”utf-8″?> <RelativeLayout xmlns:android=”http://schemas.android.com/apk/res/android” android:layout_width=”match_parent” android:layout_height=”match_parent”> <ListView android:id=”@+id/listView” android:layout_width=”match_parent” android:layout_height=”match_parent”/> </RelativeLayout> Next, create … Read more