Forgot your password?
typodupeerror

Comment: Re:For / While in C (Score 1) 533

by kst (#46002797) Attached to: Ask Slashdot: What's the Most Often-Run Piece of Code -- Ever?

Nitpick: The C standard is published by ISO; ANSI adopts each new version as it comes out.

All three editions of the ISO C standard (1990, 1999, and 2011) permit main to have an implementation-defined type.

Only "int main(void)" and "int main(int argc, char *argv[])" (or equivalent) are required to be supported by all C implementations -- and that applies only to hosted implementations. For freestanding implementations, the program entry point is entirely implementation-defined.

Comment: Re:Nobody suggested this? (Score 1) 185

by kst (#43583131) Attached to: Nearest Alien Planet Gets New Name

In the original episode "Metamorphosis", it wasn't clear where Cochrane was originally from. He could have been a humanoid native of a planet in the the Alpha Centauri system (at the time I thought "Zefram Cochrane" was a sufficiently exotic name that he could have been non-human). Or, more likely, he could have been born in a colony established by sublight ships; we know from "Space Seed" that there were sublight sleeper ships before the invention of warp drive.

Annoying quibble: Kirk's line was "Zefram Cochrane? Of Alpha Centauri?" (The "of" might have a subtly different implication than "from".)

Comment: What's wrong with the question? (Score 2) 393

by kst (#37504860) Attached to: Ask Slashdot: Calculators With 1-2-3 Number Pads?

Why do so many people object so vehemently to the question?

I personally don't have much trouble with the difference between calculator and telephone keypads; I can switch between them without much mental effort. (I can also switch between vi and emacs, and between bash and tcsh.)

But on every system I use, one of the first things I do is figure out how to remap the caps-lock key so it acts as a control key. In decades of effort, I've never gotten used to having the control key in a position other than immediately to the left of 'A'. If it works for most people, that's terrific, but it doesn't work for me.

But the OP does have a problem with it. The "destroys muscle- and spatial- memory" part seems exaggerated, but it may well be accurate *for the person asking the question*.

Different people have different mental models and usage patterns. Devices and software are supposed to be designed for users, not the other way around.

It's not a stupid question at all.

Comment: Ubuntu 8.10 froze around midnight UTC (Score 1) 480

by kst (#26293751) Attached to: Anyone Besides Zune Owners With New Year's Crashes?

My Ubuntu 8.10 system froze around midnight GMT. There's nothing in the logs to indicate any problem, except that the last log entry is at Dec 31 15:55:02 (that's 5 minutes before midnight) for a cron job that runs every 5 minutes. I wasn't at home at the time, so I didn't see what happened, except that my ssh connection died.

When I got home a few hours later, the system was still powered on (the fan was running), but the screen was blank. I was able to reboot it with no problem.

It's not the same problem as on the Zune, since that hit 24 hours earlier. It *might* have something to do with the leap second, or maybe it's a problem that occurs at the end of the 366th day of the year.

I suppose I could set the clock back and run it through midnight again. I'm not sure I'll bother, but if somebody else wants to try it it would be interesting to see the results. Or maybe I'll try that with a live CD.

You can't have everything... where would you put it? -- Steven Wright

Working...