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