All Questions

2
answers

Why is it necessary to close the file?

Why is this line required in Java? fout.close(); Context: LinkedList values = new LinkedList(classe.getTurma().values()); if (!values.isEmpty()) { FileOutputStream fout = null; String FILE = "TURMA"; try {...
asked on 30.11.2017 / 17:59
3
answers

Escape Single and double quotes from the same text area giving crlt + V

// I want to just not let you enter single quotes and double quotes $('#bot').keypress(function (e) { var regex = new RegExp("^[a-zA-Z0-9-]+$"); var str = String.fromCharCode(!e.charCode ? e.which : e.charCode); if (regex.test(str)...
asked on 09.05.2018 / 18:50
3
answers

Generate an xml in C # [closed]

I need to create an application where the data will be saved to a local xml and then sent to a server using a wcf. But I have the following doubt what I do in the client and what I do in the service (wcf). I'm new to this area and I have no idea...
asked on 03.05.2016 / 15:38
4
answers

Read Internal File name [closed]

I need to read the name of the files contained within a package, for example, read the name file01.txt , as in the image below: So I can scroll through the arquivos package without having to name a file for reading.     
asked on 19.10.2016 / 19:31
5
answers

Difference between back-end and front-end? [duplicate]

Well, there's a home page that has 3 filters: (select) Property Type: House or Apartment (select) Business Type: Buy or Rent (input) City or neighborhood The person enters the 3 search parameters and clicks the "search" button. Next...
asked on 03.06.2016 / 20:05
2
answers

Difference between std :: cout and cout?

EmCc ++ because some use std::cout and others use only cout is only what the programmer thinks is best?     
asked on 07.09.2016 / 22:54
2
answers

Regular expression 6 decimal places

Can someone tell me if it is possible to create a regular expression with the following features: value between 31.000000 and 43.000000 The value may have 6 decimal places, but should be in the range of 31 to 43. What I have is the foll...
asked on 13.02.2018 / 15:25
3
answers

Use free () without malloc ()?

Could it be a problem to use free() on a pointer that was not allocated with malloc() beyond the unnecessary itself? void funcao (int par) { char *palavra; if(par%2 == 0) { palavra = malloc(3*sizeof(char))...
asked on 29.07.2016 / 16:12
2
answers

Explain in a simpler way what these attacks are?

I'd like to know in a simpler way what these types of attacks are. Keylogger Brute force attack Rubber Hose Cryptanalysis Sql injection And please, if you can go deeper into the subject, you could tell me a simple example of how to...
asked on 23.05.2016 / 21:16
2
answers

Arc tangent function in C #

I made the following calculations on the calculator: arctg(50/10) = 78,69° However, when doing in code, using the function Math.Atan , the result is as follows: Is there any other way to do the Tangent Arch calculation?     
asked on 16.02.2017 / 20:16