Questions tagged [cyclic]

119 questions
15
votes
4 answers

React Native JSON.stringify cannot serialize cyclical structures

We're building a RN app (RN0.37), and we're running into an issue where when the app is run, we get a "TypeError: JSON.stringify cannot serialize cyclic structures". Nothing of relevance has changed on the API responses, and the issues went away…
Vicente Opaso
  • 151
  • 1
  • 1
  • 5
10
votes
1 answer

Maven runtime scope and cyclic dependency

I have two module A and B. Actualy B is plugin to A. B depends on A in compile time. A NOT depend on B. On A runtime I want to add B to classpath, so in A's pom.xml I add the following dependency pom.xml
user1500951
  • 101
  • 1
  • 3
9
votes
3 answers

Haskell how to generate this infinite list?

I saw this code to generate Fibonacci numbers. fibs = 1:1:(zipWith (+) fibs (tail fibs)) Can a similar styled code be written to generate the infinite list [1..]? I saw this link on cyclic structures on the Haskell website. There an example is…
Tem Pora
  • 2,043
  • 2
  • 24
  • 30
7
votes
2 answers

Search for cyclic strings

I am looking for the most efficient way to store binary strings in a data structure (insert function) and then when getting a string I want to check if some cyclic string of the given string is in my structure. I thought about storing the input…
user550413
  • 4,609
  • 4
  • 25
  • 26
7
votes
3 answers

checking whether mutable list has cycle in ocaml?

I'm trying to write a function to test whether a mutable list in Ocaml contains a cycle or not (that is, has a reference to itself and repeats continuously. My list is defined as type 'a m_list = Nil | Cons of 'a * (('a m_list) ref). So far, I…
anon
  • 93
  • 1
  • 4
7
votes
3 answers

Is an infinite list of ones sane?

In Prolog, is the unification X = [1|X] a sane way to get an infinite list of ones? SWI-Prolog does not have any problem with it, but GNU Prolog simply hangs. I know that in most cases I could replace the list with one(1). one(X) :- one(X). but my…
Kijewski
  • 25,517
  • 12
  • 101
  • 143
6
votes
1 answer

Hosting a web server using Cyclic issue

I'm trying to host my server.js file that has my API configured on Cyclic, the deployment is a success but the URL is returning status 500 for any endpoint call. I hosted the React front-end on github pages. I have no idea what's missing or why it's…
6
votes
9 answers

The Elegant way to handle Cyclic Event in Java?

i think this not a specific problem to me; everybody might have encountered this issue before. To properly illustrate it, here's a simple UI: As you can see, those two spinners are controlling a single variable -- "A". The only difference is that…
Defd
  • 470
  • 3
  • 16
4
votes
2 answers

Cyclic.sh is not detecting the start scrypt in package.json

I came here after some hours of reading and getting into the cyclic cool deployment process. https://www.cyclic.sh/ I was trying to host my express js app for free and linked my github repo to my cyclic.sh dashboard. (I added typescript to my…
DiegoS
  • 41
  • 3
4
votes
1 answer

How to implement a cyclic UIScrollView?

How to implement a cyclic UIScrollView? That is to say, when you scroll to the very left item then the UIScrollView will show the very right one. Any help would be appreciate.
pcjbird
  • 109
  • 1
  • 8
4
votes
1 answer

java observers causing cyclic inheritance

Suppose I have two classes: A with property A.a, B with property B.b. Some properties in A depend on B.b, but A.a does not depend on B.b. Some properties in B depend on A.a, but B.b does not depend on A.a. I would like A to be notified of changes in…
NLRicker
  • 170
  • 1
  • 1
  • 8
4
votes
1 answer

What is cyclic and acyclic communication?

So I've already searched if there was a question like this posted before, but I wasn't able to find the answer I liked. I've been working with some PLCs and variable frequency drives lately and thought it was about time I finally found out what…
Izzo
  • 4,461
  • 13
  • 45
  • 82
4
votes
1 answer

android/java - looking for an efficient concurrent cyclic queue

does anyone know of an (open source) implementation of a bounded concrrent cyclic queue , or an available API class built into android/java ? the concurrent (not synchronized or lock based) operations i need for this collection are at least enqueue…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
3
votes
2 answers

I'm trying to rotate an array about a given index in python

case 1: a=[1,2,3,4,5] index k=2 a[:k],a[k:]=a[k:],a[:k] When I swap array elements like this. I got this output. **OUTPUT:[3, 4, 1, 2] case 2: b=[1,2,3,4,5] b[k:],b[:k]=b[:k],b[k:] but when I swap array elements like this i got this.The only…
3
votes
1 answer

can I estimate a time varying seasonal effect in R with GAMM?

I would like to use a generalized additive model to investigate time-series data in R. My data are monthly and I would like to estimate a seasonal effect and a longer run trend effect. I have followed some helpful posts by Gavin Simpson here and…
aaronmams
  • 141
  • 12
1
2 3 4 5 6 7 8