All Questions

2
answers

Which pattern is used to validate business rule?

I use repository patterns for search, save, and delete I would like to know where the validation of my business is best ... For example: I need to check that item is in contrato of prestador , and invoice it with the...
asked on 12.06.2014 / 14:51
2
answers

Use a security framework or finger-nail?

I've had this doubt for some time now and I'm not so firm in a position even though I've taken one. Whenever I develop or participate in the development of an application (WEB), we usually deal with finger-and-nail security, that is, we deal...
asked on 15.09.2014 / 16:46
2
answers

Dependencies on the same table

A funeral home asked me to do a simple customer registration scheme for them. A customer can have several dependents who benefit from his or her contracted plan if he or she is killed. I am in doubt as to the data model. I could create two ta...
asked on 13.06.2014 / 15:02
3
answers

Mathematical Combinator

I have a list of ex numbers: [1, 2, 3, 4] I need to know all the possible combinations of this list, remembering that the list can contain n elements, does anyone have any code examples or could you help me? For this example list the exp...
asked on 01.10.2014 / 13:51
2
answers

Importing Packages PyCharm

Well, I have a problem when trying to use a project in pycharm .. I use xhtml2pdf and when trying to debug this error appears: ButIalreadyhavethepackagesaddedintheproject: Does anyone have any idea how I can fix this?     
asked on 16.10.2014 / 18:24
3
answers

Display Animated Form (GIF) while a while is executed

In the application I'm developing, I need to check if a process is running on the system, so I use a IsRunningProcess function. However, I'd like to display a form ( FormProgress ) that contains a loading gif while a specific process runs...
asked on 19.10.2014 / 19:09
1
answer

Doubt with revealing pattern

Is it possible to do this with revealing pattern? the console always returns undefined function FlashService() { return{ get: get }; var _abc = 'teste'; function get() { console.log(_abc); return a...
asked on 28.10.2014 / 22:08
1
answer

When using input type="button" or input type="submit"

I have a simple question about the semantic part. button I can modify your actions using Javascript . When should I use it or exchange it with submit ? <input type="button"> e <input type="submit">     
asked on 30.10.2014 / 18:17
1
answer

Mapping and getting mileage between two points

I'm developing a web application, and I'm getting two addresses for a text field, and I'm using it to calculate the distance to the Matrix API from Google Maps, so beauty, but I also wanted to generate a map showing that path, and that this path...
asked on 09.07.2014 / 01:41
1
answer

Problem in converting number (NumberFormat)

I'm having the following difficulty, getting a value through my form: Double salario = Double.parseDouble(request.getParameter("salario")); Since the value entered by the user will be something like: 2.687,35 . And this value, I will compa...
asked on 22.04.2014 / 20:07