All Questions

7
answers

Remove elements repeated within a vector in javascript

How do I remove repeated elements within a vector / stack / array in javascript? I have for example: var array = ['foo', 'bar', 'foo']; and I want to remove all duplicates to get: ['foo', 'bar']     
asked on 20.05.2014 / 21:59
3
answers

What is the difference between vertical and horizontal scaling?

Recently I've seen some issues about cloud , BD's , etc. In some of these subjects I see a lot of escalation . Faced with this theme I have the following doubts: What is the difference between vertical and horizontal scaling? Are there...
asked on 20.10.2016 / 15:12
5
answers

Allow or not allow end spaces in passwords?

@dvd replied about validating passwords in JavaScript. In his response, he suggested removing end spaces at the time of validating the size:    It's interesting [to validate the password size] too, delete whitespace at the edges of the st...
asked on 28.01.2018 / 08:12
3
answers

How to write code as an example, without executing?

I'm doing the translation of a book to an HTML page, there in the book have the codes, but how do I make my HTML display my code, HTML, PHP and JavaScript without running them?     
asked on 24.04.2015 / 15:02
2
answers

+ 3 overloads - What would that be?

asked on 26.06.2016 / 12:04
3
answers

Why "= NULL" does not work? [duplicate]

In%%, when fetching all records with a given field with value SQL Server , if I do the following no records are returned: SELECT * FROM clientes cli WHERE cli.cpf = NULL However, if you use the following syntax: SELECT * FROM...
asked on 17.05.2017 / 16:25
3
answers

What is the difference between the for ... of and the for..in?

I was checking out this SOEN question and there I saw this for..of . I've never seen this before in Javascript . This is a new feature and we can already implement it reliably, or should we still use the old for..in ?...
asked on 02.10.2015 / 17:58
3
answers

How to calculate PI with "n" decimal places in JavaScript?

Using the Math object of JavaScript, I can return a PI value with fixed decimal places, for example: Math.PI //3.141592653589793 But in case I need (yes, quite unusual) to calculate the same with more decimal places, is there any o...
asked on 22.02.2015 / 22:38
3
answers

ASP.Net MVC or WebAPI?

What is the advantage of using MVC and WebAPI (using Visual Studio and C #)? I think developing in MVC is easier than putting together a form with validations, so just put special attributes for this purpose and use the Wizard that already as...
asked on 02.02.2015 / 14:54
3
answers

What is ROW_NUMBER?

What is ROW_NUMBER used in sql server ? How and where should we use it? Do you have a simple use example?     
asked on 29.08.2017 / 18:53