The Web This Blog

Thursday, October 25, 2007

Windows Tips and Tricks

1. Stop unexpected web site from your client PC.
A. Open C:\windows\system32\drivers\etc\hosts
B. Write 127.0.0.1 www.xyz.com
C. Save and exit.
D. Open Browser and type www.xyz.com it is not open.

2. Change the computer name
A. Start > Run > regedit > HKEY_LOCAL_MACHINE >
System > CurrentControlset > Computer Name >
Active Computer Name
B. Then right click your previous computer
name and type new name.


3. Check the Bad Sector

A. Start > Run > cmd > chkdsk

Friday, October 19, 2007

Block any web site in windows XP

You can use the Windows 'Hosts' file to accomplish this, here's how:

In Windows XP, the hosts file is found here:

C:\Windows\System32\Drivers\etc\hosts

Double click the 'Hosts' file and select "Notepad" or “TextPad”
from the list of programs to open it with.Once you have the
hosts file open in Notepad, you will see an entry such as:

127.0.0.1 localhost

To block a certain web page from loading, add the following:

127.0.0.1 www.abc.com

Your Hosts file will now look like this:

127.0.0.1 localhost
127.0.0.1 www.abc.com

Once you are finished, go up to 'File' and click 'Save'.


Thursday, October 18, 2007

Name of the day Calculation

Without see the calendar you can’t say what the day of 30th September 1982 was. It is boring to store old calendar. If you learn a rule you can easily say any day of any year.

Month

M

March

1

April

2

May

3

June

4

July

5

August

6

September

7

October

8

November

9

December

10

January

11

February

12

Day

D

Sunday

0

Monday

1

Tuesday

2

Wednesday

3

Thursday

4

Friday

5

Saturday

6










A= (2.6*M-0.2) +D+Y+(Y/4) +(C/4)-2*C

Hare, M= Month.
D= Day.
Y= Year.
C= First two Numbers of the year





Example0: 30/09/1982

A = (2.6*M-0.2) +D+Y+(Y/4) +(C/4)-2*C
= (2.6*7-0.2) +30+82+ (82/4) + (19/4)-2*19
= 18+30+82+20+4-38
= 116


Now: 116/7= mod 4

So the day was Thursday.

Example1: 18/10/2007

A = (2.6*M-0.2) +D+Y+(Y/4) +(C/4)-2*C
= (2.6*8-0.2) +18+07+ (07/4) + (20/4)-2*20
= 20+18+07+1+5-40
= 11


Now: 11/7=mod 4

So the day was Thursday

Tuesday, October 9, 2007

Changing MAC addresses

Please note that physical MAC addresses are permanent, but several mechanisms allow modification (read as spoofing) of the MAC address that is reported by the operating system.

Under Linux you can type the command to setup a new MAC address:
# ifconfig eth0 down

# ifconfig eth0 hw ether
01:02:03:04:05:06

Under FreeBSD type the command:
# ifconfig nc0 ether 01:02:03:04:05:06

Under OpenBSD or Mac OS X type the command:
# ifconfig nc0 lladdr 01:02:03:04:05:06

Under Windows 2003/XP:
Under Windows XP or 2003 server the MAC address can be changed in the Ethernet adapter’s Properties Menu > Advanced Tab > Look for MAC Address > Locally Administered Address > Ethernet Address > Physical Address option.

Thursday, October 4, 2007

Network cable wiring

There are two type of UTP cable warring. We use 4 pair color cable for rj45 connector.

Wire pair #1:

White/Blue

Blue

Wire pair #2:

White/Orange
Orange

Wire pair #3:

White/Green
Green

Wire pair #4:

White/Brown
Brown

Cross cable:

If you want to connect any hub to hub or PC to PC you use Cross cable wiring.

The two ends look like this:
 
     Standard End                          Crossover End
       Pin 1 White/Orange                   Pin 1 White/Green
       Pin 2 Orange                              Pin 2 Green
       Pin 3 White/Green                      Pin 3 White/Orange
       Pin 4 Blue                                   Pin 4 Blue
       Pin 5 White/Blue                         Pin 5 White/Blue
       Pin 6 Green                                  Pin 6 Orange
       Pin 7 White/Brown                      Pin 7 White/Brown
       Pin 8 Brown                                  Pin 8 Brown

Straight Through cable

If you want to connect any hub to PC you use straight through cable.

     Standard End                                                    Other End                        
       Pin 1 White/Orange                  Pin 1 White/Orange
       Pin 2 Orange                             Pin 2 Orange  
       Pin 3 White/Green                  Pin 3 White/Green    
       Pin 4 Blue                                 Pin 4 Blue
       Pin 5 White/Blue                      Pin 5 White/Blue
       Pin 6 Green                               Pin 6 Green   
       Pin 7 White/Brown                   Pin 7 White/Brown
       Pin 8 Brown                               Pin 8 Brown

Monday, October 1, 2007

For a Passport

I got my Passport the privies Sunday 30th September. What I do for a passport I write here. At first I go to my village and collect the passport form, chairman certificate, birth certificate. I attach my photograph by our chairman. I put the passport form in our local passport office with birth & chairman certificate. After 4 days the police of our police station was came our village home and collect right information. Thus I was not present there so the police say to meet me with him.

I mate with him and police ask some question. They send the inquiry result the next day. The official date of get the passport was 30th September. I went my village and collect my passport. When I get the passport I was very happy. It was like a great achievement for me because if I not get the passport on the fixed day it was impossible to go next time.