Questions tagged [indefinite]

34 questions
1
vote
1 answer

PHP - MySQL - Select runs indefinitely

I have three tables listings: id, pid, beds, baths, etc, etc, etc, db locations: id, pid, zip, lat, lon, etc, etc, etc, db images id, pid, height, width, raw, etc, etc, db id, pid & db are indexed. db just references the mls provider a particular…
Mickey
  • 2,285
  • 6
  • 26
  • 37
0
votes
2 answers

Retry a code if runs indefinitely in Python

I am trying to run a code which tries to fetch data from an API: client.quotes(instrument_tokens=inst_tokens, quote_type="", isIndex=False) However, sometimes this code keeps running indefinitely without returning any data and I need to interrupt…
Kuljeet Keshav
  • 125
  • 1
  • 4
0
votes
0 answers

PathNotFoundException: Missing property in path while iterating over recursive JSON structure

I have a JSON structure where some objects can have arbitrary names and i want to normalize this structure, such that the objects become anonymous, but can be identified by a "name" property. From { { "arbitrary_name": { ... …
0
votes
1 answer

take indefinite inputs in python separated by newlines

I want to take inputs separated by new lines, but i don't wan't it to take fixed amount of inputs. Then perform some action on given inputs. For more info look at this codechef problem.
Nitish770
  • 525
  • 5
  • 9
0
votes
2 answers

Solving Integral with changing range with Python

I'm new to python but I been working on a code which can solve an integral equation which range is also changing according the unknown parameter. I tried to use Sympy solve function but it does not return any result. I solved the problem with a for…
bgabor
  • 1
0
votes
2 answers

Writing a program using an indefinite loop in python

The question I must complete is as follows; After caffeine is absorbed into the body, 13% is eliminated from the body each hour. Assume an 8-oz cup of brewed coffee contains 130 mg of caffeine and the caffeine is absorbed immediately into the body.…
user10520351
0
votes
1 answer

Splitting string results in infinite loop

I need to split this string and loop through the resulting array. However, even though my result string array has only 3 items, my loop goes to infinity. I am probably missing something, but I can not see it at this point. Here is the…
Mustafa Bereket
  • 129
  • 2
  • 13
0
votes
1 answer

How to check if a number is mathematically undefined or indefinite in vb.net

In one of my program's validation, I need to check if a resulting number stored in a session is undefined (this is due to one of the formula may have a dividend of zero). What I tried so far (and it may be a very inefficient way of doing it) is…
lulutanseco
  • 313
  • 1
  • 8
  • 29
0
votes
2 answers

Get transactions done in an hour from each other (not group by hour)

I have a problem that I have been struggling with for a while now. If someone can please help me, that would be great. It is on SQL Server 2012. I have a table with a set number of transactions and user Id's in. I need to count all the transactions…
0
votes
1 answer

my program loops indefinitely when assigning a specific string to a variable and I can´t figure out why

I am trying to learn Ruby with the Test-First material and I´m stuck at this point. This is my code: def translate(word) word=word.split("") while (!vowel(word[0])) do first_letter=word[0] word.each_index do |i| …
0
votes
2 answers

Changing background image div

I would like to design a page on which the back ground image changes in a round-robin fashion, indefinitely. Now I have something that works but only if there's no other
s on that page as it loops through all the divs. Now I want to add content…
stdcerr
  • 13,725
  • 25
  • 71
  • 128
0
votes
1 answer

infinite error message python

I am in deep trouble at the moment. After every letter I type on my python command prompt in Linux, I get an error message: sys:1: GtkWarning: Attempting to store changes into `/u/rnayar/.recently-used.xbel', but failed: Failed to create file…
0
votes
2 answers

How to set a indefinite number of variables, specified by another variable

Alright, I know that may sound confusing - I'm an new one on the idea of programming. I have a CNC project that will take values from a text file, assign them, and transmit them via a serial connection to an Arduino which will receive and drive the…
ecfedele
  • 306
  • 3
  • 15
-1
votes
1 answer

python run 3 while loops indefinitely

I am trying to make the 3 while loops run indefinitely, but right now when the while player == 2 loop ends, the variable player = 0 due to the function, but the loop does not go back to the first while loop. def nextplayer(): global player …
irevo
  • 1
  • 2
-1
votes
1 answer

C++ Why does my do-while loop fail to end as soon as boolean condition is met?

My current project calls for a program using a do-while loop and a separate value producing function. The program asks for an indefinite amount of inputs until the difference between the last two numbers entered is greater than 12. The code works…