
Wednesday, 11 March 2015
Tuesday, 10 March 2015
Javascript - Function
1. Mempermudah / meringkas penulisan program
2. Bisa menciptakan fungsi reusable. Fungsi reusable adalah fungsi menggunakan fungsi lain.
Komponen
- Nama
- Argumen/parameter
- return
Fungsi harus mempunyai return.
Contoh:
function countapples(bobapples, johnapples)
{
return bobapples+johnapples
}
Contoh reusable:
function avg(a, b)
{
return (countapples(a,b) / 2)
}
2. Bisa menciptakan fungsi reusable. Fungsi reusable adalah fungsi menggunakan fungsi lain.
Komponen
- Nama
- Argumen/parameter
- return
Fungsi harus mempunyai return.
Contoh:
function countapples(bobapples, johnapples)
{
return bobapples+johnapples
}
Contoh reusable:
function avg(a, b)
{
return (countapples(a,b) / 2)
}
Javascript - Collection
Collection adalah koleksi dari properti-properti.
Misalnya seorang pengusaha kos-kosan yang mempunyai beberapa bangunan kos.
Kos1 = {alamat: "Jl. Adisucipto No. 38", jlhkmr: 8}
Kos2 = {alamat: "Jl. H. Subrantas No. 47", jlhkmr: 3}
Misal seorang poligami yang mempunyai istri lebih dari satu
istri1 = {nama: "siti", umur:32, anak:2}
istri2 = {nama: "rini", umur:32, anak:1}
Misal kamu punya banyak properti (tanah atau rumah):
Properti1 = {jenis:"rumah", lokasi:"Jl. Muaratakus nomor 38", Harga_beli=47000000, status: "IMB"}
Properti2 = {jenis:"tanah", lokasi: "Jl. Mataram No. 48", Harga_beli = 177000000, status: "IMB"}
Properti3 = {jenis: "tanah", lokasi: "Jl. Teropong No. 31", Harga_beli = 148000000, status: "IMB"}
Misalnya seorang pengusaha kos-kosan yang mempunyai beberapa bangunan kos.
Kos1 = {alamat: "Jl. Adisucipto No. 38", jlhkmr: 8}
Kos2 = {alamat: "Jl. H. Subrantas No. 47", jlhkmr: 3}
Misal seorang poligami yang mempunyai istri lebih dari satu
istri1 = {nama: "siti", umur:32, anak:2}
istri2 = {nama: "rini", umur:32, anak:1}
Misal kamu punya banyak properti (tanah atau rumah):
Properti1 = {jenis:"rumah", lokasi:"Jl. Muaratakus nomor 38", Harga_beli=47000000, status: "IMB"}
Properti2 = {jenis:"tanah", lokasi: "Jl. Mataram No. 48", Harga_beli = 177000000, status: "IMB"}
Properti3 = {jenis: "tanah", lokasi: "Jl. Teropong No. 31", Harga_beli = 148000000, status: "IMB"}
Monday, 9 March 2015
FTP
Penjelasan singkat tentang FTP
FTP is a transfer protocol designed to aid in the moving of files from one location to another over a network.
FTPs are widely used to access the contents of webservers, and many enthusiast groups will create FTP servers as a way to share files between members.
While you can connect to an FTP server using your browser, you will find a lot more functionality if you use a dedicated FTP client.
Misal: FileZilla, SmartFTP (https://www.smartftp.com/download)
2. Username dan password yang legal.
3. Alamat Port: port 21.
FTPs are widely used to access the contents of webservers, and many enthusiast groups will create FTP servers as a way to share files between members.
While you can connect to an FTP server using your browser, you will find a lot more functionality if you use a dedicated FTP client.
Tools:
1. 1 Buah FTP client.Misal: FileZilla, SmartFTP (https://www.smartftp.com/download)
Data/Informasi yang dibutuhkan untuk melakukan koneksi FTP:
1. Alamat IP server FTP atau nama domain server FTP yang anda tuju.2. Username dan password yang legal.
3. Alamat Port: port 21.
Sunday, 8 March 2015
Halo, video singkat ini akan membahas Digitalread serial.
Komponen yang digunakan:
1. 3 buah kabel jumper (Red, black and white) sebagai jumper ke breadboard
2. 1 buah resistor 1 Kohm sebagai resitor pull-down
3. dan, 1 buah switch tactile sebagai
4. Arduino sketch software tempat untuk memasukkan program
Yang pertama kita lakukan adalah:
1. Membuka software sketch arduino
2. Klik file, examples, basic, digital read seria
3. Kemudian upload program ke board arduinonya
4. Kemudian klik serial monitor untuk membaca
Yang perlu kita perhatikan:
1.
Komponen yang digunakan:
1. 3 buah kabel jumper (Red, black and white) sebagai jumper ke breadboard
2. 1 buah resistor 1 Kohm sebagai resitor pull-down
3. dan, 1 buah switch tactile sebagai
4. Arduino sketch software tempat untuk memasukkan program
Yang pertama kita lakukan adalah:
1. Membuka software sketch arduino
2. Klik file, examples, basic, digital read seria
3. Kemudian upload program ke board arduinonya
4. Kemudian klik serial monitor untuk membaca
Yang perlu kita perhatikan:
1.
Subscribe to:
Comments (Atom)