Oct 3, 2007

TRY! MAGIC

#1 *An Indian discovered that nobody can create a FOLDER anywhere on the Computer which can be named as "CON". This is something pretty Cool...and Unbelievable. ... At Microsoft the whole Team, couldn't answer why this happened ! TRY IT NOW ,IT WILL NOT CREATE " CON " FOLDER **MAGIC

#2 * *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. *MAGIC

#3 *Open Microsoft Word and type =rand (200, 99) And then press ENTER Then see the magic...

This can help to understand why

1.Device names such as COM1, CON or LPT1 are reserved words, and they can't be used as folder or file names.

2. The reasons why notepad is not able to display any combination of string if the text contains the words with 4 3 3 5 number of letters..
Finally found out that its not a bug with notepad..
What happens is..
Whenever we open a text file in notepad, it determines whether the text is ASCII or Unicode.. But actually there is no way in the world to exactly determine whether the text is ASCII or Unicode.. There is a function called IsTextUnicode in windows API.. The function does some tests on the text based on statistical data.. This is what MSDN says about the function.."The function uses various statistical and deterministic methods to make its determination.. These tests are not foolproof. The statistical tests assume certain amounts of variation between low and high bytes in a string, and some ASCII strings can slip through. For example, if lpBuffer points to the ASCII string 0x41, 0x0A, 0x0D, 0x1D (A\n\r^Z), the string passes the IS_TEXT_UNICODE_STATISTICS test, though failure would be preferable."
And the book "Programming application for microsoft windows by Jeffrey Ritcher" says that this function does not give accurate results if the text is too small to do the tests..
If u open the file explicitly in ASCII mode in notepad, you can see the text correctly..
There can be only 2 reasons why notepad shows the file correctly through wine.. One is there may be no unicode support in wine.. or wine has a much better statistical and deterministic methods than microsoft to determine the text is ASCII or Unicode..
But the possibility of second is very remote.

test with typing these strings for your self...
aaaa aaa aaa aaaaa
hows are you mammu

3. When you need to type some text into a Word document for test purposes, don't waste your time--let Word do the job for you. Let's say that you would like to type in a single four-sentence paragraph. Just click at a blank line in your document, type =rand(1,4) and press Enter. Word will automatically type: 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 first number inside the parentheses is the number of paragraphs and the second number is the number of sentences in each paragraph. So, for 22 paragraphs of 22 sentences, you'd enter =rand(22,22).

1 comment:

Mateenation said...

Hello sir great tricks.
Really nice ones