If you’re a Linux user, and you use distros such as Ubuntu or Debian, then you will have surely seen the command apt update. But what is it, exactly, and why do you want to run it often? In this article, we are going to break down the apt update command into simple words and explain what role it has in keeping your system running as it should. What is apt? APT is an acronym for Advanced Package Tool, and it is a command-line utility that allows us to handle software packages in Debian-based Linux distributions such as Ubuntu. An…
Author: Rahul
When you use Linux, especially Ubuntu or other Debian-based systems, you may notice that over the time your systems disk filled with many unnecessary files. These files can take up space and make your system feel cluttered. Don’t worry, the Apt package manager provides a simple command apt autoremove, that can help you clean your system easily. In this guide, we will explain what it does, why you need it, and how to use it with clear step by step instructions. What is apt autoremove? When you install or update software on Linux, some extra files and packages (called dependencies)…
Git push is a regular process used by developers to send changes to a remote repository. Recently, I noticed that I committed a few unnecessary files and pushed them to the remote Git repository. These files were not required and should have been excluded. To fix this, I plan to remove them from the repository and update the .gitignore file to avoid pushing such files in the future. To delete the last pushed commit, you can follow these steps. Make sure you understand the implications of rewriting commit history, especially if working in a shared repository. Steps to Delete the…
PHP is a popular programming language widely used by developers for creating dynamic and robust web applications. It is known for its simplicity, flexibility, and extensive support for modern frameworks and libraries. Most of the popular CMS applications (eg: WordPress, Drupal etc.) are still using PHP programming language. As of today, the latest PHP version is 8.4, recommended for use in production environments. REMI is an one of the most trusted RPM repository that provides PHP versions ranging from 7.4 to 8.4. Using this repository, you can easily manage and install multiple PHP versions on your system. This tutorial will…
Mostly every programmer following a software development life cycle that helps them to keep track of the application. A development life cycle have there own challenges and one of them is to build, test and deploy application. Jenkins is an automation server for the continuous integration tool. It provides a number of plugins for building and deploying your application in an easier way. You can use Jenkins as a simple CI (Continuous Integration) server or configure this for the CD (Continuous Delivery) hub for any number of the projects. With the help of Jenkins, you can easily distribute work across…
Linux provides several powerful tools to monitor system performance, especially memory and CPU usage. Sometimes we need to identify the processes that are consuming high memory and CPU to troubleshoot performance issues. You can use preinstalled system utilities like ps, top commands or external tools like htop, vmstats etc. Each tool comes with different advantages. This article explains how to identify the top processes consuming memory and CPU using simple commands. 1. Using the ps Command The ps command is one of the most versatile tools for displaying information about running processes. You can easily filter the output fields and…
Comments are an important part of any programming languages that help users to understand about working of code block. Similar to other programming languages Python also allows us to add comments in our code. We can use single line comments or multiline comment for block of code. Assuming you have to comment out multiple adjacent lines in a file, then you can use multi-line comments in your Python application. In this tutorial, you will learn about comment block of code in Python scripts. We can use triple quotes to comment out a block of code in Python. You can either…
Regular expressions are powerful input validators and are especially so for formats that follow a predictable pattern, such as phone numbers. A well-constructed regex will ensure that the input is according to the expected format and reduces errors, hence improving data quality. This article explores how the following regex is used in the validation of common phone number formats across Python, Java, and JavaScript: The Regular Expression Here is the common regular expression that helps you to validate common phone number formats. /^(\+?\d{1,3}[-.\s]?)?(\(?\d{3}\)?[-.\s]?)?\d{3}[-.\s]?\d{4}$/ The example phone numbers that matches by the above regex. 123-456-7890 (123) 456-7890 123.456.7890 123 456 7890…
The warning message indicates that the globally installed Angular CLI version in your system is greater than the locally installed one in the project. The problem is that the older version is being used because Angular CLI looks for the local version first when executing commands on a project. This version mismatch may cause incompatibility issues and errors such as the one you’re experiencing. This tutorial will help you to resolve “Your global Angular CLI version is greater than your local version” issue in your Angular application. 1. Local Angular CLI Version Upgrade To fix the mismatch, update the existing…
Would you like to convert your text documents or articles into speech that you can listen to wherever you want? This Python script makes it easy for you. It takes text input from a file and generates an audio output in mp3 or .wav format. Then you can put your feet up and listen to it while driving, working out, or just chilling. We will utilize pyttsx3, an offline text-to-speech conversion library. You do not have to do anything but just mention the name of your text file and the name the audio file will be stored as. The script…