What is URL?


URL means Uniform Resource Locator.In URL there are many parts.Following are the main component of URL.

1.)http :–This is hyper text transfer protocol  Another  protocol is FTP(File Transfer Protocol) .

2.)WWW—-This is world wide web.This is a logical server on which all information of the world is stored.All web server are connected to this server. Another logical server for some Russian countrie’s sites is WWWC(w3c=World wide web consortium).This works same as WWW for  websites.

3.)Website name—-This is also a main part of any URL.This is a static IP address for that Website, Which can be written as character string to remember website name.For example-Website url…………http://www.yahoo.com                                        here yahoo is website name and it’s static ip address is  (69.147.125.65) and many other static IP address for yahoo.Here yahoo=69.147.125.65

4.)Website extension—-This is used to know ,which type of website it is.Such as .com extension stands for commercial websites.Another example .org stands for organisation.There are many other extension such as .net, .co.in, .ac.in and more.

For example ——URL——-http://www.yahoo.com ,http://www.mnit.ac.in

Here  http stands for hyper text transfer protocal.

www stands for world wide web.

yahoo stands for static ip address of yahoo website.

.com stands for commercial website.

When we type url to access website,then this is sent to the server.Server searches for that static IP address and returns HTML coded information to the client.Client’s web browser converts this page into readable content.Thus we get information over the internet.

I think you enjoy it.Now please rate this.

Unicode


Unicode is a universal character encoding  standard. It defines the way individual characters are represented in text files, web pages, and other types of documents.While we view text documents as lines of text, computers actually see them as binary data, or a series of ones and zeros. Therefore, the characters within a text document must be represented by numeric codes. In order to accomplish this, the text is saved using one of several types of character encoding.Example—ASCII,UTF-8,UTF-16,UTF-32,UTF-7   (Here UTF means “unicode transformation code”)

Unlike ASCII, which was designed to represent only basic English characters, Unicode was designed to support characters from all languages around the world. The standard ASCII character set only supports 128 characters, while Unicode can support roughly 1,000,000 characters. While ASCII only uses one byte to represent each character, Unicode supports up to 4 bytes for each character.

There are several different types of Unicode encodings, though UTF-8 and UTF-16 are the most common. UTF-8 has become the standard character encoding used on the Web and is also the default encoding used by many software programs. While UTF-8 supports up to four bytes per character, it would be inefficient to use four bytes to represent frequently used characters. Therefore, UTF-8 uses only one byte to represent common English characters. European (Latin), Hebrew, and Arabic characters are represented with two bytes, while three bytes are used to Chinese, Japanese, Korean, and other Asian characters. Additional Unicode characters can be represented with four bytes.

Many word processing programs do not allow you to view the character encoding of open documents, though some display the encoding on the bottom of the document window or within the file properties. If you want to see the type of character encoding used by a webpage, you can select View → View Source to view the HTML of the page. The character encoding, if defined, will be in the header section, near the top of the HTML. A page that uses UTF-8 encoding may include one of the following text snippets below, depending on the version of the HTML.

XHTML:  <meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />
HTML 5: <meta charset=”UTF-8″>

Batch File


A batch file is a type of script that contains a list of commands. These commands are executed in sequence and can be used to automate processes.Batch files are run by the COMMAND.COM program, which is part of DOS and Windows. Therefore, batch files can only be run within the Windows operating system. Macintosh and Unix have other scripting tools, such as AppleScript and Unix shell commands, that can be used for similar tasks. Because batch files contain executable commands, it is important not to open unknown batch files on your hard disk or in e-mail attachments.

It is a text file containing a series of commands to be executed by the command interpreter.

file extension for batch file——  .bat , .cmd , .btm

Simple example for batch file—–

This example batch file displays “Hello World!”, prompts and waits for the user to press a key, and terminates.

@ECHO off
ECHO Hello World!
PAUSE

To execute this,first save this file with file extension .bat in notepad.This file is called bath file.
After execution this will be displayed like this–

Hello World!
Press any key to continue . . .

EXPLANATION—–
The interpreter executes each line in turn, starting with the first. The @ symbol at the start of the line turns off the prompt from displaying that command. The command ECHO off turns off the prompt permanently, or until it is turned on again. Then the next line is executed, the ECHO Hello World! command outputs Hello World!, as only off and on have special functions. Then the next line is executed, the PAUSE command displays Press any key to continue . . . and pauses the script’s execution until a key is pressed, when the script terminates as there are no more commands. In Windows, if the script is run within a Command Prompt window, the window remains open at the prompt as in MS-DOS, otherwise the command prompt windows closes on termination (unless the batch file has a command to prevent this).

Advanced window batch file example for conditional shutdown—

 

@echo off
color 0A
title Conditional Shutdown.

:start
echo Welcome, %USERNAME%
echo What would you like to do?
echo.
echo 1. Shutdown in specified time
echo 2. Shutdown at a specified time
echo 3. Shutdown now
echo 4. Restart now
echo 5. Log off now
echo 6. Hibernate now
echo.
echo 0. Quit
echo.

set /p choice=”Enter your choice: ”
if “%choice%”==”1” goto shutdown
if “%choice%”==”2” goto shutdown-clock
if “%choice%”==”3” shutdown.exe -s -f
if “%choice%”==”4” shutdown.exe -r -f
if “%choice%”==”5” shutdown.exe -l -f
if “%choice%”==”6” shutdown.exe -h -f
if “%choice%”==”0″ exit
echo Invalid choice: %choice%
echo.
pause
cls
goto start

:shutdown
cls
set /p min=”Minutes until shutdown: ”
set /a sec=60*%min%
shutdown.exe -s -f -t %sec%
echo Shutdown initiated at %time%
echo.
goto cancel

:shutdown-clock
echo.
echo the time format is HH:MM:SS (24 hour time)
echo example: 14:30:00 for 2:30 PM
echo.
set /p tmg=enter the time that you wish the computer to shutdown on:
schtasks.exe /create /sc ONCE /tn shutdown /st %tmg% /tr “shutdown.exe -s -t 00″
echo shutdown initiated at %tmg%
echo.

:cancel
set /p cancel=”Type cancel to stop shutdown: ”
if not “%cancel%”==”cancel” exit
shutdown.exe -a
cls
schtasks.exe /end /tn shutdown
cls
schtasks.exe /delete /tn shutdown
cls
echo Shutdown is cancelled.
echo.
pause
exit

 

Save this as anoop.bat in notepad.Now open this file you will find like this—
welcome username
What would you like to do?
1. shutdown in specific time
2. shutdown at a specific time
3. shutdown now
4. Restart now
5. Log off now
6. Hibernate now

0. quit
enter your choice

Now chose your choice & press enter and get the result.
I think it contains enjoyable content. Now please rate this and like this on facebook.