Skip to main content
Filter by
Sorted by
Tagged with
-4 votes
1 answer
111 views

I'm building a live clock component in React using useState and setTimeout. The goal is to update the time every second. However, as soon as the component mounts, it triggers infinite re-renders and ...
Panki Dodiya's user avatar
0 votes
1 answer
110 views

I was making a program in which user can keep entering numbers till user enters a multiple of 10. So I wanted to created a for loop for that and didn't knew what should be the infinite loop condition ...
Sanskar Kumar's user avatar
0 votes
0 answers
23 views

I am facing a particular request from the SEO team of a client and I need to handle two different CMS served on the same domain. Basically, the "root" cms is already configured in order to ...
dorje's user avatar
  • 77
0 votes
0 answers
176 views

someone could help me understand why I had 2 Shelly 1 Mini Gen3 unusable after I run a very simple script on them? Below is the script: Shelly.addEventHandler( function (event, ud) { print('raw ...
AlexMork's user avatar
0 votes
0 answers
133 views

I am working on a project and am using whisper.cpp for speech to text. I am not using the Java bindings, and am instead compiling examples/stream and running it using the Process/ProcessBuilder API. I ...
Elijah Crum's user avatar
0 votes
1 answer
55 views

I'm building a React app where I fetch data from an API and update the state. However, I'm facing a bug related to useEffect dependencies, which is causing an infinite re-render loop. Here's the ...
Merajul Hasan's user avatar
0 votes
0 answers
30 views

I have a mosaic of cells with interleaved movement, but I have not achieved a toroidal effect so that the cells appear again. import UIKit class ViewController: UIViewController { @IBOutlet ...
Gabriel Isaac González Arroyo's user avatar
0 votes
0 answers
52 views

I have two models InInvoice, Disbursement. Both are associated: InInvoice optionally belongs_to disbursement. Both have a has_one attachment called att. InInvoice is supposed to delegate att calls to ...
Julian's user avatar
  • 108
-1 votes
1 answer
352 views

this code snippet do infinite recomposition while scrolling , not able to find why? How to manage state and animation in a HorizontalPager in Jetpack Compose? I'm working with Jetpack Compose and ...
Akshat Singhal's user avatar
-1 votes
2 answers
123 views

I just started learning Verilog and made a system clock and its respective testbench, but it is getting stuck in an infinite loop in the testbench. Could you please help me? Below is the ...
Kartikey Pant's user avatar
1 vote
0 answers
68 views

Context I was implementing a LinkedList sort solution with python (over on leetcode.com). The solution is a bottom up merge sort approach (divide and conquer). The code below is incomplete, it's ...
oussema's user avatar
  • 389
-1 votes
2 answers
140 views

This is a program which allows only authorized shareholders to attend a meeting, which is given as a file input. It asks for a name on the terminal and checks if it is in the file. If it is not, it ...
KeShAw's user avatar
  • 49
1 vote
1 answer
116 views

Well, i am trying to create a program that reads from a file descriptor piece by piece (defined as BUFFER_SIZE), until it finds a '\n' or the EOF. The problem its i am getting stuck in a infinite loop,...
Rache Bartmoss's user avatar
1 vote
1 answer
102 views

I've not added any features yet in this program and only added some tasks in "1)Create an account" while in this code block when you enter your name after pressing enter, it starts looping ...
Kanak Bodkhe's user avatar
0 votes
2 answers
106 views

I have a class in c# called Pose. Its functionality is not really important, but it contains as fields another Pose called _parent, and a List called _children. In the setter for the _parent, I need ...
YaBoyShredderson's user avatar
0 votes
1 answer
109 views

this is my component. i don't know why the moment i reload the page it'll always give me infinite loop issue. it'll throw the error the moment i go the page. i can't even fill in anything inside the ...
nfs's user avatar
  • 9
0 votes
0 answers
106 views

I have been asked to run a python script from the Windows Task Scheduler. In my python script I will substantially use watchdog library in order to instanciate and run an Observer that will monitor ...
Fra B's user avatar
  • 13
0 votes
1 answer
121 views

Context System: Fedora 40 Library Used: pthread.h Details: Read "To the point" if not interested I apologize for providing no code here as the whole program is more than 4000 lines of code ...
Programmer Newbie's user avatar
0 votes
1 answer
170 views

I'm trying to solve a problem involving a fixed-bed reactor that uses a system of ordinary differential equations, but for some reason it gets stuck in an infinite loop. Here's the code: import numpy ...
Renato's user avatar
  • 11
2 votes
1 answer
98 views

Working on an online practice problem and ran into an issue that I can't seem to figure out. I am looking to find the longest length of a string of characters whose characters can only be replaced &...
EdAlex's user avatar
  • 45
-4 votes
1 answer
116 views

In the following code, #include <iostream> #include <vector> using namespace std; vector <int> otm; vector <int> past; vector <int> strength; bool leaves(int n){ ...
Yuri Korostelev's user avatar
0 votes
1 answer
50 views

At first, I tried to use a view pager, but due to the overall size issue of the view pager, I didn't think it was right to implement such a screen. So I started using Recycler View and even worked on ...
Duseop's user avatar
  • 149
1 vote
1 answer
81 views

I've tried implementing a one-card game with c, but my code is that when I run about 5 times, I fall into infinite loop at least 2 times. I've talked to chat-gpt a lot to solve this problem, but I ...
user25529716's user avatar
1 vote
1 answer
59 views

I encountered this problem when experimenting with file I/O. This method compiles: public static int testMethod1() { try { while (true); } catch (Exception e) { ...
tariqalr's user avatar
1 vote
1 answer
153 views

I have the following code at the moment: executed = False while executed == False: try: inp = input("Enter the variable you want to change (e.g.: limit = 10): ") eval(...
Westec's user avatar
  • 21

1
2 3 4 5
73