All Questions

2
answers

Can not read property 'length' of undefined JAVASCRIPT

I'm just a fan of programming and as such I'm running into a certain problem. The code below gives me the following error: Cannot read property 'length' of undefined at computeCourses If I run the computeCourses () function from the chr...
asked on 18.06.2018 / 22:42
1
answer

How to implement a class that inherits from QGraphicsItem and behaves like a QGraphicsItemGroup

I am working on a project where I needed to inherit from the class QGraphicsItem of Qt since I needed to have QGraphicsItem with special features (modification of line size, depending on the zoom, setting the boundingRect to the fo...
asked on 21.09.2018 / 08:55
2
answers

Remove property from JavaScript object

As an example, we can pose an object in the following way: var myObject = { "Event": "Prueba", "method": "post", "url": "http://" }; What is the best way to remove the url property to end with a new myObject object...
asked on 27.08.2018 / 18:12
3
answers

'For in' does not recognize the elements in an array

I have the following problem with a 'for in' loop: it does not want to recognize the elements of the array. I tried to see the elements after calling the 'for in' with the console.log, but it returns 0. function isValidWalk(walk) {...
asked on 02.07.2018 / 18:48
2
answers

Is it possible to traverse a JSON with for cycle? (do not use foreach)

I have a JSON that is easy to navigate with a foreach, the structure of the JSON is the following: { "llave":"valor","llave":"valor","llave":"valor" } foreach ($arrayJson as $key => $value) { echo $key . ': ' . $val; } I would like...
asked on 21.09.2018 / 19:03
1
answer

mysqli object-oriented

What I'm doing wrong I have this sql statement that should throw me 1 and is throwing me 0 my code with prepared query: <?php session_start(); include"conexion.php"; $me=$_SESSION["id"]; $id= $_GET["id"]; $sql=$conexion-&g...
asked on 25.08.2018 / 03:10
1
answer

How to select the second and the penultimate item in php?

How can I select the second and the last item in a MySQL table with php. I tried to do the following but limited myself to position 12 of 15, and must show me from position 2 to 14 of 15 in total, the second and the penultimate item. The i...
asked on 30.08.2018 / 02:05
1
answer

How to truncate decimals in datagridview c # column?

I have a DataGrid that receives your information from the database through an SP, in one of the fields, I need to truncate to two decimals instead of rounding it up so that if I have a value as 99.9999578 , stay in 99.99 and...
asked on 31.08.2018 / 17:59
1
answer

Cut text from an input stored in a variable with javascript or jquery

I am storing in a variable the .text of a input . For example the text variable: texto = "Esto-es un mensaje" I want to save part of the content of that text in another variable. So where is the script that saves for ex...
asked on 01.09.2018 / 19:02
2
answers

Where are the .sql files stored in windows?

I installed MySQL in windows 10 64 bits and I am testing the example databases, download one that they use in an example that I follow, it is called northwind, I do not have it and I download it from the internet, I want to include it so that it...
asked on 15.09.2018 / 19:46