All Questions

1
answer

Why Button inside Label does not work. Button does not work as expected does not activate Checkbox

I was making a Menu that only appears when a checkbox is checked. And to change the status of this checkbox I need to click on label of it, since input:checkbox is actually hidden. What happens is that within la...
asked on 28.12.2018 / 14:27
1
answer

Sum returns NaN for values above 999

I have a function that calculates subtotal + ascrescimo - desconto , however I was testing a value above 999 it returns NAN . //função para calcular o total da nota function calcular() { var soma1 = 0; $(".subtotal01").e...
asked on 14.11.2018 / 17:34
1
answer

How to handle a String in JSON format?

Let's say I get the following content that is stored in a String: { "client_id": 1580, "videos": 4, "remote_urls": [{ "url": "rtsp://aniceurl.com" }, { "url": "rtsp://aniceurl.com" },...
asked on 01.10.2018 / 13:53
1
answer

How to create Interface in JavaScript?

I think a lot of you know about the Interface concept, which is very widespread in OOP, but in JavaScript in all the projects I've worked on until today I have not seen this concept. I researched a little bit about, but most posts are old, s...
asked on 18.11.2018 / 00:22
2
answers

Do not allow repeating values in different DropDownList using jQuery?

I have 3 DropDownList where they have 4 items with the same valor (1,2,3,4). I need to respect that every DropDownList does not repeat the value selected in the others. Example: ddl0= 1 ddl1= 2 (não permitiria escolher...
asked on 17.12.2018 / 20:48
1
answer

Creating a dataframe based on two other dataframes using dplyr in R

These are my dataframes: df<- as.data.frame(matrix(rexp(200),, 25)) colnames(df)<-c("A","B","C","D","E","F","G","H","I","J", "K","L","M","N","O","P","Q","R","S","T", "U","V","X","Z","W") df.new<-as.data.frame(matr...
asked on 23.09.2018 / 04:36
1
answer

Does the last statement on a switch need to 'break'?

I was watching some tutorials on YouTube and noticed that some programmers leave the last statement in a block switch without the word break . For example: switch(frutas){ case "abacaxi": abacaxi++; break; case "morango": mo...
asked on 02.01.2015 / 01:42
2
answers

Adding values from a column in the database using date filter

I need to sum all the values of a column containing in each row a specific date, that is, in the database, the values are saved with the date entered in textBox in the act of the cadastre, and I must add all the values column quantidad...
asked on 28.12.2018 / 13:00
3
answers

Function refactoring to collect constants with a specific prefix

I have a working function that aims to find and group in a matrix the constants that are declared corresponding to a certain prefix: Function: function get_constantsByPrefix($prefix) { foreach (get_defined_constants() as $key=>$valu...
asked on 18.12.2013 / 22:56
1
answer

How do I get the Widget of a Column to expand to the maximum width of the parent (Column)?

Form( child: Column( children: <Widget>[ CustomTextFormField("E-mail"), CustomTextFormField('Senha'), Expanded( child: FittedBox( fit: BoxFit.fitWidth, child: RaisedButton(...
asked on 12.12.2018 / 01:31