All Questions

3
answers

Knowing if an image exists or not correctly charged

How would you know when an image exists or is loaded in the browser with javascript and Jquery , would be an example like this; This to load an alternative image in case the image does not exist, something like IMA...
asked on 09.10.2018 / 14:21
2
answers

Hide parameters in the QueryString

I have this function that I use to send parameters through QueryString: <script> function Enviar(){ var string_request; usuario = document.getElementById('Usuario').value; password = document.getElementById('Password')....
asked on 10.07.2018 / 15:21
1
answer

how to work with double quotation marks

I have the following string of a CSV file var arreglo = ['"Marcopolo b1 "', '"Marcopolo b1, Leito "','"Marcopolo b2, "'] var headers = allTextLines[0].split(/\t|,/); // this function returns: var allTextLines = ['"Marcopolo b1 "',...
asked on 31.07.2018 / 10:38
2
answers

export and use variables in NodeJS

I have the following file where the values assigned to two variables are stored; same that I export with module.exports //archivo datos.js const num1 = 12 const num2 = 22 module.exports = { uno: num1, dos: num2 } Now in a s...
asked on 31.08.2018 / 23:29
1
answer

Use of * args and ** kwargs in python [closed]

I have seen examples of code in which the functions receive parameters *args and **kwargs . I do not understand that syntax nor in what cases it should be used. Although I have tried to read about it, I have only found informatio...
asked on 20.09.2018 / 05:48
2
answers

It does not show all the data of the mysql database in my table

     Hi, how are you, I come with a doubt because it does not show me the data of my mysql database in a table that believes in my html. You skip the first user, it is worth mentioning that you already check my connection, the name of the fi...
asked on 18.09.2018 / 23:22
3
answers

How to enter data in the same line

How can I enter data on the same line? public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("Introduce la hora"); int hora = sc.nextInt(); System.out.print(":"); int minutos = s...
asked on 20.09.2018 / 11:41
3
answers

SQL query to filter by date a Datetime without including the time

I have a query in sql that looks for some XML by date range, but I think that it is not returning results since the where is with the datetime and I only send the date .. Any suggestions? SELECT A.e_rfc,a.fecha as fecha,C.SupplierName ,A.folio...
asked on 27.08.2018 / 15:37
2
answers

How can I put together a predicate function when I have to choose between several options

I have a class public class TestClass { public int? a { get; set; } public int? b { get; set; } public TestClass(int _a, int _b) { a = _a; b = _b; } } And for this class, I generate a list with elements...
asked on 19.07.2018 / 17:02
1
answer

Memoization in recursive functions, javascript

function fibo(num) { if(num == 0) { return 0; } else if(num == 1) { return 1; } else { return fibo(num-1) + fibo(num-2); } } This is my code to resolve fibonacci in javascript, but I do fibo (50) it hangs. I have been resea...
asked on 22.08.2018 / 23:08