Trending questions in Edureka Community

0 votes
0 answers

How to use c++ swap function?

It is OK to write swap(a,b); There is an issue when I write swap(&c[0],&d[0]);.  Can anyone explain why? #include<iostream> #include<algorithm> using namespace std; int main(void){ ...READ MORE

Jul 1, 2022 in C++ by Nicholas
• 7,760 points
1,124 views
0 votes
0 answers

Can't create handler inside thread that has not called Looper.prepare()

The code: Toast toast = Toast.makeText(mContext, "Something", Toast.LENGTH_SHORT); This ...READ MORE

May 1, 2022 in Other DevOps Questions by Kichu
• 19,040 points
4,099 views
0 votes
0 answers

How to add man and zip to "git bash" installation on Windows

I am using git bash on Windows - that ...READ MORE

Jun 7, 2022 in Linux Administration by Rahul
• 3,380 points
2,479 views
0 votes
1 answer

rnorm function in R - Usage

y = rnorm(12, rep(c(1,2,1), each=4, 0.2)) I can ...READ MORE

Jun 24, 2022 in Data Science by Sohail
• 3,040 points
1,938 views
0 votes
1 answer

insert method for doubly linked list C++

I attempted to repair all of your methods, and I believe I succeeded; at least, the current test example prints the proper answer: #include <iostream> #include <vector> using namespace std; struct Node { ...READ MORE

Jun 21, 2022 in C++ by Damon
• 4,960 points
1,832 views
0 votes
1 answer

jQuery document ready function

$( document ).ready() A page can't be manipulated ...READ MORE

Jun 2, 2022 in JQuery by Edureka
• 13,690 points
2,645 views
0 votes
0 answers

Unable to get OTP

Hi, I am unable to register for webinars ...READ MORE

Jul 22, 2022 in Others by Rashmi

edited Mar 4, 2025 525 views
0 votes
1 answer

Negative coefficients in regression for positive coefficient of correlation

The situation you describe is not out ...READ MORE

Mar 25, 2022 in Machine Learning by Nandini
• 5,480 points
5,668 views
0 votes
1 answer

Trim to remove white space

The trim() method removes whitespace from both ...READ MORE

Jun 15, 2022 in JQuery by rajatha
• 7,680 points
2,081 views
0 votes
1 answer

jQuery vs. javascript?

JavaScript is an independent language and can ...READ MORE

Jun 30, 2022 in Web Development by rajatha
• 7,680 points
1,457 views
0 votes
1 answer

What is the best way to use a HashMap in C++?

The ordered and unordered map containers (std::map and std::unordered map) are included in the standard library.  The items in an ordered map are sorted by key, and insert and access are in O (log n).  For ordered maps, the standard library often use red black trees.  However, this is only an implementation detail.  Insert and access are in O in an unordered map (1).  It is simply another term for a hashtable. An illustration using (ordered) std::map: #include <map> #include <iostream> #include <cassert> int main(int argc, char ...READ MORE

Jun 10, 2022 in C++ by Damon
• 4,960 points
2,318 views
0 votes
1 answer

jquery timepicker cdnjs.cloudflare does not working

jQuery Timepicker can parse the most used ...READ MORE

Jun 1, 2022 in JQuery by Edureka
• 13,690 points
2,697 views
0 votes
1 answer

Wildcard module declaration not work in TypeScript 2, why?

I managed to resolve this by forcing ...READ MORE

Jun 16, 2022 in TypeSript by Nina
• 3,060 points
2,046 views
0 votes
0 answers

Responsive two column css grid

 create 2 columns using CSS grid as: .Background ...READ MORE

Jul 22, 2022 in CSS by Edureka
• 13,730 points

edited Mar 4, 2025 506 views
0 votes
1 answer

Node.js JSON.stringify() causing &quot; in output. Can't parse with Jquery

It's because when you call ...READ MORE

Jun 16, 2022 in JQuery by rajatha
• 7,680 points
2,024 views
0 votes
1 answer

Does Java have a "IN" operator or function like SQL? [duplicate]

The Java language is designed to be ...READ MORE

Feb 2, 2022 in Java by Vaani
• 7,070 points

edited Jun 22, 2023 by Khan Sarfaraz 7,808 views
0 votes
1 answer

Is 'If Else' statement indentation important or not in C++? [duplicate]

White space has no effect on the understanding of code in C and C++.  That is not to say that the programmer should be unconcerned about its misuse. The easiest method to demonstrate what the above code truly represents is to specify all of the inferred braces directly, as seen below.  The 'if then' or 'otherwise' clause only affects one line of code in the if statement with no brackets. This is one of the reasons why people strive to insist on 'proper coding standards' to guarantee that other people can clearly grasp the programmer's flow and meaning. while(c != cols) { ...READ MORE

Jun 27, 2022 in C++ by Damon
• 4,960 points
1,544 views
0 votes
1 answer

How to get all css properties and events of a html element with jquery or other libraries?

You can get the computed value of ...READ MORE

Jun 14, 2022 in JQuery by gaurav
• 25,250 points
2,129 views
0 votes
1 answer

outputting ascii table in C++

This line doesn't do the right thing: ch ...READ MORE

Jun 13, 2022 in C++ by Damon
• 4,960 points
2,149 views
0 votes
0 answers

C++ Singleton design pattern

I recently came upon a C++ realization/implementation of the Singleton design pattern.  It looked like this (I took it from a real-life example): // a lot of methods are omitted ...READ MORE

Jul 4, 2022 in C++ by Nicholas
• 7,760 points
1,224 views
0 votes
1 answer

Logistic Regression not working because of "unknown label type 'continuous'"?

The issue is because you're using a ...READ MORE

Mar 8, 2022 in Machine Learning by Dev
• 6,000 points
6,422 views
0 votes
0 answers

What is the algorithm to compute the Amazon-S3 Etag for a file larger than 5GB?

Files uploaded to Amazon S3 that are ...READ MORE

Apr 21, 2022 in AWS by Soham
• 9,730 points
4,351 views
0 votes
1 answer

Typescript: how to define message type for broker consumer

Our main goal - is to make ...READ MORE

Jun 15, 2022 in TypeSript by Nina
• 3,060 points
2,081 views
0 votes
0 answers

How can I get the maximum or minimum value in a vector?

In C++, how can I find the greatest or minimum value in a vector? Is it correct to assume that it would be similar with an array? Do I require an iterator?  I tried max element, but I kept receiving errors. vector<int>::const_iterator it; it = max_element(cloud.begin(), cloud.end()); error: request for ...READ MORE

Jun 27, 2022 in C++ by Nicholas
• 7,760 points
1,579 views
0 votes
0 answers

How does the CSS Block Formatting Context work?

How does the CSS Block Formatting Context ...READ MORE

Jul 5, 2022 in CSS by Edureka
• 13,730 points
1,230 views
0 votes
0 answers

Reverse a number without converting it to string in C++

I'm attempting to write a programme in C++ to reverse a number. It works well with numbers like 1234, but when I try to enter a number like 5430, it displays 345, and the same with numbers that begin with zero, such as 0234, which displays 432. Could someone please explain how to deal with zeros at the beginning and end of a sentence? I simply need to save the number without converting it to a string. #include<iostream> using namespace std; int main(){ ...READ MORE

Jun 30, 2022 in C++ by Nicholas
• 7,760 points
1,436 views
0 votes
0 answers

How to write a simple Html.DropDownListFor()?

I want to create a very straightforward ...READ MORE

Jul 8, 2022 in HTML by Tejashwini
• 5,380 points
1,101 views
0 votes
0 answers

salut tout le monde j'ai en probleme de certificat en java si j'execute le projet il me dis prbleme de ssl

PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to ...READ MORE

Jul 19, 2022 in Java by camara

edited Mar 4, 2025 632 views
0 votes
0 answers

Read a plain text file with php

How do I read all the information ...READ MORE

Jun 26, 2022 in PHP by narikkadan
• 86,360 points
1,571 views
0 votes
0 answers

How do I rotate text in css?

How can I rotate text using CSS ...READ MORE

Jun 30, 2022 in CSS by Edureka
• 13,730 points
1,441 views
0 votes
0 answers

NodeJS, OpenCV and Streaming Images Using Net Socket

My ultimate goal is to have video ...READ MORE

Jun 21, 2022 in Node-js by Vaani
• 7,070 points
1,830 views
0 votes
0 answers

PHP | define() vs. const

In PHP, there are two ways to ...READ MORE

Jun 1, 2022 in PHP by Kichu
• 19,040 points
2,074 views
0 votes
0 answers

What does auto do in margin: 0 auto?

What does auto do in margin: 0 ...READ MORE

Jul 11, 2022 in CSS by Edureka
• 13,730 points
964 views
0 votes
1 answer

jQuery timepicker time format not working

Steps to change Time Format of TimePicker ...READ MORE

Jun 16, 2022 in JQuery by rajatha
• 7,680 points
1,997 views
0 votes
1 answer

How to build a special polygon (a kite shape) with HTML & CSS only?

I made two divs, one for Arc ...READ MORE

May 28, 2022 in CSS by Edureka
• 12,730 points
2,833 views
0 votes
1 answer

Initializing a two dimensional std::vector

Assume you wish to start a 2D vector, m*n, with a value of 0. We could do it. #include<iostream> int main(){ int ...READ MORE

Jun 27, 2022 in C++ by Damon
• 4,960 points
1,515 views
0 votes
0 answers

How to remove a underline from a link in HTML?

how to remove the underline from a ...READ MORE

Jul 5, 2022 in HTML by Tejashwini
• 5,380 points
1,212 views
0 votes
1 answer

What is DevOps tools?

A DevOps Tool is an application that ...READ MORE

Jan 4, 2023 in DevOps & Agile by Edureka
• 12,730 points

edited Mar 5, 2025 1,664 views
0 votes
0 answers

how to create a HTML5 video element without it being shown in the page?

how is it possible to dynamically create ...READ MORE

Jul 5, 2022 in HTML by Tejashwini
• 5,380 points
1,212 views
0 votes
1 answer

Uncaught TypeError: Cannot read property 'value' of null

As you have not shared your HTML ...READ MORE

Feb 22, 2022 in Java by Aditya
• 7,680 points
6,908 views
0 votes
0 answers

How do I resolve git saying "Commit your changes or stash them before you can merge"?

I made some changes to my local ...READ MORE

May 13, 2022 in Git & GitHub by Kichu
• 19,040 points
3,371 views
0 votes
0 answers

Responsive css background images

I have a website (g-floors. EU) and ...READ MORE

Jul 8, 2022 in CSS by Edureka
• 13,730 points
1,067 views
0 votes
1 answer

Error "Microsoft Visual C++ 14.0 is required (Unable to find vcvarsall.bat)"

For pip, use the binary-only option.  ...READ MORE

Jun 14, 2022 in C++ by Damon
• 4,960 points
2,068 views
0 votes
0 answers

How do i view country flags on windows 10 through HTML?

suggest me a way to make the ...READ MORE

Jul 7, 2022 in HTML by Tejashwini
• 5,380 points
1,119 views
0 votes
0 answers

How to show values from a MySQL database table inside a HTML table on a webpage?

How can I get all the field ...READ MORE

Jul 4, 2022 in HTML by Tejashwini
• 5,380 points
1,245 views
0 votes
1 answer

CSS horizontal scroll

You can use display:inline-block with white-space:no ...READ MORE

Jun 28, 2022 in CSS by Edureka
• 12,730 points
1,570 views
0 votes
0 answers

Function definition syntax confuse in Typescript

I figure that out: One post in ...READ MORE

Jul 5, 2022 in TypeSript by Nina
• 3,060 points
1,201 views
0 votes
1 answer

How do I assign jQuery slider handle values with their left or right edges, instead of their centers?

This is far from perfect yet it ...READ MORE

Jun 2, 2022 in JQuery by Edureka
• 13,690 points
2,584 views
0 votes
0 answers

Error occurred during initialization of boot layer FindException: Module not found

I executed this command line: java --module-path bin ...READ MORE

May 13, 2022 in Java by Kichu
• 19,040 points
3,426 views
0 votes
1 answer

Extend SchemaDirectiveVisitor To Use Apollo Server Schema Directives in NodeJS

Because the ApolloServer class lacks a SchemaDirectiveVisitor ...READ MORE

Jun 17, 2022 in Node-js by Neha
• 9,020 points
1,949 views