Thursday, November 29, 2007

check orkut through RSS feed

With orkut being blocked in almost every school, college and office, it has become quite difficult to catch up with the latest scraps that your friends send to you. But many would say that there are loads of proxy sites to log into orkut but again are they safe? or do you trust your username and password being sent to google servers via these proxy sites? Atleast I don’t. So here is the safest way to do it. I m going to share a trick that you can use to check your scraps regularly without even signing into orkut.

First thing you need is your orkut uid (i.e. userID). To get your just go to your profile page and you will find something like this in your address bar.

(Look for the numbers in bold, this is your uid!)

Now use this link and replace the with your own . The full address will look something like this.

And you are done just copy and paste the complete address in the address bar and see your scraps without even signing in! You can even add this address to your favorite RSS Feed Reader and read your scraps directly from it instead of using a proxy site for orkut.

Saturday, November 24, 2007

Difference between COMMAND.COM and CMD.EXE?

As you probably know, MS-DOS was the predecessor to Windows. It was character mode only, and you ran programs by typing their name at the command prompt. MS-DOS was created when 16 bit processors were becoming popular, and its widespread adoption is credited with kick starting the rise in popularity of the personal computer.

Then two things happened: Windows, and 32 bit processors. Fast forward to today, and MS-DOS has pretty much disappeared from the landscape - Windows, and its rich graphical interface, is everywhere. The same is true for the 16bit processor. Most all contemporary machines are built on various flavors of 32bit processors.

What does all that have to do with COMMAND.COM and CMD.EXE? It's quite simple really: CMD.EXE is a command line processor for 32bit Windows. Much like MS-DOS before it, it provides a character-mode only user interface into which you can type commands to run programs. CMD.EXE is a 32 bit program that is fully a part of Windows - in fact it's what gets run when you select Command Prompt on the Windows Accessories menu.
COMMAND.COM, on the other hand, exists only for compatibility and 16bit programs. It exists solely for those programs which have not been updated since the days of MS-DOS. It's designed to run 16bit applications, and operates just like the old MS-DOS did.
On the surface, they're very similar. Even though CMD.EXE was a complete re-write, it's based on the same concepts and similar syntax. But the differences become quickly apparent. Let's used your "CD" example from above.

In CMD.EXE, you can change to the "Program files" directory by doing this:
cd "\Program Files"

Note the quotes around the directory name. Try doing that in COMMAND.COM and you'll get this:
cd "\Program Files"
Parameter format not correct - "\program
The problem is COMMAND.COM doesn't know about long file names (filenames longer than 8.3) or filenames that have spaces in them, and it doesn't have a way to quote the name. So if you still need to, how do you CD to that directory in COMMAND.COM? Well, first you need to find out the alternate, 8.3 name of that directory ... its short name:

dir /x
Directory of C:\
08/21/2005 09:50 AM PROGRA~1 Program Files
(I've removed some of the lines of output for brevity.) The "/X" parameter to DIR tells it to include the "shortname" in the output. In this case that's "PROGRA~1", a machine generated alternative name for "PROGRAM FILES". Now we can CD to that in COMMAND.COM:
cd progra~1
Volume in drive C is
Volume Serial Number is B026-62CA
Directory of C:\PROGRA~1
08/21/2005 09:50 AM .
08/21/2005 09:50 AM ..
03/24/2005 04:42 PM Adobe
The bottom line is actually quite simple: use CMD.EXE unless you know you need COMMAND.COM for compatibility with some older 16bit program. And even then, if you try and run a 16 bit program in CMD.EXE, it will typically run it within COMMAND.COM for you anyway, so you still may not need to know or care.
And in case you're wondering, yes ... something similar is coming down the road as 64 bit processors begin to arrive. The 64bit version of Windows does, I believe, include another command processor, one for native 64bit command-line programs.

Saturday, November 10, 2007

NotePad Trick : This app can break

I was too amazed by this try it out.

1. Open Notepad

2. Type the following:

this app can break

3. Save the file and Close.

4. Again Open the file and See the Magic

The same thing can be observed for following statements.

Bush hid the facts
Andy can not Flirt
Abhi can not flirt

actually any sentence of 4-3-3-5 sequence generates the same output.
Try out as many you want.