Questions tagged [limits]

For questions about the limits of a certain feature of a programming language. Note that this site is not for the evaluation mathematical limits without the use of programming.

330 questions
12
votes
5 answers

MySQL: How to select all rows from a table EXCEPT the last one

I have a table with N rows, and I wanna select N-1 rows. Suggestions on how to do this in one query, if it's possible..?
Lasse A Karlsen
  • 801
  • 5
  • 14
  • 23
12
votes
1 answer

Call Stack limitation in C#

i wonder how much calls we can perform in stack in c# before we get stack overflow exception so i decided to write the following code static void Method2(int Calls) { if(!Calls.Equals(0)) Method1(--Calls);//if more calls…
M.kazem Akhgary
  • 18,645
  • 8
  • 57
  • 118
12
votes
2 answers

C++ equivalent of java.lang.Integer.MIN_VALUE

How can I get an equivalent of java.lang.Integer.MIN_VALUE on C++?
dmessf
  • 1,025
  • 3
  • 11
  • 19
11
votes
2 answers

Why is there a limit of max 20 parameters to a clojure function

there seems to be a limit to the number of parameters a clojure function can take. When defining a function with more than 20 parameters I receive the following: #
GuyC
  • 113
  • 4
10
votes
1 answer

What technical limitations prevent the calculation of Graham's number in python?

Assuming that the computer running this program has an infinite amount of memory, I'm interested in where Python will break when running the following: For fun, I implemented hyperoperators in python as the module hyperop. One of my examples is…
Hooked
  • 84,485
  • 43
  • 192
  • 261
10
votes
6 answers

What happen in SQL 2005 when it run out of number for an autonumber column?

What happen when SQL Server 2005 happen to reach the maximum for an IDENTITY column? Does it start from the beginning and start refilling the gap? What is the behavior of SQL Server 2005 when it happen?
Maxime Rouiller
  • 13,614
  • 9
  • 57
  • 107
9
votes
1 answer

Detecting specialization of std::numeric::type for some non numeric type T

I want to check to see if a type has an entry in std::numeric_limits. When the type is an array - (or perhaps not a number?) I get a compiler error. This prevents me from detecting and branching based on whether the type is supported in…
Robert Ramey
  • 1,114
  • 8
  • 16
9
votes
1 answer

Android: BroadcastReceiver Time limit

Are there any time limits defined for actions run inside a BroadcastReceiver.onReceive method?
VSB
  • 9,825
  • 16
  • 72
  • 145
8
votes
3 answers

Twitter API rate limits for posting updates

I have an application for sending out say around 100+ tweets every day. I am using OAuth for authentication. The twitter API says that post messages are not rate limited. However I am receiving the following error: 403:The request is understood,…
rcs
  • 133
  • 2
  • 7
8
votes
3 answers

What is SystemD's default value for LimitNOFILE (on CentOS7)

It seems like a very easy question but I couldn't find, what the default for services in SystemD for LimitNOFILE is. Is there a file with global defaults?
Martin Rauscher
  • 1,700
  • 1
  • 14
  • 20
8
votes
5 answers

How to use C defines in ARM assembler

How can I use external defines such as LONG_MIN and LONG_MAX in ARM assembler code? Let's say my_arm.h looks like this: int my_arm(int foo); Let's say I have a my_main.c as follows: ... #include #include "my_arm.h" ... int main (int…
Sint
  • 1,580
  • 3
  • 21
  • 38
8
votes
4 answers

Dynamic ylim in ggplot2 using dplyr pipe

I want to create dynamic ylim values in a ggplot so that the ylim parameter is referencing to the value that dplyr is providing via a pipe. To illustrate the problem, please see a working (non-generic) code that I want to change into a (currently…
Triamus
  • 2,415
  • 5
  • 27
  • 37
8
votes
2 answers

Remove minDate/maxDate limits in jQuery UI Datepicker

A simple issue, but I can't seem to find the answer. I've limited the date range in jQuery Datepicker: $( "#MyDatepicker" ).datepicker( "option", "minDate", new Date()) Is there a way to remove all restrictions for date range?
Earl Grey
  • 95
  • 1
  • 1
  • 4
7
votes
1 answer

PATH_MAX not declared when compiling on Ubuntu 10.04

I am trying to compile a C program in Ubuntu 10.04 made for 8.04. It fails because we have used PATH_MAX and other constants that should be defined in limits.h. According to various resources, it should be part of a POSIX compatible C library. Is…
Johan
  • 5,003
  • 3
  • 36
  • 50
7
votes
3 answers

What is the maximum memory limits per application for Android 2.2?

What is the maximum memory limits per application for Android 2.2?
Saddam Abu Ghaida
  • 6,381
  • 2
  • 22
  • 29
1 2
3
21 22