All Questions

2
answers

What is the cleanest and clearest way to validate entities using the Entity Framework

I'm using the Entity Framework for data manipulation. The project is divided into 2, one containing the domain entities and the other Fluent Api mappings). I need a clean and clear way to validate entities without polluting entities with Dat...
asked on 02.02.2017 / 00:00
4
answers

Sort DateTime field of a DataTable

Hello. I have the following DataTable: success: function (data) { $('#table-controle').html(data); $('#table-controle').DataTable({ "language": { "url": "../../../Content/json/...
asked on 23.08.2016 / 15:13
3
answers

How do I get Local Storage to expire?

I have a certain scenario where I need the user to be login and stay connected for some time. However, if page inactivity is detected after a time, perhaps 20 minutes, the < Local Storage invalidating the saved information. To set a va...
asked on 22.01.2017 / 19:22
2
answers

Indent code in Visual Studio Code

How to create a shortcut to make spaces equal between assignments? Ex: $nome = "Maria Ferreira"; $telefone = "99645876"; To $nome = "Maria Ferreira"; $telefone = "99645876";     
asked on 23.07.2018 / 14:57
2
answers

What are the differences between AlarmClock and AlarmManager?

What are the differences between AlarmClock and AlarmManager?     
asked on 16.01.2017 / 03:24
2
answers

Adding values between html and javascript inputs

Dear friends, I'm trying to add sum between html and javascript inputs, but with this example, I've just been able to put in the html input. How do I implement in the javascript input and add the value along with the Total Value? NoHtmllooks...
asked on 19.12.2016 / 16:14
1
answer

Is there a way to create a parallel execution using javascript? [duplicate]

I wanted to know if there is a way to use parallelism in javascript . For those who come from the world of java or C this is a well known and used term, the known threads .    Parallelism = > is a program with t...
asked on 21.01.2017 / 14:30
2
answers

Script to select only one checkbox?

I have the following code with a menu of type Accordion menu : function marca() {} body {font-family: Trebuchet MS;margin: 0px;} nav {width: 100%;} p {font-size: 14px;text-align: justify;} .item label {font-size: 14px;color: #333;heig...
asked on 15.03.2017 / 17:27
2
answers

Capturing NullPointerException is bad practice?

I've been messing around with security issues and vulnerabilities lately, and in my research I came across an article that intrigued me. According to OWASP :    Description   It is generally bad practice to catch   NullPointerException....
asked on 16.03.2017 / 13:47
2
answers

Error doing push origin master on github

I'm having the following error in github when I'm going to push.    Please make sure you have the correct access rights   and the repository exists. I created the repository and as I was already with the project I created, I did: git re...
asked on 18.03.2017 / 02:55