ShellExecute (shell32.dll) is a shell function. It means you're trying to run a file via a user interface (i.e., the file explorer, or the command prompt), and it will look for the associated viewer. If you compare it to UNIX, it's not like exec. It's more like an internal function in the KDE file viewer, for instance.
CreateProcess (kernel32.dll) is the API function that actually runs a program. That is more like exec. Try renaming an exe to.bmp and CreateProcess'ing it - it will run as an executable, and not run mspaint. (ShellExecute will call CreateProcess internally on exe files.)
And now, to the point: NTFS does have an "x" flag (called "Read & Execute" in the GUI - and yes, there is a separate one called "Read"). But I think it's ignored if you're logged in as Administrator, which most Windows users are. (Not sure about that though)
The real problem with Windows is not that there isn't an execute flag. It's that everybody's admin.
Personally, I wouldn't randomly kick out 5% of the people walking in, either. People who would rather kick out 5% of the people than kick 1 person in every 20 are exactly the kind of people who would use Internet Explorer.
I've nearly given up on C++ as an Effective language. But... TR1 is interesting. C++ may be useful again in 2-6 years (time for TR1 to become semi-standard, and for major compilers to accept it).
Bush: Alright, how's the ladder going, General? Are we beating the Japanese? General: Not quite, but we have a new problem, Mr. President. Our recon team on the ladder just found new evidence of threats... from Saddam Hussein. Bush: Saddam Hussein? But... we killed him! We secretly took him out months ago! General: Yes sir. And now we believe he's building weapons of mass destruction... in heaven.
Yes - Reid Barton is becoming a very recognizable name around contests of this sort. He participated in the IOI (International Olympiad in Informatics), the IMO (International Mathematics Olympiad), the Putnam (an American mathematics olympiad), and of course the Google Code Jam (and maybe others I missed - ACM?). In short: This guy owns you and me.
It's actually common for people to participate in both computer science and mathematics contests. Remember, the CS contests (IOI, ACM, GCJ) are about computer science, not just programming. (Obviously you have to know how to program, but that's not at all what you're being tested on.) The problems themselves are very mathematical, so the people who participate are usually pretty mathematical themselves.
I was a contestant in IOI 2004 (the International Olympiad in Informatics) this September. I would have participated in the GCJ also, but unfortunately Google's dates and the IOI dates overlapped. See the "important dates" here - the Qualification Round was on September 15-16, and the IOI was on September 11-18. Oh well.
(There were people walking around with GCJ 2003 T-shirts. It was pretty amusing.)
Google: Something to consider for GCJ 2005. (IOI 2005 will be on August 18-25.)
Screw the re-re-re-re-re-re-release. I want the original. Why did they touch it? Do they think we don't know the film was aired in 1977? I, personally, know. And I want to see that, nothing more.
Watching A New Hope with 2004 fancy special effects would be like watching Clerks with color and good acting. I mean, seriously, some things shouldn't be changed.
/Save Films From Their Own Directors Club, Spokesman
This reminds me of a modern desktop system I saw sitting in a store, running Windows XP just so that it could connect via a terminal to another server and run the store's application. It would seem that even an old VT100 would have sufficed, but someone was able to sell the store a full blown PC.
Real men turn off both the recycle bin and the delete confirmation dialog box.
I thought so too. So I did it. Until one day...
(Around mid-day) Started writing math homework (Around 01:00) Finished writing math homework. Whew! 16 pages! (03:55) Accidentally deleted math homework. Not printed yet, since it's the middle of the night and the printer is in another room, a room where people are sleeping. Don't ask how it was deleted. Freak accident involving explorer.exe. (04:12) Stopped trying crappy restore-deleted-files programs and started retyping my homework. At least it'd be faster since I'd already done it. (07:57) Done. 15 pages this time.
Moral: 1. Make backups. 2. Don't disable delete confirmation.
I re-enabled delete confirmation. The recycle bin is still hidden from the desktop, since I don't use it. If that sort of accident happens again, C:\RECYCLER.
I am a teenager, and it's *my* job to secure the network, install Firefox and an anti-virus on computers used by my family, and basically be the IT department around here, because nobody else knows how.
It should be the other way around. If my parents and sisters read such a book, maybe I'd get less tech support requests.
Please note the "etc" at the end of the number. A googolplex of the byte '0' (not to mention a googolplexian) is probably several times the capacity of your HD.
Let's see, a googolplex is 10^googol. The amount of bits in a number x is log2(x) (round and give or take 1), therefore the amount of bits in googolplex is log2(10^googol) = googol * log2(10) = ~3.3219 * googol.
The amount of bits in a terabyte is 2^43... Somewhat smaller.
So there probably aren't plenty of 0's there - just a plenty of googols.
It is anti-Microsoft. Had the comment been something equally stupid against Linux or the OSS community, such as "Linux kernel developers don't get paid in cash because they get paid in weed.", it would have been modded down (as this should have been).
I don't need no arms around me I don't need no drugs to calm me I have seen the writing on the wall Don't think I need anything at all No, don't think I need anything at all All in all it was all just bricks in the wall All in all you were all just bricks in the wall
Slashdot and Newsforge (host of linked article) are both owned by OSDN. We already know OSDN is anti-Microsoft. This is not news, just more OSDN Microsoft bashing mixed with Linux praising.
No.
http://en.wikipedia.org/wiki/Beg_the_question
Not necessarily. Maybe it was off in the other direction?
Oh, you're right.
ShellExecute (shell32.dll) is a shell function. It means you're trying to run a file via a user interface (i.e., the file explorer, or the command prompt), and it will look for the associated viewer. If you compare it to UNIX, it's not like exec. It's more like an internal function in the KDE file viewer, for instance.
.bmp and CreateProcess'ing it - it will run as an executable, and not run mspaint. (ShellExecute will call CreateProcess internally on exe files.)
CreateProcess (kernel32.dll) is the API function that actually runs a program. That is more like exec. Try renaming an exe to
And now, to the point: NTFS does have an "x" flag (called "Read & Execute" in the GUI - and yes, there is a separate one called "Read"). But I think it's ignored if you're logged in as Administrator, which most Windows users are. (Not sure about that though)
The real problem with Windows is not that there isn't an execute flag. It's that everybody's admin.
For some people, cars are just red, green and blue. But for me, they change with temperature. You know why? 'cause I'm your boy X to the Z Xzibit!
Personally, I wouldn't randomly kick out 5% of the people walking in, either.
People who would rather kick out 5% of the people than kick 1 person in every 20 are exactly the kind of people who would use Internet Explorer.
Wait... what?
Yes, Bjarne Stroustrup (the "father" of C++) really did say that.
Google finds many other derived jokes.
I've nearly given up on C++ as an Effective language. But...
TR1 is interesting. C++ may be useful again in 2-6 years (time for TR1 to become semi-standard, and for major compilers to accept it).
Try searching for "Google". Amusing.
Bush: Alright, how's the ladder going, General? Are we beating the Japanese?
General: Not quite, but we have a new problem, Mr. President. Our recon team on the ladder just found new evidence of threats... from Saddam Hussein.
Bush: Saddam Hussein? But... we killed him! We secretly took him out months ago!
General: Yes sir. And now we believe he's building weapons of mass destruction... in heaven.
- South Park, "Ladder to Heaven"
Robots mow your lawn, vacuum, wash windows and clean swimming pools... in Japan!
The Grassy Knoll wins the thread.
Yes - Reid Barton is becoming a very recognizable name around contests of this sort. He participated in the IOI (International Olympiad in Informatics), the IMO (International Mathematics Olympiad), the Putnam (an American mathematics olympiad), and of course the Google Code Jam (and maybe others I missed - ACM?). In short: This guy owns you and me.
It's actually common for people to participate in both computer science and mathematics contests. Remember, the CS contests (IOI, ACM, GCJ) are about computer science, not just programming. (Obviously you have to know how to program, but that's not at all what you're being tested on.) The problems themselves are very mathematical, so the people who participate are usually pretty mathematical themselves.
Hi Google,
I was a contestant in IOI 2004 (the International Olympiad in Informatics) this September. I would have participated in the GCJ also, but unfortunately Google's dates and the IOI dates overlapped. See the "important dates" here - the Qualification Round was on September 15-16, and the IOI was on September 11-18. Oh well.
(There were people walking around with GCJ 2003 T-shirts. It was pretty amusing.)
Google: Something to consider for GCJ 2005. (IOI 2005 will be on August 18-25.)
Thanks,
Yoni
Screw the re-re-re-re-re-re-release. I want the original.
Why did they touch it? Do they think we don't know the film was aired in 1977?
I, personally, know. And I want to see that, nothing more.
Watching A New Hope with 2004 fancy special effects would be like watching Clerks with color and good acting. I mean, seriously, some things shouldn't be changed.
/Save Films From Their Own Directors Club, Spokesman
Real men turn off both the recycle bin and the delete confirmation dialog box.
I thought so too. So I did it. Until one day...
(Around mid-day) Started writing math homework
(Around 01:00) Finished writing math homework. Whew! 16 pages!
(03:55) Accidentally deleted math homework. Not printed yet, since it's the middle of the night and the printer is in another room, a room where people are sleeping. Don't ask how it was deleted. Freak accident involving explorer.exe.
(04:12) Stopped trying crappy restore-deleted-files programs and started retyping my homework. At least it'd be faster since I'd already done it.
(07:57) Done. 15 pages this time.
Moral:
1. Make backups.
2. Don't disable delete confirmation.
I re-enabled delete confirmation. The recycle bin is still hidden from the desktop, since I don't use it. If that sort of accident happens again, C:\RECYCLER.
wishful thinking by Linux zealots.
Maybe this is the real way Windows will be made irrelevant...
Or maybe it won't. You'll get over it.
(I am not against OSS nor Linux. In fact, I quite like them both. But come on, be realistic!)
Has anybody ever gotten a virus from an infected CD?
I don't usually bash Microsoft, but a few years ago they shipped the Korean edition of VS.NET with the Nimda virus. ^_^
Personally though, no.
I am a teenager, and it's *my* job to secure the network, install Firefox and an anti-virus on computers used by my family, and basically be the IT department around here, because nobody else knows how.
It should be the other way around. If my parents and sisters read such a book, maybe I'd get less tech support requests.
Please note the "etc" at the end of the number. A googolplex of the byte '0' (not to mention a googolplexian) is probably several times the capacity of your HD.
Let's see, a googolplex is 10^googol. The amount of bits in a number x is log2(x) (round and give or take 1), therefore the amount of bits in googolplex is log2(10^googol) = googol * log2(10) = ~3.3219 * googol.
The amount of bits in a terabyte is 2^43... Somewhat smaller.
So there probably aren't plenty of 0's there - just a plenty of googols.
To anyone who might be reading this: I am stuck inside my toaster, please send help.
It is anti-Microsoft. Had the comment been something equally stupid against Linux or the OSS community, such as "Linux kernel developers don't get paid in cash because they get paid in weed.", it would have been modded down (as this should have been).
Welcome to Slashdot. You must be new here.
I don't need no arms around me
I don't need no drugs to calm me
I have seen the writing on the wall
Don't think I need anything at all
No, don't think I need anything at all
All in all it was all just bricks in the wall
All in all you were all just bricks in the wall
Pink Floyd - The Wall
Slashdot and Newsforge (host of linked article) are both owned by OSDN. We already know OSDN is anti-Microsoft. This is not news, just more OSDN Microsoft bashing mixed with Linux praising.