Category: Programming Related

Ask or post questions on anything which comes under programming,if you come across any programming bugs or for logic building also you can post your queries here.for example c,c++,java.

Discy Latest Questions

  • -2

im just stuck at programming to solve quadratic equation,im doing this on C language,can anyone show a example C program to solve quadratic equation and if there is algorithm that would be a real help…

im just stuck at programming to solve quadratic equation,im doing this on C language,can anyone show a example C program to solve quadratic equation and if there is algorithm that would be a real help…

Read less
  • 0

in python what is method inside class ? is method outside the class and inside the class same ?what is method inside a class called ? what is the access limits does the method inside a class have? can anyone show ...Read more

in python what is method inside class ? is method outside the class and inside the class same ?what is method inside a class called ? what is the access limits does the method inside a class have?

can anyone show a example program method inside class?

Read less
  • 0

python.h’ file not found.During the installation process of python opencv 4.4.0,I got that error. Did i Miss installation of python.h’ file,is that the reason i got that issue…. Look at the command prompt /opencv/modules/python/src2/cv2.cpp:6:10: fatal error: ‘Python.h’ file not found #include <Python.h> or ...Read more

python.h’ file not found.During the installation process of python opencv 4.4.0,I got that error. Did i Miss installation of python.h’ file,is that the reason i got that issue….

Look at the command prompt

/opencv/modules/python/src2/cv2.cpp:6:10: fatal error:
‘Python.h’ file not found
#include <Python.h>

or am i installing a wrong opencv ?

Read less
  • 0

How we can schedule a post request in node.js,so that the data get printed on website in every 24 hours. Or any given schedule time,the data should be printed.

How we can schedule a post request in node.js,so that the data get printed on website in every 24 hours. Or any given schedule time,the data should be printed.

Read less
  • 0

Java Rule ‘Null pointers should not be dereferenced’ and my sonar version is SonarLint IntelliJ 4.0.0.2916 I’m getting the following error java null exception specifically “fault in the next code when obj can’t be null in any scenario. Seems the analizer ...Read more

Java Rule ‘Null pointers should not be dereferenced’ and my sonar version is SonarLint IntelliJ 4.0.0.2916

I’m getting the following error java null exception specifically “fault in the next code when obj can’t be null in any scenario. Seems the analizer don’t recognice the logic with the funcional object Optional”.

final Obj obj = Optional.ofNullable(oldObj).orElse(new Obj());

if (obj.getSomeProperty() == null) {

Im using null to validate but why is this error “null pointers should not be dereferenced sonar” can anyone help me fix this error….

Read less
  • 0

Last night im trying to set java build with c/c++ and i faced this exception error “get java.lang.NullPointerException” build env in CDT 8.0.2 for Eclipse Indigo, And I downloaded pacakage from http://www.eclipse.org/downloads/packages/eclipse-ide-cc-developers-includes-incubating-components/indigosr2, after un-zip the file, also installed GEF and ...Read more

Last night im trying to set java build with c/c++ and i faced this exception error “get java.lang.NullPointerException” build env in CDT 8.0.2 for Eclipse Indigo, And I downloaded pacakage from http://www.eclipse.org/downloads/packages/eclipse-ide-cc-developers-includes-incubating-components/indigosr2, after un-zip the file, also installed GEF and clearcase Team Explorer.

To reproduce
1. create a clear case view and load the source files
2. in C/C++ perspective, click File – New — Make file project with existing code
3. choose the source folder from the view created, click ok, project created
4. right click project name in project explorer, select properties
5. click C/C++ build, get java.lang.NullPointerException

How can i get rid of this exception am i missing any thing ??

Read less