Questions tagged [cycle]

A cycle is a process or series of items, which repeats several times.

Cycle is processes or events, which repeat several times. Number of repetitions can be known before starting the cycle or cycle can be repeated until some condition is true.

1551 questions
3
votes
2 answers

Fail to cycle multiple input files with awk/gawk

I have a ton of files in subfolders, each containing three columns of numbers. I need to locate the largest number in $2 and then print columns $1 and $2. This is what I got: awk 'FNR > 1 {max=dist=0; if($2>max){dist=$1; max=$2}}END{print FILENAME "…
gusgrave
  • 45
  • 5
3
votes
1 answer

JQuery Cycle Synchronization

I have defined two slideshow by JQuery cycle below: $('#slideShow').cycle({ fx: 'fade', timeout: 3000, speed: 2000, random: 1 }); $('#slideText').cycle({ fx: 'blindZ', timeout: 3000, …
user636190
  • 31
  • 2
3
votes
1 answer

JAGS error - Possible directed cycle involving some or all of the following nodes

The full dataset contains ~11,000 rows. I have been running the code with K=400 whilst checking that the code runs. All of the rows relate to a specific cell on a map and contain information extracted from Sentinel-2 images and a digital elevation…
Bong112
  • 161
  • 10
3
votes
1 answer

Detecting a cycle in an array PHP

I'm running a simple script which puts an integer through the formula of the Collatz conjecture and adds the output of each step into an array. I want to use a function to detect if there's a cycle in the array, using Floyd's algorithm. And though I…
Vincent
  • 41
  • 3
3
votes
2 answers

Detecting cycles in a MySQL database using PHP

I have a table in MySQL with two (important) columns, A and B, with value referring to a package. A row is in the table if and only if package A requires on package B. I was hoping to (1) generate a graph in php, then (2) determine if the graph is…
Zeophlite
  • 1,607
  • 3
  • 19
  • 36
3
votes
2 answers

Android: Problems debugging with the emulator from eclipse

This is driving me crazy. Like these people, slow-android-emulator, I'm finding running the emulator from eclipse is slow and problematic. As suggested, I've tried running the emulator seperately. But then I don't get my latest changes. I don't…
James John McGuire 'Jahmic'
  • 11,728
  • 11
  • 67
  • 78
3
votes
3 answers

jQuery Slider - How to have different times for each image?

I am trying to get each image to have a different amount of time shown and thought I could use the cycle plugin but cant seem to get it to work, here all the code jQuery $(document).ready(function(){ $('.slideshow ').cycle({ fx: …
Liam
  • 33
  • 1
  • 4
3
votes
1 answer

Graph Cycle Detection with Java

I'm studying cycle detection in DAGs, and I've implemented my version of the algorithm using DFS, here is the code; public class DFS { public static boolean hasCycle(Graph graph) { for (Vertex vertex : graph.getVertices()) { …
Pj-
  • 430
  • 4
  • 14
3
votes
3 answers

How change the cycle for getting correct answers?

I have a task to create a function that reverse any string character inside the regular bracket sequence, starting from the innermost pair. The string sequence can have, spaces, punctuation marks, letters and brakets. So the result should be…
user21
  • 249
  • 3
  • 13
3
votes
2 answers

For in twig with include

I need do a cycle for with an include directive in twig but the template twig will not repeat. This is a snippet of my code: ... {% for object in objects %} {% include 'template.html.twig' with {'object':object} %} {% endfor %} ... Only the…
Dasaaf
  • 145
  • 2
  • 11
3
votes
2 answers

Automation of multivariate regression with variable transformations

I am working on a regression problem, and I try to make the process more automatic. For each of the x variables I have an X matrix of transformations I would like to test (each column represents a transformation of the x variable). So I need to…
3
votes
1 answer

jQuery Cycle Slideshow stops workring with 3+ photos

I have a slide show with Previous and Next buttons that works fine with 3
  • 's but once I add a Fourth (or more) the next button and previous button don't show up, and they don't work (even if they were invisible). Any ideas? The Sample Page…
  • Varazi
    • 583
    • 2
    • 10
    • 27
    3
    votes
    2 answers

    jQuery cycle slideshow resize problem

    On this page I have a splash screen in the middle which is 100% width and it rotates graphical images every 8 sec. I have 3 div inside this slideshow. Main div contains the slideshow , internal div has repeater background image and internal div…
    Zeus
    • 3,091
    • 6
    • 47
    • 60
    3
    votes
    1 answer

    How to find the minimum weighted cycle containing two given nodes in a weighted undirected graph?

    Given a weighted undirected graph G = (V, E) and a set of nodes P. Given two nodes, n1 and n2. I want to find two separate (non-overlapping) paths from n1 to n2, so that the sum of the weights of the two paths is minimum. And I paraphrase the…
    Tian Wang
    • 31
    • 6
    3
    votes
    4 answers

    Python: cycle through elements in list reversing when the end is reached

    I have a list that looks like: a = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10'] I need to cycle through this list one element at a time but when the end of the list is reached, the cycle needs to be reversed. For example, using…
    Gabriel
    • 40,504
    • 73
    • 230
    • 404