Posts by Adilmar Coelho Dantas • 101 points
12 posts
-
0
votes2
answers618
viewsA: Automatic IMC calculation in INPUT
Just do (remove the parseint) function calcular() { var peso = 68.00; var alt = 1.0; var imc = parseFloat( peso / Math.pow(alt, 2)).toFixed(2); alert(imc) } calcular();…
javascriptanswered Adilmar Coelho Dantas 101 -
-2
votes1
answer64
viewsQ: file_get_contents Time PHP
Guys the following I have a file_get_contents in php, but this API sometimes goes off the air and it takes a long time to answer, it would be like for a time limit if past this time returns an…
-
0
votes1
answer60
viewsA: Tensorflow CSV Data
Follows the resolution: file = ("dados.csv") def data_encode(file): X = [] Y = [] train_file = open(file, 'r') for line in train_file.read().strip().split('\n'): line = line.split(',')…
-
0
votes1
answer60
viewsQ: Tensorflow CSV Data
Personal I would like to assemble my training_x and training_y from the CSV someone knows how to proceed, I started but could not finish. import tensorflow as tf from tensorflow import keras import…
-
1
votes2
answers964
viewsA: How to send variables from one . PHP to another . PHP
Store these variables in section Session() that they will be available on the other pages of your system. <?php session_start(); $_SESSION['test'] = 42; $test = 43; echo $_SESSION['test']; ?>…
-
1
votes1
answer64
viewsQ: Merge or combine PHP Array
I’d like to combine two arrays ($a and $b) in such a way $c = $a[0]$b[0],$a[1]$b[1]...$a[n]$b[n] how to proceed there is a function I tried to do with foreach but without success. $array1 =…
-
1
votes1
answer5197
viewsQ: Request Python form/data
Guys I made this request in Python but not enough data in API, made in Postman works perfectly. API_URL = "https://api-us.faceplusplus.com/facepp/v3/detect" api_key = "7Z...uC" api_secret =…
-
-1
votes1
answer825
viewsQ: Calling API via Post with JS or JQ
Personal someone could help me by giving an example of how to consume an API that returns a JSON just like this API below: https://console.faceplusplus.com/documents/6329465 Staff implemented the…
-
0
votes3
answers208
viewsQ: String Jquery or JS
Personal I am in need of help on the following logic, I have a String question that always follows a pattern: What is xxx xxx or what means xxx xxx, I would like to always catch the xxx xxx.…
-
0
votes1
answer491
viewsQ: Cors error accessing Api
I am trying to access a wikipedia service with JQ, but in returning Cors error, could someone help me with a code to access this service correctly. Url:…
-
0
votes3
answers921
viewsQ: Simulate click on Jq or JS
Staff needed to make 4 buttons (up, down, right and left) which is called a function that simulated the keybord up,down,left and right someone can help me. Simulate keystrokes on keyboard. or how to…
-
3
votes4
answers141141
viewsA: How to redirect the user to another Javascript/jQuery page?
As mentioned above just use the command: window.location="http://seusite.com"; no need for the href, minimizing your code.…