Aditya Chatterjee's Blog, page 101

March 28, 2022

Swap space in Linux

Swap space is virtual memory allocated on the hard disk that is used to hold inactive memory pages when RAM is depleted. In this article, we learn all about swap space and how to create a swap file in Linux.

Table of contents.Introduction.How much do we need.Creating a swap file.Removing a swap file.Summary.References.Introduction.

Other than RAM which stores data concerning active processes, swap space is allocated memory in the hard disk used when RAM is depleted. We can have swap spa...

 •  0 comments  •  flag
Share on Twitter
Published on March 28, 2022 10:52

proc file system in Linux

The proc file system is a virtual file system generated on the fly when the system starts. In this article, we learn about the files and directories making up this file system.

Table of contents.Introduction.The file structure.Data.Summary.References.Introduction.

The proc file system is a virtual file system that is generated on the fly when the system boots up and destroyed when the system shuts down.

Files in this file system are not actual files, rather are magic objects behaving lik...

 •  0 comments  •  flag
Share on Twitter
Published on March 28, 2022 10:45

March 27, 2022

"Linked List Problems" book

This article introduces the exclusive book on Linked List Data Structure titled "Linked List Problems: For Interviews and Competitive Programming". It is a part of the book series "Must for Coding Interviews".

Get the book "Linked List Problems" at:

Paperback at amazon.comHardcover at amazon.com

Following is the cover of the book:

Cover of the exclusive book: Linked List Problems

Did you know that the algorithms dealing with L1, L2 and L3 cache in your computer rely on Linked List?

The calcu...

 •  0 comments  •  flag
Share on Twitter
Published on March 27, 2022 09:36

March 26, 2022

Data Visualization

In this article, we will understand more about data visualization, different charts used and explore some Data Visualization tools.

Table of contentsData visualizationTypes of chartsTools used for data visualization

Data Visualization

Presenting our findings and insights from the data analysis in a graphical form is called data visualization. This is a part of the fifth step: the 'share' step of the data analysis process. This is where we communicate our results to our stakeholders. Making...

 •  0 comments  •  flag
Share on Twitter
Published on March 26, 2022 15:51

How I developed Search Bar at OpenGenus?

In this article, I have explained How I developed Search Bar at OpenGenus IQ using Google Programmable Search Engine. I have explained the challenges faced along with solution and code snippets.

Table of contents:

IntroductionGeneral layout of the feature (The Modal)GCSE SearchThe openmodal() FunctionHome Page Search FeatureArticle Page Search FeatureChallenges/ Functionalities to pay special attention toIntroduction

The Search Bar features for the OpenGenus IQ as well as the article pa...

 •  0 comments  •  flag
Share on Twitter
Published on March 26, 2022 15:48

Different ways to append two vector in C++ STL

In this article, we have explored Different ways to append two vector in C++ STL which include std::copy, insert, concat, overloaded + operator and other functions.

Table of contentSTL vs Standard Libraryvector classDifferent ways to append using vector classat the beginning of the vectorat the end of the vectorat a specified indexOther waysstd::copy functionuser defined concat functionuser defined overload operators + and +=1. STL vs Standard Library

STL stands from Standard ...

 •  0 comments  •  flag
Share on Twitter
Published on March 26, 2022 15:10

watch command in Linux

We use the watch command to execute commands at regular intervals. We also use it for real-time logging of the command output. In this article, we discuss this command and understand it through various examples.

Table of contents.Introduction.Syntax.Command usage.Summary.References.Introduction.

We use the watch command to execute a command at regular intervals and print the output to the terminal.

This is useful in cases where we want to monitor real-time changes to a command's output. ...

 •  0 comments  •  flag
Share on Twitter
Published on March 26, 2022 15:05

dmesg command in Linux

We use the dmesg command to print log messages stored in the kernel ring buffer. In this article, we learn about this command through various examples.

Table of contents.Introduction.Syntax.Command usage.Formatting output.Levels and facilities.Real-time monitoring.Clearing the ring buffer.Summary.References.Introduction.

The kernel produces diagnostic messages about hardware, drivers, and any other information that is useful in troubleshooting issues from when it is booted to shutdow...

 •  0 comments  •  flag
Share on Twitter
Published on March 26, 2022 13:59

March 25, 2022

Iterate String word by word in C++ [5 Methods]

In this article, we are going to discuss different methods to iterate a String word-by-word using C++ libraries/techniques.

Untitled--1-

Table of content:Introduction of the problemMethods
i. Solving by sstream standard library
ii. Using User define character iteration
iii. Using getline function
iv. Using Split from Boost(External library)
v. Using cstring library (strtok)ApplicationsConclusionIntroduction

In programming, we mostly deal with arrays and strings. so, it is the basic requirement to ite...

 •  0 comments  •  flag
Share on Twitter
Published on March 25, 2022 06:08

March 24, 2022

Splitting VIM windows

VIM is a powerful, lightweight open-source text editor. In this article, we learn how to split VIM screens, switch between them, change sizes and close them.

Table of contents.Introduction.Splitting vim vertically.Splitting vim horizontally.Switching between windows.Closing windows.Changing window sizes.Closing windows.Summary.References.Introduction.

VIM is a powerful lightweight text editor that comes pre-installed in Linux systems. We can use it to edit simple files or even manage...

 •  0 comments  •  flag
Share on Twitter
Published on March 24, 2022 11:14