Posts by Luis Fernando Consulo Martins • 89 points
8 posts
-
0
votes2
answers52
viewsA: How to transform a simple array into . csv?
function replaceAll(str, find, replace) { return str.replace(new RegExp(find, 'g'), replace); } arrayfinal = replaceAll(arrayNumeros.toString(), ",", "\n") console.log(arrayfinal) Afterward: ~/$…
javascriptanswered Luis Fernando Consulo Martins 89 -
0
votes2
answers52
viewsQ: How to transform a simple array into . csv?
I have a simple array that is generated with random numbers function gerarNumeros() { //Defina aqui a quantidade de numeros que serão gerados let quantidadeNumeros =…
javascriptasked Luis Fernando Consulo Martins 89 -
1
votes2
answers70
viewsQ: Create Listener for multiple dynamically generated Checkboxes
Problem: Need to Store the value of multiple Checkboxes that are marked, they are generated dynamically by the API so they do not have a fixed Id, only a value and a "name" As I am currently doing:…
javascriptasked Luis Fernando Consulo Martins 89 -
0
votes3
answers138
viewsQ: How to store various information in JS properly?
I need to store various information in an object or array, the code is thus adding the information by push(): let filaDeEspera = {nome:[], telefone:[], senha:[]} filaDeEspera.nome.push("João")…
javascriptasked Luis Fernando Consulo Martins 89 -
1
votes1
answer843
viewsQ: Sending file via FTP in C#, URI error
I am trying to send a file via ftp using the class below: public static void EnviarArquivoFTP(string arquivo, string url, string usuario, string senha) { try { FileInfo arquivoInfo = new…
c#asked Luis Fernando Consulo Martins 89 -
1
votes1
answer282
viewsQ: Get request in Python terminates the program when there is no connection
I am developing a Python application to check the external IP and save in a database, the problem is the following function: def pega_ip(): ip = get('https://api.ipify.org').text return ip Because…
pythonasked Luis Fernando Consulo Martins 89 -
2
votes3
answers611
viewsQ: Incorrect counting in electronic voting program
I created an urn with the C language. The code is apparently correct, but the vote count always results in zero. The code was developed in Linux code:Blocks, so in order for it to work in windows,…
casked Luis Fernando Consulo Martins 89 -
-1
votes1
answer5171
viewsQ: Javascript program to calculate bhaskara formula does not work
I am developing a simple program to help in the calculation of bhaskara formula (the one we learned in school) I already have a code made in C that works perfectly, but when I was "port" to…
javascriptasked Luis Fernando Consulo Martins 89