All Questions

2
answers

string to list in python

Hello How can I convert string '[1,2,3,4]' to list in python having the following p> valor_inicial = str([1,2,3]) Now I want that initial_value to convert it into a list. How can I do it?     
asked on 05.10.2018 / 23:56
2
answers

MYSQL get data grouped in SELECT with IF

I have the following SQL code SELECT e.sigla_equipo, e.patente_equipo, IF(j.nombre_jornada = 'NOCHE', CONCAT(c.nombre_conductor, ' ',c.apellidoPat_conductor), '') as noche, IF(j.nombre_jornada = 'DIA', CONCAT(c.nombre_conductor, ' ',c.apellido...
asked on 19.10.2018 / 16:54
1
answer

In mysql page how to get total records when the limit is applied?

Currently I'm doing two queries in my pages, in an extra, the list of data according to the page: SELECT * FROM tabla LIMIT 20,10 In another I apply the COUNT to obtain how many records in total that query has: SELECT COUNT(*) FROM...
asked on 28.11.2018 / 18:47
1
answer

What differences exist between the different ways of defining a DEFAULT 0?

I have the following query: ALTER TABLE compras.factura_gasto ADD COLUMN m_excento numeric(36,2); ALTER TABLE compras.factura_gasto ALTER COLUMN m_excento SET DEFAULT 0::numeric; My question is: In SET DEFAULT Is there any difference betwee...
asked on 09.10.2018 / 06:38
2
answers

Fill an n * m matrix diagonally

I have a problem that involves matrices, what I need to do is fill a matrix of N * M of dimension (that is, of a number n of columns and rows given by the user), with even numbers. example: I have come up with the code, but I can not ma...
asked on 22.11.2018 / 20:27
1
answer

Error removing dependency from laravel

When I removed a dependency of composer.json and executed composer update , the packete caffeinated/shinobi was eliminated, which weighed to replace it with a similar one since it gave me a lot of problems. But now when I...
asked on 29.11.2018 / 01:02
1
answer

How to fill array with a for cycle

I'm using a library of jquery DDslick to fill the input selects with styles even images, the library uses arrays to fill them for example .. var data= [ { text: "Facebook",//este es el texto que se ve en la cabecera...
asked on 04.10.2018 / 15:27
1
answer

Accept only all regular subexpressions

I have a word, for example, hola , and I want to make a regular expression that accepts all subexpressions. That is, you have to accept h , ho , hol and hola . For this I do ^(hola)|(hol)|(ho)|(h)$ Is the...
asked on 28.11.2018 / 21:11
1
answer

Problem installing Dot Net Core on Debian 9

I followed the official Microsoft documentation to install Dot Net Core on the server , says execute the following commands: wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.asc.gpg sudo mv microsoft...
asked on 13.11.2018 / 06:41
2
answers

Use the if with arrays

For a university job I have to make a distributor. Now in one part I have to calculate how many coins I will return to give the change. For example I have a water drink that costs € 2.20 . The person pays with 3 so their change w...
asked on 28.11.2018 / 09:49