Questions tagged [collect]

Use this tag for questions related to the act of gathering/collecting/grouping data/results from several nodes/places/computers to one (or main) resource(s).

Use this tag for questions related to the act of gathering/collecting/grouping data/results from several nodes/places/computers to one (or main) resource(s).

For example, in Distributed Computing, the slaves would do their local computation and eventually, one would like the master to collect the (local) results.

296 questions
0
votes
1 answer

collect possible to def queues = [] as String[]?

I have a question why using collect to a string array is not working. This is working ok String[][] serversAndQueues = [["server1","queue"],["server1","queue1"],["server2","queue2"]] serversAndQueues.groupBy { it[ 0 ] }.each { server, value -> …
user955732
  • 1,270
  • 3
  • 18
  • 46
0
votes
2 answers

Collect closure in groovy

I am new to functional programming paradigm and hoping to learn the concepts using groovy. I have a json text containing a list of several person objects like the following: { "persons":[ { "id":1234, "lastname":"Smith", …
Lee
  • 243
  • 1
  • 3
  • 10
0
votes
1 answer

how to use bulk collect in db2 cursor

Here is my procedure, I don't know how to use bulk collecton in cursor, that we can batch process the cursor data. Please help me, thanks! CREATE PROCEDURE PROC_AUTOACTIVE BEGIN ATOMIC DECLARE v_sql VARCHAR(800); DECLARE v_customer_id…
albert
  • 27
  • 6
0
votes
0 answers

JPA native query: How to collect inner fields as list

I have 2 entities: Request and Invoice. (One to many) How can I get result object: public class TestRequest { private Long idRequest; private List idInvoices; } Follow code: Query query = entityManager.createNativeQuery("Select…
0
votes
1 answer

Ghostscript merge print jobs

Dear Ghostscript Gurus. I have installed and tuned system printer to print to PDF by Gs (gswin32c.exe). The arguments of printer's port are: gswin32c.exe @"pdfwrite.txt" -sOutputFile="c:\PathToPDFFiles\%b.pdf" -c .setpdfwrite -f - And its all…
Voot
  • 1
0
votes
1 answer

rails an array of many link_to links in a sentence

The problem is, some Organization(s) don't have addresses and it breaks the page (Couldn't find OrganizationUrl with id=1826_). \ I'd like to somehow use the link if the address is present, and if not just show the name. Any…
jahrichie
  • 1,144
  • 2
  • 16
  • 24
0
votes
1 answer

How should I proceed after running the collect command?

Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production. I have a table in the below format. Number User Value ------------------- 1 A 25 1 B 28 2 C 30 2 D 35 This is what I…
Rafey
  • 5
  • 2
0
votes
1 answer

Collect small JS from webpage to one big JS

This is sample JavaScript code: /* Email me Animation */ $(function() { var offset = $("#sidebar").offset(); var topPadding = 0; $(window).scroll(function() { if ($(window).scrollTop() >…
Denis S
  • 43
  • 5
0
votes
1 answer

Puppet reduce function syntax error

I'm trying to run this Puppet code, as described in Puppet documentation: # test.pp $a = [1, 2, 3] $b = $a.collect |$x| { $x + 1 } alert $b But it gives me syntax error: $ puppet parser validate --debug test.pp Error: Could not parse for…
vvolodko
  • 113
  • 1
  • 4
0
votes
2 answers

Grails: ArrayList - Retrieval Speed

I'm working on speed issues with a currently working method that finds a specific attribute collection within an ArrayList. Depending on the size, it can take longer than 7 seconds to find the value in the list. I need to speed up this process, so I…
0
votes
2 answers

Collecting inventory from Form Submissions

I created an activity form using .ASP, by activity form I mean a form where people can select the activities they want to participate in. I would like to know if there is way to collect the submission data where it automatically collects inventory…
0
votes
1 answer

mpi gather collect data

I convinced that MPI_Gather collects data from all processes including root process itself. How to make MPI_Gather to collect data from all process NOT including root process itself? Or is there any alternative function?
Nurlan
  • 2,586
  • 18
  • 43
  • 62
0
votes
2 answers

Collect data from html table use jquery

I need collect data from the HTML table and send it to the server. I must use JQuery. there is my table …
user1858981
  • 31
  • 1
  • 1
  • 2
0
votes
2 answers

ruby - how can I make this enumeration statement shorter with Array#select or other methods?

I have the following 7 lines of code, how can i made them shorter and less wordy? max_group_size = 0 wrong_services.each do |service| group_size = service.iep_service.group_size if group_size > max_group_size then max_group_size =…
junky
  • 1,422
  • 17
  • 30
0
votes
2 answers

Primefaces adding only one row

I am trying to use p:collector to collect list of state objects. The problem is that only one row gets added to the stateList. After adding one row, when I click the commandButton, nothing gets added to the stateList. Here is my code. It seems I am…
Chetan
  • 3,661
  • 6
  • 40
  • 51
First Last Date of birth City