Author: Mukuldeep Maiti

Mukuldeep Maiti
An unrecognized crazy being with random thoughts lost in unknown
Posted an answer
updating element of map data-structure after finding with .at() method in c++

In case of map in c++, you can directly assign value to it after finding with .at(). Before that we should check whether the key is present or not. if present then update the value else insert new pair...

June 19, 2020 5
Posted an answer
checking whether key is present in a variable of map data-structure in c++

you can also use m.find() map iterator to find whether the key is present or not. If the value is not present then this iterator must equals m.end(). As used in the code snippet below [apcode language="cpp"]...

June 19, 2020 5
Posted an answer
checking whether key is present in a variable of map data-structure in c++

there are different ways, you can use m.count() method to check whether the key exists or not. As map contains unique keys so count will be 0 if not present or 1 if present. [apcode language="cpp"] map<int,int>...

June 19, 2020 5
Posted an answer
sound generation using python

Ofcourse possible! In digital systems sound is stored and manipulated as an array of integers, each of which represent amplitude of the sound sampled at certain rate. In case, you want to generate sine...

June 2, 2020 5
Posted an answer
ERROR: Failed to resolve: androidx.test:runner:1.2.1 – got this error

use beta versions [apcode language="xml"] //use androidTestImplementation 'androidx.test:runner:1.3.0-beta01' androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0-beta01'...

May 15, 2020 5
Received an upvote
May 15, 2020 10
Answer was selected as best
May 15, 2020 15
Received an upvote
May 15, 2020 10
Posted an answer
Plugin with id ‘com.google.gms.google-services’ not found. – got this error

your project level build.gradle file will look similar to [apcode language="xml"] // Top-level build file where you can add configuration options common to all sub-projects/modules.  buildscript {     repositories...

May 15, 2020 5
Posted an answer
Plugin with id ‘com.google.gms.google-services’ not found. – got this error

add this classpath in dependencies in project level build.gradle file. [apcode language="xml"] classpath 'com.google.gms:google-services:4.3.3' [/apcode] replace 4.3.3 with whatever latest version...

May 15, 2020 5
Received an upvote
April 19, 2020 10
Answer was selected as best
AttributeError: module ‘cv2’ has no attribute ‘createStereoBM’ – I got this error

use 'StereoBM_create' instead of 'createStereoBM' line no.5 of the code will be [apcode language="python"] stereo = cv2.StereoBM_create(numDisparities=16, blockSize=15) [/apcode] check here  https://raabnits.com/create-depth-map-from-stereo-images-implemented-using-python/

April 19, 2020 15
Posted an answer
AttributeError: module ‘cv2.face’ has no attribute ‘createLBPHFaceRecognizer’

The LBPHFaceRecognizer is created by [apcode language="python"] cv2.face.LBPHFaceRecognizer_create() [/apcode] use LBPHFaceRecognizer_create() instead of createLBPHFaceRecognizer() your code snippet...

April 19, 2020 5
Received an upvote
program to implement Least recently used page replacement policy for an operating system

write a program to implement Least recently used page replacement policy for an operating system in programming languages like C,C++,PYTHON,JAVA etc

March 31, 2020 10
Received an upvote
program to implement Optimal page replacement algorithm for an operating system

write a program to implement Optimal page replacement algorithm for an operating system using programming languages like C,C++,python,java etc

March 31, 2020 10
Received an upvote
March 31, 2020 10
Posted an answer
get values from multiple searches at a same time (concurrently). how to do it? using Beautifulsoup

You can use multi-threading to make it fast by executing parallelly/concurrently. In python there is a package called ‘threading’ which provides almost all necessary methods for implementing multi-threading...

March 31, 2020 5
Answer was selected as best
March 25, 2020 15
Received an upvote
March 25, 2020 10
Posted an answer
splitting string by delimiter in python

You can use split(delimiter) method to split it into pieces and join them afterward. you may use the following code snippet [apcode language="python"] strr = "hey_john!_it's_your_arena!"...

March 25, 2020 5
Load More