Binary to Decimal and Decimal to Binary

Sunday, February 20, 2011



Perlu diketahui bahwa binary hanya menggunakan angka 0 dan 1 (bukan 0-9), binary menggunakan "Power of Two".
Berikut ini cara untuk mengubah Binary to Decimal
= untuk setiap digit 1 dalam binary, kalikan dengan 2**n(2 pangkat n), dimana n adalah zero base position

Berikut ini contoh binary 11001010
= 1*2**7 + 1*2**6 + 0*2**5 + 0*2**4 + 1*2**3 + 0*2**2 + 1*2**1 + 0*2**0
= 128 + 64 + 0 + 0 + 8 + 0 + 2 + 0
= 202 (decimal)

Untuk Merubah Decimal ke Binary agak sulit :
Misal 1359 (decimal)
# 2**10=1024 , 2**11=2048. Jadi 1024 adalah bilangan terbesar yang dibawah 1359. Kurangi 1024 dari 1359, dan berikan angka 1 binary di sebelah kiri, sisa 1359-1024 adalah 335, Binary = 1
# 2**9=512 , lebih besar dari 335 , berikan angka 0 pada binary , sisa decimal tetap 335, Binary = 10
# 2**8=256 , lebih kecil dari 335 , decimal 335-256=79 , tambahkan binary dengan 1 , sisa decimal 79 , Binary = 101
# 2**7=128 , lebih besar dari 79 , berikan angka 0 pada binary , sisa decimal tetap 79 , Binary = 1010
# 2**6=64 , lebih kecil dari 79 , decimal 79-64=15 , tambahkan binary dengan 1 , sisa decimal 15 , Binary = 10101
# 2**5=32 , lebih besar dari 15 , berikan angka 0 pada binary , sisa decimal tetap 15 , Binary = 101010
# 2**4=16 , lebih besar dari 15 , berikan angka 0 pada binary , sisa decimal tetap 15 , Binary = 1010100
# 2**3=8 , lebih kecil dari 15 , decimal 15-8=7 , tambahkan binary dengan 1 , sisa decimal 7 , Binary = 10101001
# 2**2=4 , lebih kecil dari 7 , decimal 7-4=3 , tambahkan binary dengan 1 , sisa decimal 3 , Binary = 101010011
# 2**1=2 , lebih kecil dari 3 , decimal 3-2=1 , tambahkan binary dengan 1 , sisa decimal 1 , Binary = 1010100111
# Sekarang sisa decimal = 1 yang mana 2**0=1 , tambahkan binary dengan 1 , Hasil binary adalah 10101001111


AddThis Social Bookmark Button

Binary to Hexadecimal Conversion




Binary | Hexa
0000     0
0001     1
0010     2
0011     3
0100     4
0101     5
0110     6
0111     7
1000     8
1001     9
1010     A
1011     B
1100     C
1101     D
1110     E
1111     F


AddThis Social Bookmark Button

Net Config Server Command

Friday, February 18, 2011


The Net Config Server command is the subset or command line tool to configure the Computer Property page in System applet. This command is very useful to check couple of things.

You can configure the following settings using the Net Config Server command:
1. Configure the computer description to be shown when browsing through network.
2. Make server hidden when browsing network.
3. Configure maximum connection time for the client computers to this server.

* Server Name \\computer_name
* Server Comment
* Software version Windows 2002
* Server is active on
* Server hidden No
* Maximum Logged On Users 10
* Maximum open files per session 16384
* Idle session time (min) 15

The above is an example of Net Config Server command. The above output from this command shows the Server Name, Server Comment etc. You can change the Server comment by using the following command:

Net Config Server /SRVCOMMENT: “Internet Information Server”

In the same way, you can use the following command to change the server’s visibility in network:

Net Config Server /HIDDEN: Yes / No

The “Maximum Logged On Users” displays the number of connections this server can accept over the network. It displays maximum 10 that means only 10 users can log on to this server or access files over the network. You can not change this.

The “Idle session time (min)” is the time up to which users can be active on this server. After expiry of this time, the users will be disconnected automatically and they have to log on to again to access files. By default, it is 10 minutes but you can change it to as per your requirement. To change the idle time setting, please use the following command:

Net Config Server /AUTODISCONNECT: 3

source : support.microsoft.com


AddThis Social Bookmark Button