Magic Demistified

Discussion in 'Information Technology' started by pradeep, Sep 17, 2007.

  1. pradeep

    pradeep Team Leader

    Joined:
    Apr 4, 2005
    Messages:
    1,645
    Likes Received:
    87
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    http://blog.pradeep.net.in
    Today I received a mail from Tanaz ,stating some software magic which according to the mail no one could answer. I guess I have the answers...

    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

    Answer:
    A folder named con cannot be created 'cause it's the name of a windows device, precisely console (i.e. the keyboard), so, you can't create folders with names prn, aux, either.

    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.


    is it just a really weird bug? :-??

    Answer:
    Some of the more wide-eyed conspiracy theorists postulate that this result is a form of political commentary directed against US President Bush and was knowingly and deliberately programmed into Notepad by Microsoft.

    Alas, the truth is far less compelling. It appears that a lot of other character strings in the pattern 4 letters, 3 letters, 3 letters and 5 letters will give the same result. For example, the phrase "Bill fed the goats" also displays the garbled text as shown below:

    Bill fed the goats before closing Bill fed the goats after re-opening

    In fact, even a line of text such as "hhhh hhh hhh hhhhh" will elicit the same results.

    Since I first published this article, a few readers have pointed out that some character strings that fit the "4,3,3,5" pattern do not generate the error. For example, the phrase "Bush hid the truth" is displayed normally. However, conspiracy theorists should not take this as aiding their argument. "Fred led the brats", "brad ate the trees" and other strings also escape the error.

    Thus, any hint of political conspiracy fades into oblivion and is replaced by a rather mundane programming bug. It seems probable that a certain combination and/or frequency of letters in the character string cause Notepad to misinterpret the encoding of the file when it is re-opened. If the file is originally saved as "Unicode" rather than "ANSI" the text displays correctly. Older versions of Notepad such as those that came with Windows 95, 98 or ME do not include Unicode support so the error does not occur.

    MAGIC #3



    This is something pretty cool and neat...and unbelievable... 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 then see the magic.

    Answer:
    It's a test feature. It's been in Word for a long time, and I've known about it for a long time too . You can vary the numbers to get a different number of results. The first number is the amount of lines, and the second the amount of times the sentence is printed per line.

    The sentence "The quick brown fox jumps over the lazy dog" is a sentence that contains all 26 letters of the roman alphabet. As such, it's a convenient test phrase when testing things like fonts and markup.
     
  2. shamvil

    shamvil New Member

    Joined:
    Mar 18, 2008
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    0
    Thanks a lot for such wonderful answers.
     
  3. pradeep

    pradeep Team Leader

    Joined:
    Apr 4, 2005
    Messages:
    1,645
    Likes Received:
    87
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    http://blog.pradeep.net.in
    The pleasure is all mine! Btw, welcome to the forums! Do, share your knowledge with us!
     
    Bhullarz likes this.
  4. BSTU.UOK

    BSTU.UOK New Member

    Joined:
    May 22, 2008
    Messages:
    10
    Likes Received:
    1
    Trophy Points:
    0
    Occupation:
    IT undergraduate
    Location:
    Syrian Arab republic
    great !!!!!!!!!!1thanks alot for giving such information..........
     
  5. coderzone

    coderzone Super Moderator

    Joined:
    Jul 25, 2004
    Messages:
    736
    Likes Received:
    39
    Trophy Points:
    28
    I read on some article here than we can create a con folder. hehe
     
  6. faizulhaque

    faizulhaque New Member

    Joined:
    May 23, 2008
    Messages:
    210
    Likes Received:
    3
    Trophy Points:
    0
    Occupation:
    Student
    Location:
    Karachi
    Home Page:
    http://www.google.com
    Predap works gr8
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice