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

Re: ::: vuaskari.com ::: CS408 - FINAL TERM SUBJECTIVE WITH REFERENCE SOLVED BY UMAIR SAULAT

GREAT WORK On Wed, Feb 20, 2013 at 11:30 PM, Umair Saulat < saulat.umair@gmail.com > wrote: CS408- Human Computer Interaction Solved Subjective Fall Semester 2012   QNo.1    it has been observed that most computer users use menu option for input instead of keyboard accelerator. What is the reason behind it? (2 Marks) Answer:- 1.        Menu options are easier to find. 2.        You don't have to memories the keys for menu option but for key board accelerators you have to memories them REF:: Handouts Page No. 127   QNo.2    Define active intervention.  (2 Marks) Answer:- Active intervention with the participant and actively probes the participant understands of whatever is being tested. REF:: Handouts Page No. 276 QNo.3    what is Ubiquitous Computing? (2 Marks) Answer:- The most profound technologies are those that disappear. They weave themselves into the fabric of everyday life until they are indi

Updating our Google Account inactivity policy

Every day Google works hard to keep you and your private information safe and secure by preventing unauthorized access to your Google Account with our built-in security protections. And keeping you safe means having strong privacy practices across our products that minimize how long we store your personal files and any data associated with them. We want to protect your private information and prevent any unauthorized access to your account even if you're no longer using our services. Therefore, we are updating the inactivity period for a Google Account to two years across all our products and services. This change starts rolling out today and will apply to any Google Account that's been inactive, meaning it has not been signed into or used within a two-year period. An inactive account and any content in it will be eligible for deletion from December 1, 2023. What this means for you: These changes do not impact you unless you h

Learn more about our updated Terms of Service

stargthb@gmail.com On January 5, 2022, we're making some changes to our Terms of Service. These changes won't affect the way you use Google services, but they'll make it easier for you to understand what to expect from Google — and what we expect from you — as you use our services. You can review the new terms here . At a glance, here's what this update means for you: More clarity on what you can expect from Google and what we expect from you : We're providing more examples to describe the mutually respectful conduct that we expect from all our users. Improved readability : While our terms remain a legal document, we've done our best to make them easier to understand, including reorganizing some topics so that they're easier to find. If you use Family Link to manage a Google Account for someone else, please take some time to talk to them about these changes. Thank you for using Google!