Questions tagged [time-limiting]

128 questions
0
votes
1 answer

XQuery: Setting privileges to solve " Request time limit exceeds the maximum allowed " error

When I try to run a query, I got the following error: Time limit exceeded. I tried to increase request time limit to 8000 using the following code: for ..... return ( xdmp:set-request-time-limit(8000), myquery) I've got the following error…
s.e
  • 271
  • 2
  • 15
0
votes
3 answers

What is the daily limit of manually executed google script?

In the documentation for developers (here) written about this error Service using too much computer time for one day that This indicates that the script exceeded the total allowable execution time for one day. It most commonly occurs for scripts…
Karen Fisher
  • 747
  • 1
  • 8
  • 25
0
votes
1 answer

Number of even divisors using square root

I'm solving an problem where it need to get the difference between the number of even and odd divisors ,and i need to use sqrt() function because the limit of the number is 10^9 so looping on the whole number is not an option cause of the time limit…
Amr Morsy
  • 27
  • 5
0
votes
2 answers

Setting a 1 second time limit does not stop the script after 1 second

I am calling shell commands that might take a while and should be interrupted after 5 minutes. Anyways, this does not seem to work. I boiled it down to the following test code:
Alex
  • 32,506
  • 16
  • 106
  • 171
0
votes
1 answer

Prevent query insert spam

I got a comment system, where users can post what they think about certain things, however if you press the “Post!” button multiple times, multiple queries are insert into the database and the result is spam. This is my…
P. Nick
  • 955
  • 1
  • 12
  • 33
0
votes
1 answer

curl or server time limit?

I am testing an IDL code on a server, which can be accessed by sending the appropriate URL to a Python script (something like this: http://example.com/pythoncode.py?arg1=val1&arg2=val2), changing the values of the arguments many times and reading…
0
votes
1 answer

How can i restrict windows form textbox to read input only from my USB barcode scanner?

I'm developing a application where user needs to get input from Barcode scanner. Its a usb type which scans and returns data in seconds. I tried to stop getting input from Keyboard by many techniques Made my textBox read only But failed to get…
0
votes
2 answers

Exiting a Java method completely

My method checkConnection() calls setPort() within a TimeLimiter which exits the call method within 3 seconds if the method isn't finished. This works great and there is an exception of com.google.common.util.concurrent.UncheckedTimeoutException…
Jack Trowbridge
  • 3,175
  • 9
  • 32
  • 56
0
votes
2 answers

How to find Xth palindrome?

Dear Friends: As much as strings, some numbers are also palindrome. For instance: 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 22, 33, ... , 101, 111, ... ,753537, ... and so on. Here is the thing, We need to figure a way to find first 10.000 palindromic…
Jon Snow
  • 35
  • 5
0
votes
2 answers

php worried about time_out

hy i had the problem "php time out" when i was unextract a zip file on the server, but this is a long time ago and i use an other server now. my current script, should create some folders, create a file in this order and extract a zip file with…
andy
  • 55
  • 1
  • 1
  • 7
0
votes
3 answers

How to write good "time limited features" on Android?

I want the users to try certain features in a specific limited of time, say 2 weeks after installing (and after that they can buy it). So my naive idea is, say, to use sharedPreference to store the first launch time, and then keep checking this date…
Ivan
  • 149
  • 1
  • 12
0
votes
1 answer

TLE for large inputs. How to run my code within the time limit?

Problem link-http://www.spoj.com/problems/LASTDIG/ Summary-Given 2 non negative integers a and b, print the last digit of a^b. I tried using an algorithm to find the modular exponentiation using less memory…
vishal_khanna
  • 57
  • 1
  • 9
0
votes
1 answer

Time Limit Exceeded in Codeforces solution. How can I improve my solution?

Problem-http://codeforces.com/contest/454/problem/B Problem Synopsis- A given integer sequence is to be changed into ascending order by applying shifting operations(each element is shifted by 1 place to its right, the last element becomes the…
vishal_khanna
  • 57
  • 1
  • 9
0
votes
1 answer

How can i make my code different to remove the time limit?

The question is: There is a strip of tickets with numbers of 8 digits. The first ticket has number M , the last - N . Magnitude M and N meet the following relationship: 10000000 ≤ M < N ≤ 99999999. You are required to determine the number of "lucky"…
Anonymous
  • 31
  • 5
0
votes
1 answer

Javascript keypress event with time limit

So my problem is multipressing key with function keydown and i need to apply time limit, when u hit key wait 5 sec and then you can again hit the key. How can i do this? example: $(document).keydown(function (e) { var keyCode = e.keyCode…
Szarik
  • 17
  • 2
  • 8
1 2 3
8 9