Friday 30 January 2015

1. VB.Net program structure
A VB.Net program basically consists of the following parts:
  • Namespace declaration
  • A class or module
  • One or more procedures
  • Variables
  • The Main procedure
  • Statements & Expressions
  • Comments
Imports System
Module Module1
   'This program will display Hello World 
   Sub Main()
      Console.WriteLine("Hello World")
      Console.ReadKey()
   End Sub
End Module

Statement = console.writeline("Hello World")
Expression = 

2. VB.Net basic syntax

Tuesday 27 January 2015

1. The basic C templates
#include <stdio.h>
#include <stdlib.h>

int main()
{
    

    return 0;
}



Constants, Variables & Constants
Constant: Something that never change.
For example:
x = 'A'

int x;
char c;

x = 2;
c = 'A';

int: bilangan bulat / bilangan tidak berkoma.

Tutorial 4 - Operators
float: bilangan berkoma

Tutorial 5 - More on variables
int m, n, p; = m, n, p these are integer variabel
float realNumber, rationalNumber;

int x = 20; the same time expression

Tutorial 6 - Outputting
%c
%d
%i
%f
%%

%e
%E
%g
%G
%o
%s

How to print x and y

Tutorial 7 - Pointer
Task:
1. Deklarasi sebuah variabel sebagai sebuah variabel pointer.
Contoh:
int *px;

2. Memberikan tugas / meng-assign memory address sebuah variabel, dalam hal ini var_1, tapi sebelumnya deklarasikan dan inisialisasilah sebuah variabel, dalam hal ini var_1.
Contoh: 
int var_1 = 10;
px = &var_1;

3. Mengoutputkan
Contoh:
printf("Alamat memori dari variabel var_1 adalah %p", px);


World of Database

General Info
Data is stored in tables. Example: address book is a table of the address book database. Each address is a data record, presented as a row in that table. The data records (the data row) consist of data fields and the e-mail field.


1. Data sources
2. Forms and reports
3. Queries
4. Tables

Information abou database:
1.

1. Create a new database file
File > New > Database

2. Create new table
1. Select fields
2. Set types and formats
3. Set primary key
4. Create table


In Datasheet view, you can edit fields, add data, delete data, search for data.
Data types: Boolean, Integer, Long, Currency, Single, Double, Date, string

Sunday 25 January 2015

Photoshop how-to

Mengupgrade image

1. Menambahkan sebuah teksture ke sebuah image
> Menambahkan sebuah gambar 3 dimensi tersamar kedalam sebuah image

2. Menambahkan brightness atau contrast sebuah image
> Dapat membuat foto lebih realistik. Pilih Image > Adjustments > Brightness/Contrast

3. Crop foto
> Menggunakan crop tool di toolbox

4. Lighten or darken
Dengan melihat histogram sebuah image kamu bisa melakukan tonal balance pada image itu.
Pilih Image > Adjustments > Levels

5. Lighten or darken image menggunakan dodge dan burn tool

6. Membuat bingkai foto
Pilih Image > Canvas size

7. Remove a color cast
Pilih Image > Adjustment > Auto Color. Photoshop akan secara otomatis meng-adjust contrast dan warna dari image secara otomatis.

8. Remove suatu object dari foto
Select daerah yang mau di remove. Pilih Edit in Quick Mask Mode (Q)

9. Membuat penajaman (sharpen) foto
Pilih: Filter > Sharpen > Unsharp Mask
Tiga parameter yang digunakan: Amount, Radius, Threshold slider.

10.

Menggambar
1. Membuat gambar lingkaran  persegi
Pilih Edit > Stroke
Tuliskan value: Width, Pilih Color kamu suka, Tentukan Location: Inside, Center, atau Outside.

2. Membuat custom brush
Select area yang ingin digunakan sebagai brush, pilih Edit > Define Brush Preset.

3. Menggambar shape donat dan shape wheel
Tools:
1. Ellipse Tool (U)
2. Subtract from Shape Area buttonu
3. Draw dua donuts

4. Draw a path
Tools: Pen tool

5. Set options for the shape tools
Options are: Shape Layer, Paths, Fill Pixels

Work with layers and selections

1. Align (mensejajarkan) objek-objek pada layer-layer yang berbeda

Saturday 24 January 2015

1. Hello World
2. Variabel and types
3. Arrays
4. Strings
5. For Loops
6. While Loops
7. Functions
8. Pointers
9. Structures
10. Function arguments by reference
11. Dynamic allocation
12. Recursion
13. Linked Lists
14. Binary trees
15. Unions
16. Pointer Arithmetics
17. Function Pointers

How to create a bootable SO

USB
CD/DVD
Network

Thursday 22 January 2015

Sistem Warna
1. RGB
2. CMYK

Parameter warna
1. Hue
Hue are all the basic primary and secondary color yang membuat pelangi.

2. Saturation
To desaturate the hue you must add the complementary color.

3. Value

4. Shades
Bayangan

Color table