Questions tagged [indefinite]

34 questions
6
votes
3 answers

How to dismiss Snackbar when user does any action?

I can show snackbar like this. Snackbar snackbar = Snackbar.make(this.findViewById(android.R.id.content), "snackbar", Snackbar.LENGTH_INDEFINITE) .setAction("action", new View.OnClickListener() { @Override public void…
illusionJJ
  • 419
  • 1
  • 7
  • 23
3
votes
3 answers

Indefinite integral of 1/(L-x) dx in sympy python

I tried to calculate the indefinite integral of 1/(L-x)dx in sympy: from sympy import * x, L = symbols('x L') f = 1/(L-x) integrate(f, x) it returned: -log(-L + x) while it should be: -log(L-x) Is it related to sympy or I missed something,…
Hadi Pourbagher
  • 151
  • 1
  • 5
2
votes
2 answers

How do I check for infinite (1.#INF) and indefinite (1.#IND) numbers?

template MyClass { public: // ... void MyMethod(T dbNumber) { // ... T dbResult = do_some_operation_on_dbnumber(dbNumber); if (IsInfinite(dbResult)) { …
hkBattousai
  • 10,583
  • 18
  • 76
  • 124
2
votes
1 answer

Hash for class-wide key in Ada.Containers.Indefinite_Hashed_Maps

I am in trouble trying to create an indefinite hashed map, as I want as a key specific objects that inherits from an abstract class, so the Key_Type is the parent class-wide, but I do not know what to do with the Hash that the container requires, as…
Albatros23
  • 297
  • 2
  • 14
2
votes
1 answer

C# infinite spawning of platforms - will it create a lag?

Alright, Im working in Unity in C# and Ive created a few simple functions to spawn a series of platforms (game objects) indefinitely in accordance with the z position of the player. I delete the game objects once they are securely out of sight and…
blue
  • 7,175
  • 16
  • 81
  • 179
2
votes
2 answers

how to make continuous loop for SVG animation path's d

Can you advice how to make continuous loop for this back and forth animation of fire? I use begin="0s;animation2.end", begin="animation1.end" and repeatCount="indefinite" but it doesn't work
2
votes
0 answers

htaccess throwing indefinite redirects

Am trying to have my page redirected to the https using htaccess. At the same time I want that other pages should work on http. Following is my .htaccess code. Options +FollowSymlinks RewriteEngine on RewriteBase / # Turn SSL on for…
1
vote
1 answer

Is there any ojAlgo solver for when the condition number is large and the matrix is symmetric and indefinite?

I use ojAlgo to solve a system of linear equations. In one case I get a RecoverableCondition exception. Probably because matrix is ill-conditioned, the condition number is about 1e15. I use ojAlgo to solve it as seen in the code below. It usually…
Magnus
  • 35
  • 5
1
vote
1 answer

Wrong (?) indefinite integral results with wxMaxima and Sympy

I am working on interactive notebooks with several symbolic calculations, among which there are two indefinite integrals involving square roots. These are integrals (29) and (30) of this table of integrals --> http://integral-table.com. When I try…
1
vote
1 answer

I am trying to run an endless worker thread (daemon) from within Django

I have a worker thread which only task is to query a list of active users every 10 minutes from the database, and to send them an SMS message if a certain condition is fulfilled (which is checked every minute); also the worker thread does not hinder…
afkiwers
  • 101
  • 2
  • 4
  • 13
1
vote
1 answer

Run Background Task Indefinitely in UWP

I have a requirement to constantly poll an API and provide notifications in UWP app irrespective of whether it is Visible to user OR minimized OR Not in focus OR Suspended. If I choose to write it in the app itself, it stopped working while app is…
SiD
  • 109
  • 1
  • 8
1
vote
1 answer

Looping through a droste effect javascript Object

I have got comments within comments within comments in an Object (much like a droste effect). For every comment a certain action needs to be performed. The comments can go on indefinately. How should I loop though them? E.g Comments …
Louis Vetter
  • 199
  • 2
  • 10
1
vote
1 answer

Want WPF DataGrid tooltip to behave like Excel Cell Comments

This is the behaviour i get from an Excel Cell that has comments: 1) Put mouse anywhere on the cell and the comment pops-up like a yellow tooltip; 2) Comment will stay up indefinitely for as long as mouse cursor remains on the cell I need similar…
joedotnot
  • 4,810
  • 8
  • 59
  • 91
1
vote
1 answer

Basic input £ Indefinite looping

This is a very basic program I want to run. The user is asked to choose between a choice of three variant programs, which appear later individually in the code. I want to only accept integer inputs, with values 1,2,3,4, and 5 for example. For some…
james.sw.clark
  • 357
  • 1
  • 8
  • 20
1
vote
7 answers

making a programme run indefinitely in python

Is there any way to make a function (the ones I'm thinking of are in the style of the simple ones I've made which generate the fibonnacci sequence from 0 to a point, and all the primes between two points) run indefinitely. E.g. until I press a…
user33061
  • 1,747
  • 6
  • 26
  • 29
1
2 3