Trending questions in Edureka Community

0 votes
1 answer

Is there an easy way to convert jquery code to javascript?

To toggle a class to an html ...READ MORE

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

Mixing JavaScript and TypeScript in Node.js

Combine the following TypeScript compiler options --allowJs Explicitly supports ...READ MORE

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

C++ pointer to objects

Is it always necessary in C++ to  ...READ MORE

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

What is compile-time polymorphism and why does it only apply to functions?

"Compile time polymorphism" used to signify function overloading.  It only applies to functions because that's all you can overload. Templates in modern C++ modify this.  One example has previously been provided by Neil Butterworth.  Another technique is template specialisation.  As an example: #include <iostream> #include <string> template <class T> struct my_template { ...READ MORE

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

What are DDL and DML?

DDL DML DDL stands for Data Definition Language. DML stands ...READ MORE

Jun 1, 2022 in Others by Sohail
• 3,040 points
2,420 views
0 votes
1 answer

How to style a checkbox using CSS?

Add focus outline input[type="checkbox"]:focus + span:before { ...READ MORE

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

What is the STL?

I'm not a C++ coder, thus I ...READ MORE

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

C++ interview preparation

If there is ever a point that ...READ MORE

Jun 21, 2022 in C# by jyoti
• 1,240 points
1,680 views
0 votes
1 answer

What is the difference between CSS and SCSS?

CSS, or Cascading Style Sheets, is a ...READ MORE

Jun 17, 2022 in CSS by Edureka
• 12,730 points

edited Mar 5, 2025 1,614 views
0 votes
1 answer

What does the extension method do in c# and why do you need it

Extension Methods allow you to add additional ...READ MORE

Jun 21, 2022 in C# by krishna
• 2,820 points
1,674 views
0 votes
0 answers

Inline eding a column data in Power BI report

HI, Is there any way to edit the ...READ MORE

Jul 12, 2022 in Data Analytics by santosh

edited Mar 4, 2025 570 views
0 votes
1 answer

Angular ForEach in Typescript?

Try this: selectChildren(data, $event) { ...READ MORE

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

Remove all html tags from php string

I want to display the first 110 ...READ MORE

Jun 16, 2022 in PHP by narikkadan
• 86,360 points
1,516 views
0 votes
1 answer

How to implement Knn-algorithm without using k-nn function in r?

I created an example that demonstrates the ...READ MORE

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

PhpMyAdmin not working on localhost

In order to answer your question, you ...READ MORE

Feb 8, 2022 in Others by Rahul
• 9,690 points
7,194 views
0 votes
0 answers

event.preventDefault() vs. return false

When I want to prevent other event ...READ MORE

Jun 10, 2022 in JQuery by gaurav
• 25,250 points
1,962 views
0 votes
0 answers

com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource compilation failed after updating android studio

I am getting this error after updating ...READ MORE

May 13, 2022 in Others by Kichu
• 19,040 points
3,163 views
0 votes
0 answers

Extracting text based on a regex pattern with cheerio nodejs

I'm attempting to create a scraper in ...READ MORE

Jun 22, 2022 in Node-js by Vaani
• 7,070 points
1,430 views
0 votes
1 answer

How to use enums in C++

This will be sufficient to declare your ...READ MORE

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

jQuery Animate not working on background-color property

The background color animate can be performed ...READ MORE

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

Could not connect to SMTP host: smtp.gmail.com, port: 465, response: -1

I am getting this error when I ...READ MORE

May 20, 2022 in Java by Kichu
• 19,040 points
2,857 views
0 votes
1 answer

The Definitive C++ Book Guide and List

Introductory, no previous programming experience Book Author(s) Description review C++ Primer* * Not ...READ MORE

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

small-caps font in css handles numbers as capital letters

Because numbers are not letters, they do ...READ MORE

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

Abort Ajax requests using jQuery

Instead of aborting, you can choose to ...READ MORE

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

Installing angularjs with NPM and NODEJS brings an error in ubuntu 16.04

Rename your angular folder to angular-test or ...READ MORE

May 30, 2022 in Node-js by Vaani
• 7,070 points
2,383 views
0 votes
1 answer

Ternary operator ?: vs if...else

It's not any faster.  There is one difference when you can initialize a constant variable using an expression: const int x = (a<b) ? b ...READ MORE

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

Encapsulation of subclasses from a constructor in C#

If you think about it in terms ...READ MORE

Jun 11, 2022 in C# by pranav
• 2,590 points
1,893 views
0 votes
0 answers

php create object without class

How can I create an object in ...READ MORE

Jun 20, 2022 in PHP by narikkadan
• 86,360 points
1,414 views
0 votes
1 answer

The Definitive C++ Book Guide and List

For Beginner (includes those without coding experience) Programming: ...READ MORE

Jun 6, 2022 in C++ by pranav
• 2,590 points
2,212 views
0 votes
0 answers

R console output only shows most recent command in "if" condition

In RStudio, if I execute this code: "1 ...READ MORE

Jul 5, 2022 in Data Science by avinash
• 1,840 points
869 views
0 votes
1 answer

Using dcast to widen a data frame

> dcast(z, id ~ item, value.var="freq") ...READ MORE

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

Multi-line strings in PHP

Consider: $xml = "l"; $xml = "vv"; echo $xml; This will ...READ MORE

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

Find PHP version on windows command line

I wanted to know the version of ...READ MORE

Jun 14, 2022 in PHP by narikkadan
• 86,360 points
1,707 views
0 votes
1 answer

What is the difference between a field and a property

The internal workings of a class should ...READ MORE

Jun 21, 2022 in C# by jyoti
• 1,240 points
1,646 views
0 votes
1 answer

When to use margin vs padding in CSS ?

MARGIN vs PADDING : Margin is used in an element to ...READ MORE

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

How to add multiple lines in a file using Ansible playbook?

Hi@akhtar, You can update your file using lineinfile ...READ MORE

Sep 16, 2020 in Ansible by MD
• 95,460 points
29,193 views
0 votes
1 answer

How to increase maximum execution time in php

Add this at the top of your PHP ...READ MORE

Jun 18, 2022 in PHP by Kithuzzz
• 38,000 points

edited Mar 5, 2025 1,590 views
0 votes
1 answer

Why do we need virtual functions in C++?

A virtual function is a base class member function that we expect to redefine in derived classes. In the base class, a virtual function is used to ensure that the function is overridden.  This is especially true when a pointer from a base class points to an object from a derived class. For example, consider the code below: class Base ...READ MORE

May 27, 2022 in Others by Damon
• 4,960 points
2,504 views
0 votes
1 answer

What happens when prob argument in sample sums to less/greater than 1?

Excellent query. The documentation is ambiguous on ...READ MORE

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

C++ auto keyword. Why is it magic?

Auto was a keyword that C++ "inherited" from C and had been around for a long time but was almost never used because there were only two possibilities: it wasn't allowed or it was assumed by default. C++11 introduced the usage of auto to denote an inferred type. Similarly to how template type deduction works for function templates, auto x = initializer deduces the type of x from the type of initializer.  Consider the following function template: template<class T> int whatever(T t) { ...READ MORE

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

Plot correlation matrix using pandas

Just use pyplot.matshow() from matplotlib: import matplotlib.pyplot as plt plt.matshow(dataframe.corr()) plt.show() If df.corr() ...READ MORE

Apr 28, 2022 in Python by narikkadan
• 86,360 points
3,813 views
0 votes
0 answers

Transparent box or an image with HTML or CSS

I have no idea about creating a ...READ MORE

Jul 4, 2022 in HTML by Tejashwini
• 5,380 points
892 views
0 votes
0 answers

What's the difference between :: (double colon) and -> (arrow) in PHP?

I know that there are two distinct ways ...READ MORE

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

Showing all errors and warnings

The following script is generating a warning ...READ MORE

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

Show a number to two decimal places

What's the correct way to round a ...READ MORE

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

Knex NodeJS and inserting into the database

Here is my first attempt at setting ...READ MORE

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

How to change default integreated terminal in VS Code to kitty, on Linux?

I'm using kitty (it's a terminal) on ...READ MORE

Apr 26, 2022 in Linux Administration by Edureka
• 13,690 points
3,811 views
0 votes
0 answers

How to write into a file in PHP?

I have this script on one free ...READ MORE

Jun 20, 2022 in PHP by Kithuzzz
• 38,000 points
1,393 views
0 votes
0 answers

Laravel/ MSSQL (AWS RDS) General error: 20018 Unicode data

I'm using SQL Server with a Laravel ...READ MORE

Apr 25, 2022 in AWS by Aditya
• 7,680 points
2,308 views
0 votes
1 answer

When to use IMG vs. CSS background-image?

You can transition a div's background image ...READ MORE

Jun 10, 2022 in CSS by Edureka
• 12,730 points
1,876 views