All Questions

1
answer

What is the difference between Semaphore and Monitor?

I have a doubt in the concept of these two structures . What would be the difference between them? Which is faster? Which is easier to use? Could you give me a basic example of each?
asked on 31.05.2017 / 00:33
3
answers

EF Core - Partitioning Filter

I'm working on a database that has the following characteristic, a 90% clustered index that integrates two columns: FilialID and DataCriacao . These tables are partitioned by FilialID , simple creation or removal of a Fi...
asked on 15.05.2017 / 20:02
1
answer

Reserved word include or "use" in PHP?

I saw somewhere that the reserved word include in PHP should be used only in procedural programming, and that in object-oriented programming you should opt for the reserved word use . I did not find anything that would lead me to...
asked on 23.09.2017 / 17:34
1
answer

Calculate difference between dates in Hours in R

I have two dates in date and time format. Data1 <- 20/01/2018 20:33:58 Data2 <- 21/01/2018 20:23:48 The difference in hours is 23:49:50 . How is the calculation of this difference in R? In addition, I need to know if this dif...
asked on 07.03.2018 / 15:49
2
answers

What is the purpose of TransactionScope blocks?

I have a code with several blocks TransactionScope and I do not quite understand its purpose. ModeloColDataContext dm = DataContextFactory.GetContext(usuario); { if (documento > 0) { using (Transaction...
asked on 31.10.2016 / 18:38
2
answers

the heuristic h (n) = 0 is permissible for algorithm A *

Hello everyone, can anyone answer this question? I am in doubt. The heuristic h (n) = 0 is permissible for algorithm A *     
asked on 22.09.2017 / 03:11
1
answer

How to make skins in ASP.NET MVC

How would skins in MVC? where the client (user) could choose the skin (would change CSS, html, images, etc)? OBS¹: Skin would be for all pages and each client can only have 1 single skin. But I would have about 10 different skins. These ski...
asked on 06.05.2016 / 19:07
1
answer

"Incorrect datetime" value in MySQL

Hello, I'm trying to insert dates in dd/mm/Y format into two jTextField , in MYSQL, however I get an error message only for the first field: Incorrect datetime value: '01/01/2016' for function str_to_date The java code is: if...
asked on 25.11.2016 / 11:18
1
answer

Compare COUNT of two tables

I have two tables and should I return the table total with more data, I'm doing this: SELECT CASE WHEN ((select count(*) as 'familiar' from tb.familiar)) > ((select count(*) as 'personal' from tb.personal))...
asked on 19.10.2016 / 17:54
1
answer

CascadeType.ALL does not work. Am I using it wrong?

In my code, I have the Author and Book classes with the Many To One relationship, as below: Author.java import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.F...
asked on 20.12.2016 / 14:03