Questions tagged as 'array'

1
answer

Group and accumulate values in JavaScript

Dear: I have the following file JSON with information: var rawtData = [ { date: "2015-01-03", "pv": 50, "ac": 100, "ev": 50 }, { date: "2015-01-01", "pv": 100, "ac": 200, "ev": 200 }, { dat...
asked by 22.02.2017 / 22:33
1
answer

How can I save the result of a query in an array using the MySQL stored procedure?

I want that when executing this query SELECT tabla1.campo1 From tabla1, tabla2 Where tabla1.campo1 = tabla2.campo1 Group By tabla1.campo1; Which will give me for example 600 records, save the 600 recor...
asked by 05.08.2016 / 20:40
2
answers

Read content from a binary file, which contains integers?

as you can read the contents of a file ".bin" in which we have inserted whole numbers. I would like to know how you can read that file, I used the "fread" tool but it does not show me anything or random numbers. The ".bin" file contains th...
asked by 31.05.2016 / 00:53
1
answer

How to traverse array values after inserting a value in a busy place

In a console application, where I have a string type arrangement, one of the operations allows inserting values in places that are occupied, for example: I have an array in the following way: {cero, uno, 0, 0 ,0} . The zeros are null va...
asked by 22.02.2016 / 21:13
2
answers

how to remove an element from an array vue js

I have an array in the following way. [ "icono-5-4", "icono-7-6", "icono-8-7", "icono-9-8", "icono-1-0", "icono-2-1" ] I want to reactively remove an element: Know the name of the item until the user clicks on a button. Example, if the clie...
asked by 29.11.2018 / 21:30
3
answers

How to get recursively retrieve values from a php array?

I take care to know how to go through a multidimensional array in php and get its values. The arrangement corresponds to a multilevel menu. In the Array of the image I need to extract the ID of the array, and in case an ID is inside a childre...
asked by 24.06.2016 / 06:38
2
answers

Method for does not show images in array

Query, why when showing images with this for method, shows only the array " Collection.push " but I can not display strong> the array " images " with the same method for changing the for parameter (var objects of collection ) for the...
asked by 26.09.2018 / 22:21
2
answers

Remove duplicate elements from an array

Read the question before marking it as repeated, thank you. What I need is that if there are duplicate elements in the array, delete them all. The array is something similar to this: var array = [[1,2], [2,3], // repetido...
asked by 30.09.2018 / 20:07
1
answer

Get the positions of the array where you find a value with numpy.where

I have an array of the form: array = ['A', 'D', 'A', 'A', 'A', 'D', 'A', 'A', 'D', 'A'] And I need to get the positions of the array where I find 'D' . What I'm trying to do is: d_pos[numpy.where(array == 'D')] But I get the foll...
asked by 21.09.2016 / 20:34
2
answers

Error with array in java

When creating a new Array B from an array% Co_of% previously filled, when making modifications to the array A are also reflected in the array B I explain myself in the following code: BufferedReader br = new Buff...
asked by 27.07.2018 / 05:23