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.
Questions tagged [limits]
330 questions
7
votes
2 answers
How to give users a file storage limit?
I'm working on a web application right now using Rails and wanted to see if anyone knew of a good way to keep track of file storage limits? We want to give users a specific amount of room that they can use to upload files and we are using paperclip…

CalebHC
- 4,998
- 3
- 36
- 42
7
votes
1 answer
Ruby file handle management (too many open files)
I am performing very rapid file access in ruby (2.0.0 p39474), and keep getting the exception Too many open files
Having looked at this thread, here, and various other sources, I'm well aware of the OS limits (set to 1024 on my system).
The part of…

Stephen Wattam
- 525
- 2
- 12
7
votes
2 answers
Is there an absolute limit to how much data you can put in mailto: body parameter?
Given I'm creating a mailto: hyperlink. Is there a absolute limit to how much data you can put in mailto: body parameter?
Is this browser dependent?

Chris Marisic
- 32,487
- 24
- 164
- 258
6
votes
3 answers
C++ limit of unsigned int through template
I'm using a template to convert integral types into a string representation of their binary values. I used the following:
template
std::string ToBinary(const T& value)
{
const std::bitset::digits + 1>…

Heisenbug
- 38,762
- 28
- 132
- 190
6
votes
2 answers
How to programmatically check if a variable is approaching x?
Is it possible to check if a variable (the variable can be a float, double, or int) is approaching a certain number. I have done some google search but it comes up nothing.
For example as n^x as x gets more negative it approaches zero.

Daniel Lopez
- 1,728
- 3
- 24
- 40
6
votes
3 answers
Floating point limits
I've been given these two questions, and I can't wrap my head around floating point properly, so if someone could offer some pointers as to how I should work these questions out, I'd be very grateful.
What is the smallest and largest
number that…

Bojangles
- 99,427
- 50
- 170
- 208
6
votes
5 answers
maximum limit on Java array
I am trying to create 2D array in Java as follows:
int[][] adjecancy = new int[96295][96295];
but it is failing with the following error:
JVMDUMP039I Processing dump event "systhrow", detail "java/lang/OutOfMemoryError" at 2017/04/07 11:58:55 -…

Kaushik Lele
- 6,439
- 13
- 50
- 76
6
votes
4 answers
Does `sp_executesql` really accepts the `nvarchar(max)` argument?
Summary: The EXEC sp_executesql @code fails for the content longer than 4000 in the @code, but the @code is not truncated to 4000 unicode characters.
I am observing the problem on SQL Server 2014 Developer Edition.
More details: my SQL installation…

pepr
- 20,112
- 15
- 76
- 139
6
votes
1 answer
Practical limitations on amount of constexpr computation
As an experiment, I just put together some code to generate a std::array at compile time. The table contents themselves are a fairly typical CRC lookup table - about the only new thing is the use of constexpr functions to calculate…

Daniel Schepler
- 3,043
- 14
- 20
6
votes
1 answer
What is the relation between PATH_MAX and NAME_MAX, and how do I obtain?
In limits.h, and in various places in the POSIX manpages, there are references to PATH_MAX and NAME_MAX.
How do these relate to one another?
Where is the official documentation for them?
How can I obtain them at run time, and (where relevant)…

Matt Joiner
- 112,946
- 110
- 377
- 526
6
votes
1 answer
bash output redirection limits?
I try to concatenate large files (some GB) in bash. I tried
cat file1 file2 file3 > result
and it didn't work while
cat file1 file2 file3 >> result
worked. In both occasions the file result didn't exist before and my expectation would be,…
user5119237
6
votes
8 answers
Is there any difference between parameters in a URL and
Now, I know a difference between parameters in a URL and a POST parameter: some browsers may misbehave if the URL is too long, so it is not a good idea to stuff hundreds of parameters in a URL, even if your app can respond to a GET request.
For the…

Leonel
- 28,541
- 26
- 76
- 103
6
votes
8 answers
How to print really big numbers in C++
I have this code
#include
using namespace std;
int main(int argc,char **argv) {
unsigned long long num1 =…

AntonioCS
- 8,335
- 18
- 63
- 92
6
votes
1 answer
Android issue: View with endless scrolling
I have a custom View with scroll implemented, but it seems like an ENDLESS scrolling over the image.
Even when I find the edge of the image, it keeps scrolling to a blank background.
I can't use a WebView because I also have some Canvas sutff.
Does…

Rayssa Küllian
- 71
- 4
6
votes
1 answer
Different values returned by ulimit -r
I added to my system-wide /etc/security/limits.conf the following two rows:
* soft rtprio 55
* hard rtprio 55
After a system reboot, I get two different results according to the way I access my user account on the…

Blazor
- 171
- 4
- 11