All Questions

2
answers

How can I rename a file before uploading it to the server?

I'm doing a form that processes certain data, I'm using the following code, and I need to know how to rename a selected image, before uploading it to the server. That is, if when you select the image it is called imagen.png , rename it by...
asked on 04.08.2018 / 22:37
2
answers

Replace Arrow Function in ES5

Because the page where I want to insert the following line of code, how can I replace the arrow function so that I can run in the ES5 version? const frutas = ["Banana", "Orange", "Apple", "Mango","Orange"]; const contarFrutas = (valor, listaD...
asked on 30.07.2018 / 20:18
1
answer

Why the KeyCode does not work in Chrome

The function keyCode does not work in Chrome but Firefox works very well, by pressing the Tab in the input calcular you should trigger the function. here my code: $("#calcular").keypress(function(event) { var keycod...
asked on 25.07.2018 / 15:52
3
answers

Does not recognize js for the extension

I'm trying to do extensions for chrome and my html file does not recognize the js File manifest.json "content_scripts": [ { "matches": ["https://*/*"], "js": ["app.js"],// este js si lo reconoce "css": ["app.css"] } ], "brow...
asked on 24.07.2018 / 17:19
1
answer

Cycle an arrangement of a MongoDB object in Python with Django

I'm trying to cycle an array that comes from a node in mongoDB, this is Mongo's object: { "nombre": "Sebastián Yatra", "paises":["México","Argentina","Perú"] } The view controller is this from django.shortcuts import render from pymon...
asked on 03.08.2018 / 20:02
2
answers

Alternative to clause where IN?

If I consult certain data in a query where in , I would bring the data that match. Example: link But my question is, how do I get the data that does not match and throw it in the query? "Data to consult" is a random lis...
asked on 22.10.2016 / 12:57
2
answers

Is there an "Imports System.Console" (VB.NET) in C #?

I would like to know if there is something like a using System.Console in C # . I wanted to do something in the console to remember. When I learned to use the console, I did it with the VB.NET language. There you could import the na...
asked on 12.11.2016 / 15:05
2
answers

List of data. Python

Lists in Python I've been studying a bit and I have a doubt. I saw a video where the tutor gives an example of a list: year = [1950,1951,1952, ..., 2100] Enter the points (...) to follow up, but I get the error that it is not possible...
asked on 14.11.2016 / 02:16
2
answers

call a variable in another php without get or post

Thank you very much to the community in advance. good to the matter, I have created a simple dynamic select option that when selecting a client in the next select option your pets come out. Here I charge the clients in the first select o...
asked on 21.10.2016 / 05:11
4
answers

Sort array php kb, mb, gb

I have an array that filled with a query. What I get is the following: array (size=9) '128 GB' => array (size=1) 0 => string '156' (length=3) '16 GB' => array (size=2) 0 => string '106' (length=3) 1...
asked on 09.11.2016 / 19:26