All Questions

1
answer

About fallback for CDN

Some people recommend using the following technique ( fallback ) to load Javascript libraries locally if the CDN is out of the loop: <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> <script>w...
asked on 25.07.2014 / 13:10
1
answer

Can MD5 hash be repeated for different passwords causing collision?

A co-worker made a Java system that encounters collisions in a series of hash MD5. But he did not stop to analyze the results, made only an assertion that they exist. But I would like to take this away from the proof, does anyone know of the...
asked on 19.11.2015 / 14:01
2
answers

What do numbers do when we create columns in databases?

Everyone who has worked with databases has already noticed that, during data modeling of a table, we can define a number in parentheses. Examples: INT(20) TINYINT(4) BIGINT(10) VARCHAR(8) If each data type has inherent in it the amount o...
asked on 05.11.2015 / 13:52
2
answers

How to determine the last element of a list in a foreach?

Given any list, how do I know if foreach is in the last element? There are a few ways to do this, the most I can see is to save the last element and check if the current element is the same, but in that way it is necessary to check eve...
asked on 30.06.2016 / 16:07
1
answer

Problems with a MYSQL query - Categories and Items

I'm doing a project, which basically consists of item and category ... or rather "animes" and "episodes" ... Here's the problem, I want to list all the registered anime and a count of episodes related to them, for example. "Katekyo - 24 episo...
asked on 27.02.2015 / 17:48
3
answers

How to avoid the use of setters in such cases?

In general object orientation it is advisable to avoid the use of setters. The usual justification for this is that logic that modifies the state of an object must be encapsulated in the object. Therefore, the ideal is the object to expose behav...
asked on 28.07.2016 / 05:43
1
answer

How to create a default margin in the ckeditor?

I started using CKEditor And when initializing it, it comes as follows: And I would like it to come with a standard margin (I want it to look like A4 sheet) How could you make it come with a spacing?     
asked on 12.02.2015 / 21:07
1
answer

How to guarantee transactional atomicity in more than one concurrent Thread in a Java SE environment using the Spring framework?

A Java SE solution, using the Spring framework, is being developed to parallelize the execution of a Stored Procedure in Oracle 9i, which takes as parameter one or more rows from a giant file to be processed. This will be done through a Threa...
asked on 17.04.2014 / 18:14
3
answers

Regex to select specific section

I need to identify the name, CPF and address information within contracts. The landlord's line is as follows:    LANDLORD: Jose Reinaldo Lellis de Andrade       LOCATOR: Isabel Cristina de Rezende Leme Ferreira Andrade I can select th...
asked on 20.05.2014 / 00:28
1
answer

How to customize a select arrow

I have a price list, it has a select for the person to choose the payment cycle as shown in the image:  beingthatIdidwithCSS:-webkit-appearance:none;background:#E9E9E9url("../imagens/bgs/seta.png") 95.5% 50% no-repeat; As shown in t...
asked on 01.05.2014 / 21:57