All Questions

1
answer

Validate a form with django

I'm on my first project mounted on a server and I've chosen the django framework. I'm making an application that shows values from a mineral database that I've made, and that has a search field with the form tag: <div class="container" styl...
asked on 14.11.2017 / 20:43
2
answers

Permit Application

I am currently asking for permission separately: if (ContextCompat.checkSelfPermission(this, Manifest.permission.READ_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) { if (ActivityCompat.shou...
asked on 10.11.2017 / 13:05
2
answers

How to get all the jobs in separate scripts sql server ssis?

When it is necessary to generate the drop and create scripts of the jobs in SQL Server separately, it is not possible through the SQL Server Management Studio, you can only go one by one to do this ... The problem with this is when you...
asked on 16.06.2017 / 15:28
2
answers

Copy text from an input or a div in the paper holder, saving the HTML tags

Some time ago I could copy text from an input text or a div in the clipboard, also saving its HTML format. That is, I could copy the text with the HTML tags I had such as p , strong , em , h1 ... etc. For this I used...
asked on 14.06.2017 / 11:48
2
answers

List index out of range

I am writing a code in Python that lists items in an alternative way. For example: [a, b, c], [1,2,3] → [a, 1, b, 2, c, 3]. But I get an error "List index out of range". This is my code: def unir_listas_alterno(lista1,lista2): nuevaLista =...
asked on 13.11.2017 / 16:26
1
answer

Temporary table in MYSQL and its use in PHP

I'm doing this code: <?php $tempSQL = "CREATE TEMPORARY TABLE IF NOT EXISTS tempUsers SELECT CONCAT(NOMBRE,' 'AP_PATERNO,' ',AP_MATERNO) AS NOMBRE, EMP_ID, AREA FROM EMPLEADOS WHERE ESTADO = 1"; mysqli_query($conn,$tempSQL); if(mysqli_affe...
asked on 23.06.2017 / 00:26
2
answers

Get the columns that are part of a PostgreSQL table

I need to get the name of the columns that make up a table in postgres, to perform an advanced search according to the selection of columns that the user selects. Is there a query to get the names of the columns of a table in PostgreSQL?  ...
asked on 20.06.2017 / 20:38
1
answer

Pass variable from the controller to several views in laravel

I have the following funcion edit in my controller public function edit($id){ $ficha= Data::findOrFail($id); return view('ficha.edit')->with('ficha', $ficha); } This sends the variable $ficha to 'ficha.edit'...
asked on 29.11.2017 / 19:54
2
answers

Update of a table comparing or calculating with another [closed]

I need to do an Update of one table comparing or calculating with another. I have a table of jugadores with all your data including sueldo , rut , and other fields. Also, I have the table partidos with its respec...
asked on 27.11.2017 / 05:15
1
answer

Send message between parent and child process

Starting from this code void enviar(char palabra){ printf("Escribe una palabra para enviar de H a P: "); scanf(" %c",&palabra); } void my_handler(int signum){ if (signum == SIGUSR1){ printf("Recibid...
asked on 29.11.2017 / 10:28