All Questions

2
answers

What does it mean in PHP?

I came across the following calculation being assigned to a variable (1103515245 * $num + 12345) % (1 << 31) What do these << mean?     
asked on 04.03.2015 / 19:09
3
answers

What is Front-end and Back-end? [duplicate]

I'm beginning to study WEB and I still lack a lot of knowledge, and right from the start I came across the terms that are highly used in this WEB development world, which are Front-end and Back-end , I have read a few articles about it,...
asked on 24.12.2015 / 15:28
4
answers

Principle of Delegation, what is it?

What does Delegation Principle mean in Object Oriented Programming? After some research, I found a definition of this principle:    Delegation Principle: way to make composition as powerful for reuse as inheritance. I found an example...
asked on 17.09.2015 / 20:09
2
answers

Why are implemented methods of an interface can not be private?

When I implement an interface in my class, why its implemented methods can not be private / protected / etc? And another doubt, when I implement an interface method explicitly, why can not this method be public ? Example: interface...
asked on 17.04.2015 / 00:27
4
answers

What technique do you use to keep fields in a form filled or selected after $ _POST []? [duplicate]

I'm developing a real estate system and would like to ask how can I keep data for a form such as inputs , selects and checkbox selected after giving $_POST on the form. I do not know how to store this data for all...
asked on 18.11.2015 / 18:06
2
answers

How to add static methods in interface?

I have my following method: public static CloudStorageAccount GetAccount() And in my Interface : public interface IAzureStorangeService { CloudStorageAccount GetAccount() } But the compiler accuses that the method was...
asked on 18.11.2014 / 16:31
2
answers

How do I get the position of a user individually in a rank, if in the database I only have your score?

With the code below I can display all users, because I put DESC and variable $num and it increments the placement with $num++; . But what if I want to get the / rank from the guy who is logged in ($_SESSION) and n...
asked on 30.04.2014 / 18:24
2
answers

How does GroupBy work in LINQ?

I'm having trouble understanding the GroupBy operator in LINQ.     
asked on 26.08.2015 / 21:23
3
answers

Insert data from a string into a table

I have a text file that I read and set it to a string texto so that it looks like this: {nome="Cassio",sexo="M",idade=19} {nome="Paula",sexo="F",idade=20} And I used the following code to add each line of that string to a position i...
asked on 03.05.2014 / 18:43
1
answer

Why Math.round (-0.2) returns "-0" instead of "0"

I had a problem with Javascript today that I will describe: I have a collection of values, for example: US 11.3123 Brazil -0.2291 UK 0.4501 I want to display the values without the decimal places, rounding up, and th...
asked on 26.03.2014 / 02:31