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.

354 questions
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,860
  • 19
  • 47
  • 64
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
  • 3
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,480
  • 1
  • 17
  • 32
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
  • 4,735
  • 8
  • 48
  • 57
0
votes
2 answers

List inplace replacement & time zone convertion

I have been trying to resolve this issue for the past day and can not seem to find a more elegant (Groovy style) solution, hope someone can help me out. Basically I have a list that contains time stamps (GMT-0) coming from an external source that…
syepes
  • 13
  • 4
0
votes
1 answer

Mysql2 response does not work with method collect in Ruby

I am using mysql2 in my ruby script. using this to test API responses against the mysql DB this is a snippet of my script test_job_by_id_5 id = $data["jobs"]["id"][i] # example 5 job = JobServices.job_by_id(id) response = @@con.query("select *…
Amey
  • 8,470
  • 9
  • 44
  • 63
-1
votes
1 answer

How to reduce an ArrayList of objects to Map>

public class Cont { public String getContinent() { return continent; } public void setContinent(String continent) { this.continent = continent; } public String getCountry() { return country; } …
-1
votes
1 answer

Convert for-loop and if condition to stream, filter, collect

I am trying to convert this for loop and if condition to Java streams, filter and collect final List> students = listofstudents.get(); final List finalist = new ArrayList<>(students.size()); for(int i=0; i
deepan
  • 47
  • 5
-1
votes
2 answers

How can i collect data from form with javascript and store it in variables?

Hey lets say i have a simple form like this:
user19271084
-1
votes
3 answers

When I view the source code of a potentially malicious page, can the website harm my computer?

I'm investigating something and it led me to a website online. I haven't yet visited the website because I have reason to believe that it may have malicious content. I know that in Google Chrome, you can view the source code of a webpage by pressing…
-1
votes
2 answers

Laravel Grouping By date

i read some questions already posted here.But not found any solution for my requirement. Remember this response showing check-in info about user visited a store. Grouping the Collect $this->collection->groupBy(function ($date) { …
Fredericka Hartman
  • 835
  • 1
  • 7
  • 13
-1
votes
1 answer

How to connect my collectable items with the random generator and use a list of words for generating in UNITY 2D

I have a script for random word generating: public TextMeshPro largeText; public void BtnAction() { CreateRandomString(); } private void CreateRandomString(int stringLength = 10) { int _stringLength =…
VPD
  • 47
  • 1
  • 9
-1
votes
1 answer

Laravel 7: Find duplicates in a collection and keep lower values and remove the others higher values

when i use $data_collect->groupBy('group_id') and give me result like this: Illuminate\Support\Collection Object ( [items:protected] => Array ( [1] => Illuminate\Support\Collection Object …
Fredy
  • 2,840
  • 6
  • 29
  • 40
First Last Date of birth City