3,600 questions
0 votes
1 answer
226 views
How do I prevent have a "Maximum update depth exceeded..." error with react-native-calendars's Agenda?
I have an error with the react-native-calendars's agenda. I quite new to react native, and this is my second attempt to use an Agenda. Every time I tried, I have the "maximum update depth ...
0 votes
1 answer
114 views
How can I define an infinite loop condition in the for loop in java?
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 ...
2 votes
4 answers
157 views
Recursive query to figure out record which creates circular dependency
I have a postgress table incoming_records which contains 2 column supervisor_id, emp_id create table incoming_records(supervisor_id,emp_id)as values (null,01) --top level resources with blank ...
0 votes
0 answers
23 views
Apache AliasMatch: map certain directory when matching specific string - infinite loop
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 ...
1 vote
2 answers
73 views
Cyclic Sort Infinite Loop in LeetCode "Set Mismatch" Problem
I am trying to solve the Set Mismatch problem using Cyclic Sort in Python. The problem statement is as follows: Problem Statement You have a set of integers s, which originally contains all numbers ...
0 votes
0 answers
180 views
Basic script causing a fault on a Shelly device
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 ...
-2 votes
3 answers
130 views
Why there's infinite loop in useEffect hook? [closed]
index.jsx const { startTransition, useEffect, useState } = React; const { createRoot } = ReactDOM; function App() { const [foo, setFoo] = useState([1]); const [bar, setBar] = useState("1"); ...
0 votes
0 answers
133 views
Infinte loop trying to read last line of InputStream
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 ...
0 votes
1 answer
107 views
Why does the partition function in QuickSort work even when the inner while loop seems to cause an infinite loop?
I'm implementing the partition function for QuickSort, and I've come across behavior that seems confusing. Specifically, in the partition logic: int partition(int A[], int low, int high) { int ...
0 votes
1 answer
63 views
React useEffect Dependency Bug with Async Data Fetching
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 ...
2 votes
3 answers
168 views
No result when filtering on a random IntStream, in Java
I am representing a collection of turtles, each with a moment when hatched. I want to randomly choose any mature turtle. I pretend that minutes are years, in this aquarium simulation. record Turtle( ...
0 votes
0 answers
35 views
Toroidal effect (infinite Loop) in sections of uiCollectionView
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 ...
-2 votes
1 answer
70 views
how do get my code to match? i feel close but im not sure [duplicate]
def stick_game(): num_sticks = 11 player = 1 playing = True print("***** WELCOME TO NIM! *****") print("Each player will take turns removing") print("...
0 votes
0 answers
52 views
Rails attachment delegation to another model optionally
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 ...
0 votes
0 answers
33 views
Python TensorFlow, infinite loop in the first epoch
I've got a Python program that uses TensorFlow, but when I run it the first epoch runs, but the next one doesn't. I'm not sure why. # -*- coding: utf-8 -*- !pwd """Doit être dans '/...