Friday, 27 February 2015

Pengenalan ARDUINO

1. PENGENALAN PIN-PIN
1. POWER PIN
2. DIGITAL PIN
3. ANALOG PIN
4. GROUND PIN



Digital pin bisa digunakan untuk mengeluarkan sinyal menggunakan procedure bahasa pemrograman digitalwrite()dan bisa digunakan untuk membaca sinyal menggunakan procedure digitalread().

Digitalwrite terdiri atas HIGH dan LOW. Sinyal HIGH itu sama dengan 5volt, sinyal LOW 0v.

Digitalread() atau baca bisa digunakan untuk membaca atau menyelidiki apakah sinyal sedang HIGH atau LOW.

Tetapi terlebih dahulu mode pin harus disetting ke mode digital dulu.

Pin digital antara lain pin 0 - 13 atau pin berwarna hijau di gambar diatas.


Pin analog

Pin analog bisa digunakan juga untuk read dan write, menggunakan nama procedure yang sedikit berbeda dekat pin digital yaitu analogread() dan analogwrite().

Tapi sebelum bisa menggunakan pin analog untuk membaca atau menulis, pin analog harus disetting atau dideklarasi modenya sebagai mode baca atau tulis.



Thursday, 26 February 2015

TCP socket programming basic

- Server:
1. Create a socket with the socket()
2. Bind the socket to an address using the bind( )
3. Listen for connections with the listen()
4. Accept a connection with the accept
5. Send and receive data, use the read() and write() system calls

-Client:
1. Create a socket with the socket()
2. Connect the socket to the address of the server using the connect() system call.
3. Send and receive data, use the read() and write() system calls.

 

System Administration

Since a computer consist of harddisk, memory, processor, and network card then the task of system administration are:
1. Check the current space (hard disk)
2. Check harddisk label
3. Check average memory usage (memory)
4. Check average processor usage (processor)
5. And so on

Environment Variables

1. They usually referenced by putting special symbols in front of or around the variable name.
For instance, to display the user home directory, the user has to type:
Echo %HOMEDRIVE%

The PATH is the system variable that your operating system uses to locate needed executables from the command line or Terminal window. 
 
2. Drag and drop files to command-line editor.



Survey

Hal-hal survey tanah:
1. Harga jual (Rp.)
2. Luas tanah (meter persegi)
3. Ketersediaan akses (ada / tidak adanya jalan)
4. Jarak lokasi tanah dari pusat perbelanjaan.

Hal-hal survey barang belian
1. Merek yang tersedia untuk jenis barang yang akan dibeli.
2. Jumlah toko yang akan dibandingkan harganya.
3.

Survey operator telepon seluler:
1. Biaya menelepon antar operator per menit.
2. Biaya telepon dengan operator yang sama.
3. Masa pemakaian kartu / masa berlaku kartu
4. Bonus / discount yang ditawarkan

Tumbuh-tumbuhan

Jika aku sebut tumbuhan-tumbuhan adalah living machine / mesin yang hidup, bolehkan?

Java

Class
For now it is enough to know that every application begins with a class definition

/**
 * The HelloWorldApp class implements an application that
 * simply prints "Hello World!" to standard output.
 */
class HelloWorldApp {
    public static void main(String[] args) {
        System.out.println("Hello World!"); // Display the string.
    }
}