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

Notify via a webhook, in this case Discord, when ClamAV detects an infected file.

Notify via a webhook, in this case Discord, when ClamAV detects an infected file.

Tiempo de lectura: 2 minutos To set up notifications through Discord when ClamAV detects a virus, you can follow these general steps. Keep in mind that these steps are a guide and may require adjustments based on your specific environment and preferences. 1. Create a Discord Webhook: Open your Discord server and select the channel where you want to receive … Read more

Add ClamAV Antivirus for Analyzing Files and Docker Environments, Using Docker Compose

Add ClamAV Antivirus for Analyzing Files and Docker Environments, Using Docker Compose

Tiempo de lectura: 3 minutos ClamAV is an open-source program designed to detect viruses, malware, and other threats on Unix and Linux operating systems. Its name is an abbreviation of “Clam Antivirus.” Although it originated in the Linux environment, it is also compatible with other operating systems, including Windows and macOS. Here are some key aspects of ClamAV: Scanning Engine: … Read more

Use Jest to unit test your React project

Use Jest to unit test your React project

Tiempo de lectura: 2 minutos Unit testing is an essential part of software development that ensures different parts of your application work correctly. In this tutorial, we will learn how to write unit tests for a React component using Jest and @testing-library/react. Prerequisites Make sure you have Node.js and npm installed on your machine before starting. You can verify this … Read more

Implement asynchronous calls for Rest API with Axios and also optimize them with React Query

Implement asynchronous calls for Rest API with Axios and also optimize them with React Query

Tiempo de lectura: 3 minutos In today’s article, we will explore a way to implement Axios (which replaces the fetch or ajax in JavaScript for React). Additionally, we will optimize calls using React Query, caching those made on certain occasions to avoid a high number of server calls. First, let me explain each mentioned technology: React Query is a state … Read more

Implement local.storage in React to allow storing variables in memory

Implement local.storage in React to allow storing variables in memory

Tiempo de lectura: 4 minutos In order to store variables locally, we need to implement local storage, and just like in web development, we can use it in React. Let’s get started: Step 1: Import Necessary Modules Make sure you have the necessary modules installed. You can install react and react-dom if you haven’t already: npm install react react-dom Step … Read more

Add internationalization (different languages) to your website using i18next and React

Add internationalization (different languages) to your website using i18next and React

Tiempo de lectura: 2 minutos Today we are going to learn how to integrate internationalization and different languages using i18next (https://react.i18next.com/) and React, and also achieve browser language detection. To implement internationalization with i18next in your React application, you first need to install i18next and its related modules, such as react-i18next. Then, configure i18next so that it can load translations … Read more

Install Material UI (Material Design) for React

Install Material UI (Material Design) for React

Tiempo de lectura: 2 minutos Material UI is a framework for developing interfaces based on Google Material Design. Personally, I like this design style a lot, both for its components and color palette, striking a balance between usability and modern design. Let’s learn how to install this framework into our React project. You can find more about this framework here. … Read more