If you’re a Git developer, you’ve probably dealt with a noisy commit history. Adding multiple Git commits into one (a process called squashing) can help to organize your commit history. In this tutorial, I will show you how to combine Git commits into a single, nice, clean commit.Why Combine Git Commits?Combining or squashing multiple Git commits has several benefits:Cleaner History: It helps to keep a tidy project’s history with merging small, incremental changes into a single commit.Easier Collaboration: It simplifies code reviews by bringing all changes which go together, under the same commit.Better Readability: It makes it easier to track ... Read More
If you’ve ever tried adding files to your Git repository (say, config files that you didn’t want tracked) only to have realized later that they shouldn’t have been added in the first place, you might have created your .gitignore file. But somehow, you’ll find that Git still does track them even when they’re intended to be added to .gitignore. This is annoying but fortunately Git has a way to go and forget those tracked files forever. In this article, I will present a step-by-step guide to work through this common Git problem.Why is Git Keeping Ignored Files?Anything that goes into ... Read More
Git is an effective system for version control, but in some cases, there is information that is best left out of our version control trees entirely. They may be temp files, system files, or some confidential data that should not be committed. Read this article to learn how to untrack files that Git has been tracking and how not to let Git track new files in the future. In addition, we have explained in this article how you can use the git ignore feature to clean your work and avoid unnecessary files.Why Ignore Files in Git?Ignoring files in Git can ... Read More
When it comes to databases, often the choice of technology to be implemented is decisively important for the success of an application. In the context of an increasingly wide choice of options, knowing the distinctive features and benefits of one or another database affects the aspect of scalability, flexibility, and performance critically. In this article, we will explore quote CouchDB is and how it solves different problems than MySQL – two of the most commonly used database engines that work on entirely different paradigms for vastly different uses. What is CouchDB CouchDB is a free and document-based non-SQL database that ... Read More
Sometimes, you get in a situation where you need to take a snapshot of the process and use it later in the same state. We call this operation of saving a process state to use it later in Linux Checkpointing. This operation is done by taking a running process and saving it into a file, and then later, you can quickly launch the process again without losing its state. To make it easier to understand, let’s say you have a process doing some calculations. To prevent data loss if the system crashes or when you reboot the machine, you save ... Read More
Bash script is a scripting language like other languages that have an extension and a way to interpret it. To interact with the operating system through the command line, commands are used. There are a lot of commands on Linux, and new commands are added regularly. However, all these commands have a common way of working. All commands consist of three parts: the command itself, its parameters, and arguments. Bash Script File A bash script file is a file that contains a sequence of commands put together to do a certain task. If you have a lot of commands, it ... Read More
Sometimes, we need to run an automated process, and for this, we use a script that runs continuously in the background. These types are called "daemons" in Linux. These daemons allow us to run independently from the terminal session. This means that the script will keep running even if we close the session. In this tutorial, we will go through how we can turn a bash script into a daemon. What is a Daemon? A daemon is just a program or process that runs in the background continuously without needing any interaction from the user. In your day-to-day Linux tasks, ... Read More
There is no doubt that the idea of losing an important file or deleting it unintentionally is certainly annoying and almost all of us have been in the same situation, especially if the files are very important, whether they are work files, personal photos or videos that you cannot do without and want to recover. If you are exposed to this problem, do not worry. There are many solutions and programs dedicated to recovering files, especially if you are using the famous Linux distribution. There are also many diverse and free programs dedicated to all famous distributions. Linux ... Read More
XML stands for Extensible Markup Language. It's a widely used format that is used to exchange data between systems. Many applications are based on XML as their configuration files. Even the very well-known document application, Office, is based on XML. What makes XML very popular is that it is written in plain text, which makes it easy to work with and also independent. It can be used in any programming language. Unlike HTML and other markup languages, XML doesn't come with predefined tags that you need to remember and use. With XML, you can use tags of your choice ... Read More
CSV files are a common file format that we use on the Internet a lot. They are basically a file type that consists of lines, with each line considered a row in a simple table. As the name suggests, CSV (Comma-Separated Values) means that data in each line is separated by commas. CSV files are just plain text that we can view and edit in any editor. The common fields we see using this type of file are in spreadsheets, databases, storing configuration data, and data exchange between APIs. In Linux, there are many ways to parse a file like ... Read More
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP