Aditya Chatterjee's Blog, page 106

March 11, 2022

Introduction to Perl Programming

Perl is a general-purpose programming language, it is used in text processing and manipulation, systems administration, network programming, GUI development, web development just to name a few. In this article, we go over a brief introduction to Perl.

Table of contents.Introduction.How to run Perl code.Syntax.Variables.Variable scoping.Loops and conditional statements.Built-in operators.Summary.References.Introduction.

Perl is a general-purpose programing language that finds applicat...

 •  0 comments  •  flag
Share on Twitter
Published on March 11, 2022 04:10

Finger command in Linux

The finger command is used to get all information about system users. With it, we get information such as login name, user name, login time, idle time, and much more. We look at commonly used finger commands in Linux.

Table of contents.Introduction.Syntax.Commands.Summary.References.Introduction.

We use the finger command to print out information about system users.

In Linux, in order for the finger to do its job, it needs this information, this information is stored in the following fil...

 •  0 comments  •  flag
Share on Twitter
Published on March 11, 2022 03:55

March 10, 2022

Sort Map in C++ STL

In this article, we have explained different ways to sort a Map in C++ STL using C++ code snippets.

In order to proceed with this topic first we need to understand that what is a Map?
Map are a part of STL library in C++.They are used to implement ordered associative arrays that store elements in a combination of key values and mapped values in associative containers.

Table of contents:

Introduction to Problem StatementSolving the problem (With Few Examples and code)Introduction to Map in C+...
 •  0 comments  •  flag
Share on Twitter
Published on March 10, 2022 03:26

Halfplane Intersection problem

Table of ContentsIntroductionBrute ForceIncrementatal methodSorting and increment algorithmApplicationsOverviewIntroduction

In this article, we will be discussing how to compute the intersection of a set of halfplanes. A half plane can be defined as a planar region which consists of all points on one side of an infinite straight line, and none on the other side. We can apply computational geometry here, as an intersection can be represented as a convex polygon, where every point inside ...

 •  0 comments  •  flag
Share on Twitter
Published on March 10, 2022 00:48

Polygon Triangulation

In this article, we have explained the problem statement of Polygon Triangulation along with algorithmic approaches.

Table of ContentsIntroductionMathematical ApproachAlgorithmic AnalysisImplementationOverviewIntroduction

Within computational geometry, we can use polygons as the building blocks to many algorithms. A polygonal curve is a finite chain of line segments, these line segments are called edges and their endpoints called vertices. Using this we can define a simple polygon as a c...

 •  0 comments  •  flag
Share on Twitter
Published on March 10, 2022 00:43

Applications of Computational Geometry

In this article, we have explained Applications of Computational Geometry along with topics/ algorithms used to solve a specific problem.

Table of ContentsIntroductionApplications/AlgorithmsRendering/SimulationsArtificial IntelligenceNetworkingLinear ProgrammingGISOverviewIntroduction

In this article, we shall introduce the concept of computational geometry, this will build on all of the geometric we have established previously and apply it in a computational perspective. We can sa...

 •  0 comments  •  flag
Share on Twitter
Published on March 10, 2022 00:34

March 9, 2022

ufw in Linux

UFW (Uncomplicated Firewall) is a Linux utility that runs on top of iptables used to manage Netfilter and managing the firewall. We look at ufw in Ubuntu and how to manage the firewall.

Table of contents.Introduction.Installation.Enabling and disabling ufw.Allowing and denying connections.Port management.Deleting ufw rules.Applications.IP masquerading.Firewall logs.Summary.References.Prerequisites.

iptables.

Introduction.

A firewall is what is stands between the computer system and...

 •  0 comments  •  flag
Share on Twitter
Published on March 09, 2022 11:47

vmstat command in Linux

We use the vmstat command for system performance monitoring in Linux. It reports statistics about threads, system calls, CPU activity, memory, disks, and more.
We look at commonly used vmstat commands.

Table of contents.Introduction.Syntax.Commands.Summary.References.Introduction.

We use the vmstat command to monitor system performance in Linux. With it, we get statistics about threads, virtual memory, processor activity, disk utilization, and more. We discuss commonly used vmstat comman...

 •  0 comments  •  flag
Share on Twitter
Published on March 09, 2022 11:40

YOLOR model architecture

In this article, we have covered YOLOR model architecture in depth and compared it with other YOLO variants like YOLOv4.

Table of contents:

Introduction to YOLORYOLOR ArchitectureImplementation of YOLORYOLOR vs other YOLO modelsConclusionIntroduction to YOLOR

YOLOR- You Only Learn One Representation is a machine learning/deep learning algorithm used for computer vision tasks mainly object detection. Object detection can be defined as finding the boundary box of the object and classifying ...

 •  0 comments  •  flag
Share on Twitter
Published on March 09, 2022 11:29

Python script to read and write JSON file

In this article, we have explained the idea of reading and writing JSON file in Python with a complete Python implementation example.

Table of contents:

Introduction to JSONExample of a JSON fileHow to write to JSON fileHow to read a JSON fileIntroduction to JSON

JavaScript Object Notation (JSON) is a data-interchange format. It is lightweight and easy to be interpreted and written by both humans and machines.

Example of a JSON file

Each key is map to a value such as "Name": . Below is an ...

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