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
8
votes
5 answers

Trying to do window resize with jquery cycle slideshow

I'm trying to run a JavaScript window resize script on a page with a jQuery cycle slideshow but I'm hitting some bugs I cant seem to work out. It resizes the first image fine on page load but then forgets the new height/width attributes for…
James
  • 297
  • 3
  • 4
  • 11
8
votes
4 answers

jQuery Cycle pagerAnchorBuilder

I'm using the Cycle plugin for use in a news-rotator. This means I'm using Div's to populate the slides instead of images. My ultimate goal is to make a pager where instead of the usual 1, 2, 3, 4, etc. - it instead returns the first H3 tag in the…
Casey Wight
  • 83
  • 1
  • 1
  • 4
7
votes
4 answers

C++ Includes in a cycle

Please consider the following three simplified files: student.h: #ifndef STUDENT_H #define STUDENT_H #include "course.h" class Student { private: Course someCourse; }; #endif course.h: #ifndef COURSE_H #define COURSE_H #include…
Vlad
  • 329
  • 1
  • 4
  • 12
7
votes
0 answers

How to find cycles of a given length in a directed graph? (Using networkx)

I'm trying to find cycles of length 2, 3, 4, and 5 in a directed graph. So far I've had decent luck on most inputs using the simple_cycles algorithm from networkx…
user3413468
  • 247
  • 1
  • 3
  • 9
7
votes
2 answers

Understanding the pseudocode in the Donald B. Johnson's algorithm

Does anyone know the Donald B. Johnson's algorithm, which enumerates all the elementary circuits (cycles) in a directed graph? I have the paper he had published in 1975, but I cannot understand the pseudocode. My goal is to implement this algorithm…
C.LS
  • 1,319
  • 2
  • 17
  • 35
7
votes
6 answers

jQuery.Cycle showing small images at first load

I've got problem with jQuery.cycle plugin. At first load of page (when imgs aren't cached) it's showing small imgs, like thumbnails. You can see it at (edit: sorry, old link) - just wait when the second img shows - it's small. Reload/refresh solves…
A123321
  • 837
  • 11
  • 21
7
votes
4 answers

Disappearing images in IE8 jQuery Cycle

http://www.lunatestsite.co.uk/products/lifestation Cannot for the life of me fix this. Only in IE8 so far. I had the same issue on the homepage cycle, but managed to fix by declaring width, height and background: none !important on the img's in…
luke
  • 237
  • 5
  • 15
6
votes
2 answers

CSS, JQuery Cycle and IE issue

I'm using a jQuery plugin called "Cycle" and I am having issues with the CSS for it in IE, it looks perfect in Opera, FF, Chrome and Safari, but IE is cracking the sads.. www[dot]photographicpassions[dot]com/home You will see the "latest work" on…
SoulieBaby
  • 5,405
  • 25
  • 95
  • 145
6
votes
4 answers

How do I find the shortest path that covers all nodes in a directed cyclic graph?

I need an example of the shortest path of a directed cyclic graph from one node (it should reach to all nodes of the graph from a node that will be the input). Please if there is an example, I need it in C++, or the algorithm.
Thaier Alkhateeb
  • 585
  • 5
  • 8
  • 18
6
votes
7 answers

What's wrong with my forEach method when a simple For Loop works just fine

So, I have a simple task, given the array: let arr = [true, false, true, false, true]; I need to reverse true to false and visa versa. I have managed to do this with a for loop: And it works fine. Now, I'm trying to do the same with a forEach and…
6
votes
1 answer

Pythonic way of copying an iterable object

For a small project I'm working on I need to cycle through a list. For each element of this cycle I have to start another cycle through the same list, with the former element as first element of the new cycle. For example I'd like to be able to…
atomocopter
  • 948
  • 10
  • 20
6
votes
2 answers

iPhone app versions: release micro-updates often, or major updates less frequently?

I released a new iPhone app 5 days ago. Already it has received high ratings, and many downloads, so I think it can be quite successful. (It's currently ranked in the top 10 paid music apps.) What do you think is the best release strategy: Release…
zkarcher
  • 150
  • 8
6
votes
1 answer

Minimum Mean Weight Cycle - Intuitive Explanation

In a directed graph, we are looking for the cycle that had the lowest average edge weights. For instance, a graph with nodes 1 and 2 with path from 1 to 2 of length 2 and from 2 to 1 of length 4 would have minimum mean cycle of 3. Not looking for a…
John Targaryen
  • 1,109
  • 1
  • 13
  • 29
6
votes
3 answers

Sequence starts with 1 after reaching MAXVALUE even STARTWITH 100 specified

I've come across a very weird Oracle sequence behavior. I have the following Sequence: CREATE SEQUENCE SEQ1 INCREMENT BY 10 START WITH 100 MAXVALUE 200 CYCLE NOCACHE; Here's an excerpt from "OCA/OCP Oracle Database 11g All-in-One Exam…
Mikayil Abdullayev
  • 12,117
  • 26
  • 122
  • 206
6
votes
5 answers

Minimal path - all edges at least once

I have directed graph with lot of cycles, probably strongly connected, and I need to get a minimal cycle from it. I mean I need to get cycle, which is the shortest cycle in graph, and every edge is covered at least once. I have been searching for…
joseph
  • 63
  • 1
  • 3