Questions tagged [limiting]
38 questions
6
votes
1 answer
How to limit usage of virtual memory by node.js?
I am working in an embedded environment, where resources are quite limited. We are trying to use node.js, which works well, but typically consumes about 60 megabytes of virtual memory (real memory used is about 5 megabytes.) Given our constraints,…

Mike
- 69
- 1
- 2
4
votes
5 answers
Limiting the use of RAM. (C# .NET)
There are huge files about 100Mb.
I want to load them into memory (RAM), process and save somewhere.
At the same time I want that a limit of memory usage exists. Example, 100Mb, to my app don't use more then this memory limit. If the limit is…

Jean Louis
- 1,485
- 8
- 18
- 33
3
votes
3 answers
CMD Prompt C++: Limiting literals entered on screen
I hope the question isn't to ambiguous.
when I ask:
int main()
{
string name = {""};
cout << "Please enter a name: " << endl;
getline(cin, name);
//user enters 12 characters stop displaying next literal keypresses.
enter code here
}
I would like…

Cameron P
- 57
- 6
2
votes
2 answers
Limiting an input between Two Numbers and checking if the input is a number or not at the same time
I have been trying to improve my guessing game in Python by limiting the guess input
between 2 numbers(1 and 100) and asking if the guess input is a number or not. I have been trying to do this both at the same time. Is there anyway I can do this by…

Boran
- 37
- 1
- 6
2
votes
2 answers
Limiting lines per page in BI Publisher
I'm using RTF template to create a BI report. I need to limit the number of rows into 3 records on the 1st page only. The remaining records/rows will continue to fill the next pages. I'm also required to print the page total. I used the code below…

Liezel Francisco
- 45
- 2
- 7
2
votes
0 answers
IIS7.5/MVC Limit number of Managed Threads
I'm trying to limit the number of managed threads permitted by an ASP.NET MVC application running under IIS7.5 on Windows Server 2008. I've attempted a number of different approaches but none seem to have worked as expected, I need to limit the…

Rob
- 81
- 1
- 4
2
votes
5 answers
How to limit speed of outgoing response from php script?
How to limit speed of outgoing response from php script? So I have a script generating data in keep-alive connection. It just opens file and reads it. How to limit outgoing speed
(By now i have such code)
if(isset($_GET[FILE]))
{
$fileName =…

Rella
- 65,003
- 109
- 363
- 636
1
vote
1 answer
PHP - limiting the output of a plugin
I'm using a plugin titled "WP Recent Links" which I first learned about via Eric Meyer's site. Eric uses to display a Link Log within his site and I'm doing the same on my test site - http://matala.jorgeledesma.net/ but I'm running into a little…

Jorge Ledesma
- 11
- 1
1
vote
0 answers
Limiting woocommerce cart to one item from choice of four
I have this code that works great for 2 products if one is added the other is removed.
But I would like to add 4 products to the category.
Only one can be in the cart, if one is in the cart and the customer changes mind and wants
a different one…

craig
- 21
- 1
1
vote
1 answer
Limiting RAM usage for program executed through shell script
I need to limit the memory(RAM) usage of a program to just 100mb.
I am executing a batch of them using a shell script and wanted to know how to do that.
I am compiling from source of my class and then storing the real run time using the time…

Khushman Patel
- 1,066
- 2
- 13
- 23
1
vote
0 answers
I have a code for limiting input field to numeric value. Can I add "-" as an exclusion?
I have this code
function isNumberKey(evt){
var charCode = (evt.which) ? evt.which : event.keyCode
if (charCode > 31 && (charCode < 48 || charCode > 57))
return false;
return true;
}
html command
onkeypress="return isNumberKey(event)"
I want…

Noreply Noreply
- 51
- 6
1
vote
3 answers
limiting characters after dot - java
Hey so I'm doing a project for school.
We have to code a virtual atm machine.
You would have to log in with your student mail.
My question is : How do I limit character length after a dot(.)?
public boolean validUsername(String username) {
…

gakkgreen
- 15
- 3
1
vote
2 answers
Reading Data from Databases with SQL, Limiting the Result Set
I am having a hard time understanding the limit and offset parts of MYSQL. Could someone use this example "Get the 101st to 200th actor from the actors table. (No need to use any ordering)." and explain to me how this would work and the math behind…

JohnFaught
- 13
- 5
1
vote
5 answers
Restricting Input to Numbers Only In Textbox? (c#)
Please excuse me for asking this, I have looked at various different questions relating to this and I still can not get it to implement.
Using the answers I have looked at, I have gathered this, and applied this coding to my text box.
private void…

Fadzitt
- 19
- 1
- 1
- 6
1
vote
2 answers
Ruby/Rails How do I limit the number of posts a user can have seen by other users?
I'm working on a Ruby/Rails application in which I only want a user to be able to have one post seen at a time by all other users. All users can see all posts by other users, but only one post. What would be the simplest way of doing this?
This…