Questions tagged [capacity]

Questions about resource capacity. Use in conjunction with the applicable tag such as [memory], [disk] or [database] to indicate the type of resource being referred to.

Questions about resource capacity. Use in conjunction with the applicable tag such as , or to indicate the type of resource being referred to.

250 questions
0
votes
1 answer

Set the capacity in a mysql table so it can hold 150 rows?

I'm using phpMyAdmin and I want to set the capacity of a table so it can only store 150 rows. Is this possible? My table is InnoDB.
user4507211
0
votes
2 answers

Java Arrays: Unexpected behavior regarding size?

Take a look at the following code used for constructing a card deck. I was using the The xFactor "variable" (hard coded) to subtract 1 off the array size to adjust for the zero index. I noticed that I could actually subtract a total of 40 before I…
MCTaylor17
  • 411
  • 5
  • 16
0
votes
3 answers

Increasing capacity of circular queue in C++

I am learning about queues and am trying to write a method to change the maximum capacity of a circular queue using a dynamic array. This is what my code looks like right now. void ArrayQueue::setCapacity(unsigned newCapacity){ if(newCapacity == 0…
TheFaceOfBoe
  • 23
  • 1
  • 3
  • 7
0
votes
0 answers

How to get the current battery capacity on Android?

I want to get the current battery capacity in mAh of my android phone. Until now, I haven't found any solution to fix this. My solution is, to get the last capacity and multiply this value with the current battery level. But this is very unexactly.…
user3417078
  • 265
  • 4
  • 15
0
votes
0 answers

Time resizing hashmap with specified capacity or not

In the java doc: When the number of entries in the hash table exceeds the product of the load factor and the current capacity, the hash table is rehashed (that is, internal data structures are rebuilt). I found that Time complexity for Java…
GermainGum
  • 1,349
  • 3
  • 15
  • 40
0
votes
2 answers

Stack linkedlist with initial Capacity

I am doing a stack using LinkedList and LinearNode Class in Java and I have a problem: ........ public BoundedStackADTLinkedImpl() { count = 0; top = null; } public BoundedStackADTLinkedImpl(int stackCapacity) { //I dont know…
adrisp
  • 123
  • 1
  • 1
  • 4
0
votes
2 answers

Method to change capacity of queue C++

unsigned mySize; // number of items I contain unsigned myCapacity; // how many items I can store unsigned myFirst; // index of oldest item (if any) unsigned myLast; // index of next available spot for append (if any) Item* …
user3020033
  • 15
  • 2
  • 10
0
votes
1 answer

what will be if put in hashmap more than capacity

Please tell me what will be with old items in HashMap if I put more items than specify in capacity? for example: HashMap hashmap= new HashMap(5); i set capacity to 5. but what will be with first 5 items and bitmap's…
user2052497
  • 42
  • 1
  • 5
0
votes
1 answer

Getting Numbers From A CFDictionary For Use In Calculations, iPhone

I found this in my travels: http://www.opensource.apple.com/source/IOKitUser/IOKitUser-502/ps.subproj/IOPSKeys.h How would I get the values (as a number) of: #define kIOPSMaxCapacityKey "Max Capacity" and #define kIOPSDesignCapacityKey…
Stumf
  • 941
  • 1
  • 11
  • 26
0
votes
1 answer

Would 256 Bytes be Enough for a Gamesave Storage Chip on a Cartridge?

It might be possible that I'm going make a game console in the far future, and of course, I'll need to know enough about that in order to start. So I was wondering, since technically a saved game state could be a very small command that the console…
0
votes
1 answer

Finding curCapacity and maxCapacity Value, iPhone

A method which can be used for finding the battery percentage of your device is found here: http://blog.coriolis.ch/2009/02/14/reading-the-battery-level-programmatically/comment-page-1/#comment-6085 I have tried it and it works great. If you have a…
Stumf
  • 941
  • 1
  • 11
  • 26
0
votes
4 answers

How do I do capacity test a websocket server?

I am looking to capacity test my websocket server but don't really know where to start? I am able to write a AI that will send messages to test the usage, but how would I simulate/make 100, 500, 1000 connections etc...?
Cheetah
  • 13,785
  • 31
  • 106
  • 190
0
votes
0 answers

How to implement a stack with limited number of elements?

I have recently created an elaborate Undo/Redo mechanism for a programm of mine. It is an editor that works with specific XML files. However, since certain changes may or may not change any amount of nodes in the XML file, I am currently backing up…
LWChris
  • 3,320
  • 1
  • 22
  • 39
0
votes
1 answer

Summarize column by date in Excel

I am struggling with Excel here. I try to create a table with multiple sheets for all the storage units (in this example 19N) that we have. In every unit someone should be able to fill in a start date , a due date and a capacity need . Later, I want…
user2386786
  • 725
  • 9
  • 25
0
votes
1 answer

Selenium WebDriver: Size of the text field

I'm stuck with one basic issue in Selenium WebDriver: How to test a capacity of the text field in the form? I have used .sendKeys(String) and then I tried to get the text back with .getText(), but it doesn't work. It retrieves an empty String. How…
George Revkov
  • 95
  • 3
  • 8