Aditya Chatterjee's Blog, page 7
April 7, 2024
Creating TCP Asynchronous Client Server in C++ using Boost.Asio
A TCP (Transmission Control Protocol) connection is a communication channel established between two endpoints over a network. It provides reliable, ordered, and error-checked delivery of a stream of bytes between applications running on hosts (computers) connected to the network.
Boost.Asio is a C++ library that provides asynchronous I/O functionality and networking support. It offers an abstraction over low-level networking operations, making it easier for developers to create efficient, scalab...
April 6, 2024
Basics of C++ Boost.ASIO
Boost.Asio is a cross-platform C++ library for network and low-level I/O programming that provides developers with a consistent asynchronous model using a modern C++ approach.
Table of contents:IntroductionInstalling BoostBasic Boost.Asio AnatomyCallback Functions or Completion HandlersBinding Arguments to a HandlerConclusion1. IntroductionNote : To compile the code snippets provided , you need to setup the boost library first using the instructions provided here.
Many programs engag...
March 30, 2024
AMD vs Intel: Better company to work for

Which team are you in? Blue or Red.
Once for over 3 decades, the semi-conductor industry was revolutionized and dominated by Intel but recently, over the last 5 years, things have changed significantly. AMD and NVIDIA has dominated the market and Intel has moved to the 5th position yet the legacy of Intel continues.
Few years ago, if one would have received offer from both Intel and AMD, there was a clear decision to accept the Intel offer but this has changed in the last 5 years.
To help you ch...
March 26, 2024
Password Generator using React
In this article at OpenGenus.org, we will learn about generating a password using React, JavaScript and Vite. To people who are new to Vite, it's a build tool that aims to provide faster and leaner web development experiences.
Vite is popular for th...
Responsive Image Grid
In today's web development crafting responsive and visually appealing layout is crucial. One common design element is an image grid, that is often used to showcase a collection of images in a visually pleasing manner, That is where Responsive Image Grids come in to play. In this OpenGenus article, we will create a responsive image grid using HTML and CSS.
Table of contents:
What is meant by a Responsive Image Grid.Prerequisites.step 1: Set up the HTML structure.Step 2: Add images.Step 3: S...March 25, 2024
Basics of using PyTorch
Table of content
PyTorch - Some of unique featuresInstallation processTensorsDatasets and DataLoadersDeep Learning ModelPyTorch vs TensorflowPyTorch is an open-source deep learning framework primarily developed by Facebook's AI Research lab (FAIR). It provides a flexible and dynamic computational graph, making it particularly suitable for research and experimentation in deep learning tasks. Some of its unique features include:
Dynamic Computational Graphs: PyTorch uses a dynamic computa...Position wise Feed-Forward Networks
Position-wise Feed-Forward Networks (FFN) are a crucial component in various sequence-to-sequence models, especially in the context of natural language processing and tasks like machine translation. These networks are often used in conjunction with self-attention mechanisms to process and transform information within sequences.
Table of contentTransformer- overviewImportance of Position-wise FFNNetwork DescriptionExamplesCode example using pretrained modelsKey points and summaryTransfor...Everything about Sample Size
Sample size refers to the number of individual observations or data points collected from a population for a specific study or analysis.
The key points for related to sample sizeRepresentativeness: The sample should be representative of the population from which it is drawn. A larger and more diverse samp...
Zeller’s Congruence
Zeller's Congruence is a mathematical algorithm devised by Christian Zeller to calculate the day of the week for any date in both the Julian and Gregorian calendars. It provides a systematic approach for finding the day of the week, offering a valuable tool for programmers, historians, and anyone interested in calendar systems. In this blog post, we'll explore the intricacies of Zeller's Congruence, dissect its formulae, and provide insights into its implementation.
The Algorithm:...Comparing Different Programming Languages
The landscape of programming languages is vast and diverse, each with its own set of strengths and weaknesses. Developers often face the challenge of selecting the most suitable language for their projects, considering factors like performance, ease of use, ecosystem, and platform compatibility. In this comprehensive analysis at OpenGenus, we delve into the speed aspect of programming languages, examining the results of a performance test conducted on nine popular languages. Additio...