Questions tagged [infinite]

An infinite structure or process is one which does not terminate. Infinite loops or structures may be bugs in certain contexts, but also may be desired behavior, particularly in server-processes or lazy languages.

Filter by
Sorted by
Tagged with
0 votes
0 answers
23 views

Whenever user try to signup a new account to app it shows login screen then goes to home screen in flutter?

I'm using the following code for signin up. But the problem is after successfully signing in When anyone tries to sign up for the app, it redirects them back to the sign-in page. Please tell me how to ...
K Jonas's user avatar
0 votes
0 answers
4 views

Infinite slider using HTML elements reorder

I have a parent div and inside 6 children divs. I styled them using :nth-child. Depending on the number they have different positions and z-index-es. I need to create a function (onClick on the button ...
Marta Skiba's user avatar
0 votes
1 answer
49 views

Any way to create an infinite carousel effect?

could you help me create an infinite carousel effect? I have a way to do it is by restarting the image carousel checking if I reach the end of images and returning to 0 with " progress = (...
Plantas y remedios Caseros's user avatar
0 votes
0 answers
33 views

Broken Pipe in Infinite Loop

server.py: import socket serverSocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) host = '' port = 50000 serverSocket.bind((host, port)) #===================================================...
ProgramV's user avatar
1 vote
1 answer
58 views

Infinite recursion java issue

I am trying to solve a problem and can't seem to figure this one out. I have tried creating Lists and sets that keep track of the towns visited and then to skip if it is already visited but none of my ...
Wragnam's user avatar
  • 33
1 vote
1 answer
149 views

Pylance (VS Code type checking) mistakes the count() infinite iterator as finite

I'm relatively new to Pylance (VS Code's static type checker, based on Pyright) and just stumbled upon this type checking error with the count() infinite iterator. I have some code I've been playing ...
yoniLavi's user avatar
  • 2,676
0 votes
1 answer
149 views

flutter : Infinite scrolling is not working

I used a package Pagination_view, but it crashed when the data amount was huge. that's why I make a reusable widget for infinite scroll. Here my widget code: import 'package:flutter/material.dart'; ...
Abir Ahsan's user avatar
  • 2,755
-1 votes
1 answer
45 views

tictactoe program keeps looping until draw even if it's won

It keeps asking for input even though it's already won until you fill all the empty spaces and at that moment it says you drew. function getboardstring(gameBoard) { let string = ``; for (let i ...
iacoz's user avatar
  • 7
0 votes
0 answers
16 views

Error: The access path to some JavaScript files on your website is indicated in the URLs from which the redirect is set up

I am getting a 302 Javascript File Error on a site I am managing. It is using Infinite Ajax Scroll v3.1.0. The application I use which picked up the error has provided me with this issue description: &...
One Studio's user avatar
0 votes
0 answers
104 views

Make content repeat itself in auto horizontal scroller with GSAP & Nextjs

I have made an automatic horizontal scroller with GSAP and NextJS, the only problem i have with the scroller is that the content is not repeating itself seamlessly. I want each element to go back in ...
JonasBang__'s user avatar
0 votes
1 answer
330 views

Can anyone help me with my "GnomeCode" Script? The error message I get states the following:

18:13:51.541 Infinite yield possible on 'ReplicatedStorage.Events:WaitForChild("GetData")' - Studio 18:13:51.541 Stack Begin - Studio 18:13:51.541 Script 'ServerScriptService....
Underman17's user avatar
1 vote
1 answer
548 views

How to make a vertical infinite CSS background image loop?

I've been trying to pull off this technique but with a vertical setting (method 1 in the link): https://blog.logrocket.com/creating-infinite-css-background-image-loop/ However, it never seems to work. ...
Birre's user avatar
  • 25
0 votes
1 answer
79 views

infinite scroll in reactJS, display data oncw I scroll

is it possible to repeat the post once I scrolled the page?... i had two post data in my newsfeed and I want it to be infinite as I scroll. I want to display the data after I scroll
user21200601's user avatar
1 vote
2 answers
81 views

Stop firing didSet to avoid infinite recursion with didSet in Swift with multiple properties

I have a class with two properties whose value is set using didSet. class MyClass { var myProp1: Bool { didSet { self.myProp2 += blinks ? 1 : -1 } } var myProp2:...
ArturJD96's user avatar
2 votes
0 answers
20 views

Unable to center plot in zero due to infinite result in function: y = math.exp(-(1/(x**2)))

The plot is not centered in zero because as there is an infinite result when x takes the value = 0. How can I solve this issue and have the graphic centered in zero? import math import numpy as np ...
ZeroDarKoffee's user avatar
0 votes
1 answer
77 views

Infinite loop calling recursive function

ok so I want to write a function that looks for all subdirectories given a directory as input. It accepts also an int so that it's possible to keep track of the levels. The return value should be a ...
David Power's user avatar
-1 votes
1 answer
52 views

Button stops after first click

const btnEl = document.getElementById("btn") var taraEl = document.getElementById("tara") var capitalaEl = document.getElementById("capitala") const rezultatEl = document....
Daniel Teresneu's user avatar
1 vote
0 answers
174 views

On ng serve command ,compilation goes into infinite loop in angular 14

enter image description here Also on single time save file it generate 5 to 6 time compile project in node.js enter image description here Version information.
Kiran Rohit's user avatar
0 votes
0 answers
62 views

How can I implement infinite scrolling in React using the Intersection Observer API?

Please briefly describe How to implement infinite scrolling in React using the Intersection Observer API?
Faizan Ahmad's user avatar
0 votes
0 answers
52 views

Problem with infinite horizontal scroll on Tumblr theme

I am using the Kodiak tumblr theme (https://kodiak-themedemo.tumblr.com/), but the infinite horizontal scroll stoped working on my blog (https://zhanayordanova.tumblr.com/). Have any ideas why? I ...
Anajell's user avatar
0 votes
0 answers
79 views

why is this code go to an infinite loop without returning anything

I wrote a code which scrape data from amazon.but it seems like my code is waiting for something for infinetly before writng to the csv file. LINE NO 94 i am trying to use multiprocessing here .so ...
Sid's user avatar
  • 321
0 votes
1 answer
41 views

'Not a Function' Error keep appearing when building a infinate scroll carousel and I dont know how to fix the problem [duplicate]

I've been trying to build an infinite scroll blog carousel. I found a tutorial and followed it. Even watched it again to double-check that the code was correct but I keep getting an error in the ...
Jason_C's user avatar
  • 41
0 votes
3 answers
163 views

infinite loops of for loop in python can be done?

how many times we can execute the print statement? for i in range (1,6,-1): print(done) The answer is none. But in C language if we write this code it runs in infinite mode. Why? int i; for (i=5; ...
Dr. D.N.D.Harini's user avatar
0 votes
3 answers
138 views

dafny infinite set axioms and proving gcd lemma

Here is the goal. I am hoping to prove that given two numbers a and b, which are relatively prime I can show that there is some x and y such 1 = a*x+b*y. I copied implementation of GCD from KRML 279 ...
Hath995's user avatar
  • 885
0 votes
1 answer
330 views

Infinite loop while running collect() function in Power Apps

I have the following formula: // First part to collect records from a SQL database ForAll( WSL_INVENT_X_LOCATION; If( Descr = drop_materiales.SelectedText.Value; Collect( ...
Benjamin Lahsen's user avatar
0 votes
4 answers
77 views

Why do i have infinite while loop?

I want to cut a list into sublists of a given length (let it be 2 for example). To solve this task i have 1st while loop for the indices in the list and 2nd while loop with the counter of 2. I do ...
AstA's user avatar
  • 1
13 votes
2 answers
9k views

Poetry stuck in infinite install/update

My issue is that when I execute poetry install, poetry update or poetry lock the process keeps running indefinitely. I tried using the -vvv flag to get output of what's happening and it looks like it ...
A-fandino's user avatar
  • 474
1 vote
1 answer
226 views

Ionic Angular component renders multiple or infinite times

I have a component that for some reason will render multiple times (only goes through constructor and onInit once) and if I have "actions" then it renders infinitely. No, it's not stuck in ...
Nawat Tsinik Dyami's user avatar
2 votes
0 answers
127 views

Why does my solution to The Cigarette Smoker's Problem not terminate?

I wrote a solution to The Cigarette Smoker's Problem that does not terminate. A full description of the problem and pseudo-code for the solution can be found here. Briefly, the task is to synchronize ...
Carlos Torres's user avatar
0 votes
0 answers
34 views

how to make select query for Infinite level of tree, using a recusive method

I want to make an SQL query that can select all the children trees that belongs to the chosen parent for example: the foolowing picture will explain. if I choose parent hot i must get{tea,green tea, ...
Ahmed Shoman's user avatar
-1 votes
1 answer
39 views

User Input of Integers Infinite Loop Until User Inputs a Character (C language)

User Input of Integers Infinite Loop Until User Inputs a Character (C) int n = scanf("%d", &i); if (n == 1) { can somebody explain me this part I am unable to understand why equality ...
S.Legends's user avatar
0 votes
1 answer
52 views

How to check if the set with commas is infinite or finite?

I am trying to use the method math.isinf to find out if the set is infinite. The set is {...,-5,-4,-3,-2,-1,0,1,2,3,4,5,...} import math Infinte_set = {-math.inf,-5,-4,-3,-2,-1,0,1,2,3,4,5,math.inf} ...
Naif Ganadily's user avatar
0 votes
1 answer
71 views

Try/catch block in an infinity loop to print out something, if there is an infinity loop

this is my code (which is an infinity while loop. I should implement a try/catch block here, so that it stops, because it's going to infinity. My professor says we should implement a 'OutOfMemoryError'...
commencer548's user avatar
0 votes
0 answers
52 views

Implementing a function defined by double infinite sums in python

I want to implement a python function that evaluates a mathematical function (of four variables) defined by a double infinite sum at a particular point. I've done this by using def myfunction(x): ...
BBB's user avatar
  • 55
-2 votes
2 answers
38 views

How to loop string inputs that break/end only when "#" is input on a single line? [duplicate]

Basically, I want to create a loop that will continue getting string inputs from users until the user types only a "#" on a line. I am coming from C++ so I am a bit lost in this Python ...
Eric's user avatar
  • 1
0 votes
1 answer
310 views

How can I make "REAL" infinite grid with canvas?

So i need to create an infite grid and can draw image per tile with mouse click like this page, what is the idea here to make it? https://playgameoflife.com/ i tried the answer in the How can I make ...
Quan Vu's user avatar
  • 67
0 votes
2 answers
50 views

How do I build a crawler that will go on infinitely?

I want to make a crawler that will just keep going infinitely until a page has no links. Every time it crawls a page it returns the html of the webpage so I can parse it and get the title, meta tags, ...
maybethebestprogrammer's user avatar
0 votes
0 answers
71 views

Hint outcome of infinitely recursive type

Given the following code: type Recursive<A> = | A // We'd like to use `NeedsParsing<Recursive<A>>` here, but recursive types are only possible as "property values" (how ...
Jesper's user avatar
  • 53
2 votes
0 answers
163 views

Why does infinity behave strangely?

I've created natural numbers the usual way. data Nat = Zero | Succ Nat And I'd like to make them an Enum. Now when I make them an Enum I want them to be maximally lazy. I'm primarily using Nat ...
Wheat Wizard's user avatar
  • 4,011
0 votes
1 answer
156 views

"Too many re-renders. React limits the number of renders to prevent an infinite loop" error when useState hook is used

import {useState} from 'react'; const Counter = () =>{ let [counter,setCounter] = useState(0); return( <div className='counter-box'> <span>{counter}</...
M S's user avatar
  • 5
0 votes
2 answers
131 views

infinite loop printing a negative number without looping forever [duplicate]

public static void main(String[] args) { int sum = 0; int count = 5; while (count >1){ sum = sum + count; count = count + 1; } ...
Karthik's user avatar
  • 21
-2 votes
1 answer
179 views

I want to make infinite Vector of elements and make the user enter the value and stop entering by pressing Enter

//C++ code .. and it is working I just want to make it infinite #include <iostream> #include <cmath> #include <vector> using namespace std; int main(){ vector <int> N(3); /...
Mohamed Khaled's user avatar
2 votes
1 answer
54 views

Can you run two infinite loops, one with an input, at the same time in python?

I've seen some posts about running infinite loops in python but nothing covering this specific topic. I was wondering if you could run code that asked the user a question for an input, whilst another ...
Kerodonasium's user avatar
2 votes
1 answer
7k views

Tailwind Infinite Horizontal Scroll Through Items

I am new to tailwind, so I apologize for this question ahead of time. I am trying to convert existing CSS animations into tailwind. Specifically, how can I create an infinite scroll through a list of ...
Potion's user avatar
  • 845
0 votes
1 answer
656 views

infinite scroll laravel and ajax

there is a reference for me to create an infinite scroll with laravel blade and ajax to request api and switch pages.I've tried to directly call with the database I can do it but when I call the api I ...
Win Narno's user avatar
2 votes
1 answer
190 views

Infinte map generation in isometric game - Java LibGDX

I'm currently trying to learn game developing in Java with LibGDX and have a few questions regarding infinite map generation in an isometric type tile game. My current code in a Screen constructor ...
Phrille's user avatar
  • 31
0 votes
1 answer
24 views

C++ Input takes me back to options page infinitely

First of all sorry for what is probably a completely noob question. The problem here is that after I enter in the program of study and press ENTER I am booted back into the options menu. The option ...
LGGawd's user avatar
  • 1
0 votes
1 answer
287 views

Converting .jp2 to .jpg but the code is running infinitely

I am trying to convert .jp2 files in my folder to .jpg format. import os import pyvips #Assigned directory directory = 'D:\Anaconda\data' # iterate over files in the directory for filename in os....
kanishka dubey's user avatar
1 vote
1 answer
270 views

Train neural network with unlimited training data

Does fitting a neural network with generated, and thus infinite training samples work? Will the batch size still matter? Should training samples be repeated over some batches or is it ok to use every ...
dronus's user avatar
  • 10.9k
0 votes
3 answers
189 views

Restart Applescript causing infinite reboot loop

I tried to set up Voice Control to restart my mac by running the applescript: tell application "System Events" restart end tell I set it up for voice control. I'd say "Restart the Mac&...
zebonaut smith's user avatar

1
2 3 4 5
22