All Questions

3
answers

Add Array from multiple fields

I have a form with several fields containing currency values as I can add all these values in the post output Example form <form id="form2" name="form2" action="includes/acao.php?form=faturamento" method="post" > <input type='hi...
asked on 20.10.2015 / 17:20
1
answer

How to make an image split text from within a limited width div?

How can I make a <img> break text from within a limited% width%? For example, with this code: <style> #imagem { float:left; } #container { width:250px; background:#ccc; } </styl...
asked on 27.11.2014 / 19:52
3
answers

How can I make a certain class appear "..." after reaching a character limit

I wanted you to get an estimated limit of characters when you reached an estimated limit of% to avoid polluting the screen.     
asked on 16.09.2016 / 16:26
2
answers

What is a hook method?

I'm studying some design patterns and I came across this method, but its concept was not clear to me. What does the method do and what is the relationship between it and the Template Method? I would like an example in java. Excerpt that I did n...
asked on 23.02.2016 / 17:50
3
answers

Is it possible to test only specific classes?

I have two test classes: class A { @Test public void fazAlgo(){ // ... } } class B { @Test public void fazAlgoMesmo(){ // ... } } My tests are taking a long time because all classes are being tested. Ther...
asked on 09.12.2015 / 19:42
4
answers

Turn MD5 MessageDigest into string

I'm trying to generate an MD5 hash using the MessageDigest class, but I can not correctly display the hash as a string. The result is a string of unknown characters. Below is the test code: import java.security.MessageDigest; import...
asked on 20.07.2016 / 14:31
2
answers

Why is the output coming out like this?

I'm trying to make a program in which I use a list and that program returns 2 lists one with the other pairs with the odd ones. lista = [0,1,2,3,4,5,6,7,8,9,10] def par(numero): if numero % 2 == 0: return numero def impar(numero):...
asked on 11.12.2016 / 23:12
1
answer

Tie duplicating whole table

I can not make a loop in the table, it is looping every search in the database. $dbc = mysqli_connect('senha_adm'); $query = "select carro, barco, aviao, moto, triciclo, velotrou, dataCadastro from agencia"; $result = mysqli_query(...
asked on 01.09.2016 / 16:46
4
answers

How can I do to detect the visibility of an element (without jQuery)?

How do I know if a particular element is not visible with pure Javascript? I know how to do this with jQuery, which looks like this: $('.btn').click(function () { $('#box').is(':visible') ? $('#box').hide() : $('#box').show(); });...
asked on 29.06.2016 / 21:18
3
answers

How to send a data to another PHP page by URL?

I know there are GET and POST methods but I do not know how to apply them. I have a page called index.php and I have several divs that are generated in a while. When I click on a div I'm redirected to a test.php page .. how do I apply the dat...
asked on 03.01.2016 / 10:59