Trending questions in Edureka Community

0 votes
1 answer

How to generate the "create table" sql statement for an existing table in postgreSQL

Create a table for a demo: CREATE TABLE ...READ MORE

Jun 20, 2022 in Others by nisha
• 2,210 points
534 views
0 votes
1 answer

What is a Class and Object in C++?

A Class is like a blueprint, an ...READ MORE

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

How to append to New Line in Node.js

Hello @kartik, you're running this on Windows (given ...READ MORE

Sep 7, 2020 in Node-js by Niroj
• 82,840 points
28,631 views
0 votes
0 answers

How can I vertically center a div element for all browsers using CSS?

I want to center a div vertically with CSS. ...READ MORE

Jun 22, 2022 in CSS by Edureka
• 13,620 points
464 views
0 votes
0 answers

How to use __dir__?

I want to use __dir__. I don't ...READ MORE

Jun 25, 2022 in PHP by narikkadan
• 63,600 points
353 views
0 votes
0 answers

How to connect MySQL db using new XAMPP

What is the best way to connect ...READ MORE

Jun 26, 2022 in PHP by narikkadan
• 63,600 points
304 views
0 votes
0 answers

Creating a config file in PHP

I am working on creating config file ...READ MORE

Jun 24, 2022 in PHP by narikkadan
• 63,600 points
392 views
0 votes
1 answer

jQuery if checkbox is checked

for jQuery  if ($('input.checkbox_check').prop('checked')) { ...READ MORE

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

Make an image responsive - the simplest way

You can try doing <p> <a href="MY ...READ MORE

Jun 21, 2022 in CSS by Edureka
• 12,690 points
484 views
0 votes
1 answer

How to create enum type in TypeScript?

TypeScript 0.9+ has a specification for enums: enum ...READ MORE

Jun 8, 2022 in TypeSript by Nina
• 3,060 points
1,039 views
0 votes
1 answer

What is this weird colon-member (" : ") syntax in the constructor?

Foo(int num): bar(num) In C++, this is known as a Member Initializer List. Simply put, it sets the value of your member bar to num. There is a significant difference between initializing a member with the Member initializer list and assigning a value to it within the function Object() { [native code] } body. When you use the Member initializer list to initialise fields, the constructors are only called once, and the object is constructed and initialised in a single operation. If you use assignment, the fields will be initialised with default constructors and then reassigned with actual values (via the assignment operator). As you can see, there is an extra overhead of creation and assignment in the latter, which may be significant for user defined classes. Cost of Member Initialization =Object ...READ MORE

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

How to distinguish between left and right mouse click with jQuery

Using the mousedown() method: The mousedown() method in ...READ MORE

Jun 14, 2022 in JQuery by gaurav
• 23,260 points
783 views
0 votes
1 answer

Explanation of function pointers

It's a little perplexing. Function type and pointer to function type are distinct kinds (no more similar than int and pointer to int).  However, in virtually all cases, a function type decays to a reference to a function type.  In this context, rotting roughly refers to conversion (there is a difference between type conversion and decaying, but you are probably not interested in it right now). What matters is that practically every time you use a function type, you end up with a reference to the function type.  But take note of the nearly - almost every time is not always! And there are rare circumstances where it does not. typedef void(functionPtr)(int); functionPtr fun = function; This code tries to clone one function to another (not the pointer! the function!)  However, this is not feasible since functions in C++ cannot be copied.  The compiler does not let this, and I'm surprised you got it compiled (you say you got linker errors?) Now for the code: typedef void(functionPtr)(int); functionPtr function; function(5); function does ...READ MORE

Jun 21, 2022 in C++ by Damon
• 4,960 points
484 views
0 votes
0 answers

What does this mean in PHP: -> or =>

Possible duplicate: where we use object operator “->” ...READ MORE

Jun 18, 2022 in PHP by narikkadan
• 63,600 points
650 views
0 votes
1 answer

Jquery and Menu and logo

Seems your anchor tag is not visible ...READ MORE

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

JQuery string contains check

In this case, we will use the includes() ...READ MORE

Jun 14, 2022 in JQuery by rajatha
• 7,680 points
752 views
0 votes
0 answers

PHP Unset Session Variable

I am working on creating a product ...READ MORE

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

To speed up the tapply function in R, or another function to convert data frame into a matrix

I must turn a sizable dataset into ...READ MORE

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

Making text in one column italics with CSS

What you can do is using the td:nth-child() to ...READ MORE

Jun 17, 2022 in CSS by Edureka
• 12,690 points
621 views
0 votes
1 answer

browser.msie error after update to jQuery 1.9.1

Since $.browser is deprecated, here is an ...READ MORE

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

How to combine input:after:focus pure css?

One method is to create an element ...READ MORE

Jun 1, 2022 in CSS by Edureka
• 12,690 points
1,308 views
0 votes
0 answers

java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver

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

May 7, 2022 in Java by narikkadan
• 63,600 points
2,446 views
0 votes
1 answer

Difference between :hidden and :not(:visible) in jQuery

During animations that hide an element, the ...READ MORE

Jun 14, 2022 in JQuery by gaurav
• 23,260 points
763 views
0 votes
1 answer

Changing column names of a data frame

import pandas as pd #define DataFrame df = pd.DataFrame({'team':['A', ...READ MORE

Jun 24, 2022 in Data Science by Sohail
• 3,040 points
532 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
655 views
0 votes
0 answers

What is meant by "An Object" when we use Str() Function in R

Everyone agrees that str() reveals an object's ...READ MORE

Jun 23, 2022 in Data Analytics by avinash
• 1,840 points
380 views
0 votes
1 answer

C++ - Overloading vs Overriding in Inheritance

In C++, a derived class's method only overrides the base class's method if their declarations match (I say "match," but I'm not sure what the formal term is).  That is, all arguments must be of the same type, with the same const qualification.  If there are any mismatches, the derived class's method hides all methods with the same name rather than overriding.  This is what the "ERROR" in your image is attempting to convey.  So, in that image, / overrides in a comment is incorrect and misleading. Yes, many C++ instructors are unaware of these somewhat esoteric details. Furthermore, if you want to override, your base class's method must be virtual; otherwise, polymorphism will not work.  We could also say that the derived-class method hides the base-class method if it wasn't virtual.  The part about hiding, on the other hand, has almost no meaning here; what this term really means is that you're not in charge. Furthermore, overloading is the presence of multiple methods with the same name but different signatures, as you may have noticed. To be useful, they must all be present in the derived class; otherwise, they will be hidden if the derived class only has one method, fa1, and the other fa1 are in the base.  There is, however, a syntax sugar that "copies" all fa1 from the base to the derived. class A { public: void fa1(); ...READ MORE

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

C++ override inherited methods

Child::init is now concealing Father::init and not overriding it.  In order to receive dynamic dispatch, your init member function must be virtual: virtual void init () { ...READ MORE

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

Selenium C# tests in Browserstack

Try this and make changes according to ...READ MORE

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

there is tutorial for PURE node.js?

When it comes to pure node.js, the ...READ MORE

Jun 16, 2022 in Node-js by Neha
• 9,020 points
663 views
0 votes
1 answer

Position a CSS background image x pixels from the right?

The attribute border can be used as ...READ MORE

Jun 10, 2022 in CSS by Edureka
• 12,690 points
921 views
0 votes
1 answer

Mean of categorical variables from plyr package

df<-data.frame(risk= rep(c("ADV","HHM","POV"),10), ...READ MORE

Jun 24, 2022 in Data Analytics by Sohail
• 3,040 points
448 views
0 votes
0 answers

paste() within another function

I'm not clear why the first function ...READ MORE

Jun 24, 2022 in Data Analytics by Avinash
• 1,260 points
340 views
0 votes
0 answers

How to list all background pids in bash

Either I am not able to phrase ...READ MORE

Jun 22, 2022 in Linux Administration by Korak
• 5,820 points
417 views
0 votes
1 answer

Converting Excel Date Serial Number to Date using Javascript

Please do try this : function ExcelDateToJSDate(serial) { ...READ MORE

Apr 11, 2022 in Database by gaurav
• 23,260 points
3,494 views
0 votes
1 answer

How to use new[ ] and delete[ ] operator in C++

int main(){ char *str; ...READ MORE

Jun 20, 2022 in C++ by Damon
• 4,960 points
572 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
642 views
0 votes
1 answer

How to find the extension of a file in C#

Go to here https://docs.microsoft.com/en-us/dotnet/api/system.io.path.getextension?redirectedfrom=MSDN&view=net-6.0#System_IO_Path_GetExtension_System_String_ string myFilePath = @"C:\MyFile.txt"; string ext ...READ MORE

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

nodeJs callbacks simple example

var myCallback = function(data) { console.log('got ...READ MORE

Jun 17, 2022 in Node-js by Neha
• 9,020 points
591 views
0 votes
1 answer

Nodemailer with Gmail and NodeJS

I fixed it by going to the ...READ MORE

Jun 10, 2022 in Node-js by Neha
• 9,020 points
916 views
0 votes
1 answer

How to use Jsonwebtoken NPM package to verify JWT token issued by Azure AD?

Okay so I have found out the ...READ MORE

Mar 29, 2022 in Azure by Edureka
• 12,690 points
4,177 views
0 votes
1 answer

How do I implement JQuery.noConflict() ?

You can of course still use jQuery, ...READ MORE

Jun 16, 2022 in JQuery by rajatha
• 7,680 points
660 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
• 23,260 points
933 views
0 votes
0 answers

What is autoload in php?

What is autoload in PHP? READ MORE

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

jQuery/JavaScript to replace broken images

To replace broken images in JavaScript, the ...READ MORE

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

How can I get the directory where a Bash script is located from within the script itself?

How do I get the path of ...READ MORE

Jun 21, 2022 in Linux Administration by Korak
• 5,820 points
457 views
0 votes
1 answer

Questions every good .NET developer should be able to answer

I have this great link for answers related ...READ MORE

Jun 23, 2022 in C# by krishna
• 2,820 points
590 views
0 votes
0 answers

Bash script command result inside other variable to define prompt

I would like to define a prompt ...READ MORE

Jun 22, 2022 in Linux Administration by Korak
• 5,820 points
403 views
0 votes
1 answer

tidyr: using mutate inside a function

We could translate it to a symbol ...READ MORE

Jun 24, 2022 in Data Analytics by Sohail
• 3,040 points
516 views
0 votes
0 answers

Convert PDF to DOC (Python/Bash)

I've saw some pages that allow user ...READ MORE

Jun 21, 2022 in Linux Administration by Korak
• 5,820 points
452 views