Aditya Chatterjee's Blog, page 124
January 23, 2022
Compiling a C program using GCC
In this article, we have covered how to compile a C program using the GCC compiler along with the different stages such as Preprocessing, compiling, assembling and linking.
Table of contents:
Introduction to GCCCompilationExample source codeThe compilation process(4 steps)Introduction to GCCGCC is an acronym that stands for the GNU Compiler Collection. GCC is a collection of compilers and libraries that offer support for various programming languages such as C, C , Java, etc.
The GCC com...
Linux user management
Linux is a multiuser operating system and thus can support several users working on a given system concurrently. User management entails adding, modification(editing, suspension) and removal of user accounts along with their permissions.
Table of contents.Introduction.User accounts.User administration files.User management commands.Adding groups.Modifying groups.Deleting groups.Adding users.Modifying user accounts.Removing user accounts.User information.Switching user accounts.Summ...Linux process management commands: top, ps, kill, jobs, fg, bg
A process is a program in execution, it is created by any command executed by a user, In this article we discuss types of processes and the common commands used for process management.
Table of contents.Introduction.Types of processes.View processes: top.Killing a process: kill.Changing process priority: nice.Process status: ps.Background and foreground processes: jobs.Summary.References.Introduction.A program is a series of instructions used by the computer to perform actions, duri...
Dropout operation in TensorFlow (tf.nn.dropout)
This article discusses about a special kind of layer called the Dropout layer in TensorFlow (tf.nn.dropout) which is used in Deep Neural Networks as a measure for preventing or correcting the problem of over-fitting. And this process of correcting is a kind of regularization technique called the "Stochastic Regularization".
Table of contents:
The Problem of OverfittingDropout operationDropout ProcessDropout in TensorFlow (tf.nn.dropout)Applications of DropoutThe Problem of Overfitting:Le...
January 22, 2022
Rumbaugh, Booch and Jacobson Methodologies
In this article, we have explored three object modeling techniques namely Rumbaugh, Booch and Jacobson Methodologies along with code examples.
Table of Contents:
Rumbaugh MethodologyBooch MethodologyJacobson MethodologyRumbaugh Methodology (OMT)The Rumbaugh methodology also known as OMT (Object Modeling Technique) is an approach used to develop manageable object-oriented systems and host object oriented programming. The purpose is to allow for class attributes, methods, inheritance, and as...
Mounting and unmounting in Linux
Mounting is simply making a file system accessible in a computer system. In this article we discuss mounting and unmounting in the Linux operating System.
Table of contents.Introduction.Mounting.Unmounting.Summary.References.Introduction.The Linux file system forms a hierarchical structure tree rooted at /. This root / is mounted during startup, other file systems remain unusable until they are mounted at a mount point. For access to a file system, it needs to be mounted. A case on poin...
Linux memory management: An overview
In this article we discuss the major concepts concerning memory management in the Linux operating system.
Table of contents.Introduction.Virtual memory.Page caching.Huge pages.Anonymous memory.Nodes and Zones.Reclaiming pages.Compacting.OOM killer.Summary.References.Introduction.Programs are brought into memory and placed within a process for execution.
Binding of instructions and data to memory can either happen at compile time if the memory location is already known and therefor...
Interview questions on Data Science
In this article, we have presented 40 Interview questions on Data Science covering several topics including Multiple choice questions (MCQs) and Descriptive questions with answers.
Table of contentsMultiple choice questions (MCQs)Descriptive questionsBasic questionsAnalytical questionsMultiple choice questions (MCQs)
1. Which of the following is TRUE?
(a) correlation(X,Y) = (covariance(X) covariance(Y))/covariance(X,Y)
(b) correlation(X,Y) = covariance(X,Y)/(covariance(X) covariance(...
Linux file hierarchy
A file hierarchy is an organization of files in a storage device i.e hdd, ssd etc, in this article we discuss the file hierarchy of the Linux operating system.
Table of contents.Introduction.Binaries.Configuration directories.Data directories.Memory directories.Variable directories.System resources.Non-standard directories.Summary.References.Introduction.The Linux operating system has a hierarchical file structure. The FHS(file system hierarchical standard) defines the directory st...
Linux file system - an overview
In this article we go over an overview of the Linux file system, this will give new Linux users an idea of how Linux stores, retrieves and manages data/files.
Table of contents.Introduction.File system architecture.Linux file systems.Summary.References.Introduction.The hard disk's only function is to store data and the only way to access this stored data is to specify its physical location(cylinder, head, sector) or logical location(block numbers) on the disk, however remembering sector...