All Questions

2
answers

How to avoid very great victory condition in the old woman's game?

I made a game of the old one that verifies the conditions of victory of the user with if , however I did not find an elegant solution. I am trying to develop a method to check the win condition with array , however I am not succeeding, fo...
asked on 16.11.2016 / 22:48
2
answers

Difference between BackgroundWorker and Task.Run

Generally when I had to do some operation in background , mainly involving progress bar update or labels I used BackgroundWorker , with its events WorkerReportsProgress and DoWork . Recently I came across the source of a...
asked on 31.10.2016 / 17:48
2
answers

What is the name of the concept used in this code?

If I create for example two classes and put the Funcionario class with a Empregado variable in the Empresa class, what is the meaning of this and what is it for? class Funcionario { String nome; String cpf; } class...
asked on 18.07.2016 / 22:58
2
answers

GroupBy in Javascript

I'm getting the following result from a query: [ { "disciplina": "Portugues", "periodo": "1º Bimestre", "tipo": "1ª avaliacao", "valor": 9.5 }, {...
asked on 04.02.2017 / 01:32
1
answer

Why do they say that $ _GET in PHP is insecure against sql injection?

Well, my question is simple. I've been lately hearing many stories saying that $ _GET in PHP is insecure against sql injection. Could you tell me why? Thank you.     
asked on 06.03.2017 / 23:47
3
answers

How to compare 2 Arrays with Assert.Equals?

I need to compare two arrays in Assert.Equals . When I test the method on the race, it is correct but the test does not pass. Code: public void SeparaStringTest() { RecebeComando recebecomando = new RecebeComando(); string[]...
asked on 16.03.2017 / 13:07
2
answers

How to hide a string in C, so it is not readable in compiled code?

I have a string Hello World , but I do not want to save it as Hello World in C, I would like to save it as some base64, aes or binary value, or similar, so that it would not be readable in code . How can I save this string, and r...
asked on 21.07.2016 / 20:45
3
answers

AJAX with HTML data return

I have an AJAX function: function userCheck() { var username = $("#username").html(); var userid = $("#balmung-id").val(); $.ajax({ url: "systems/usercheck.php", type: 'POST', data: { username:...
asked on 22.12.2016 / 12:27
2
answers

How to solve the error Call to undefined function mysql_connect () [duplicate]

I'm doing an IT inventory to register and I want to connect to the database, but it's giving this error:    Fatal error: Uncaught Error: Call to undefined function   mysql_connect () in C: \ xampp \ htdocs \ xampp \ cadastrando.php: 9 Stack...
asked on 22.12.2016 / 15:20
4
answers

Drawing with CSS

Is there any way to draw a sheet like the image below using CSS?     
asked on 18.10.2016 / 14:51