All Questions

2
answers

Family Tree Exercise

I have to create a relationship of uncle according to the genealogy tree below: I already have the following code: mãe(ana, eva). mãe(eva, noé). mãe(bia, raí). mãe(bia, clô). mãe(bia, ary). mãe(lia, gal). pai(ivo, eva). pai(raí, noé). pai(...
asked on 14.08.2014 / 14:06
1
answer

Pointed Buttons and Text Balloons

I'd like to know some alternatives to using some% s of custom% s as well as the famous text balloon. Currently I use a button that inside has <div id="container-button"></div> and a <span id="texto"></span&g...
asked on 24.08.2014 / 19:10
3
answers

Working with the JPA + Hibernate cache

I have questions about how to work with objects EntityManagerFactory and EntityManager . Currently I instantiate a EntityManagerFactory for the whole system, as I only have one bank, I create only one and use it to create...
asked on 15.01.2015 / 21:14
1
answer

What is the difference between MVC "action based" and "component based"?

This Answer of this question answers the advantages and disadvantages of each, but without explaining the difference between them. I ask: What's the difference between them? Examples of frameworks that use each of them. Note:...
asked on 25.06.2014 / 13:17
1
answer

How to return an object, calculating dates?

I'm calculating the difference between dates in a period. From today until previous days: hoje = new Date(); periodo = new Date().setDate(hoje.getDate() - 5); This way the output is as follows: Fri Sep 19 2014 17:05:11 GMT-0300 (Local Sta...
asked on 19.09.2014 / 22:09
2
answers

How to disable key combination in windows by registry

"https://i.stack.imgur.com/zc21b.png"> , and ESC by Windows 7 and 8 registry? > I can disable the Esc key but not the rest, here is an example of the key Esc : Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\...
asked on 15.05.2014 / 22:42
1
answer

Is it good to use global variables for greater readability in code?

I am implementing an exercise in the Deitel book, How to Program C, 6th edition, the Logo problem in Chapter 6. It was an interesting question with legal logical problems etc. The only doubt of implementation may seem very primary, but it really...
asked on 11.02.2015 / 19:52
3
answers

Find quotation marks with whitespace with RegEx

I need to find errors where inside quotation marks have spaces at the beginning or end of them. Examples of errors: The news was given by "Jornal do Brasil". Paris is considered the "City of Light". Note that in the first case, insid...
asked on 26.08.2014 / 22:37
2
answers

How to get all records of a mixed table generated by class inheritance when using EntityFramework 6?

I have a class structure in the following form: public class Pessoa { public int Id {get; set;} public string Nome {get; set;} } public class Membro : Pessoa { public int CargoId {get; set;} public Cargo Cargo {get; set;} } p...
asked on 21.04.2014 / 17:12
1
answer

3 layers vs MVC

3 layers: DAL (Where is the model and operations with the bank BLL (Where is the business rule) Presentation (Usually the WEB) An example: DAL public class AlunoBanco { public void InserirAluno(Aluno aluno){ ......
asked on 22.09.2014 / 01:41