Or oxygen poisoning. Oxygen isn't the harmless substance many seem to think it is: it's quite toxic even to us. Too much will blind you then kill you (there may be some other effects involved as well) and it doesn't take all that much more than than the ~3 lb/sqin (partial pressue) we currently breath, though I'm not sure what level at which oxygen becomes harful to us.
This particular not-so-typical (I'm no god, but I'm a fairly decent programmer (I'm generally better at debugging)) saw this code, freaked out, and went to check some password checking code I've worked on. It is as abysmally simple (passwords in the clear, non-trivial to fix that), but it doesn't have the gaping holes the sample code has. Why did I check? Because I have made mistakes like that in the past. I likely will in the future.
Everybody has brainfarts, no matter how good they are.
(speaking for him) like the fact that while my ip address is dynamic, it remains constant for about 6 months at a time. Probably because my firewall is rarely off the net for more than 10 minutes at a time:). Oh, and no microsoft in the house:)
lcd: probably not much that can be done here without better lcd tech disk drives: turn them off when not in use fan: can get away with a smaller fan and thus lower power consumption
"Smith & Wesson beats four aces". I don't give out my important info if encryption isn't involved. I really don't care who is the man in the middle; no encryption, no data.
Atually, gold has no intrinsic value either. It's all based on faith. Faith that this piece of paper or that lump of yellow metal will have sufficient value to trade for the item you want. Also, a very large percentage of the money banks lend to corporations come from their customers (ie, you and me) rather than the national banks. This is why they pay you interest (ok, didly these days, but they still pay you): they're renting your money, which they then rent out to their borrowing customers with a nice little markup.
Actually, due to those licencing issues, the MPlayer developers had no right to distribute anything except for the code they wrote themselves (and that would be pretty useless:).
Actually, while it might sound repetative, unless every note is carefully constructed, it's anything but repetative. Even when sampling a pure sine wave it's very rare for the sample points to repeat due to the sample rate generally not being an exact multiple of the sampled wave. Now throw in some traditional instruments (eg, violin, saxophone, piano...) and humans, and things like the exact timing of notes will fluctate wildly at the sample level let alone the fact that many instruments operate based on filtering white (or more likely pink) noise.
This is why (or at least a major reason) lossless audio compression is so hard. There just isn't enough repitition at the sample level to produce a dictionary for your traditional compression algorithms (gzip, bzip2 etc)
Now, if music was as repetative as you thought, we'd be able to compress 90% of the music released in the last 5-10 years to about 1kbyte;)
Due to how parsing works, you actually have to jump through hoops to get the C compiler to complain about Duff's Device. Duff's Device is a natural by-product of the very simple rules used to construct the grammar. You would have to do things like detecting whether or not there are intervening nesting levels between the switch statement and the case statements. It certainly can be done, but (IMO), it's not worth the effort.
NOTE, I have implemented a compiler:)
Re:Who Is the Greatest Programmer?
on
Immortal Code
·
· Score: 1
Considering the bug count, I'ld say you're waaaay off base:)
Actually, it's more like Australian PITA father-in-laws that sadisticly stir the bejesus out of their Canadian son-in-laws that "can't" tell the difference.
(No offence to any Australians; my mom's Australian. Confused? Good, I am;)
Yeah, oops, thanks. 6.022e23. I think I got it confused with 5.98e24 (mass of earth in kg). So that's 6 hundred thousand billion billion instead:), the rest of my comment stands.
Uh, no. There are 6.2 million billion billion (6.2e24) water molecules in 18ml of water (a bit over a table spoon). There's more water molecules in a glass of water than there are glasses of water in all of Earth. Bad comparison:) Assuming Houston would have been a million dollar deal, that's 1/50000 (rounded off). That's more like one person in a small city/large town.
Hmm, and when you consider it can take only one person to affect what happens in even a large city, writing this off as having no effect on Microsoft (won't kill them, I'm certain) is not a good idea.
John Brunner's "Crucible of Time" is excellent (I haven't read his others). The only SF book I can think of that doesn't even hint at humans (I admit I haven't really read a huge quantity), let alone have even a lone human.
Link your program with the electric fence library. Not perfect (can't handle really big (huge quantities of malloc calls) apps), but it makes your program segault at the right time (eg, in free when freeing invalid memory, on the line accessing freed memory, etc). valgrind seems to help a lot too (though I haven't used it much yet, just tracked down memory leaks).
(call stack, what have you). If a debugger won't give you a stack trace (optimized code excepted:), throw it out. I've found that fixing a null pointer error is often as simpile as running the program in gdb until it crashes and then reading the results of backtrace. function name, parameters, source file and line nummber: (almost) everything you need to find out how that null got passed to your function.
Actually, $40 billion isn't really all that much. There's about 250 million Americans so $40 billion is $160 per person. If that was for Canada with our ~30 million people, that's still only a bit over $1300 per person. I pay just a bit less than that per month in tax, so that's 1 month's tax (Canada) or one month's worth of gas+oil (US) for a ~18 year project. Chump change (even when you factor in the fact that 1/3 to 2/3 of the population is paying tax (I don't know the figures)).
$40 billion is a lot for one person, chump change for a nation.
Yeah, Cherryh is fanatastic. Cyteen (helped me understand myself and my son (asperger's syndrome (high functioning autism)), Chanur, Cuckoo's Egg, The Faded Sun, Foreiner, Hammerfall, Tri Point...
Her fantasy is great too: The Goblin Mirror, Rusalka and Morgain (wow:). There's more, that's just what I've read.
To me, Cherryh isn't so much about the technology (though every now and then it creaps into the story) but more about the people (human or not, maybe especially not:) and the environment.
Since when does 10 times 100 get 10000? More like 1000.
Or oxygen poisoning. Oxygen isn't the harmless substance many seem to think it is: it's quite toxic even to us. Too much will blind you then kill you (there may be some other effects involved as well) and it doesn't take all that much more than than the ~3 lb/sqin (partial pressue) we currently breath, though I'm not sure what level at which oxygen becomes harful to us.
Everybody has brainfarts, no matter how good they are.
Not necessarily true. I've smashed the stack by overflowing a static buffer in C. Yes, it took a stupidly large string, but it still happened.
(speaking for him) like the fact that while my ip address is dynamic, it remains constant for about 6 months at a time. Probably because my firewall is rarely off the net for more than 10 minutes at a time :). Oh, and no microsoft in the house :)
lcd: probably not much that can be done here without better lcd tech
disk drives: turn them off when not in use
fan: can get away with a smaller fan and thus lower power consumption
"flat" means the surface has an infinite radius of curvature, so you're both right :)
And after that, giant marshmellow sailors.
RPMs == angular velocity. 2 * pi radians/second == 60 RPM. Are you perhaps thinking peripheral velocity?
"Smith & Wesson beats four aces". I don't give out my important info if encryption isn't involved. I really don't care who is the man in the middle; no encryption, no data.
Atually, gold has no intrinsic value either. It's all based on faith. Faith that this piece of paper or that lump of yellow metal will have sufficient value to trade for the item you want. Also, a very large percentage of the money banks lend to corporations come from their customers (ie, you and me) rather than the national banks. This is why they pay you interest (ok, didly these days, but they still pay you): they're renting your money, which they then rent out to their borrowing customers with a nice little markup.
Actually, due to those licencing issues, the MPlayer developers had no right to distribute anything except for the code they wrote themselves (and that would be pretty useless:).
As far as I can tell, my `lowly' Celeron 450 doesn't even notice flac decoding. (dual 300a, but hey:)
This is why (or at least a major reason) lossless audio compression is so hard. There just isn't enough repitition at the sample level to produce a dictionary for your traditional compression algorithms (gzip, bzip2 etc)
Now, if music was as repetative as you thought, we'd be able to compress 90% of the music released in the last 5-10 years to about 1kbyte ;)
NOTE, I have implemented a compiler :)
Considering the bug count, I'ld say you're waaaay off base :)
Actually, it's more like Australian PITA father-in-laws that sadisticly stir the bejesus out of their Canadian son-in-laws that "can't" tell the difference.
;)
(No offence to any Australians; my mom's Australian. Confused? Good, I am
Heh, go for broke and install a third so all three axes are covered. Or go whole-hog with 6 drives: three pairs of counter rotating drives :)
Yeah, oops, thanks. 6.022e23. I think I got it confused with 5.98e24 (mass of earth in kg). So that's 6 hundred thousand billion billion instead :), the rest of my comment stands.
Hmm, and when you consider it can take only one person to affect what happens in even a large city, writing this off as having no effect on Microsoft (won't kill them, I'm certain) is not a good idea.
John Brunner's "Crucible of Time" is excellent (I haven't read his others). The only SF book I can think of that doesn't even hint at humans (I admit I haven't really read a huge quantity), let alone have even a lone human.
Link your program with the electric fence library. Not perfect (can't handle really big (huge quantities of malloc calls) apps), but it makes your program segault at the right time (eg, in free when freeing invalid memory, on the line accessing freed memory, etc). valgrind seems to help a lot too (though I haven't used it much yet, just tracked down memory leaks).
(call stack, what have you). If a debugger won't give you a stack trace (optimized code excepted:), throw it out. I've found that fixing a null pointer error is often as simpile as running the program in gdb until it crashes and then reading the results of backtrace. function name, parameters, source file and line nummber: (almost) everything you need to find out how that null got passed to your function.
$40 billion is a lot for one person, chump change for a nation.
Yeah, Cherryh is fanatastic. Cyteen (helped me understand myself and my son (asperger's syndrome (high functioning autism)), Chanur, Cuckoo's Egg, The Faded Sun, Foreiner, Hammerfall, Tri Point...
Her fantasy is great too: The Goblin Mirror, Rusalka and Morgain (wow:). There's more, that's just what I've read.
To me, Cherryh isn't so much about the technology (though every now and then it creaps into the story) but more about the people (human or not, maybe especially not:) and the environment.
She also has a webiste