limits

Why is ARG_MAX not defined via limits.h?

On Fedora Core 7, I'm writing some code that relies on ARG_MAX. However, even if I #include <limits.h>, the constant is still not defined. My investigations show that it's present in <sys/linux/limits.h>, but this is supposed to be portable across Win32/Mac/Linux, so directly including it isn't an option. What's going on here? ...

HELP SSL GURUs!!! ... Problems with SSL Connection

I'm using a device that's got GPRS media to connect to a PC running stunnel. On TCPIP connections, the number of sessions is limitless. However, when it comes to SSL connections, it could only go as far as 1062 successful sessions. I've tried it like 3 times but makes no difference. I've checked the OpenSSL codes and I couldn't seem to...

What is the maximum possible length of a .NET string?

What is the longest string that can be created in .NET? The docs for the String class are silent on this question as far as I can see, so an authoritative answer might require some knowledge of internals. Would the maximum change on a 64-bit system? [This is asked more for curiosity than for practical use - I don't intend to create any ...

How do I increase the /proc/pid/cmdline 4096 byte limit?

For my Java apps with very long classpaths, I cannot see the main class specified near the end of the arg list when using ps. I think this stems from my Ubuntu system's size limit on /proc/pid/cmdline. How can I increase this limit? ...

What is the data type for length property for Java arrays?

I want to find out if length property for Java arrays is an int/long or something else. ...

Print really big numbers

Hey! I have this code #include <iostream> using namespace std; int main(int argc,char **argv) { unsigned long long num1 = 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999...

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? ...

Is there any difference between parameters in a URL and <form method="get"> ?

The question title says it all. 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 sake of discussion, let's suppose the following web appl...

How big can a Sourcesafe DB be before "problems" arise?

We use SourceSafe 6.0d and have a DB that is about 1.6GB. We haven't had any problems yet, and there is no plan to change source control programs right now, but how big can the SourceSafe database be before it becomes an issue? Thanks ...

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

Hey! 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..? ...

Is there a size limit on a text file?

Duplicate of: Is there an upper limit on .txt file size? What is the limit to how much you can write to a text file? Any help would be appreciated. ...

Equivalence of <limits> and <climits>

Is this guaranteed to be always true: std::numeric_limits<int>::max() == INT_MAX What does C++ standard say about it? I could not find any reference in the standard that would explicitly state this, but I keep reading that those should be equivalent. What about C99 types that are not in C++98 standard for compilers that implement bot...

MySQL Resource limits

whenever i set a Resource limits for particular user/database/host does it spread through the hour? it'll delay queries or does it won't allow you to query would throw some sort of an error or something? ...

Django Model Inheritance and limit_choices_to

Can anyone tell me how i can limit the choices for the Page model which i inherit from in the following code? class CaseStudy(Page): """ An entry in a fancy picture flow widget for a case study page """ image = models.ForeignKey(Image, limit_choices_to={'is_active': True, 'category__code':'RP'}) def __unicode__(se...

How many times a file be compressed?

I was thinking about compression, and it seems like there would have to be some sort of limit to the compression that could be applied to it, otherwise it'd be a single byte. So my question is, how many times can I compress a file before: It does not get any smaller? The file becomes corrupt? Are these two points the same or differe...

Good limits for code refactoring

What are your preferred limits for, Lines per file Lines per function Nesting Are there other effective guidelines for limiting / settings (i.e. large font size)? FYI, I code mostly in Python along with some C,Java,Ruby etc. Edit: The reason I'm not asking about number of char columns is because 80 columns generally is the hard lim...

Maximum size for a byte[] in a .Net DataSet/DataTable

Is there any maximum size for a cell of data in a DataTable (like a byte[]), or can you grow it until the system runs out of memory? ...

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 for storage on Amazon S3. Any thoughts? Thanks ...

maximum value of int

is there any code to find the maximum value of integer (which is acccording to the compiler) in c/c++ like Integer.MaxValue function in java ...

Maximum size for a SQL Server Query? IN clause? Is there a Better Approach

Possible Duplicate: T-SQL WHERE col IN () What is the maximum size for a SQL Server query? (# of characters) Max size for an IN clause? I think I saw something about Oracle having a 1000 item limit but you could get around this with ANDing 2 INs together. Similar issue in SQL Server? UPDATE So what would be the best approach i...