Terminal emulation for mainframes. IBM System z (Mainframe), IBM System i (AS/400), UNIX/Linux/OpenVMS (VT), and HP NonStop/Tandem systems.
Questions tagged [extra]
143 questions
2
votes
4 answers
new and malloc allocates extra 16 bytes
I'm writing on c++ in VS2010 Windows 7. I try to read file of size 64 bytes. Here's the code:
BYTE* MyReadFile(FILE *f)
{
size_t result;
BYTE *buffer;
long lSize;
if (f == NULL)
{
fputs ("File error", stderr);
…

forik
- 149
- 4
- 15
2
votes
2 answers
Mouse side buttons in python?
I am trying to use my mouse as remote on my laptop and I would like to use side buttons in them. I am coding in python as I have already succeeded doing it with autohotkey. But autohotkey uses too much resources.
The mouse is Razer Orochi.. It has…

Renee Undrits
- 21
- 3
2
votes
1 answer
What happens to the extra characters in the fgets() buffer that are over the bounds check?
#include
int main() {
char arr[10];
printf("Enter your name: \n");
fgets(arr, sizeof(arr), stdin);
puts(arr);
return 0;
}
I have a char arr[10] and use fgets(arr, sizeof(arr), stdin) to receive input. If I input say…

rain
- 45
- 3
2
votes
5 answers
How to pass string between two activities
I have two activities A and B, and from activity A, I click on a button that opens a dialog box which contains a form consisting of two edit text fields and a button(the button in the dialog box is used to start activity B). So, my question is: how…

Ovidiu Birgu
- 439
- 2
- 6
- 24
2
votes
1 answer
How to check if an activity is associated with a metadata tag or not?
I've an activity which has a meta data tag associated with it.

Tom Taylor
- 3,344
- 2
- 38
- 63
2
votes
1 answer
What does the extra 0 added to the LSB in Modified Booth Algorithm do?
I have tried to find a answer to this question but the only other thread about it didn't give as much details as I wished for.
Why is the extra 0 to the right of the LSB needed in Modified Booth Algorithm?
What exactly does it do and why does it…

Laha
- 39
- 5
2
votes
1 answer
Vim Map extra keys in Razer keyboard
I just bought a Razer mechanical keyboard with extra keys such as M1, M2 to M5.
I'm wondering whether Vim can map those extra keys?
It would be appreciated if anyone can give me some suggestions on how to do it.

Aron Lee
- 607
- 1
- 5
- 8
2
votes
3 answers
Removing spaces but leaving line breaks JS or jQuery in a textarea
I want to remove extra spaces at the beginning and the end of lines, but keep the line breaks, this is what I tried.
function removeSpaces(string) {
return string.split(' ').join('');
}

user1114748
- 99
- 7
2
votes
1 answer
HTML5 - Extra white space at the bottom of div
I am working on Windows Phone 8 Mobile application which uses IE10 browser internally.
I am trying to remove the blank white space from a child div, which is appearing if the previously opened child div's content is more than the currently open…

Pravesh Pesswani
- 481
- 8
- 16
2
votes
2 answers
getting an extra number when replacing a number following a string using sed in linux
This has been a real problem for me with sed.
I have an original input file as following.
R shthk 0.900000
R mue 0.054100 …

hamad khan
- 369
- 1
- 5
- 14
2
votes
0 answers
extra white space to the right in my mobile website
My mobile site, http://hoagfrm.orangegrids.com/index.php?id=51, is developed with 320px size. Still i can see an extra white space to the right in an iPhone. Can someone hep to figure this out please

saj
- 21
- 1
1
vote
4 answers
Why doesn't extra.getString() == "edit" work, but extra.getInt() == 1 work?
Here's the gist of my problem code:
String from = extra.getString("from");
Log.d("Cat", from); //debugs as edit
if(from == "edit") {
Log.d("Cat", "Edit");
} else {
Log.d("Cat", "Not Edit");
}
It would go to "Not Edit"
In the calling activity I…

spuppett
- 547
- 10
- 26
1
vote
0 answers
What is the best way to make a pip package with optional functionality?
I have my own pip package, which is called my_package.
It's quite large, and I want to split it into a few packages, which I can optionally install if necessary.
So my goal is: to have main package called my_package, and some extra packages (for…

Poision88
- 43
- 5
1
vote
1 answer
Android: Update bean information between activity
I'm new on Android developing.
I'm trying to manage gps location between activity. In particular I have created a thread, started with main activity, that update after a few interval the gps position and save the new position into a shared…

Simone
- 155
- 2
- 7
1
vote
2 answers
How can I install a local Python package with extra components using pip?
pip supports installing extra components while installing a Python package from internet, e.g.,
pip install dask[all]
pip install "dask[all] @ git+https://github.com/dask/dask"
However, does it support installing extra components when installing…

Benjamin Du
- 1,391
- 1
- 17
- 25