All Questions

1
answer

compile in sublimeText 3 python code activating a cmd window

Maybe my question is not the most accurate but good to explain create a new build system { "cmd": ["start", "cmd", "/k", "C:/Users/Jsociety/AppData/Local/Programs/Python/Python36/python.exe", "$file"], "selector": "source.python", "shell": tru...
asked on 08.02.2018 / 06:15
1
answer

Upload image to the server and rename it

Good day, basically I need to take a picture and re-name it with the name that the user provides in an input and upload it to the server. With this code, the images are already uploaded to the server, it would only be necessary to name them w...
asked on 22.01.2018 / 18:32
1
answer

Put query results in a JSON array

Friends, see if you can help me solve this dilemma. I am getting a JSON from a query to the database in which several tables are involved. That JSON is then presented in an Android app. I would like to present in my JSON a key called sa...
asked on 22.02.2018 / 11:33
1
answer

convert a saved image to byte in an itextsharp image to display in PDF C #

I need to convert a saved image into a byte in the database (SQL) to be able to print it to a pdf with itextsharp In this code I call the method where the byte of the database is consulted. string imgByte = obtenerByteImagen (codigo, codigo...
asked on 31.01.2018 / 17:54
2
answers

Problems connecting to multiple github accounts with different ssh keys

Something strange is happening to me, I have 1 app, in which I have to upload it to 2 different github accounts, however even though I create the ssh-keygen with different names: ssh-keygen -t rsa -b 2048 -C "clave1" -f /home/user/.ssh/clave1...
asked on 30.01.2018 / 07:53
1
answer

How to solve a combinatorial problem, preferably in python?

Today I come to pose a problem, more of algorithm than of language. I need to get to generate one, several, or all the possible combinations of 25 elements, (or I would even be satisfied with at least one combination with as many elements as pos...
asked on 31.05.2017 / 16:44
1
answer

Custom adapter adds rows when scrolling

I have created my custom adapter class, which is responsible for loading the custom elements within my listview. public class Adaptador_calidades extends SimpleCursorAdapter { private Context mContext; private Context appContext; private int l...
asked on 18.02.2018 / 02:20
2
answers

Error: code too large

I have the following arraylist : Polylines , the arraylist has 190 elements, which when compiled I get the following error:    error: code too large According to what I'm investigating, it's a java error, but I do not know h...
asked on 24.06.2017 / 01:33
1
answer

How to get facebook friends with the Graph API?

I have recently been asked to integrate Facebook with a website. The initial integration of login has worked correctly, but now it has been requested to get the list of friends of the user who is connected to the site, and to be able to send an...
asked on 05.06.2017 / 18:43
2
answers

How do I access a file created in the storage_path () folder in laravel?

I create a pdf with the package barryvdh / laravel-dompdf as follows: public function generarPdf(Request $req) { $datos = $req->data; Debugbar::info($datos); $archivo = storage_path().'\pdf\equipos\'.$datos[1].'-'.$datos[2]....
asked on 23.06.2017 / 07:23