Thursday, November 24, 2011

Visual Basic Programming

Control Structure IF ... THEN
Forms of writing (syntax) IF ... THEN structure:
IF THEN
When is True then be done.
IF THEN

ELSE

END IF

Example :

Dim average as Integer
average = 45
If average> 50 Then
txtGrade.Text = "Pass"
Else
txtGrade.Text = "Fail"
End If


If Then
statements A
ElseIf Then
statements 2
ElseIf Then
statements 3
Else
statements 4
End If

Example :
If average> 75 Then
txtGrade.Text = "A"
ElseIf average> 65 Then
txtGrade.Text = "B"
ElseIf average> 55 Then
txtGrade.text = "C"
ElseIf average> 45 Then
txtGrade.Text = "S"
Else
txtGrade.Text = "F"
End If




Introduction To Visual Basic

Programming Visual ?
The use of visual components (icons, buttons, images, lists, ..) as user inteface.
Influenced the development of the operating system -> GUI (Graphical User Interface)
Apple Macintosh (MacOS), Microsoft (Windows), Linux (KDE, Gnome, X windows),

The development of user interfaces in software / application
  • Based text / command line
  • Based GUI
Difference-based and GUI-based text / visual
  • text-based -> Processing the input / output is performed sequentially
  • GUI-based -> Processing the input / output can not be done sequentially
Visual Basic Programming
In visual programming, the technical term - event
Event: An event caused by the activities of the user who of course
eg clicking on the button, right click, etc.
Visual programming approach event-driven, Ie the commands executed after an event occurs or triggered by the event

GUI applications are composed of the window / frame / form
as its main component, and other visual components


Each window has a ID / handle (hWnd), as an identifier to distinguish one window to another window in the operating system environment
Window is the mother of all visual components attached to it

Thursday, November 3, 2011

Digital Image Basics

Digital Image Format

Broadly speaking, a digital image can be represented in two types, namely:

Raster

The image is a collection of dots, each of which describes the color

Vector

The image is a group of build-up that defined mathematically.

Digital Image Model

This type of digital image processing will be discussed in this is the type of raster image. So the image is seen as a collection of dots called pixels ( pixel /pels : Picture elements) as shown below:

From the figure above shows that an image can be regarded as a two dimensional array or matrix of a pixel value. The terms of rows and columns can also be replaced with the position x and y and the pixel values ​​are denoted by z who has a relationship z = f (x.y) which means the pixel value is a function of position in x and y.

Digital Image Processing System

Preliminary

The image is a picture of an object. The picture can be captured directly by human senses or with assistive devices such as cameras. Images captured by an image of the tool can be divided into analog and digital imagery. In this image processing subjects covered are image digital image

The introduction of Digital Image

Digital image obtained from the digitization process by digitizer or sensor to an object or image of analog sperti shown in the following figure:

Digital Image Processing System

Digital image processing system can be divided into several parts:

§ Image Acquisition

In this section, the image processing system to process to get a digital image. Examples of tools used include: camera / digital cameras, scanners and video.

§ Storage / Storage

Having gained / acquired images will be stored. The amount of storage space required depends on the large-size images and image quality. The storage process can be broadly divided into two, namely temporary, for example: computer memory, and is permanent, for example: floppy disks and CDs.

§ Processing

In this section of digital images will be processed as desired. It is generally used for digital image processing computer systems.

§ Communication

An image that will be processed and once processed will be sent / transmitted to other equipment, so we need a communication protocol, eg TCP / IP.

§ Display

The results of processing the image should be displayed, either on a screen (computer monitor, TV) and in printed form (printer).

Wednesday, August 24, 2011

Database Reverse Engineering

Reverse Engineering (RE) according to Wikipedia is the process to find a guiding principle of the technology of a device, object or system through analysis of the structure, functions and operations owned. Suppose we already have a device or system that we know nothing about design and the manufacturing process, due to a cause either damage to, or is inherited from the manufacturer that does not leave the design documents, or even the result of piracy (sometimes occurred in the military to dismantle the device design of the enemy war ). With the RE process we can get a description of the structure, function and operation of the device or systemRE can be applied in a mechanical system, electronics and software. In the field of software engineering in particular on the Database, RE engineering can be applied to parse the database structure has been formed. This process is necessary when we work with (legacy system) or a system of 'legacy' which has been running. When we 'inherited' the database is sometimes not included documentation incomplete or even nonexistent. This will be a big problem when we will repair or develop systems that use these databases. RE assist in solving the problem with the database structure to parse the visual form of a chart into a complete table with the data type of each fieldnya and also either a primary key constraint or foreign key as shown in the picturetaken from: http://microolap.com/products/database/mysql-designer

Applications for RE process database is usually bundled with applications Database Design. Some applications, among others, (*) are paid: Sybase Power Designer, MicroOLAP Database Designer (MySQL & PostgreSQL) and (**) is free: fabForce DBDesigner (MySQL).

Friday, August 19, 2011

Free Ringtones,Games and Wallpapers

You might get bored with ringtones, wallpapers or themes in your mobile phone today. You want to replace it. There are many sites that provide ringtones, wallpapers, themes and games for mobile phones, either free or paid. One that I think is interesting is the Zedge, http://www.zedge.net/download/
One of the highlights is the category download ringtone to cleanly, grouped by genres of music and text, there are classical music, jazz, rock, pop, ethnic, etc..

There is also a ringtone derived from the soundtrack of the film and games, even the sound effects are unique.
Facilities that interesting is that we can do a preview, play ringtone first before we download. Downloads can be made ​​directly into our HP or next to our computers to be transferred to HP, Good luck!

Thursday, August 18, 2011

Reading CHM files on Linux / Ubuntu

Help files or application manuals for computer programming sometimes in Compiled HTML , with chm extensions.

These files can not be directly opened in Linux OS. There are several ways to read the file formats.

1. If you already use Mozilla Firefox browser, Install Add-on CHM Reader, or

2. Install xchm applications, can be downloaded at:
http://xchm.sourceforge.net/

or with the command: sudo apt-get install xchm

Collection of the Reference Manual & Open Source Programming

Need a reference, the manual for the tools, open source programming language and specifications such as C + +, html, css, etc?

Can be downloaded at the following address:
http://code.google.com/p/htmlhelp/downloads/list

Image Histogram

  Histogram Color is one of the features that can be used in image retrieval system. Color can be represented in the form of a histogram....