Saturday, August 14, 2010

Magic Revealed

Detailed Analysis

MAGIC #1

An Indian found that nobody can create a FOLDER anywhere on the Computer which can be named as "CON". This is something funny and inexplicable? At Microsoft the whole Team, couldn't answer why this happened! TRY IT NOW, IT WILL NOT CREATE A "CON" FOLDER

According to this rather breathless little message, which circulates via email and online, it is not possible to create a folder named "CON" on a Microsoft Windows based computer. The message claims that not even Bill Gates or the whole Microsoft "Team" can explain why this might be so.

It is in fact perfectly true that you cannot create a folder named "CON", nor can you rename an existing folder to "CON". However, there is no mystery surrounding this restriction whatsoever. The "team" at Microsoft, and a great many others besides, know perfectly well why you cannot name a folder "CON". "CON" and a number of other character strings are in fact reserved names that go back to the days of DOS and cannot be used to name folders or files. Other reserved names are:
• PRN
• AUX
• NUL
• LPT1
• COM1
• Potential drive letter - A: to Z:
• A number of others
If you try to name a folder using one of these reserved names, the name will automatically revert to the default, generally "New Folder". Moreover, if you try to use a reserved name to name a file such as a Notepad or Microsoft Word document you will generally receive an error message similar to the following:

Depending on exactly how you save the file, you may instead receive a warning message advising that a file with that name already exists. However, even if you choose "Yes" to overwrite the existing file, you will still not be allowed to save the file.

It should be noted that, by entering the right sequence of commands via the command prompt, it is usually possible to circumvent the restriction in Winodows and create a folder using a reserved name. However, this may cause other problems and is not advisable, especially for more inexperienced users.

While there is no mystery about this issue, it might have saved user confusion if Windows displayed an explanatory error message when attempting to create a folder with a reserved name as well.

For more detailed information see:
MS-DOS Device Driver Names Cannot be Used as File Names

MAGIC #2
Did you know that a flight number from one of the planes that hit one of the two WTC towers on 9/11 was Q33N. In Notepad / WordPad or MS
Word, type that flight number i.e. Q33N. Increase the font size to 72. Change the font to Wingdings. ….. u will be amazed by the findings!!!…………………..
Fact
There was no such flight number, do some research. Where on earth would ya find a flight with da number as Q33N...this is stupidity.
The flight numbers were:
* American Airlines Flight 11 from Boston to Los Angeles
* United Airlines Flight 175 from Boston to Los Angeles
* American Airlines Flight 77 from Dulles to Los Angeles
* United Airlines Flight 93 from Newark to San Francisco

Q33N isn't and hasn't been a flight number.

MAGIC #3
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.

Noticed the weird bug? No one can explain!
Bush hid the facts is a common name for a bug present in the function IsTextUnicode of Microsoft Windows, which causes a file of text encoded in Windows-1252 or similar encoding to be interpreted as if it were UTF-16LE, resulting in mojibake. When "Bush hid the facts" is put in a new Notepad document and saved, closed, and reopened, the words "畢桳栠摩琠敨映捡獴" appear instead.
While "Bush hid the facts" is the sentence most commonly presented on the Internet to induce the error, the bug can be triggered by many sentences with characters and spaces in a particular order so that the bytes match the UTF-16LE encoding of valid (if nonsensical) Chinese Unicode characters. Other popular strings are "this app can break", “acre vai pra globo”, and "aaaa aaa aaa aaaaa". You can do this trick with many 4,3,3,5 character sentence.
The bug occurs when the string is passed to the Win32 charset detection function IsTextUnicode with no other characters. IsTextUnicode sees what it thinks is valid UTF-16LE Chinese and returns true, and the application then incorrectly interprets the text as UTF-16LE.
Many text editors and tools exhibit this behavior because they use IsTextUnicode as well.
Discovery
The bug appeared for the first time in Windows NT 3.5 but was not discovered until early 2004. Older versions of Notepad such as those that came with Windows 95, 98, ME, and NT 3.1 do not include Unicode support so the bug does not occur.
The bug existed in all successive versions of Windows through Windows XP. This bug does not occur in Windows Vista and Windows 7 because their version of IsTextUnicode has been altered to make it much more likely to guess a byte-based encoding rather than UTF-16LE.
Workarounds
Editing the text to not be a pattern that triggers this bug will fix it, for instance adding a newline in the first 20 characters will work.
If the file is saved as "UTF-8" rather than "ANSI" (which really means Windows-1252) the text displays correctly - this is because Notepad prepends the UTF-8 byte order mark, which is a different pattern that does not trigger this bug (UTF-8 without the byte order mark would still trigger the bug, as it is identical to ASCII).
The bug is also avoided by saving as "Unicode", which really saves as UTF-16LE.
To retrieve the original text using Notepad, bring up the "Open a file" dialog box, select the file, select "ANSI" or "UTF-8" in the "Encoding" list box, and click Open.

MAGIC #4
Again this is something funny and can't be explained? At Microsoft the whole Team, including Bill Gates, couldn't answer why this happened!

It was discovered by a Brazilian. Try it out yourself?

Open Microsoft Word and type

=rand (200, 99)

And then press ENTER
And see the magic!

This is also not a magic..

Rand is a standard microsoft function to generate sample text to test the fonts and webpages…

“The quick brown fox jumps over the lazy dog” is a standard test phrase to test any fonts, as it includes all 26 alphabet characters.

The first figure (200) is for paragraph and the second figure (99) is for Lines per paragraph. So, when you execute this function it generates 200 paragraphs with 99 lines.. you can test it with =rand(1,1) or any other…

UPDATE: In Word 2007, using =rand(99,99) produces:
"On the Insert tab, the galleries include items that are designed to coordinate with the overall look of your document. You can use these galleries to insert tables, headers, footers, lists, cover pages, and other document building blocks. When you create pictures, charts, or diagrams, they also coordinate with your current document look. You can easily change the formatting of selected text in the document text by choosing a look for the selected text from the Quick Styles gallery on the Home tab. You can also format text directly by using the other controls on the Home tab. Most controls offer a choice of using the look from the current theme or using a format that you specify directly. To change the overall look of your document, choose new Theme elements on the Page Layout tab. To change the looks available in the Quick Style gallery, use the Change Current Quick Style Set command. Both the Themes gallery and the Quick Styles gallery provide reset commands so that you can always restore the look of your document to the original contained in your current template." over and over again.
Here is the detailed explanation from Microsoft itself…

How to insert sample text in Microsoft Office Word 2007 or in Microsoft Office Word 2010
To insert sample text in Word 2007 or Word 2010, use one of the following methods.
Method 1: Use rand()
To insert localized sample text in Word 2007 or Word 2010, type =rand() in the document where you want the text to appear, and then press ENTER.

The sample text that is inserted for the English version of Word 2007 or Word 2010 resembles the following text:
On the Insert tab, the galleries include items that are designed to coordinate with the overall look of your document. You can use these galleries to insert tables, headers, footers, lists, cover pages, and other document building blocks. When you create pictures, charts, or diagrams, they also coordinate with your current document look.¶

You can easily change the formatting of selected text in the document text by choosing a look for the selected text from the Quick Styles gallery on the Home tab. You can also format text directly by using the other controls on the Home tab. Most controls offer a choice of using the look from the current theme or using a format that you specify directly.¶

To change the overall look of your document, choose new Theme elements on the Page Layout tab. To change the looks available in the Quick Style gallery, use the Change Current Quick Style Set command. Both the Themes gallery and the Quick Styles gallery provide reset commands so that you can always restore the look of your document to the original contained in your current template.¶
Note This text includes a paragraph symbol (¶) that is displayed when sample text is inserted.

You can control how many paragraphs and lines appear by adding numbers inside the parentheses of the rand() function. The =rand() function has the following syntax:
=rand(p,l)

Note In this function, p is the number of paragraphs, and l is the number of lines that you want to appear in each paragraph.
The following are some examples that show how the parameters work:
• =rand(1) inserts one paragraph with three lines of text in the paragraph.
• =rand(10,10) inserts 10 paragraphs with 10 lines of text in each paragraph.
The parameters are optional. If you omit the parameters, the default number of paragraphs is three, and the default number of lines per paragraph is also three.
Method 2: Use rand.old()
To insert localized sample text that is compatible with Microsoft Office Word 2003 and earlier versions, type =rand.old() in the document where you want the text to appear, and then press ENTER.

The sample text that is inserted in the English version of Word 2007 or Word 2010 appears resembles the following :
The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. ¶

The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. ¶

The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. ¶
Notice that the sample text in other language versions of Word 2007 or Word 2010 does not have the same meaning as the text that is mentioned earlier in this section.

For example, the Japanese version of Word shows text that is similar in translation to the following text:
"Word 2003 is a ground breaking word processor that enabled…"
And the German version of Word provides the following text:
"Franz jagt im komplett verwahrlosten Taxi quer durch Bayern."
You can control how many paragraphs and lines appear by adding numbers inside the parentheses of the rand.old() function. The =rand.old() function has the following syntax:
=rand.old(p,l)

Note In this function, p is the number of paragraphs, and l is the number of lines that you want to appear in each paragraph.
The parameters are optional. If you omit the parameters the default number of paragraphs is three, and the default number of lines per paragraph is also three.
Method 3: Use lorem()
To insert non-localized, pseudo-Latin sample text in Word 2007 or Word 2010, type =lorem() in the document where you want the text to appear, and then press ENTER.

The sample text that is inserted resembles the following text:
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas porttitor congue massa. Fusce posuere, magna sed pulvinar ultricies, purus lectus malesuada libero, sit amet commodo magna eros quis urna.¶

Nunc viverra imperdiet enim. Fusce est. Vivamus a tellus.¶

Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Proin pharetra nonummy pede. Mauris et orci.¶
You can control how many paragraphs and lines appear by adding numbers inside the parentheses of the lorem() function. The =lorem() function has the following syntax: lorem(p,l)

Note In this function, p is the number of paragraphs, and l is the number of lines that you want to appear in each paragraph.

The parameters are optional. If you omit the parameters the default number of paragraphs is three, and the default number of lines per paragraph is also three.

For more information about the description of the "Lorem ipsum dolor sit amet" text, click the following article number to view the article in the Microsoft Knowledge Base:
114222  (http://support.microsoft.com/kb/114222/ ) Description of the "Lorem ipsum dolor sit amet" text that appears in Word Help
By default, the inserting sample text feature in Word 2007 or Word 2010 is turned on. However, the inserting sample text feature is disabled when the Replace text as you type option is turned off.

To turn the Replace text as you type option on or off, follow these steps:
1. Click the Office Button, click Word Options, click Proofing, and then click AutoCorrect Options.
2. Click to select or to clear the Replace text as you type check box.
How to insert sample text in Word 2003 and in earlier versions of Word:
To insert sample text in Word 2003, Word 2002, Word 2000, or in Word 97 for Windows, type =rand() in the document where you want the text to appear, and then press ENTER.

The sample text that is inserted resembles the following text:
The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.¶

The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.¶

The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.¶
Note This text includes a paragraph symbol (¶) that is displayed when sample text is inserted.

You can control how many paragraphs and lines appear by adding numbers inside the parentheses of the rand() function. The =rand() function has the following syntax:
=rand(p,l)

Note In this function, p is the number of paragraphs, and l is the number of lines that you want to appear in each paragraph.
By default in these versions of Word, the sample text contains three paragraphs, and each paragraph contains five lines. When you omit the second number, the default is five lines of text. The maximum number that can be used inside the parenthesis is 200 (This number may be lower, depending on the number of paragraphs and of sentences that you specify).

By default, this feature is turned on. However, this feature is disabled when the Replace text as you type option is turned off. To turn this option on or off, follow these steps:
1. Click AutoCorrect on the Tools menu, and then click the AutoCorrect tab.
2. Click to select or to clear the Replace text as you type check box.
Note When the cursor immediately follows a PAGE BREAK or a COLUMN BREAK, Word will not insert sample text in these versions.

No comments:

Post a Comment