Help - Search - Members - Calendar
Full Version: weird and interesting thread
Bulk Muscle Forums > Random Chaos > Speak Your Mind
sponge
Weird and Interesting windows BUG..
26Nov06

Bush Hid The Facts
For those of you using Windows, do the following:

1.) Open an empty notepad file
2.) Type “Bush hid the facts” (without the quotes)
3.) Save it as whatever you want.
4.) Close it, and re-open it.

QUOTE (sponge @ Dec 4 2006, 07:34 PM) *
Weird and Interesting windows BUG..
26Nov06

Bush Hid The Facts
For those of you using Windows, do the following:

1.) Open an empty notepad file
2.) Type “Bush hid the facts” (without the quotes)
3.) Save it as whatever you want.
4.) Close it, and re-open it.


wow, some geek just had to pipe in to try and explain it.
QUOTE
from:
http://www.steady-rollin.com/content/view/20/

1. Load Notepad in Windows (in my case XP Pro)

2. Type “bush hid the facts” (all in lowercase, no quotes)

3. Save this file under a name of your choice

4. Re-open the file

you will not see the text that you typed, but instead you will see a bunch of squares (or, as I later found out, some Chinese characters - that is, if you have the Chinese fonts installed, which is not my case).

Most people think it’s a Windows Notepad easter egg (I thought so myself, to be honest), but in fact, it isn’t. It’s just a lousy Notepad bug. Let me explain…

I was myself curious about the cause of this phenomenon, and I found out that this text is not the only one to cause problems. There are other strings that cause Notepad to screw up, including “this app can break”, which was another version of the bug that generated a lot of buzz. I’ve personally tested a series of strings that have the same effect, including “this api can break”, “this cat can split”, “jane can not dance”, “text wit hou tcaps” and even “abcd efg hij klmno” and “xxxx xxx xxx xxxxx”. What do these phrases have in common? They are made up by four words made up by four, three, three and five letters, all lowercase. So, by induction, all “4-3-3-5″ strings should work.

Now, let’s get to why this thing happens. First of all, it seems that Notepad writes the files just fine, it just can’t read them again correctly. As a proof, try opening your saved file, the one that Notepad screws up, with another text editor. I used EditPlus and it turned out to be OK. So why the Notepad thing then? Well, it’s a Windows thing. Notepad uses a Windows function that allows it to figure out whether a text file is Unicode or not. And that function, my friends, is the one that screws it up. Because the way it checks can easily be described as “guessing”. And it guesses that the file is actually Unicode, and not Ascii, as it is supposed to be.

Now, two different but similar explanations can be given.

The first is that, after the ASCII-to-hex conversion of the string, Notepad rearranges the hex codes not according to ASCII standards, but to Unicode, and that messes it up. Here’s the example:

Take “bush hid the facts”. The hex codes (they can be seen with any hex editor you want to download) for the string are:

62 75 73 68 20 68 69 64 20 74 68 65 20 66 61 63 74 73

Arrange the codes to make up Unicode characters and you get:

7562 6873 6820 6964 7420 6568 6620 6163 7473

You’ll notice that every code is hyperlinked. If you click on each one of them, you’ll see that each one represents a Chinese (I think) “letter”.

So this whole thing’s cause is the coincidence that the 18 ASCII characters happen to represent 9 Unicode characters. And, of course, Windows’ inability to determine the right encoding of the file.

The second explanation is slightly different, but the basics are the same: the difference between ASCII and Unicode. It’s just a matter of Notepad defaults. You see, when you save the file, in the “Encoding” field, the default drop-down is set to ANSI. So, by default, Notepad saves as ANSI. But if you do a File -> Open, the default Encoding is set to Unicode. That’s exactly what happens when you double click a saved file. Notepad knows the path, but not the Encoding. So it uses the default Unicode encoding, which spits the Chinese characters as explained above.

And that’s about it. No easter eggs, no conspiracies, no Bush interventions. Just plain old Microsoft.
sponge
Old but funny for those who haven't seen it,

Top 10 Differences between Women and Men
20Oct06

1. Eating Out: When the bill arrives, Mark, Chris, Eric and Tom will each throw in a $20, even though it’s only for $32.50. None of them will have anything smaller and none will actually admit they want the change back. When the women get their bill, out come the pocket calculators.

2. Money: A man will pay $2 for a $1 item he needs. A woman will pay $1 for a $2 item that she doesn’t need but it’s on
sale.

3. Bathrooms: A man has five items in his bathroom: a toothbrush, shaving cream, razor, a bar of soap, and a towel from the Marriott. The average number of items in the typical woman’s bathroom is 337. A man would not be able to identify most of these items.

4. Arguments: A woman has the last word in any argument. Anything a man says after that is the beginning of a new argument.

5. Cats: Women love cats. Men say they love cats, but when women aren’t looking, men kick cats.

6. Future: A woman worries about the future until she gets a husband. A man never worries about the future until he gets a wife.

7. Success: A successful man is one who makes more money than his wife can spend. A successful woman is one who can find such a man.

8. Marriage: A woman marries a man expecting he will change, but he doesn’t. A man marries a woman expecting that she won’t change and she does.

9. Dressing UP: A woman will dress up to go 4 shopping, to water the plants, empty the garbage, answer the phone, read a book, and read the mail. A man will dress up for weddings and funerals.

10. Final Thought: Any married man should forget his mistakes. There’s no use in two people remembering the same thing.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.