I want to store the data returned by $_SERVER["REMOTE_ADDR"] in PHP into a DB field, pretty simple task, really. The problem is that I can't find any proper information about the maximum length of the textual representation of an IPv6 address, which is what a webserver provides through $_SERVER["REMOTE_ADDR"].
I'm not interested in con...
Hi there,
I maintain an application which, during the course of two years, has constantly required new hardware to be even usable, due to the amount of new users / new data inserted. However, justifying the investiment is sometimes very hard to do.
I started to wonder - how can I establish the maximum number of users a web application...
One of the limitations of ASP.NET 2.0 was that PathInfo was limited to 255 characters. Is that limit a problem in ASP.NET MVC urls, or is there any sort of length limit with ASP.NET MVC routing urls?
...
I have a dictionary: keys are strings, values are integers. Example: stats = {'a':1000, 'b':3000, 'c': 100}.
I'd like to get 'b' as an answer, since it's the key with a higher value.
I did the following, using an intermediate list with reversed key-value tuples:
inverse = [(value, key) for key, value in stats.items()]
print ma...
I am running Windows XP as a file server to 8 machines running real time applications. Three of the machines, also running XP, will open upwards of one thousand files each (and keep them open). Each of these machines are connected to the file server via the 'net use' command, all accessing the same shared folder.
When these machines r...
I am preventing the user from resizing the form. How do I also remove the maximize button?
...
Hi all,
I'm not sure if this is an OS, router, or ISP question, but I believe it is an OS question.
Question:
How can I increase the number of connections my computer can use?
I'm using ubuntu.
I currently have a lot of connections for bit torrent, but I'm not able to make full use of my entire download bandwidth. My BT client is ...
I am programming a server and it seems like my number of connections is being limited since my bandwidth isn't being saturated even when I've set the number of connections to "unlimited."
How can I increase or eliminate a maximum number of connections that my ubuntu linux box can open at a time? Does the OS limit this, or is it the rou...
The Java Collections.max takes only a collection of a sortable object. However since the collection is not necessarily sorted, I don't see any reason not to implement the same max function for iterable types.
Is there a max method for Iterable<T extends Comparable<? super T>> in java's standard library?
...
I'm learning about delegates and think I may have found a use for one. Basically what I have is a series of string properties that take in a minimum value and a maximum value, like so:
string weightInvalid(min as int32, max as int32)
There are several messages like this, all with unique messages but all sharing the same signature of ...
Has anyone an idea how many tcp-socket connections are possible on a modern standard root server? (There is in general less traffic on each connection, but all the connections have to be up all the time.)
EDIT: We will use a Linux Server.
...
Is there a function built into Oracle that will return the highest possible date that may be inserted into a date field?
...
How long is the maximium lenght of a windows username incl. domain?
domain\username
regards
...
Hello!
I have two questions concerning the sleep() function in PHP:
1) Does the sleep time affect the maximum execution time limit of my PHP scripts? Sometimes, PHP shows the message "maximum execution time of 30 seconds exceeded". Will this message appear if I use sleep(31)?
2) Are there any risks when using the sleep() function? Does ...
I understand the maximum number of fields in a MS-Access form is 255. Is there any way to get around this limitation?
I am working with a mental health survey form that has approximately 400 fields.
I would like to create 1 data entry form to allow the mental health interviewer to enter all the responses on the one form.
I plan to us...
Is there a way to calculate the maximum number of columns? Thanks.
...
Is there a simple formula for determining the maximum and minimum values for an Oracle NUMBER column with (p, s)?
...
Setting aside the heap's capacity, are there ways to go beyond Integer.MAX_VALUE constraints in Java?
Examples are:
Collections limit themselves to Integer.MAX_VALUE.
StringBuilder / StringBuffer limit themselves to Integer.MAX_VALUE.
...
Right now I have
def min(array,starting,ending)
minimum = starting
for i in starting+1 ..ending
if array[i]<array[minimum]
minimum = i
end
end
return minimum
end
Is there a better "implementation" in Ruby? This one still looks c-ish.
Thanks.
...
According to the MSDN help for VB6
Floating-point values can be expressed as mmmEeee or mmmDeee, in which mmm is the mantissa and eee is the exponent (a power of 10). The highest positive value of a Single data type is 3.402823E+38, or 3.4 times 10 to the 38th power; the highest positive value of a Double data type is 1.7976931348623...