All Questions

2
answers

What is the difference between assigning and comparing string variables with function or with assignment and comparison operator?

I came across the following questions: What is the difference between the expressions strcpy (s, t) e s = t ? What is the difference between the expressions if (strcmp (s, t) < 0) e if (s < t)  ? I tried to compile...
asked on 11.08.2015 / 00:44
2
answers

What does the exclamation point after the name of a type mean?

I've seen a lot in Kotlin types marked with an exclamation mark at the end. Especially when using Java APIs. Something like CharSequence! What does this mean?     
asked on 27.07.2018 / 02:17
4
answers

Create Windows Self-Upgradable Service

I would like to know the recommended procedure for a Windows service to self-update. The main questions are: After the service download a new version of it, how to stop the service and restart it with the new version? What procedures do...
asked on 08.10.2015 / 20:31
2
answers

Procedural generation

In games like minecraft, cube world and starbound there is the term "Map procedurally generated". As you walk during the game, the map is created, but with a "seed" that will always generate the same map. > How can you use a small set of chara...
asked on 02.07.2014 / 19:52
5
answers

Does PHP only connect to MySQL?

I've never seen PHP connect using other databases, such as Oracle for example. In MySQL, to connect, is mysqli connect used, and if it was in another? PHP is integrable with which database?     
asked on 23.06.2017 / 18:35
2
answers

What is CSRF attack and what damage can it cause?

I'm seeing some people mentioning the CSRF attacks here on Stack Overflow. What I would like to know is: What is a CSRF attack ? How is it done? What damage can it cause? How can I prevent CSRF attacks?
asked on 04.03.2016 / 03:08
2
answers

What's the difference in declarations with [] and {} in JavaScript?

var a=[] var b={} What's the difference in declarations with [] and {} in JavaScript? And in which context is it best to use each? Question in English: SOen     
asked on 20.11.2017 / 23:20
3
answers

Contains in Java, how to fetch a text in an ArrayList?

In C # there is the method contains of System.Linq that searches for text in a list, did the tests in Java and did not find a similar form even knowing that in Java 8 has expression, is there any way to do this with expression in Java?...
asked on 25.01.2017 / 14:23
2
answers

What is the difference between event handlers in the DOM?

I would like to know the difference between, for example, <p onclick="fn()">click</p> , addEventListener('click', fn()); and document.getElementById().onclick = fn(); . Is there any relationship with performance...
asked on 18.11.2015 / 00:28
4
answers

Why is this SQL statement incorrect?

SELECT * FROM produtos WHERE categoria = 'Vestidos' AND cor = 'Branco' OR cor = 'Rosa' Returned 3 records, 2 of them in the Dresses category and 1 in the Shoes category. Why did not you just return from the Dresses category since I inst...
asked on 24.04.2015 / 19:29