Iterations are the successive repetitions in loops such as for, foreach or while. Questions with this tag are often concerned about how to best handle a collection of data.
2
votes
0answers
191 views
Java iterate huge database table
I have a programme in c# that iterates a very large database query using yield return. The calling method then works on each object by calling the IEnumerable in a parallel.for each. Java does not ...
2
votes
0answers
139 views
Mustache: referring to elements in nested list iterations
I was wondering whether there is a way to explicitly refer to elements in a nested list iteration in Pystache. More specifically, I have two lists:
xs = [x1,x2]
ys = [y1,y2,y3]
When iterating over ...
1
vote
0answers
35 views
Attempting to Obtain Taxonomic Information from Biopython
I am attempting to alter a previous script that utilizes biopython to fetch information about a species phylum. This script was written to retrieve information one species at a time. I would like to ...
1
vote
0answers
42 views
Recursive File listing stops after 2 files
I have the following code to list all files (in the direct folder and sub folders).
$imagesDir = '../Stock_Images';
$di = new RecursiveDirectoryIterator($imagesDir);
foreach (new ...
1
vote
0answers
91 views
Finding a number iteratively - algorithm design
I'm trying to design an algorithm that will find a price for me given a set of rules.
Current Situation
We currently set the 'price' of all products to £0.01 and set a 'line_crossed' property to ...
1
vote
0answers
59 views
PHP: Big Array Iteration
I've been having this problem when I iterate on an array that I get from reading a XLS File, it suddenly stops at line 9700 without getting any error when I have a file with 19000 rows.
First I ...
1
vote
0answers
13 views
trouble with python double iteration
Hi and thanks in advance for the help.
I am a beginner in Python and I am having issues with iteration. I understand itertools is probably part of the solution to my problem but I don't seem to ...
1
vote
0answers
122 views
Persist multiple objects with jpa and hibernate, resume on fail
I know that SO has a lot of posts about validating data when persisting objects through jpa/Hibernate. Most of the answers says that a read of data should be performed before the persist so that an ...
1
vote
0answers
113 views
jQuery $(this) effecting everything when using .each()
Fiddle with all my code everything
so I am struggling a little bit with the .each function in jquery. I am iterating through a bunch of divs with the same class and then if it is in a certain ...
1
vote
0answers
87 views
How to code fastest for loop ? vectors, iterators, basic ? what is the best method?
Before I wasn't considering any speed issue during 3D graphics programming, but now I have to consider it seriously for real-time applications. In real-time, as well as offline I have to use a lots of ...
1
vote
0answers
54 views
How can I generate a variable number of permutations based off an ArrayList?
I'm building a program to help students set up schedules by inputting class numbers and prioritizing them. The student should be able to plug in between three to ten classes, and the program would ...
1
vote
0answers
99 views
How to raise StopIteration repeatedly from Ruby fiber
The following Ruby fiber raises a StopIteration exception the first time it is resumed, but not subsequently. Is it possible to make a fiber which raises the exception every time it is resumed?
f = ...
1
vote
0answers
94 views
How to escape from inside a Handlebars each loop?
I am iterating over an array using Handlebars' each helper, but when I'm inside of the loop, how do I reference a mixin that does not contain an object in the looping array?
1
vote
0answers
275 views
TFS 2010 Iteration backlog - Burndown. Not updating
In my Iteration Backlog generated by TFS 2010, Burn-down chart is not updating with data.It is always showing the below error message.I have "\Iteration 1" in my team project.
The iteration path ...
1
vote
0answers
90 views
iterating through a list of records in a second (html) page, where the first page orders the results
I'm building this site using jsp / servlets on the backend.
The first page (or "search" page) allows one to search for records from a table, and also allows the user to sort the records. The sorting ...