All Questions

2
answers

When to use and not use AJAX in submitting forms?

If I have a huge question form, would sending via AJAX be the best way? <form id="formulario" method="POST"> <!--vários Questionarios aqui--> </form> JavaScript: $.ajax({ type: "POST", data: $("#formulario")....
asked on 07.10.2015 / 16:07
2
answers

Differences between Python versions?

Hello! I recently decided to start studying the Python language, however, when researching the language, I noticed that there are differences between version 2 and 3. Are these differences really significant?     
asked on 11.12.2015 / 09:57
4
answers

Reset in input fields after submit with Jquery

By sending the input field values through JQuery to a PHP page I can do the action without refreshing the main page, but I can not make the input fields "empty" again?!? How do I then apply the "reset" after submission? HTML: <div id='...
asked on 04.07.2014 / 16:44
3
answers

Interface or Abstract?

I've read a lot of content on this topic until I get to this example: public interface Funcionario{ public void trabalha(); public void recebe(double salario); } public abstract class Geek implements Funcionario{...
asked on 08.10.2014 / 21:27
3
answers

Dynamic Javascript property name

I have the following code: var nomePropriedade = "Propriedade1"; var meuObjeto = { "nome" : "valor" } I would like the property name of meuObjeto to receive the value of the nomePropriedade variable. Home So when I t...
asked on 26.08.2015 / 16:27
4
answers

Color Loop in Text

I have the following structure in HTML: <font class="a">J</font> <font class="b">o</font> <font class="c">ã</font> <font class="d">o</font> <font class="e">P</font> <font class="f"...
asked on 06.03.2014 / 14:48
2
answers

What is the purpose of empty command blocks or which do not belong to any command?

A command block is made up of two or more commands in {...//Comandos} keys, I can use them for the following situations I already know: In an if: if(codicao){...//Comandos} . In a for: for(inicializacao; condicao; incremento)...
asked on 22.01.2016 / 02:37
3
answers

Competition control in database insertion

I have a concurrency control problem when inserting data from a table. The scenario is as follows: There is a table that records daily data according to the user request, and this data can not be duplicated. The current concurrency control ch...
asked on 12.09.2014 / 15:39
2
answers

Negative variance in R? Floating-Point Error Propagation

Suppose the following formula to calculate the variance: variancia <- function(x) { n <- length(x) (1/(n^2-n))*(n*(sum(x^2))-(sum(x)^2)) } See that it is equivalent to the var function in most cases: teste <- 1:5 var(t...
asked on 21.02.2014 / 21:14
1
answer

List files from a folder / directory in PHP of certain extensions

I need to list the files in a folder, and display them by name linked to their directory to download . I use this code: $pasta = 'uploads/'; $arquivos = glob("$pasta{*.jpg,*.JPG,*.png,*.gif,*.bmp}", GLOB_BRACE); foreach($arquivos as $img...
asked on 16.01.2016 / 13:10