All Questions

3
answers

Mixing HTTP with HTTPS is a problem?

On my site I'm using normal links HTTP , however where it contains data transaction, such as in forms, for example HTTPS use of a shared SSL certificate provided by my server hosting. I do not want to keep it this way, I'll soon...
asked on 17.10.2017 / 12:29
1
answer

Why is the use of "break" bad?

In many places I've heard several comments about this, such as: "Professional programmer does not use break" "Code is not good when you see a break" Why is the use of break so frowned upon by most developers? Personally I do n...
asked on 29.05.2016 / 03:14
6
answers

How to make a custom ScrollBar?

How to modify the scrollbar of a div , to appear as in the example of the image below (Hangouts) instead of the default operating system scrollbar?     
asked on 07.01.2014 / 04:18
3
answers

How to prevent a click on a link / anchor or element with event tied

In the case of a link: <a href="http://www.google.com">Google</a> or in case of another element that has an event tied with addEventListener , what alternatives exist to prevent the content from being "clicked" and that th...
asked on 23.01.2014 / 17:18
2
answers

What is the difference, in practice, between "" and String.Empty?

In .NET you can see the multiple ways to initialize a string with an empty value, commonly known as "double quote". Is there a proper way to do this? And what would be the practical difference between using: var nome = String.Empty;...
asked on 05.09.2016 / 15:33
2
answers

What is AntiForgeryToken?

What is AntiForgeryToken and what does it serve in an ASP.Net MVC application?     
asked on 09.09.2015 / 20:20
2
answers

What is the difference between "lambda" and LINQ? How to differentiate them in a sentence?

I often see terms like LINQ query and lambda expressions . Then the question came up, What I'm doing is a LINQ query, a lambda expression, or both? Ex1: var query = Produtos.Where(p => p.Descr.StartsWith("A")).Take(10); Ex2: var...
asked on 09.08.2015 / 04:07
4
answers

Return all equal items from different groups

------------------- - TABLE - ------------------- ID | GRUPO | OBJETO ---|-------|------- 1 | 1 | 1 2 | 1 | 2 | | 3 | 2 | 1 4 | 2 | 2 | | 5 | 3 | 1 6 | 3 | 2 7 | 3 | 3 | | 5...
asked on 03.09.2015 / 09:53
1
answer

How to use debug in Eclipse?

I'm having a very annoying problem with a java.lang.NullPointerException error and I want to know if with debug it shows which element is null, rather than just saying what line the error is in.     
asked on 09.02.2014 / 00:10
2
answers

Performance in Java string creation

What is the best way to create Java strings for better performance? Here are two examples of creating strings in Java: Ex. 1: String str = "string"; Ex. 2: String str = new String("string");     
asked on 03.06.2014 / 23:11