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...
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...
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+...Halfplane Intersection problem
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 ...
Polygon Triangulation
In this article, we have explained the problem statement of Polygon Triangulation along with algorithmic approaches.
Table of ContentsIntroductionMathematical ApproachAlgorithmic AnalysisImplementationOverviewIntroductionWithin 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...
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 ProgrammingGISOverviewIntroductionIn 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...
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.Introduction.A firewall is what is stands between the computer system and...
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.
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...
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 YOLORYOLOR- 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 ...
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 JSONJavaScript 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 fileEach key is map to a value such as "Name": . Below is an ...