Computing desk | ||
---|---|---|
< March 25 | << Feb | March | Apr >> | March 27 > |
Welcome to the Wikipedia Computing Reference Desk Archives |
---|
The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages. |
Can you Google on Bing? Do you still call it googling or do you call it binging? Bubba73 You talkin' to me? 04:48, 26 March 2013 (UTC)
Can anyone identify this 1950s IBM printer? - Jmabel | Talk 06:01, 26 March 2013 (UTC)
In C, is it safe to assume that null will always compare as less than a valid pointer? I know it isn't safe to assume null==0. 173.52.95.244 ( talk) 11:53, 26 March 2013 (UTC)
int i=0; int *p=(int*)i;
will result in p
's value being the NULL pointer, unless they changed either the standard or my memory. Secondly, there is, however, a guarantee that if you cast an pointer to an integer that is large enough, and then cast it back, you will get back the original pointer. Thus, there is a injective function from the range of intptr_t
and the range of void*
. You should be able use that to induce a total ordering on pointers. --
Stephan Schulz (
talk) 18:23, 26 March 2013 (UTC)
uintptr_t
or intptr_t
(which is not required), it is guaranteed that casting a void pointer to one of those types and back yields a pointer that compares equal to the original pointer. You could ensure that the null pointer compares less than everything else by using uintptr_t
and subtracting (uintptr_t) (void *) 0
from both sides. But I don't see any guarantee that p < q
implies (uintptr_t) p < (uintptr_t) q
or vice versa even when the pointer comparison is valid (i.e., when p and q point to the same array). --
BenRG (
talk) 22:40, 26 March 2013 (UTC)
void *
". Even if NULL was required to be defined as the single token 0
, it wouldn't follow that it would have to compare less than a non-null pointer, or that casting a null pointer to an integral type would necessarily yield the value 0, or that null pointers ever have an all-zero representation at run time. The only connection between the number 0 and null pointers is at compile time, when integer constant expressions with the value 0 are converted to null pointers where required by the type system. --
BenRG (
talk) 22:40, 26 March 2013 (UTC)
memset
to clear pointers, or assuming calloc
returns null pointers, or passing NULL
to execl
without a cast). --
BenRG (
talk) 17:12, 31 March 2013 (UTC)I'm using a Galaxy S III Mini, with Android 4.1.2, with the default Samsung Keyboard, and the predictive text turned on. This works great. I also have the original Samsung Galaxy Tab, with Android 2.2. The predictive text is XT9, which I don't much like. Is there any way to get the current Samsung Keyboard as it works on my phone onto the Tab, or is it an issue of the later version of Android, and I won't be able to get the newer Keyboard and functions working on the older machine? Thanks if you can advise. — Preceding unsigned comment added by 193.173.50.210 ( talk) 16:12, 26 March 2013 (UTC)
The old fogies among you might remember I posted a question about sound emulation not working quite right in E-UAE on Fedora Linux some time in 2011 or 2012. Well, now that I have updated from Fedora 14 to Fedora 17, I tried it again. To my surprise, the sound in nearly every game worked right. The only exception so far was Ork, which had the same problems as before. But then I went to the "CPU" tab, and changed the "Speed" setting from "Maximum" to "Adjusted", setting the speed slider to as fast as it could go. To my surprise, the sound worked perfectly OK. When I set the setting back to "Maximum", the problem resumed. Having the "Speed" setting at anything other than "Maximum" slows the emulation of AmigaOS down terribly, so I prefer to keep it there in all cases except when I encounter sound problems. Does anyone have any idea what could be causing this? JIP | Talk 18:59, 26 March 2013 (UTC)
Furthermore, is it somehow possible to capture the sound output of E-UAE as a .wav or .ogg or whatever file? JIP | Talk 19:25, 26 March 2013 (UTC)
rec
, but the same thing happened, only to a marginally lesser degree. When running UAE without audio recording in the background, the sound is nearly flawless, but of course it is useless for recording purposes. So I think I need a faster CPU or more memory or something.
JIP |
Talk 18:15, 27 March 2013 (UTC)Hi all, I'm using Xcode with an ipad simulator, with a sound recorder, but the sound quality occasionally stuffs up. Basically it just comes out blurry, like I'm talking through a fan or something. This happens regardless of where I'm standing, but only occasionally. Does anyone know what's going on? I'm not registered with the ipad developer program yet (will be soon), so I can't test on the ipad itself. Is it a known problem, and does it apply only to the simulator? IBE ( talk) 20:50, 26 March 2013 (UTC)
I received one of the currently rife spam mails that says "The courier company was not able to deliver your parcel by your address. Cause: Error in shipping address." and has you double click on the attachment, which appears to be a ZIP file. Don't worry, I didn't do that! I'm just wondering how it is possible that a such attachments can still be so dangerous? For every little thing I'm asked three times to confirm that I really want to do it, and my computer updates itself at least every week, but security is apparently still so low that such an executable can still impersonate me and perform tasks that have no place in a ZIP file, and should clearly require admin permission. Editor030813 ( talk) 22:00, 26 March 2013 (UTC)
Computing desk | ||
---|---|---|
< March 25 | << Feb | March | Apr >> | March 27 > |
Welcome to the Wikipedia Computing Reference Desk Archives |
---|
The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages. |
Can you Google on Bing? Do you still call it googling or do you call it binging? Bubba73 You talkin' to me? 04:48, 26 March 2013 (UTC)
Can anyone identify this 1950s IBM printer? - Jmabel | Talk 06:01, 26 March 2013 (UTC)
In C, is it safe to assume that null will always compare as less than a valid pointer? I know it isn't safe to assume null==0. 173.52.95.244 ( talk) 11:53, 26 March 2013 (UTC)
int i=0; int *p=(int*)i;
will result in p
's value being the NULL pointer, unless they changed either the standard or my memory. Secondly, there is, however, a guarantee that if you cast an pointer to an integer that is large enough, and then cast it back, you will get back the original pointer. Thus, there is a injective function from the range of intptr_t
and the range of void*
. You should be able use that to induce a total ordering on pointers. --
Stephan Schulz (
talk) 18:23, 26 March 2013 (UTC)
uintptr_t
or intptr_t
(which is not required), it is guaranteed that casting a void pointer to one of those types and back yields a pointer that compares equal to the original pointer. You could ensure that the null pointer compares less than everything else by using uintptr_t
and subtracting (uintptr_t) (void *) 0
from both sides. But I don't see any guarantee that p < q
implies (uintptr_t) p < (uintptr_t) q
or vice versa even when the pointer comparison is valid (i.e., when p and q point to the same array). --
BenRG (
talk) 22:40, 26 March 2013 (UTC)
void *
". Even if NULL was required to be defined as the single token 0
, it wouldn't follow that it would have to compare less than a non-null pointer, or that casting a null pointer to an integral type would necessarily yield the value 0, or that null pointers ever have an all-zero representation at run time. The only connection between the number 0 and null pointers is at compile time, when integer constant expressions with the value 0 are converted to null pointers where required by the type system. --
BenRG (
talk) 22:40, 26 March 2013 (UTC)
memset
to clear pointers, or assuming calloc
returns null pointers, or passing NULL
to execl
without a cast). --
BenRG (
talk) 17:12, 31 March 2013 (UTC)I'm using a Galaxy S III Mini, with Android 4.1.2, with the default Samsung Keyboard, and the predictive text turned on. This works great. I also have the original Samsung Galaxy Tab, with Android 2.2. The predictive text is XT9, which I don't much like. Is there any way to get the current Samsung Keyboard as it works on my phone onto the Tab, or is it an issue of the later version of Android, and I won't be able to get the newer Keyboard and functions working on the older machine? Thanks if you can advise. — Preceding unsigned comment added by 193.173.50.210 ( talk) 16:12, 26 March 2013 (UTC)
The old fogies among you might remember I posted a question about sound emulation not working quite right in E-UAE on Fedora Linux some time in 2011 or 2012. Well, now that I have updated from Fedora 14 to Fedora 17, I tried it again. To my surprise, the sound in nearly every game worked right. The only exception so far was Ork, which had the same problems as before. But then I went to the "CPU" tab, and changed the "Speed" setting from "Maximum" to "Adjusted", setting the speed slider to as fast as it could go. To my surprise, the sound worked perfectly OK. When I set the setting back to "Maximum", the problem resumed. Having the "Speed" setting at anything other than "Maximum" slows the emulation of AmigaOS down terribly, so I prefer to keep it there in all cases except when I encounter sound problems. Does anyone have any idea what could be causing this? JIP | Talk 18:59, 26 March 2013 (UTC)
Furthermore, is it somehow possible to capture the sound output of E-UAE as a .wav or .ogg or whatever file? JIP | Talk 19:25, 26 March 2013 (UTC)
rec
, but the same thing happened, only to a marginally lesser degree. When running UAE without audio recording in the background, the sound is nearly flawless, but of course it is useless for recording purposes. So I think I need a faster CPU or more memory or something.
JIP |
Talk 18:15, 27 March 2013 (UTC)Hi all, I'm using Xcode with an ipad simulator, with a sound recorder, but the sound quality occasionally stuffs up. Basically it just comes out blurry, like I'm talking through a fan or something. This happens regardless of where I'm standing, but only occasionally. Does anyone know what's going on? I'm not registered with the ipad developer program yet (will be soon), so I can't test on the ipad itself. Is it a known problem, and does it apply only to the simulator? IBE ( talk) 20:50, 26 March 2013 (UTC)
I received one of the currently rife spam mails that says "The courier company was not able to deliver your parcel by your address. Cause: Error in shipping address." and has you double click on the attachment, which appears to be a ZIP file. Don't worry, I didn't do that! I'm just wondering how it is possible that a such attachments can still be so dangerous? For every little thing I'm asked three times to confirm that I really want to do it, and my computer updates itself at least every week, but security is apparently still so low that such an executable can still impersonate me and perform tasks that have no place in a ZIP file, and should clearly require admin permission. Editor030813 ( talk) 22:00, 26 March 2013 (UTC)