All Questions

1
answer

Convert a switch to linq

Is there any way to convert this SWITCH to LINQ ? switch (row["grupo"]) { case "Genera ICAs": enuMetodo = TipoMovimientosStock.GeneraIca; break; case "Genera Remito de Compras": enuMetodo = TipoMovimientosSto...
asked on 12.09.2017 / 15:26
2
answers

Detect, in the destructor, if we are a temporary instance

I'm trying to detect, in the destructor , if I'm in a temporary instance or not. The first thing I tried was to qualify the destroyers: ~S( ) & { ... } ~S( ) && { ... } With which I got a nice error message:    error:...
asked on 11.09.2017 / 05:56
2
answers

how to use a function $ (document) .ready (function () {}) of JS?

My problem is that I want to use that function for several pages, I just do not want to be placing the <script></script> in all of them, it's very exhausting. You see, I'm starting to use Alertify.js and I want to us...
asked on 17.09.2017 / 14:53
1
answer

error: type / value mismatch at argument X in template parameter list

I try to create a backpack , a template class that acts as wrapper of another, and make calls to a callable provided in one of its arguments. I would like the callable to be both a class that supports operator( ) , and a normal f...
asked on 14.09.2017 / 12:12
1
answer

PDO fetch array

I would like to know if there is any way to rename the keys of an associative array that is given by PDOStatement :: fetch. The sentence that I prepare and execute in SQL does not come to the case in itself (although if they require it, I can ad...
asked on 04.01.2018 / 20:30
1
answer

Error trying to execute SQL statement, System.InvalidOperationException

I am developing an application in C # to recover data from a database. The case is: when I try to execute the statement I get this error:    "System.InvalidOperationException: Fill: The SelectCommand.Connection property has not been initializ...
asked on 20.09.2017 / 21:22
1
answer

Sign XML document with sha256 signature method

I develop an application that signs an XML document ... even there perfect ... But I must change this line of signature <SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/> for this one: <SignatureM...
asked on 03.01.2018 / 18:34
2
answers

How to remove spaces in bootstrap?

I'm starting with some web design but I've encountered this problem that I've been trying to remove for a while. I would like to eliminate the space that is between the logo of the page and the start link: <body> <nav class...
asked on 12.01.2018 / 04:56
2
answers

MySQL error: # 1690 - BIGINT UNSIGNED value is out of range in

After making the following query: SELECT CP.code FROM cart_products AS CP INNER JOIN products AS P ON P.code = CP.code WHERE CP.cartID = 22207 AND (P.stock - CP.quantity) > 0 I got the following error:    # 1690 - BIGI...
asked on 29.12.2017 / 20:33
2
answers

Problems with max use after count

Dear, I have this query SELECT p.id_pregunta, tr.tipo, COUNT(r.id_respuesta) as cantidad_respuestas FROM encuesta e LEFT JOIN dimension d on e.id_encuesta = d.id_encuesta_p LEFT JOIN preguntas p on d.id_dim...
asked on 29.12.2017 / 06:10