All Questions

3
answers

Error typing GIT PUSH

I'm on my machine and I want to upload the files on my local machine to my repository at github.com . I have already executed the commands git add , git commit and only need to upload them. When I run git remote -v , it...
asked on 15.03.2017 / 19:01
5
answers

What's the difference between starting an empty room and starting right with the value?

I see things like: $arr = []; $var = ''; $var; $var = null; What's the difference between starting the variable like this: $var = ''; $var = 'teste'; And start like this: $var= 'teste';     
asked on 20.10.2017 / 17:10
6
answers

Why can not I define an interface with static methods?

I would like to force some of my classes to be implemented in Singleton, but I came across the following situation. interface ICharacterSingleton{ static Characters getInstancia(); } public static class Zero extends Characters implements...
asked on 18.07.2014 / 00:07
3
answers

How to identify which city the user is? [duplicate]

In some sites of purchases / services is made an identification or suggestion of the city that the user is to be able to show only the specific products / services of the city of the user. Detail, this will be used only for non-registered u...
asked on 29.12.2015 / 18:55
4
answers

Security - What is a KEY API?

I'm seeing this word in almost every service application .. What really is a KEY API and what are its uses? How does it really work? Also please, if possible, explain the difference between public and private API KEYs.     
asked on 26.08.2016 / 13:36
3
answers

What purpose of unsigned in C ++

What is the purpose of unsigned in C ++? Example: unsigned char ch2;     
asked on 30.07.2015 / 16:05
1
answer

What are Python 3.8 Assignment Expressions?

Assignment expressions are defined in the PEP 572 that was approved to be implemented in version 3.8 of Python. But what are the assignment expressions and when should they be used? What kind of problem does your implementation seek t...
asked on 25.08.2018 / 00:41
2
answers

What are the parameters out and ref

What are the ref and out parameter types of a method in C #? What's the difference between the two? Some examples of use of each.     
asked on 26.08.2015 / 14:08
4
answers

What are semaphores in programming?

In a series of questions I asked to ask questions about parallelism, asynchronism, threads, and the like, I came across a lot of new knowledge and a lot of new terms. In this answer for example, someone makes an indication of the term traf...
asked on 08.06.2017 / 18:54
3
answers

Comparison between a numeric and an alphanumeric string

The following operation returns true: var_dump("1" == "1e0"); //1 == 1 -> true But if I add an "e" at the end of the second string, it returns false: var_dump("1" == "1e0e"); //1 == 1 -> false??? If you do the following, return 2...
asked on 26.08.2014 / 19:58