Skip to main content

[vu-students] !Reply: ------------- M A G I C ---------------

Please find below my pointwise reply to your magics:
 
Magic # 1:
 
This is because it is for the standard output device CONSOLE.
There are other names like 'prn' and 'aux' will also not work the same since they are respectively for PRINTER and AUXILLARY devices.
 
Magic # 3:
 
This little Windows Notepad "trick" is often posted to online forums and blogs and also travels via email. When the phrase "Bush hid the facts" is typed into the Windows XP or Windows NT/2000 versions of Notepad as instructed above, the re-opened file displays an unreadable line of squares or Chinese style characters.

The first image below shows the text before closing the Notepad file. The second image shows the text as it is displayed after the file is re-opened:

Bush hid the facts before closing Bush hid the facts after re-opening

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.

So, nothing weird here at all...except perhaps for the fact that someone, somewhere had nothing better to do than turn a simple software glitch into another lame conspiracy theory. Smile
 
Magic # 4:

What is =rand()?  An Urban Myth, a Bug, or an Easter Egg?

The truth is rather boring, =rand(200,99) is a function Microsoft really did included by design.  The urban myth is that =rand(200,00) is a bug with Word for Windows.  A variation of this urban myth is that Microsoft programmers left an 'Easter Egg*' in the program. 

Despite the prosaic truth that this is neither a bug nor an urban myth, you could baffling your friends by challenging them to type the phrase =rand(200,99) in their copy of Word for Windows 2003 or =rand.old(200,99) in Word 2007.

Background of =rand(200,99)

Word for Windows has a powerful built-in macro language.  To see it in action, try highlighting text, then hold down the shift key while pressing F3 (Function key 3).  Switching UPPER, lower and Proper case is an example of a more useful Word macro than =rand().

To return to =rand(200,99).  The function creates one instance of 'The quick brown fox jumps over the lazy dog' (different computers give different results), even if you omit any numbers inside the bracket, =rand(), moreover you can try numbers other than 200 and 99, for example =rand(2,3).  Soon you will realize that the first number refers to the paragraphs, while the second number refers to the sentences.  Who ever initiated this urban myth wanted to demonstrate the maximum numbers of sentences and paragraphs.

=rand() is a well known random function, which is handy for statistics, or simulating card games such as blackjack

Easter Eggs in programs are a topic in their own right.  Briefly, programmers often used to leave code in programs, partly to test, but mainly because most programs are geeks and games players.  Perhaps I don't know the keys to operate them, perhaps the habit really has died out, but have not seen any good Easter Eggs for about 8 years.




Muhammad Naveed

MBA 4semester
Joining Blue Heaven on Face Book




--
You received this message because you are subscribed to the Google
Groups "VU Students" group.
To post to this group, send email to vu-students@googlegroups.com
To unsubscribe from this group, send email to
vu-students+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/vu-students?hl=en_PK?hl=en

Comments

Popular posts from this blog

[vu-students] Urdu Love Letters ............ ahahahahahhahahah

  The One & Only .......... IRFAN. Italy. http://groups.yahoo.com/group/p_se_poetry   -- You received this message because you are subscribed to the Google Groups "VU Students" group. To post to this group, send email to vu-students@googlegroups.com To unsubscribe from this group, send email to vu-students+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/vu-students?hl=en_PK?hl=en

Re: ::: vuaskari.com ::: Fwd: Cancer treatment- Shocking news.

plz send me the soloution of Assignment MGT-603 and MKT-624 plzzzzzzzzz today last day i need urgent 2011/4/23 ∂υα ωαqαя < dua4566@gmail.com > ---------- Forwarded message ---------- From: Virtual Brain < mc090400181@gmail.com > Date: Sat, Apr 23, 2011 at 10:30 AM Subject: Cancer treatment- Shocking news. AS  one of my friend tell me all this PLEASE FORWARD THIS MAIL.  Dear All, One of my cousin got   lung cancer   few months back. That was really shocking to all his family members. Cancer diagnosed was of stage three. Immediately treatment was started from Pakistan most of the art hospital for cancer i.e. Shoukat Khanum Hospital in Lahore. But there were little chances to reverse the disease as it's already reached to stage 3. Than one day somebody told us about a person in Distt Nowshera who is treating cancer by herbs. We went there and he gave us some   herbal medicines   for ten days. It was really amazing when we saw an improvement in the condition of my...

Re: ::: vuaskari.com ::: MCS Students Group

please send me solution of mth 202 quiz 1 On Sun, May 11, 2014 at 8:51 PM, Muhammad Asif < itsvividmirror@gmail.com > wrote: cs 604 605 607 610 catring stock On Thu, May 8, 2014 at 4:32 PM, Malik Aslam < malik693012@gmail.com > wrote: I am also student of MCS.  On Wed, May 7, 2014 at 3:50 PM, Zadee Ali < abdullah.313.27@gmail.com > wrote: i have also these subjects. On Tue, May 6, 2014 at 1:26 PM, Shahzad Ali < saim2.vti@gmail.com > wrote: i am mcs student 3rd semester On Tue, Apr 29, 2014 at 12:02 PM, Jasmine Khan < jasmine.khan3939@gmail.com > wrote: I can help. On Apr 29, 2014 9:36 AM, "Nadeem Abbas (BP/Acc)" < nadeem.abbas@haleebfoods.com > wrote: > > Is there any or more students of the following subjects of MCS and want to do combine study and help each others? > >   > > CS304-OOP > > CS401-Assembly > > CS607-AI > > CS614-Data W/H > > ...