All Questions

3
answers

How to intercept exceptions when working with the Entity Framework?

I want to handle the errors returned by the Entity Framework. In this example I'm forcing the insertion of a duplicate record (Name already in the database where the column of the table is configured as a Unique Index ): [HttpPost] [Validat...
asked on 13.06.2014 / 02:31
2
answers

CDN vs. join JS / CSS

Among the performance recommendations of a web system are: Use CDN (in the case of jQuery, Bootstrap, etc.) Add JS and CSS to decrease the number of requests It turns out that these two rules go against each other. If I use jQuery and B...
asked on 12.06.2014 / 18:24
1
answer

How to retrieve via Ajax query result variables in PHP?

I made a query via Ajax which returned the variables within PHP : // Variaveis $nome = $Fetchi['nome']; $email = $Fetchi['email']; $tipo = $Fetchi['tipo']; $senha = "Digite uma nova senha..."; $ativado = $Fetch...
asked on 03.08.2014 / 14:52
2
answers

How to limit characters?

I would like to know how to limit characters and then run something on Android. For example, in a EditText or a TextView I type 5 characters, typing the fifth character executes a command, for example, it deletes what was typed....
asked on 28.01.2015 / 18:16
3
answers

Order SQL for 1,2,3 instead of 1,10,2,3

I have a name field in a table that has the following data:    1-Course       2-Course       10-Course When sorting by name it returns 1,10,2 . How to order to bring: 1,2,10 ? Ps: The field is NVARCHAR .     
asked on 12.08.2014 / 23:26
4
answers

Identifying snippets in two PHP strings

I need to make a non-standard string comparison in PHP. I have 2 strings as below: $primeira = 'asdasdasdTESTEasdasdasdasd'; $segunda = 'lkijlikjTESTEilkjik'; How do I dynamically know if the first and second variables contain the same seq...
asked on 25.09.2014 / 20:39
2
answers

How to multiply an "X" character as many times as you want?

Is there a method that multiplies an "X" character as many times as I want? example: I have the "P" character    P x 5="PPPPP" Is there a ready method in .Net?     
asked on 26.02.2016 / 15:42
2
answers

Problem with delay in jquery

The delay of this function in jquery is not catching, I wanted to know the reason, or another way to make a delay in it. $("header").delay(1000).css("display", "none"); $(".logo_1").delay(2000).css("display", "none");
asked on 10.04.2014 / 19:54
3
answers

Create temporary in-app lock

In the app I am developing there is a usage policy, and if this policy is cheated I want to suspend the use of the app for 30 mins, how can I do that?     
asked on 02.05.2016 / 19:14
3
answers

LINQ corresponding to SQL with LIKE clause 'XXX%'

I'm using the following LINQ to return a query: .Where(c => c.Nome.Contains(nome)).OrderBy(c => c.Nome) But if the name is Maria , it brings: José Maria Maria José How to bring organized as if executing SQL query? So: WHE...
asked on 12.10.2015 / 21:38