All Questions

1
answer

How to upload image to the local server externally?

I have a problem trying to upload a photo to my local server, everything works fine if I use an action and refer to the folder where my php file is, but it's not what I need because it redirects me to an empty page, I need to redirect myself t...
asked on 05.04.2018 / 16:13
2
answers

Fill part of a matrix with a circle shape

My question is how I could create a circle within a matrix. Let me explain: Imagine a 1000x1000 matrix, filled with 0. I already have the necessary code to create rectangles and diamonds (fill in 1 the necessary boxes with that shape). But my...
asked on 09.04.2018 / 17:57
1
answer

Error in Laravel DateTime :: __ construct (): Failed to parse time string

Create a virtual host and when entering the URL, sometimes I open the laravel page and others throw me that DateTime error, how can I solve it? I found this: link I do the php artisan key: generate but nothing happens, what follows be...
asked on 12.03.2018 / 02:39
1
answer

Skip a setInterval

$(function(){ var i = 0; var myVar = setInterval(function(){ $('#numero').html(i); i++; }, 5000); }); <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <di...
asked on 06.04.2018 / 00:52
1
answer

Make several AJAX calls and fill a Datatable with these calls

I'm trying to fill a Datatable with the 87 Star Wars characters, for this I'm doing Ajax calls and I put them in the Datatble, the problem is that the API pulls ten characters using a JSON for each url and I can use rods called to get the 87, wh...
asked on 05.04.2018 / 14:52
3
answers

How to access global variables in python

I have been developing this project for some time, I only had it in a single file and when I modularized it I had problems compiling the type "global name 'file' is not defined", where file is a global variable. I have a file "main" which is the...
asked on 11.04.2018 / 06:10
1
answer

Integer numbers in pandas python "dataframe"

I import a document to jupiter and enter normal with whole numbers, I apply a formula to group, add and then subtract and the product leaves all the numbers with decimals and exponentials. How do I get only whole numbers ??? ::::::: attach...
asked on 11.04.2018 / 22:25
1
answer

Stuck reading YouTube video with C ++ and wxWidgets

I am testing the following code with a YouTube video and it stays on hold when it reaches the Read function ... it seems that it does not receive any data and after a while the socket disconnect and the application ends normally. int MainApp...
asked on 11.04.2018 / 05:17
1
answer

Error installing clarifai could not find a version that satisfies the requirement clarifai.rest (from versions :)

I'm trying to install a module called clarifai, using pip install clarifai, and it throws me the following error    could not find a version that satisfies the requirement clarifai.rest   (from versions:) from what I have read others have...
asked on 11.04.2018 / 12:21
1
answer

Search for all tags that begin with a given chain

I'm doing a scrapy for a page where I'm looking for a label. I do it with BeautifulSoup. I look for all the links that start with them, but end up differently. Example: for url in soup.find_all('a', href=("/es/nds/*******")): Where the...
asked on 13.01.2018 / 11:58