Thursday, 3 September 2015

Oleh-oleh ketika konek ke internet directly dari windows7

C:\Users\WIN7>arp -a

Interface: 36.76.35.145 --- 0x30
  Internet Address      Physical Address      Type
  0.0.0.0                                     static
  4.58.48.79                                  static
  8.8.8.8                                     static
  23.15.155.27                                static
  23.50.233.152                               static
  23.51.1.189                                 static
  23.51.3.112                                 static
  23.51.7.165                                 static
  23.51.11.12                                 static
  23.101.26.37                                static
  31.13.79.246                                static
  36.76.35.145                                static
  50.31.164.174                               static
  50.56.191.136                               static
  50.112.169.79                               static
  52.3.46.105                                 static
  52.25.98.110                                static
  52.25.118.147                               static
  52.26.72.94                                 static
  52.26.119.85                                static
  54.187.83.42                                static
  54.191.219.103                              static
  54.191.222.218                              static
  54.201.112.14                               static
  54.201.246.30                               static
  54.213.209.148                              static
  54.243.103.78                               static
  65.52.103.106                               static
  67.192.93.178                               static
  68.142.68.5                                 static
  68.142.70.5                                 static
  72.89.121.135                               static
  72.163.4.161                                static
  72.163.4.183                                static
  72.163.10.10                                static
  74.113.237.189                              static
  74.125.68.94                                static
  74.125.68.99                                static
  74.125.68.100                               static
  74.125.68.101                               static
  74.125.68.102                               static
  74.125.68.103                               static
  74.125.68.104                               static
  74.125.68.105                               static
  74.125.68.106                               static
  74.125.68.113                               static
  74.125.68.116                               static
  74.125.68.117                               static
  74.125.68.120                               static
  74.125.68.132                               static
  74.125.68.138                               static
  74.125.68.139                               static
  74.125.68.147                               static
  74.125.68.148                               static
  74.125.68.149                               static
  74.125.68.154                               static
  74.125.68.155                               static
  74.125.68.156                               static
  74.125.68.157                               static
  74.125.68.191                               static
  74.125.130.91                               static
  74.125.130.93                               static
  74.125.130.99                               static
  74.125.130.100                              static
  74.125.130.101                              static
  74.125.130.102                              static
  74.125.130.103                              static
  74.125.130.104                              static
  74.125.130.105                              static
  74.125.130.106                              static
  74.125.130.113                              static
  74.125.130.132                              static
  74.125.130.136                              static
  74.125.130.138                              static
  74.125.130.139                              static
  74.125.130.147                              static
  74.125.130.148                              static
  74.125.130.149                              static
  74.125.130.154                              static
  74.125.130.155                              static
  74.125.130.156                              static
  74.125.130.157                              static
  74.125.130.190                              static
  74.125.171.204                              static
  74.125.200.91                               static
  74.125.200.93                               static
  74.125.200.94                               static
  74.125.200.95                               static
  74.125.200.100                              static
  74.125.200.101                              static
  74.125.200.102                              static
  74.125.200.113                              static
  74.125.200.116                              static
  74.125.200.117                              static
  74.125.200.120                              static
  74.125.200.132                              static
  74.125.200.136                              static
  74.125.200.138                              static
  74.125.200.139                              static
  74.125.200.190                              static
  74.125.215.215                              static
  93.191.169.19                               static
  96.6.244.70                                 static
  103.20.92.129                               static
  103.245.222.175                             static
  104.28.16.65                                static
  104.28.17.65                                static
  108.162.232.196                             static
  108.162.232.197                             static
  108.162.232.198                             static
  108.162.232.199                             static
  108.162.232.200                             static
  108.162.232.201                             static
  108.162.232.202                             static
  108.162.232.203                             static
  108.162.232.204                             static
  108.162.232.205                             static
  108.162.232.207                             static
  111.221.29.253                              static
  111.221.29.254                              static
  117.18.232.191                              static
  118.98.38.144                               static
  118.98.38.146                               static
  118.98.42.82                                static
  118.98.42.106                               static
  118.98.42.107                               static
  118.98.42.120                               static
  118.98.44.50                                static
  118.98.110.147                              static
  118.215.108.72                              static
  118.215.109.150                             static
  134.170.188.140                             static
  166.78.195.21                               static
  173.36.124.49                               static
  173.37.144.208                              static
  173.37.145.8                                static
  173.194.117.64                              static
  173.194.117.65                              static
  173.194.117.66                              static
  173.194.117.67                              static
  173.194.117.68                              static
  173.194.117.69                              static
  173.194.117.70                              static
  173.194.117.71                              static
  173.194.117.72                              static
  173.194.117.73                              static
  173.194.117.78                              static
  173.194.117.96                              static
  173.194.117.97                              static
  173.194.117.98                              static
  173.194.117.99                              static
  173.194.117.100                             static
  173.194.117.101                             static
  173.194.117.102                             static
  173.194.117.103                             static
  173.194.117.104                             static
  173.194.117.105                             static
  173.194.117.110                             static
  173.194.117.175                             static
  173.194.117.183                             static
  173.194.117.184                             static
  173.194.117.191                             static
  192.0.77.2                                  static
  192.0.80.240                                static
  192.88.99.1                                 static
  192.228.79.201                              static
  192.229.145.200                             static
  192.229.237.37                              static
  198.41.214.7                                static
  198.41.214.8                                static
  198.41.215.6                                static
  198.41.215.7                                static
  198.41.215.8                                static
  198.145.13.8                                static
  198.145.13.9                                static
  198.145.13.10                               static
  199.16.158.175                              static
  204.93.85.56                                static
  208.92.236.184                              static
  209.251.187.111                             static
  216.58.196.130                              static
  216.58.196.142                              static
  216.104.216.161                             static
  224.0.0.2                                   static
  224.0.0.12                                  static
  224.0.0.251                                 static
  224.0.0.252                                 static
  239.255.255.250                             static

C:\Users\WIN7>
http://www.internetlivestats.com/google-search-statistics/

Wednesday, 2 September 2015

php socket



1.
What is a sub procedure?

C.
A named block of code that you can call / execute by calling its name and expect NO return value
Struct sockaddr{
    unsigned short sa_family;
    char sa_data[14];
}

Struct sockaddr_in{
    short sin_family;
    unsigned short sin_port;//Port Number
    struct in_addr sin_addr;//IP address
    char sin_zero[8];
}

Struct in_addr{
    unsigned long s_addr;//4 byte
}
htons() host to network short
htonl() host to network long
inet_aton() ---> ascitobinary
inet_ntoa() ---> network to ascii
Comments: /* Comment */
Whitespace ignore
Data types = declaring types of variables, declaring types of functions. Basic types: integer and floating-point, Enumerated, Void = no value returned

Header mendefinisikan macro

Array = collection

Pointer = untuk memudahkan mengakses elemen-elemen dari sebuah array.

Tuesday, 1 September 2015

https://en.wikipedia.org/wiki/CARDboard_Illustrative_Aid_to_Computation
https://www.cs.drexel.edu/~bls96/museum/cardsim.html
https://en.wikipedia.org/wiki/Little_man_computer

Monday, 31 August 2015

API

For example, if you want to write a program that reads and analyzes data from Twitter, you'd need to use the Twitter API, which would specify the process for authentication, important URLs, classes, methods, and so on.

Building social networking profile

Sceleton
<!DOCTYPE html>
<html>
    <head>
        <title></title>
    </head>
    <body></body>
</html>

Instructions
  1. Put your name between the <title></title> tags.
  2. Put a picture of yourself (or anything you like!) between the <body></body> tags. If you can't think of a good picture, use this ninja: https://s3.amazonaws.com/codecademy-blog/assets/ninja_zpsa5dbe37a.jpg.

to ensure a secure LAN and optimized LAN
1. menentukan jumlah mac yg dipelajari
2. menentukan jenis violasi
3. menentukan apakah mac yg dipelajari ditaruh di
show running config
Configuring basic switch management
Task 1 connect to the switch via console
Task 2 Naviate through CLI modes
Task 3 Use Help Facility to configure the clock
Task 4 Access and configure command history
Task 5 Configure the boot sequence
Task 6 Configure PC and connect it to a switch
Task 7 Configure duplex and speed
Task 8 Manage the MAC address Table
Task 9 Manage the switch configuration file
social network that always ask about yourself
> do you like a coffe?
> do you know about .... (trending topic)
> do you like Megawati Soekarno Putri? Why?

Sunday, 30 August 2015

http://www.cisco.com/c/en/us/support/docs/long-reach-ethernet-lre-digital-subscriber-line-xdsl/asymmetric-digital-subscriber-line-adsl/71108-adslguide-pppoa-dynmcstep.html?referring_site=RE&pos=1&page=http://www.cisco.com/c/en/us/support/docs/dial-access/dial-on-demand-routing-ddr/10219-23.html
I’ve trolled the internet looking for ways to configure the v92 modem on a cisco 1811, and have managed to paste together pieces to make a dialup connection from the router, please note this configuration will not work with the aux port.
interface Async1
no ip address
ip nat outside
ip virtual-reassembly
encapsulation ppp
no ip route-cache cef
no ip route-cache
dialer in-band
dialer pool-member 1
dialer-group 1
async mode interactive
!
interface Dialer0
ip address negotiated
ip nat outside
ip virtual-reassembly
encapsulation ppp
no ip route-cache cef
no ip route-cache
dialer pool 1
dialer remote-name ***ISP NAME***
dialer idle-timeout 2000
dialer string ***NUMBER***
dialer hold-queue 10
dialer-group 1
no peer default ip address
ppp authentication pap chap callin
ppp chap hostname ***USERNAME***
ppp chap password 0 ***PASSWORD***
!

Dialer profiles separate logical configurations from the physical interfaces that receive or make calls. Because of this separation, interfaces such as ISDN, asynchronous modems, or synchronous serial connections can be shared by multiple dialer profile configurations. 
DET
AILED STEPS
Purpose
Command or Action
Enters
the
configuration
mode
for
a
Gigabit
Ethernet
W
AN
interface
on
the
router
.
interface
type
number
Example:
Router(config)#
interface
gigabitethernet
1
Step 1
Sets
the
IP
address
and
subnet
mask
for
the
specified
Gigabit
Ethernet
interface.
ip
addr
ess
ip-addr
ess
mask
Example:
Router(config-if)#
ip
address
192.168.12.2
255.255.255.0
Step 2
Enables
the
Ethernet
interface,
changing
its
state
from
administratively
down
to
administratively
up.
no
shutdown
Example:
Router(config-if)#
no
shutdown
Step 3
Exits
configuration
mode
for
the
Gigabit
Ethernet
interface
and
returns
to
global
configuration
mode.
exit
Example:
Router(config-if)#
exit
Step 4
Example:
Router(config)#
Configuring a V
.92 Modem Interface
The
Cisco
891
ISR
has
a
V
.92
modem
backup
interface.
T
o
configure
this
interface,
perform
these
steps,
beginning
in
global
configuration
mode:
SUMMAR
Y STEPS
1.
interface
type
number
2.
ip
addr
ess
ip-addr
ess
mask
3.
encapsulation
ppp
4.
dialer
in-band
5.
dialer
string
dial-string
6.
dialer-gr
oup
gr
oup-number
7.
async
mode
dedicated
8.
exit
Cisco 800 Series Integrated Services Routers Software Configuration Guide
26
OL-31704-02
Basic Router Configuration
Configuring W
AN Interfaces
DET
AILED STEPS
Purpose
Command or Action
Enters
the
configuration
mode
for
a
V
.92
W
AN
interface
(serial
interface)
on
the
router
.
interface
type
number
Example:
Step 1
Example:
Router(config)#
interface
async
1
Sets
the
IP
address
and
subnet
mask
for
the
specified
V
.92
interface.
ip
addr
ess
ip-addr
ess
mask
Example:
Step 2
Example:
Router(config-if)#
ip
address
192.168.12.2
255.255.255.0
Sets
the
encapsulation
method
to
point-to-point
protocol
(PPP)
for
the
serial
interface.
encapsulation
ppp
Example:
Step 3
Example:
Router(config-if)#
encapsulation
ppp
Specifies
that
dial-on-demand
routing
(DDR)
is
supported.
dialer
in-band
Example:
Step 4
Example:
Router(config-if)#
dialer
in-band
Specifies
the
string
(telephone
number)
to
be
used
when
placing
a
call
from
the
interface.
dialer
string
dial-string
Example:
Step 5
Example:
Router(config-if)#
dialer
string
102
Configures
the
interface
to
belong
to
a
specific
dialing
access
group.
dialer-gr
oup
gr
oup-number
Example:
Step 6
Cisco 800 Series Integrated Services Routers Software Configuration Guide
OL-31704-02
27
Basic Router Configuration
Configuring W
AN Interfaces
Purpose
Command or Action
Example:
Router(config-if)#
dialer-group
1
Places
the
line
into
dedicated
asynchronous
mode
using
Serial
Line
Internet
Protocol
(SLIP)
or
PPP
encapsulation.
async
mode
dedicated
Example:
Step 7
Example:
Router(config-if)#
async
mode
dedicated
Exits
configuration
mode
for
the
V
.92
interface
and
returns
to
global
configuration
mode.
exit
Example:
Step 8
Example:
Router(config-if)#
exit
Example:
Router(config)#

V.92

RJ.11

Friday, 28 August 2015

Achievement:
1. Able to connect to database and create a database after setting the root's password.
<?php
$conn = mysqli_connect("localhost","root","admin");
mysqli_query($conn, "CREATE DATABASE aloha");
mysqli_close($conn);
?>

Thursday, 27 August 2015

Function messagebox_demo()
MsgBox ("Welcome")
a = MsgBox("Do you like blue color?", 4, "Choose options")
MsgBox ("The value of a is " & a)

'conversion from numbers to string
If a = 6 Then
answer = "Yes"
ElseIf a = 7 Then
answer = "No"
End If

'return the value of answer
messagebox_demo = answer
End Function
1. create database
2. create table
3. define type

Wednesday, 26 August 2015

<!DOCTYPE html>
<html>
    <head>
        <title>This is my own web page</title>
    </head>
    <body>
        <h1>Totardo</h1>
        <img src="https://s3.amazonaws.com/codecademy-blog/assets/ninja_zpsa5dbe37a.jpg" />
        <p>Hello, my name is Totardo. I am the eldest of three brothers and sisters. I have 1 sister and 1 brother. </p>
        <p>I learn about html daily. I use <a href="http://www.codecademy.com">codecademy</a> to learn about html. Sometimes I learn about <a href="http://www.cisco.com">cisco."</a></p>
        <p>I want to be a succesful developer.</p>
    </body>
</html>
Achievement:
1. Membuat kondisi dengan menggunakan if
2. Membuat operasi matematik ($biaya=$soto + $tehbotol
3. Membuat local variabel ($soto, $tehbotol)
4. Membuat html drop-down untuk jenis/variasi makanan dan jenis/variasi minuman

Tampilan sekrip .php nya:  

Hello,<?php echo $_POST['name']?>
<br>

Jenis makanan adalah: <?php echo $_POST['makanan']
?><br>
Jenis minuman adalah: <?php echo $_POST

['minuman'];?>
<br>
<?php
$soto=10000;
$tehbotol=5000;
if ($_POST['makanan'] == "Soto"){
if($_POST['minuman']=="Tehbotol"){
$biaya = $soto+$tehbotol;
print "Biaya = ".$biaya;
}}
?>

Tampilan sekrip .html nya:

<form method="POST" action="wechat.php">
Name: <input type="text" name="name"> <br>
Jenis makanan: <select name="makanan">
<option value="Nasigoreng">Nasi Goreng</option>
<option value="Bakmie">Bakmi</option>
<option value="Soto">Soto</option>
</select> <br>
Minuman: <tab> <tab><select name="minuman">
<option value="Tehbotol">Teh Botol</option>
<option value="Aqua">Aqua</option>
<option value="Tehmanis">Teh Manis</option>
</select><br>
<input type="submit">

Tampilan GUI dari sekrip diatas:


Name:

Jenis makanan:

Minuman:

Monday, 24 August 2015

database
connect
create DB
create table
Insert Data
Get Last ID
Insert Multiple
Prepared
Select Data
Delete Data
Update Data
Limit Data

Saturday, 22 August 2015

HTML

Styling:
1. Ngasih warna
2. Ngasih font size
3. Ngasih tipe font, contoh: trebuchet, verdana,

font-size
font-family
text-align
color
background-color

2. Quotations
Ngasih kutipan (quotations) contoh: <q>Aloha</q>

3. CSS
untuk styling html element
1. Ngasih warna latar
2. Ngasih warna teks
3. Ngasih

4. html5 Migration
Tentang perpindahan dari html 4 ke html 5. Perubahan tag divisi. Perubahan doctype. Perubahan html encoding.
Header, nav, section, aside,

5. html class
di "class" kan supaya sama di style kan.
contoh:
<head><style>
div.cities {
    background-color:black;
    color:white;
    margin:20px;
    padding:20px;
}
</style>
 </head>

6. charset
untuk browser bisa tampil kan page html dengan bener web browser perlu mengetahui charcter set untuk digunakan.
ASCII adalah character set yang pertama kali digunakan sebagai character set.
 

Friday, 21 August 2015

$ python
>>>1/2
>>>1/2.

integer: don't know decimal point
float : know decimal point (comma)


>>> print "hello"

>>> fish = 'tuna'
>>> len (fish)

>>> fish * 10
'tunatunatunatunatunatunatunatunatunatuna'

>>> help(len)
>>> dir()
>>> 1 == 1
True
>>> len(fish) == 4
True
>>> "a" == "a"
True
>>> "a" == "A"
False
>>> "a" != "z"
True
>>> 1 > 0
True
>>> 2 >= 3 (is 2 lebah besar atau sama dengan 3?)
False
>>> -1 < 0
True
>>> "H" in "Hello"
True
>>> "z" in "Hello"
False
>>> "z" not in "hello"
True
>>> x == 4
True
>>> len("")
>>> my_list = ["a", "b", "c"]
>>> len(my_list)
>>> my_list[0]
'a'
>>> my_list[1]
'b'
>>> my_list.append("d")
>>> my_list
['a', 'b', 'c', 'd']
>>>my_list.index("c")
>>> "a" in my_list
True
>>> "z" in my_list
False
>>> my_list[0:2] '[start:not including the second]




Wednesday, 19 August 2015

read -p "Username : " user; echo "Hello $user. How are you"


Linux shell scripting

Positional parameters
$0
$#
$*

backslash character
Test 2 : Vocabulary


1. convenient: comfortable for use;
It's so convenient.
Their house is convenient to all transportation.

careless
selective
meticulous
inevitably
amazingly
surprisingly
invariably
reticent
prohibited
encouraged
proposed
protected
a remarkable
a fortunate
an embarassing
an amazing
stationery
submarines
artillery

Monday, 17 August 2015

• The Branch 1 LAN will require 100 host IP addresses. 
• The Branch 2 LAN will require 100 host IP addresses. 
• The Branch 3 LAN will require 100 host IP addresses. 
• The Branch 4 LAN will require 100 host IP addresses. 
• The West LAN will require 400 hosts. 
• The East LAN will require 400 hosts. 
• The HQ LAN will require 500 host IP addresses. 
• The links between each of the routers will require an IP address for each end of the link.


How many subnet are needed? 7 + 8 = 15
What is maximum number of IP address that are needed for a single subnet? 500 hosts
How many IP address are needed for each of the Branch LANs? 100 ip addresses
How many IP address that are needed for all of the connection between routers? 8 * 2 = 16 ip addresses 
What is the total number of IP address that are needed? (100 * 4)+(400 * 2) + 500 + (2 * 8) = 1716 IP addresses

What will the subnet mask be for the subnetworks? 500 bulatkan keatas secara biner 512 = 2 pangkat 9. /32 - 9 = /23 or 255.255.252.0

How many usable host ip address are there per subnet? /32 - 23 = 9. 2 ^ 9 - 2 = 510 hosts

Filling in the following chart with the subnet information.

Subnet NumberSubnet AddressFirst Usable Host AddressLast Usable Host AddressBroadcast Address
0



1



2



3



4



5



6



7



8



9



10



11



12



13



14



15



Friday, 14 August 2015

Network Design

1. Proses network design panjang dan membutuhkan ketelitian matematika.
2. Network design terdiri dari vlsm dan non-vlsm. Yang paling mudah adalah non-vlsm.
3. Sediakan kalkulator

Contoh-contoh soal:
1.
Diket:
Network address space: 192.168.2.0/24
Requirement: support 60 hosts

1. Berapa banyak subnet yang butuh dibuat dari jaringan 192.168.2.0/24? 3
2. Apa saja alamat jaringan dari subnet-subnet itu? 192.168.2.0, 192.168.2.64, 192.168.2.128, 192.168.2.192
3. Apakah sebuah mask subnet dari jaringan-jaringan ini? 255.255.255.192
4. Apakah sebuah mask subnet dari jaringan-jaringan ini dalam format slash? /26
5. Berapa banyak host yang bisa digunakan pada subnet itu per subnet? 62 host

Subnet 0: 192.168.2.0/26
Subnet 1: 192.168.2.64/26
Subnet 2: 192.168.2.128/26
Subnet 3: 192.168.2.192/26

Step 2: Assign subnetwork address to the topolgy diagram
- Assign subnet 1 ke LAN yang terhubung ke HQ
- Assign subnet 2 ke WAN link antara HQ dan BRANCH
- Assign subnet 3 ke LAN yang terhubung ke BRANCH
- Subnet 0 akan tersedia untuk pengembangan lanjutan jaringan.

Task 2: Menentukan alamat untuk interface
- Assign alamat host pertama yang valid dalam subnet 1 ke interface LAN pada HQ.
- Assign alamat host terakhir yang valid dalam subnet 1 ke PC2

- Assign alamat host pertama yang valid di subnet 2 ke interface WAN pada BRANCH
- Assign alamat host yang valid kedua di subnet 2 ke interface WAN pada HQ

- Assign alamat host yang valid pertama di subnet 3 ke interface LAN pada BRANCH
- Assign alamat host yang valid terakhir di subnet 3 ke PC1.


2. You have been given: 192.168.9.0/24

Address requirements:
• The Branch 1 LAN 1 will require 10 host IP addresses. 
• The Branch 1 LAN 2 will require 10 host IP addresses. 
• The Branch 2 LAN 1 will require 10 host IP addresses. 
• The Branch 2 LAN 2 will require 10 host IP addresses. 
• The HQ LAN will require 20 host IP addresses. 
• The Link from HQ to Branch 1 will require an IP address for each end of the link. 
• The Link from HQ to Branch 2 will require an IP address for each end of the link.




Wednesday, 12 August 2015

1. Erase and reload the routers
2. Basic router configuration
3. Interpreting debug ip routing output
4. Configure IP addressing on the host pcs
5. Test and verify the configuration: ping from host to gateway
6. Gather information
7. R3 Configure a static route using a "next-hop"address
8. Configure a static route using an exit interface
9. Configure a default static route
10. Configure a summary static route
11. Summary, Reflection and Documentation