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.
    }
}
 

Wednesday, 25 February 2015

Peristiwa (Event)

Jenis peristiwa berdasarkan jenis waktu:
1. Peristiwa masa lampau
2. Peristiwa masa sekarang / hari ini  / 24 jam
3. Peristiwa masa depan


Ada berapa banyak sih jenis peristiwa? Jenis peristiwa sebanyak jumlah kata kerja yang dibuat/diciptakan oleh manusia.
Contoh:
memukul - peristiwa pemukulan
mengangkat - peristiwa pengangkatan
mengesahkan - peristiwa pengesahan
merampok - peristiwa perampokan
membengkokan - peristiwa pembengkokan
mengangkangi - peristiwa pengangkangan
menggeser - peristiwa penggeseran
memindahkan - peristiwa pemindahan
dan seterusnya

Setiap peristiwa pasti ada subyek (pelaku) dan obyek (orang yang menerima perlakuan), karena