Questions tagged as 'for'

1
answer

for in range on the flask template

I'm in doubt, the API I'm getting returns me two data types "ID" and "Title" are various id and title and wanted to throw this in my table in a "for" template. I wanted to know if what I did is right because it does not return anything. code...
asked by 10.04.2018 / 17:25
0
answers

Curl within is time consuming and troublesome

I need to test all the user accounts of a db in text area I am utilizando o script function informacoes(){ $linhas = explode("\n", $_POST['conta']); $count = count($linhas) -1; for($i=0 ; $i<= $count; $i++) {...
asked by 01.04.2018 / 23:20
1
answer

Python transform a number into integer

import math x=9 raiz=math.sqrt(x) print raiz for i in range (raiz,9): #Problema aqui i=i**2 print i I need to create a for with the root of an operation (always integer 2, 3,4,5 ...) but when I try to use it the way I did the error. It says...
asked by 02.04.2018 / 04:14
0
answers

Problem writing to datagrid column

I've broken my mind about it, but I can not do it haha I need the second column of my grid to do an arithmetic mean of the two values in the previous column and row. In this print, for example link , Xi should have given 2,66 but gave 0,...
asked by 24.03.2018 / 06:39
0
answers

Saving dynamically created inputs

Hello, I would like to ask for help with this project, I put it in github to make it easier. link Next, there are multiple-choice questions that are created dynamically, and there are the answers that are created dynamically. I want to save...
asked by 28.03.2018 / 19:32
0
answers

Multiple requests with ajax - Jquery

I have a page containing 1 (one) to 50 requests. So I use a loop that makes the call. For the speed of my internet, in a matter of 3 seconds should load all the requests. But it's done one by one, so it takes minutes to finish. How do I la...
asked by 23.12.2017 / 00:00
1
answer

JavaScript function inside a Loop For PHP

I have a JS function to hide / show table row, it is inside a for loop. But I'm having trouble activating it. When I run such a function out of the loop it works perfectly, but when I step into it, the story is another. I would really appreci...
asked by 10.11.2017 / 13:41
1
answer

How do I calculate the percentage of the number of correct answers?

Well, I think I already managed to accomplish what I wanted to thank everyone for my only doubt is if a new number is generated whenever the user inserts a new guess, here is the new code: System . out . println("Indique um valor minimo");...
asked by 27.10.2017 / 16:50
1
answer

How to make a triangle of asterisks in java

I want to get the following output: n: 4 + ++ +++ ++++ That is, I insert an "n" and I will get a kind of triangle in which the base corresponds to a number of asterisks that is requested by input. I made the following code but...
asked by 29.10.2017 / 00:30
1
answer

Get the position of an associative Array inside another Array

I have this array's associative array: Array { [0]=> array(4) { ["nome"]=> string(35) "ACRILEX TECIDO 37ML AMARELO CANARIO" ["preco"]=> string(4) "1.65" ["quantidade"]=> string(1) "...
asked by 29.09.2017 / 10:34