All Questions

1
answer

Is there something like the C # namespaces in Java?

I noticed the size of the command to put a message on the screen in Java, I wonder if it has any way to decrease? As in C # the programmer puts the word using "namespace"; and you can use the "shortened" command. Eg to print the Hello...
asked on 13.08.2018 / 01:04
2
answers

Difference between commands to stop execution

I've noticed that there are several ways to stop a run. Basically what is the difference between using the commands: break; sys.exit () (From the sys module); os._exit () (From the the module); exit (); quit (); I...
asked on 24.10.2018 / 16:59
2
answers

GET, POST or PUT, which one to use for issuing an invoice?

What should I use when the intent is not to view, save, and update data? I am creating an API that makes the electronic invoice issue, I did the full CRUD for the information of the notes, but now I need to create a resource that transmits th...
asked on 31.07.2018 / 22:14
1
answer

SonarLint, complexity of the "equals ()" method

SonarLint for Eclipse, accuses the error:    Refactor this method to reduce its Cognitive Complexity from 64 to the   15 allowed.       Rewrite this method to reduce your cognitive complexity from 64   for 15 allowed That is, my method h...
asked on 13.08.2018 / 15:13
2
answers

Download during installation by Inno Setup

Working in a company that uses Inno Setup to create the installers for your products, I was recently tasked with creating a better installer, one of the improvements that was suggested would be to download a plug-in during the installation proce...
asked on 23.11.2016 / 18:59
2
answers

How can I clone cards on my site?

What is happening is as follows. I am currently trying to solve a big problem, two of the virtual stores of the company that I attend have problems with card cloning. I do not have much experience in this, but I will explain how the card system...
asked on 06.09.2018 / 19:19
2
answers

HttpStatusCode class does not exist code 207, 208 and 226

What to do when the HttpStatusCode class does not exist the 207 , 208 and 226 Someone already asked the question in GitHub: link , it seems to me that they did not do an "update". Here is the code: HttpResponseMessage response =...
asked on 04.09.2018 / 17:39
1
answer

how to increase the ifelse limit in R?

I need to calculate the years of study from the PNAD questionnaire. I made a programming similar to this below, but I have many ifelse within the other (121 to be exact), because I have a larger chain of questions, but R does not calculate be...
asked on 05.12.2016 / 00:55
1
answer

Reduce a string in C language

How do I reduce the size of a string in C? In my program it is implemented as follows: char nomeString[] = "nomedoarquivo.txt"; I want to cut the ".txt" from the end of the string .     
asked on 27.11.2016 / 17:42
1
answer

Emphasis on cmd return

Considering a method to list the files of a folder using ProcessBuilder I have the incorrect return of the accented words. Code import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import jav...
asked on 27.11.2016 / 07:36