Aditya Chatterjee's Blog, page 186

December 8, 2020

Develop a year Progress bar in HTML/ JS

In this article, we have developed a year Progress bar in HTML using JavaScript. Firstly we'll discuss on the Basic Introduction to HTML, CSS & JavaScript. Secondly, we'll describe our article's title. Later'll provide the implementation for the same with step-wise explanation.

Following are the sections of this article:-

Introduction Title Description Implementation Conclusion
1. Introduction

Lets start our discussion by understanding the basics of these web-technologies - HTML, CSS &...

 •  0 comments  •  flag
Share on Twitter
Published on December 08, 2020 12:48

Longest common substring using rolling hash approach

Reading time: 30 minutes | Coding time: 15 minutes

A substring is a contiguous sequence of characters within a string.For example,open is a substring of opengenus. Here,we have presented an approach to find the longest common substring in two strings using rolling hash. Rolling hash is used to prevent rehashing the whole string while calculating hash values of the substrings of a given string. In rolling hash,the new hash value is rapidly calculated given only the old hash value.Using it,...

 •  0 comments  •  flag
Share on Twitter
Published on December 08, 2020 02:48

December 6, 2020

Types of caching in Web Application

In this article, we will be discussing on the Types of caching in Web Application. Firstly we'll discuss on the Introduction to Cache. Secondly, we'll get familiar with the Types of it. Later will understand the real-time application for the same.

Following are the sections of this article:-

Introduction Types of Caching Application of Caching Conclusion
1. Introduction

Let us understand on the general concept of Cache, Its a concept where the frequently accessed data will be stored in this...

 •  0 comments  •  flag
Share on Twitter
Published on December 06, 2020 05:39

December 4, 2020

Forms in HTML

In this article, we're going to discuss HTML FORMS.

A recap about HTML!

What is HTML?

HTML is a shortening (of a word) for Hypertext Markup Language. The markup language is a language containing a set of tags understood by browsers. It is the first (or most important) language used for formatting web pages.

HTML pages or more professionally called Web Pages contains the following:
HyperText: (Hyperlink) this allows you to navigate between several pages or within the same page.

Text: this...

 •  0 comments  •  flag
Share on Twitter
Published on December 04, 2020 01:05

December 2, 2020

Implementing pwd command in C/C++

pwd (Present Working Directory) command is one of the basic bash line command used for getting the path of the directory we are currently working on! The command pwd itself abbreviates to "present working directory". We will use the headerfile dirent.h for directory structures and objects and implement our pwd command in C/C++. This will involve the getcwd() function call. So lets move on to the initial setup:


Initial Setup

Make a directory named "command" and inside that make a directory named ...

 •  0 comments  •  flag
Share on Twitter
Published on December 02, 2020 22:20

Wide and Deep Learning Model

Wide and Deep Learning Model is a ML/ DL model that has two main components: Memorizing component (Linear model) and a Generalizing component (Neural Network) and a cross product of the previous two components. Wide and Deep Learning Model is used in recommendation systems.



Giving ratings and feedbacks must be considered as a do-gooding act now!



Introduction

What would you answer if the question is about your favorite mundane time? We are tend to watch movies, or listen podcasts as our past ti...

 •  0 comments  •  flag
Share on Twitter
Published on December 02, 2020 17:43

RoBERTa: Robustly Optimized BERT pre-training Approach

RoBERTa (Robustly Optimized BERT pre-training Approach) is a NLP model and is the modified version (by Facebook) of the popular NLP model, BERT. It is more like an approach better train and optimize BERT (Bidirectional Encoder Representations from Transformers).


Introduction of BERT led to the state-of-the-art results in the range of NLP tasks. BERT uses a robust method of training the model which first pre-trains it on a very large dataset as opposed to training it directly on specific labelled...

 •  0 comments  •  flag
Share on Twitter
Published on December 02, 2020 16:54

November 29, 2020

MineSweeper Game in React.Js

MineSweeper Game in React.Js

You might have guessed from the title already what we will discuss in this article. We will build a minesweeper game using React.JS. This is article-cum-tutorial.


MineSweeper was a classic game that we used to play in old days on old pc. This game is so uncertain to win. One who doesn't know about the game.


Let me tell you, the game is about revealing all cell , without clicking on the mines location cells.



Left click for revealing the cell.
Right Click to flag the cell(that you don't want to r...
 •  0 comments  •  flag
Share on Twitter
Published on November 29, 2020 04:05

November 25, 2020

Find number of substrings with same first and last characters

Find number of substrings with same first and last characters

Problem Statement: You are given a string lets say "S" , you need to find the count/number of all contiguous substrings (part of "S") starting and ending with the same character.


Sample Testcase:


Input : Let S = "abcab"

Substrings can be :


a, ab, abc, abca, abcab, b, bc, bca
bcab, c, ca, cab, a, ab, b

Out of these substrings, ones that have the same first and last characters are-


a, b, c, abca, bcab, a and b.

Explanation - All single-digit have the same first and last characters like a, b an...

 •  0 comments  •  flag
Share on Twitter
Published on November 25, 2020 22:11

Algorithms for Calculating Day of Week

There are several algorithms present which can be used for the determination of day of the week. These mathematical algorithms makes calculation of the day quick and fun. This article will be covering related algorithms.

Let's first cover few basic definitions:

Julian Calender Georgian Calender

Some of the Algorithms for Calculating Day of Week are:

Tomohiko Sakamoto Algorithm Gausses Algorithm Wang's Algorithm Julian Calender

This calender has two years: Normal Year with 365 days and ...

 •  0 comments  •  flag
Share on Twitter
Published on November 25, 2020 06:57