Keanehan dan keunikan yang ada di dunia

03 November 2009

Menghitung Page Rank sendiri tanpa Google

Akhirnya kemarin saya punya waktu untuk blogwalking lebih lama daripada beberapa hari terakhir ini. Mampir ke blog sobat-sobat blogger yang ternyata memang pada giat banget ngeblog. He..he.. beda dengan blog ini yang belakangan ini jarang 'mandi'.
Blogwalking sempat terhenti lama di blognya mas Masrur. Bukan apa-apa. Ada artikel yang rada bikin mumet di sana: Page Rank Calculator, not bad lah. Merasa berhubungan dengan salah satu tulisan saya tentang konsep dasar Google Page Rank, saya pun serius membacanya.
Mudeng? He..he.. pertama kali, enggak. Musti berulang-ulang dipelototi baru deh... dikit. :D
Saya share di sini ya.
Kalkulator yang dimaksud di sini sebenarnya adalah sebuah rumus menghitung PR domain kita dengan melibatkan variabel-variabel tertentu. Tapi ingat ya, rumus ini menghasilkan angka kira-kira. Berapa nilai PR yang benar adalah hak hitung si mbah-mbah tua Google itu.
Rumus Page Rank (PR) Calculator adalah :
PRa = 1-d + d*( PRs1/Cs1 + PRs2/Cs2 + PRs3/Cs3 + ... + PRsn/Csn)
dengan keterangan :
  • PRa : PR dari suatu halaman a.
  • PRsi : PR dari suatu halaman (si) yang memberikan link ke domain a, sedangkan si mempunyai range dari 0 s/d n dimana n adalah jumlah total dari incoming links. Incoming link bisa berasal darimana saja termasuk dari halaman lain dalam 1 domain.
  • Csi : Total outbound links yang ada pada halaman (si) yang memberikan link ke domain a.
  • d : Dumping faktor yang biasanya berupa nilai dari 0 s/d 1. Bila anda tidak mengetahui-nya anda bisa menggunakan angka 0.85
Nah.. seperti yang saya maksud pada artikel saya tentang Page Rank, PR halaman yang memberi backlink ke blog kita ternyata sangat berpengaruh. Semakin tinggi PR-nya, ya semakin bagus.
Jika anda kerepotan untuk menghitung berapa PR (kira-kira) anda dengan rumus, anda bisa me-refer tabel berikut yang diturunkan dari rumus di atas. Tabel ini bisa anda gunakan untuk menghitung berapa kira-kira link yang anda butuhkan untuk mendapatkan PR tertentu.
Google PR dan Jumlah Backlink
Hmm.. boleh juga 'kan? Meskipun hasilnya hanya prediksi, tapi proses pencarian metode ini patut diacungi jempol. Paling tidak, sedikit mengurangi rasa penasaran kita terhadap algoritma Google pada saat melakukan perhitungan Page Rank.

sumber : abbie

Pasang Buku Tamu di Sidebar | Blog Tutorial | Free Template | Download Software

Pasang Buku Tamu di Sidebar | Blog Tutorial | Free Template | Download Software

Memasang sebuah buku tamu (shoutbox/guestbook) pada sebuah blog adalah hal yang cukup lumayan penting,karena buku tamu ini merupakan salah satu sarana untuk berinteraksi antara yang mpunya blog dengan para pengunjung blog. Dengan di pajangnya buku tamu di dalam blog, maka para pengunjung dapat mengungkapkan isi hatinya tentang blog yang anda buat, yang pasti isi dari sebuah buku tamu ini sangatlah bervariasi bisa merupakan pujian, pertanyaan, sekedar iseng, atau ada juga merupakan kritikan terhadap isi blog anda, dan justru dengan adanya variasi itulah membuat blog kita jadi hidup lebih hidu (kaya iklan aja).

Ok, terlalu lama intermezonya ya, sekarang kita kembali (ke lap...top) ke topikbahasan. Bagaimana caranya mendapatkan sebuah buku tamu. Untuk mendapatkannya sangat mudah, anda tinggal mencarinya pada mesin pencari semisal google ataupun yahoo, silahkan ketikan kata free shoutbox atau free guestbook pada search engine masing-masing situs, maka dalam beberapa detik saja akan muncul berpuluh-puluh situs penyedia buku tamu tadi, anda tinggal klik lalu coba lihat-lihat. Tapi untuk menghemat waktu pencarian anda, maka di sini saya akan langsung memberikan alamat situs penyedia buku tamu yang servernya lumayan bagus dan jarang sekali mengalami down yakni http://www.shoutmix.com. Untuk caranya silahkan anda ikuti langkah-langkah berikut ini :

1. Seperti biasa anda harus daftar terlebih dahulu dengan cara mengklik tulisan Get One noe, free>>, ataupun dengan mengklik tulisan Sign Up, silahkan anda tulis data-data anda pada form yang telah di sediakan.

2. Jika sudah tedaftar, dan di terima jadi anggota shoutmix, silahkan anda login dengan id anda

3. Pada kolom yang berjudul Style, klik menu appearance.

4. Silahkan klik menu pulldown di samping tulisan Load From Preset untuk mengatur tampilan buku tamu anda, silahkan pilih yang sesuai dengan keinginan anda. Jika sudah selesai klik Save Setting.

5. Untuk mendapatkan kode HTML dari shoutbox anda, silahkan klik Use Shoutbox yang berada di bawah menu Quick Start

6. Klik tulisan Place Shoutbox on web page. Isi lebar dan tinggi shoutbox yang di inginkan

7. Copy seluruh kode HTML yang ada pada text area yang berada di bawah tulisan Generated Codes, lalu simpan di program Notepad anda

8. Klik Log out yang berada di atas layar anda untuk keluar dari halaman shoutmix anda. Silahkan close situs tersebut.

9. Selesai



Untuk menempatkan kode HTML shoutbox tadi pada blog anda, silahkan ikuti langkah-langkah berikut ini.

Untuk blogger dengan template klasik :

1. Log in terlebih dahulu ke blogger.com dengan id anda

2. Klik menu Template

3. Klik Edit HTML

4. Paste kode HTML shoutbox anda yang telah di copy pada notepad tadi di tempat yang anda inginkan

5. Untuk jelasnya saya ambil contoh dengan shoubox milik saya, untuk menempatkannya tinggal klik Edit pada browser lalu pilih Find (on this page).. trus tuliskan kata buku tamu lalu klik find, maka kita akan langsung di bawa ke tulisan tersebut. Jika sudah ketemu tulisan tadi silahkan paste kode HTML shoutbox nya.

6. Klik tombol Preview untuk melihat perubahan yang kita buat.

7. Jika sudah cocok dengan perubahan tadi, klik Save Template Changes

8. Selesai



Sedikit Clue, agar shoutbox anda sesuai dengan ukuran lebar sidebar , anda bisa merubah ukuran lebar ataupun tinggi dari shoutbox , caranya anda tinggal merubah angka Width (untuk lebar) dan Height (untuk tinggi) dari dalam kode HTML shoutbox tersebut.



Untuk Blogger baru :

1. Silahkan Login dengan id anda

2. Klik menu Layout

3. Klik Page Element

4. Klik Add a Page Element

5. Klik tombol Add to Blog yang berada di bawah tulisan HTML/JavaScript

6. Tuliskan judul shoutbox anda pada form title. Contoh : Buku tamu ku, atau my guestbook atau apa saja yang anda suka

7. Copy paste kode HTML shoutbox anda di dalam form Content

8. Klik tombol Save Changes

9. Drag & Drop element yang telah anda buat tadi di tempat yang di sukai

10. Tekan tombol Save

11. Selesai



Selamat mencoba !



Sebagai tambahan, guestbook yang sering dipakai para blogger lainnya :

1. http://oggix.com

Introduction to strings

Variables that can store non-numerical values that are longer than one single character are known as strings.

The C++ language library provides support for strings through the standard string class. This is not a fundamental type, but it behaves in a similar way as fundamental types do in its most basic usage.

A first difference with fundamental data types is that in order to declare and use objects (variables) of this type we need to include an additional header file in our source code: and have access to the std namespace (which we already had in all our previous programs thanks to the using namespace statement).

1
2
3
4
5
6
7
8
9
10
11
// my first string
#include 
#include 
using namespace std;

int main ()
{
  string mystring = "This is a string";
  cout << mystring;
  return 0;
}
This is a string


As you may see in the previous example, strings can be initialized with any valid string literal just like numerical type variables can be initialized to any valid numerical literal. Both initialization formats are valid with strings:

1
2
string mystring = "This is a string";
string mystring ("This is a string");


Strings can also perform all the other basic operations that fundamental data types can, like being declared without an initial value and being assigned values during execution:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// my first string
#include 
#include 
using namespace std;

int main ()
{
  string mystring;
  mystring = "This is the initial string content";
  cout << mystring << endl;
  mystring = "This is a different string content";
  cout << mystring << endl;
  return 0;
}
This is the initial string content
This is a different string content

Initialization of variables

When declaring a regular local variable, its value is by default undetermined. But you may want a variable to store a concrete value at the same moment that it is declared. In order to do that, you can initialize the variable. There are two ways to do this in C++:

The first one, known as c-like initialization, is done by appending an equal sign followed by the value to which the variable will be initialized:

type identifier = initial_value ;

For example, if we want to declare an int variable called a initialized with a value of 0 at the moment in which it is declared, we could write:

 
int a = 0;


The other way to initialize variables, known as constructor initialization, is done by enclosing the initial value between parentheses (()):

type identifier (initial_value) ;

For example:

 
int a (0); 


Both ways of initializing variables are valid and equivalent in C++.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// initialization of variables

#include 
using namespace std;

int main ()
{
  int a=5;               // initial value = 5
  int b(2);              // initial value = 2
  int result;            // initial value undetermined

  a = a + 3;
  result = a - b;
  cout << result;

  return 0;
}
  




Scope of variables

All the variables that we intend to use in a program must have been declared with its type specifier in an earlier point in the code, like we did in the previous code at the beginning of the body of the function main when we declared that a, b, and result were of type int.

A variable can be either of global or local scope. A global variable is a variable declared in the main body of the source code, outside all functions, while a local variable is one declared within the body of a function or a block.



Global variables can be referred from anywhere in the code, even inside functions, whenever it is after its declaration.

The scope of local variables is limited to the block enclosed in braces ({}) where they are declared. For example, if they are declared at the beginning of the body of a function (like in function main) their scope is between its declaration point and the end of that function. In the example above, this means that if another function existed in addition to main, the local variables declared in main could not be accessed from the other function and vice versa.

by : c++

Declaration of variables

In order to use a variable in C++, we must first declare it specifying which data type we want it to be. The syntax to declare a new variable is to write the specifier of the desired data type (like int, bool, float...) followed by a valid variable identifier. For example:

1
int a;
float mynumber;


These are two valid declarations of variables. The first one declares a variable of type int with the identifier a. The second one declares a variable of type float with the identifier mynumber. Once declared, the variables a and mynumber can be used within the rest of their scope in the program.

If you are going to declare more than one variable of the same type, you can declare all of them in a single statement by separating their identifiers with commas. For example:


int a, b, c;


This declares three variables (a, b and c), all of them of type int, and has exactly the same meaning as:

1
2
3

int a;
int b;
int c;


The integer data types char, short, long and int can be either signed or unsigned depending on the range of numbers needed to be represented. Signed types can represent both positive and negative values, whereas unsigned types can only represent positive values (and zero). This can be specified by using either the specifier signed or the specifier unsigned before the type name. For example:

1
2

unsigned short int NumberOfSisters;
signed int MyAccountBalance;


By default, if we do not specify either signed or unsigned most compiler settings will assume the type to be signed, therefore instead of the second declaration above we could have written:


int MyAccountBalance;


with exactly the same meaning (with or without the keyword signed)

An exception to this general rule is the char type, which exists by itself and is considered a different fundamental data type from signed char and unsigned char, thought to store characters. You should use either signed or unsigned if you intend to store numerical values in a char-sized variable.

short and long can be used alone as type specifiers. In this case, they refer to their respective integer fundamental types: short is equivalent to short int and long is equivalent to long int. The following two variable declarations are equivalent:

1
2

short Year;
short int Year;


Finally, signed and unsigned may also be used as standalone type specifiers, meaning the same as signed int and unsigned int respectively. The following two declarations are equivalent:

1
2

unsigned NextYear;
unsigned int NextYear;


To see what variable declarations look like in action within a program, we are going to see the C++ code of the example about your mental memory proposed at the beginning of this section:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

// operating with variables

#include 
using namespace std;

int main ()
{
  // declaring variables:
  int a, b;
  int result;

  // process:
  a = 5;
  b = 2;
  a = a + 1;
  result = a - b;

  // print out the result:
  cout << result;

  // terminate the program:
  return 0;
}
4


Do not worry if something else than the variable declarations themselves looks a bit strange to you. You will see the rest in detail in coming sections.

by : c++

Fundamental data types

When programming, we store the variables in our computer's memory, but the computer has to know what kind of data we want to store in them, since it is not going to occupy the same amount of memory to store a simple number than to store a single letter or a large number, and they are not going to be interpreted the same way.

The memory in our computers is organized in bytes. A byte is the minimum amount of memory that we can manage in C++. A byte can store a relatively small amount of data: one single character or a small integer (generally an integer between 0 and 255). In addition, the computer can manipulate more complex data types that come from grouping several bytes, such as long numbers or non-integer numbers.

Next you have a summary of the basic fundamental data types in C++, as well as the range of values that can be represented with each one:





* The values of the columns Size and Range depend on the system the program is compiled for. The values shown above are those found on most 32-bit systems. But for other systems, the general specification is that int has the natural size suggested by the system architecture (one "word") and the four integer types char, short, int and long must each one be at least as large as the one preceding it, with char being always one byte in size. The same applies to the floating point types float, double and long double, where each one must provide at least as much precision as the preceding one.

by : c++

Identifiers

A valid identifier is a sequence of one or more letters, digits or underscore characters (_). Neither spaces nor punctuation marks or symbols can be part of an identifier. Only letters, digits and single underscore characters are valid. In addition, variable identifiers always have to begin with a letter. They can also begin with an underline character (_ ), but in some cases these may be reserved for compiler specific keywords or external identifiers, as well as identifiers containing two successive underscore characters anywhere. In no case they can begin with a digit.

Another rule that you have to consider when inventing your own identifiers is that they cannot match any keyword of the C++ language nor your compiler's specific ones, which are reserved keywords. The standard reserved keywords are:


asm, auto, bool, break, case, catch, char, class, const, const_cast, continue, default, delete, do, double, dynamic_cast, else, enum, explicit, export, extern, false, float, for, friend, goto, if, inline, int, long, mutable, namespace, new, operator, private, protected, public, register, reinterpret_cast, return, short, signed, sizeof, static, static_cast, struct, switch, template, this, throw, true, try, typedef, typeid, typename, union, unsigned, using, virtual, void, volatile, wchar_t, while


Additionally, alternative representations for some operators cannot be used as identifiers since they are reserved words under some circumstances:


and, and_eq, bitand, bitor, compl, not, not_eq, or, or_eq, xor, xor_eq


Your compiler may also include some additional specific reserved keywords.

Very important: The C++ language is a "case sensitive" language. That means that an identifier written in capital letters is not equivalent to another one with the same name but written in small letters. Thus, for example, the RESULT variable is not the same as the result variable or the Result variable. These are three different variable identifiers.

Variables. Data Types

The usefulness of the "Hello World" programs shown in the previous section is quite questionable. We had to write several lines of code, compile them, and then execute the resulting program just to obtain a simple sentence written on the screen as result. It certainly would have been much faster to type the output sentence by ourselves. However, programming is not limited only to printing simple texts on the screen. In order to go a little further on and to become able to write programs that perform useful tasks that really save us work we need to introduce the concept of variable.

Let us think that I ask you to retain the number 5 in your mental memory, and then I ask you to memorize also the number 2 at the same time. You have just stored two different values in your memory. Now, if I ask you to add 1 to the first number I said, you should be retaining the numbers 6 (that is 5+1) and 2 in your memory. Values that we could now for example subtract and obtain 4 as result.

The whole process that you have just done with your mental memory is a simile of what a computer can do with two variables. The same process can be expressed in C++ with the following instruction set:

a = 5;
b = 2;
a = a + 1;
result = a - b;

Obviously, this is a very simple example since we have only used two small integer values, but consider that your computer can store millions of numbers like these at the same time and conduct sophisticated mathematical operations with them.

Therefore, we can define a variable as a portion of memory to store a determined value.

Each variable needs an identifier that distinguishes it from the others. For example, in the previous code the variable identifiers were a, b and result, but we could have called the variables any names we wanted to invent, as long as they were valid identifiers.

http://www.cplusplus.com/doc/tutorial/variables/

02 November 2009

Structure of a program

Probably the best way to start learning a programming language is by writing a program. Therefore, here is our first program:

// my first program in C++

#include <iostream>
using namespace std;

int main ()
{
cout << "Hello World!";
return 0;
}



Hello World!



The first panel (in light blue) shows the source code for our first program. The second one (in light gray) shows the result of the program once compiled and executed. To the left, the grey numbers represent the line numbers - these are not part of the program, and are shown here merely for informational purposes.

The way to edit and compile a program depends on the compiler you are using. Depending on whether it has a Development Interface or not and on its version. Consult the compilers section and the manual or help included with your compiler if you have doubts on how to compile a C++ console program.

The previous program is the typical program that programmer apprentices write for the first time, and its result is the printing on screen of the "Hello World!" sentence. It is one of the simplest programs that can be written in C++, but it already contains the fundamental components that every C++ program has. We are going to look line by line at the code we have just written:

// my first program in C++

This is a comment line. All lines beginning with two slash signs (//) are considered comments and do not have any effect on the behavior of the program. The programmer can use them to include short explanations or observations within the source code itself. In this case, the line is a brief description of what our program is.
#include <iostream>

Lines beginning with a hash sign (#) are directives for the preprocessor. They are not regular code lines with expressions but indications for the compiler's preprocessor. In this case the directive #include <iostream> tells the preprocessor to include the iostream standard file. This specific file (iostream) includes the declarations of the basic standard input-output library in C++, and it is included because its functionality is going to be used later in the program.
using namespace std;

All the elements of the standard C++ library are declared within what is called a namespace, the namespace with the name std. So in order to access its functionality we declare with this expression that we will be using these entities. This line is very frequent in C++ programs that use the standard library, and in fact it will be included in most of the source codes included in these tutorials.
int main ()

This line corresponds to the beginning of the definition of the main function. The main function is the point by where all C++ programs start their execution, independently of its location within the source code. It does not matter whether there are other functions with other names defined before or after it - the instructions contained within this function's definition will always be the first ones to be executed in any C++ program. For that same reason, it is essential that all C++ programs have a main function.

The word main is followed in the code by a pair of parentheses (()). That is because it is a function declaration: In C++, what differentiates a function declaration from other types of expressions are these parentheses that follow its name. Optionally, these parentheses may enclose a list of parameters within them.

Right after these parentheses we can find the body of the main function enclosed in braces ({}). What is contained within these braces is what the function does when it is executed.
cout << "Hello World!";

This line is a C++ statement. A statement is a simple or compound expression that can actually produce some effect. In fact, this statement performs the only action that generates a visible effect in our first program.

cout is the name of the standard output stream in C++, and the meaning of the entire statement is to insert a sequence of characters (in this case the Hello World sequence of characters) into the standard output stream (cout, which usually corresponds to the screen).

cout is declared in the iostream standard file within the std namespace, so that's why we needed to include that specific file and to declare that we were going to use this specific namespace earlier in our code.

Notice that the statement ends with a semicolon character (;). This character is used to mark the end of the statement and in fact it must be included at the end of all expression statements in all C++ programs (one of the most common syntax errors is indeed to forget to include some semicolon after a statement).
return 0;

The return statement causes the main function to finish. return may be followed by a return code (in our example is followed by the return code with a value of zero). A return code of 0 for the main function is generally interpreted as the program worked as expected without any errors during its execution. This is the most usual way to end a C++ console program.



You may have noticed that not all the lines of this program perform actions when the code is executed. There were lines containing only comments (those beginning by //). There were lines with directives for the compiler's preprocessor (those beginning by #). Then there were lines that began the declaration of a function (in this case, the main function) and, finally lines with statements (like the insertion into cout), which were all included within the block delimited by the braces ({}) of the main function.

The program has been structured in different lines in order to be more readable, but in C++, we do not have strict rules on how to separate instructions in different lines. For example, instead of

int main ()
{
cout << " Hello World!";
return 0;
}

We could have written:

int main () { cout << "Hello World!"; return 0; }

All in just one line and this would have had exactly the same meaning as the previous code.

In C++, the separation between statements is specified with an ending semicolon (;) at the end of each one, so the separation in different code lines does not matter at all for this purpose. We can write many statements per line or write a single statement that takes many code lines. The division of code in different lines serves only to make it more legible and schematic for the humans that may read it.

Let us add an additional instruction to our first program:

// my second program in C++

#include <iostream>

using namespace std;

int main ()
{
cout << "Hello World! ";
cout << "I'm a C++ program";
return 0;
}

Hello World! I'm a C++ program

In this case, we performed two insertions into cout in two different statements. Once again, the separation in different lines of code has been done just to give greater readability to the program, since main could have been perfectly valid defined this way:

int main () { cout << " Hello World! "; cout << " I'm a C++ program "; return 0; }

We were also free to divide the code into more lines if we considered it more convenient:

int main ()
{
cout <<
"Hello World!";
cout
<< "I'm a C++ program";
return 0;
}

And the result would again have been exactly the same as in the previous examples.

Preprocessor directives (those that begin by #) are out of this general rule since they are not statements. They are lines read and processed by the preprocessor and do not produce any code by themselves. Preprocessor directives must be specified in their own line and do not have to end with a semicolon (;).

Comments

Comments are parts of the source code disregarded by the compiler. They simply do nothing. Their purpose is only to allow the programmer to insert notes or descriptions embedded within the source code.

C++ supports two ways to insert comments:

// line comment
/* block comment */

The first of them, known as line comment, discards everything from where the pair of slash signs (//) is found up to the end of that same line. The second one, known as block comment, discards everything between the /* characters and the first appearance of the */ characters, with the possibility of including more than one line.
We are going to add comments to our second program:


/* my second program in C++
with more comments */

#include <iostream>
using namespace std;

int main ()
{
cout << "Hello World! "; // prints Hello World!
cout << "I'm a C++ program"; // prints I'm a C++ program
return 0;
}

Hello World! I'm a C++ program


If you include comments within the source code of your programs without using the comment characters combinations //, /* or */, the compiler will take them as if they were C++ expressions, most likely causing one or several error messages when you compile it.

by : c++

Instructions for use (C++)

To whom is this tutorial directed?
This tutorial is for those people who want to learn programming in C++ and do not necessarily have any previous knowledge of other programming languages. Of course any knowledge of other programming languages or any general computer skill can be useful to better understand this tutorial, although it is not essential.

It is also suitable for those who need a little update on the new features the language has acquired from the latest standards.

If you are familiar with the C language, you can take the first three parts of this tutorial as a review of concepts, since they mainly explain the C part of C++. There are slight differences in the C++ syntax for some C features, so I recommend you its reading anyway.

The 4th part describes object-oriented programming.

The 5th part mostly describes the new features introduced by ANSI-C++ standard.

Structure of this tutorial
The tutorial is divided in six parts, and each part is divided on its turn into different sections covering a topic each one. You can access any section directly from the section index available on the left side bar, or begin the tutorial from any point and follow the links at the bottom of each section.

Many sections include examples that describe the use of the newly acquired knowledge in the chapter. It is recommended to read these examples and to be able to understand each of the code lines that constitute it before passing to the next chapter.

A good way to gain experience with a programming language is by modifying and adding new functionalities on your own to the example programs that you fully understand. Don't be scared to modify the examples provided with this tutorial, that's the way to learn!

Compatibility Notes
The ANSI-C++ standard acceptation as an international standard is relatively recent. It was first published in November 1997, and revised in 2003. Nevertheless, the C++ language exists from a long time before (1980s). Therefore there are many compilers which do not support all the new capabilities included in ANSI-C++, especially those released prior to the publication of the standard.

This tutorial is thought to be followed with modern compilers that support -at least on some degree- ANSI-C++ specifications. I encourage you to get one if yours is not adapted. There are many options, both commercial and free.

Compilers
The examples included in this tutorial are all console programs. That means they use text to communicate with the user and to show their results.

All C++ compilers support the compilation of console programs. Check the user's manual of your compiler for more info on how to compile them.

by : http://www.cplusplus.com/doc/tutorial/introduction/

PHP programming

PHP is a programming language that is relatively easy to learn because it is very flexible and does not require strict rules in the writing program. Well, to be able to learn at least you should understand some basic things first. We begin with the sequence of science that should be mastered first.

Ordering Learning PHP Programming

First, you must be familiar with the Internet. This is obligatory and mandatory, because PHP is a programming language intended for programming on the internet. Consider these examples have a dynamic website you browse and you would have seen that interactive web applications is very varied and useful. By looking at the many examples that exist, then you will be more creative

If you've used the internet, you must first understand the workings of the Internet programming. You can start by learning how a web page can appear on your computer screen from a web server that is located deep in the other hemisphere. One good source is w3school.org check that out!


Having no idea about how the Internet, you can start to learn HTML programming used to create static web pages. You need to master HTML view for the beauty of this web site are you going to make. Complete your knowledge with other disciplines such additional CSS that will make you easy to change the look of your website in a short time.


If it was mature enough in HTML, you've can start your walk to learn PHP programming. This will provide new capabilities to the web site that you created the interactive nature of the visitors your web site. As one source, you can learn php in the existing tutorial on this site.

Well, when you've started to learn PHP programming, you will get to a point where you will need a database. This database allows you to create your web site more useful again is to make you can save data to and from your web site visitors in large numbers and displays them more easily.


Ok, when it reached this stage, you've smoothly all the basic skills to create a web site. Next you stay honed skills you've got a lot of studying existing script. You can even create a sophisticated PHP programs without the need to write any code from scratch. Use an existing script to help you make web site development with PHP you much more quickly. hotscripts.com visit the web site as one of your sources, and in various forums aktiflah existing PHP.

01 November 2009

Contoh Array menghitung huruf vokal (Java)

Menghitung huruf vokal dan konsonan pada java
 
public class tugas3
{
    public static void main(String[]args)
    {
        int a,c,d,e;
        c=0;d=0;e=0;
        String kalimat="Pada hari ini saya belajar matakuliah Pemrograman Berorentasi Objek, materi yang di bahas yaitu tentang Array";
        char[]b=kalimat.toCharArray();
        for(a=0;a
        {
            System.out.print(b[a]);
            if(b[a]=='a'||b[a]=='i'||b[a]=='u'||b[a]=='e'||b[a]=='o')
            {
                c=c+1;
            }
            else if(b[a]==' ')
            {
                d=d+1;
            }
            else
            {
                e=e+1;
            }

        }
        System.out.println("\n\nKarakter yang dihitung adalah");
        System.out.println("Jumlah huruf vokal      :"+c);
        System.out.println("Jumlah konsonan         :"+e);
        System.out.println("Jumlah Spasi            :"+d);
    }
}
By : Eduard

Perpustakaan (java)

Contoh program perpustakaan dengan mengunakan java...

public class tugasPerpustakaan
{
public static void main(String[]args)
{
String dataInput;
int biaya, denda, jumlah;
System.out.println("========================================");
System.out.println(" SISTEM PERPUSTAKAAN ");
System.out.println("========================================\n");
System.out.println("Pilih Kategori : \n");
System.out.println("1. Buku Teks");
System.out.println("2. Kamus");
System.out.println("3. Majalah\n");
System.out.print("Kategori yang dipilih [1-3]: ");
dataInput = InputKeyboard.InputString();
System.out.println("");

int pilih = Integer.valueOf(dataInput).intValue();
switch(pilih)
{
case 1 :
System.out.println(" DAFTAR BUKU \n");
System.out.println("1. Membuat Aplikasi Profesional dengan JAVA \n");
System.out.println("2. 36 Jam Mahir Visual Basic 6.0 \n");
System.out.println("3. Microsoft SQL Sever 2005 \n");
System.out.println("4. Membuat macam-macam kartu dengan Photoshop \n");
System.out.println("5. Jaringan SOHO \n");
break;
case 2 :
System.out.println(" DAFTAR KAMUS\n");
System.out.println("1. English for Computer \n");
System.out.println("2. English for Kidz \n");
System.out.println("3. Belajar Bahasa Mandarin \n");
System.out.println("4. Kamus Bahasa Indonesia \n");
System.out.println("5. Kamus Bahasa Inggris \n");
break;
case 3 :
System.out.println(" DAFTAR MAJALAH \n");
System.out.println("1. CHIP edisi Januari 2008 \n");
System.out.println("2. INFO KOMPUTER edisi Januari 2008 \n");
System.out.println("3. EASY edisi Januari 2008 \n");
System.out.println("4. DIGITAL IMAGING edisi Januari 2008 \n");
System.out.println("5. KOMPUTER AKTIF edisi Januari 2008 \n");
break;
default:
System.out.println("Silahkan Pilih Kategori Koleksi Buku, Kamus atau Majalah \n");
break;
}
System.out.print("Data Anda akan Pilih ? : ");
dataInput = InputKeyboard.InputString();
System.out.println("Koleksi Yang Anda ingin pinjam adalah : "+dataInput+" \n");
System.out.print("Lama Pinjam (Jumlah Hari) : ");
dataInput = InputKeyboard.inputString();
System.out.println("");

int lama = Integer.valueOf(dataInput).intValue();
if(lama > 7){
if (pilih==1){
biaya = 2000;
}else if (pilih==2){
biaya = 3000;
}else{
biaya = 1000;
}
denda = (lama-7) * 500;
}else{
if (pilih==1){
biaya = 2000;
}else if (pilih==2){
biaya = 3000;
}else{
biaya = 1000;
}
denda =0;
}

System.out.println("Biaya yang harus Anda Bayar : Rp. "+biaya);
System.out.println("Denda : Rp. "+denda);
jumlah = biaya + denda;
System.out.println("");
System.out.println("Total Biaya yang harus dibayar : Rp. "+jumlah);
System.out.println("");
}
}

contoh penggunaan do-while

dalam c++ struktur repetisi/pengulangan ad beberapa macam, sekarang yang mau ku bahas adalah dengan do-while,. perhatikan contoh berikut,.,.!!!..

#include
void main()
{
    char nama[25],p,jur[20],topik[100],gol[10],nim[20],noUrut[20],jam[20];

    do
        {
             cout<<"masukkan No Urut anda : ";cin.getline(noUrut,sizeof noUrut);
            cout<<"masukkan Nim : ";cin.getline(nim, sizeof nim);
            cout<<"masukkan Nama : ";cin>>nama;
            cout<<"masukkan Jurusan : ";cin>>jur;
            cout<<"masukkan Jam Kuliah : ";cin>>jam;
            cout<<"Topik : ";cin>>topik;
            cout<<"Golongan Darah : ";cin>>gol;
            cout<<"apakah anda yakin akan keluar??. (y/n) : ";cin>>p;

        }

    while (p!='y');
}

Cara Memikat Hati Wanita #2

bagia pertama tentang percaya diri, sekarang coba perhatikan tentang bagaimana kamu mamperlakuakan hati wanita, jika seorang hawa menginginkan sesuatu apakah anda pria akan memberinya???.. lakuakan apa yang menjadi kebutuhan wanita itu, ingat kebutuhan, bukan keinginannya, karena berbeda jika kita menuruti kebutuhan si hawa dengan menuruti kebutuhan si hawa, contohnya jika si hawa meminta makan, lakukanlah itu, karena itu adalah bagian dalam dirinya, untuk menjaga kesehatannya, contoh lain, si hawa meminta kalung emas, 20 Kg, nah kalian para lelaki jangan tertipu, hehe,. jika kalian banyak uang pun jangan sekali-sekali menuruti keninginanya yang negatif itu, bagaimana cara kita menagetahiu keninginan atau kebutuhan yang diperlukan si hawa, coba perhatikan gerak-grik wanita itu, seperti contoh diatas, yang menjadi kebutuhan tentuanya si hawa akan merasakan dahulu sebelumnya yang dia butuhi, jika dia meminta makan maka dia akan merasa lapar terlebih dahulu, dan meminta minum jika haus, dan seterusnya, nah yang manjadi keinginan adalah biasanya yang sifatnnya memaksa, dan harus terpenuhi, contoh gara-gara melihat tetangganya mamakai kalung emas, makan hawa ingin mamilikinya, bandingkan sendiri ya pria-pria...

INI TIPS KEDUA DARI SAYA

Cara Memikat Hati Wanita

banyak hal yang harus kita punya sebagai laki-laki untuk memikat hati wanita,. kadang kita ngerasa sulit untuk memikat hati wanita, saya memberikan beberapa tips n trik gmana cara memikat hati wanita, hal ini sudah pernah saya alami sebelumnya,.
sebagai laki-laki kadang kita mengasihani diri, kita anggap diri kita lebih buruk dari orang lain, komersil kita lebih buruk dari orang lain,. itu semua bukan halangan untuk kita memikat hati wanita, banyakan memang semua hari" ini memikirkan hal yang namanya uang, uang dan uang, ni jadi senjata utama buat kamu hai kaum lelaki untuk bisa memikat hati wanita, senjata lainnya adl percaya diri, inget percaya diri bukan ketampanan, ketanpanan bisa di kalahkan dengan percaya diri, coba bayangkan jika seorang ganteng roger danuarta kl bliau gak punya percaya diri maka gak bisa menampilkan ketampanannya, dan orang" juga enggan untuk manilai bahawa dia ganteng/tampan, yaaa,. karena kl kita masih memiliki percaya diri yang rendah maka kita gak akan bisa menunjukan kelebihan kita, itu juga gak akan menambah poling positif bagi wanita untuk diri kita... 
perhatikan percaya diri kamu para pria, n cari tau jg ap yang menjadi kelemahan wanita yang kamu ingin jadikan pendaping hidup kamu, kesukaan, hoby, dll, krn dari situ setiap apa yang kita berikan n kita ketahui tentang dia, maka gak sulit lagi bagi kaum lelaki untuk mengungkapkan isi hati, dan menawarkan diri untuk menjadi pendamping hidup di hawa,.  

DEMIKIAN INFONYA SEMOGA BERMANFAAT....

Tags

10 fakta unik 12-12-2012 17 + 5 fakta unik 6 fakta unik 7 fakta unik 8 fakta unik 9 fakta unik adegan ranjang ajaib akhir zaman alien alien di bumi aljabar linear all about cinta aneh anime antivirus artis barat artis china artis dalam negri artis dunia artis hot artis india artis jepang artis lucu artis pendatang baru award babi aneh banci banten Belajar PHP bencong berita berita dewasa berita indonesia berita terbaru berita unik bertta bintang film porno bintang porno jepang blog tutorial bocah unik boneka terseram buaya panjang 12 m C++ cantik cari uang mudah cewek cantik cewek facebook cewek nekat cewek panggilan cewek rusia Cheerleader Contact curhat dapat uang 10 - 15 juta perbulan. desa terapung desain unik dewasa djarum black competition f facebook fb cewek cantik fenomena alam film film indonesia finalis miss indonesia 2013 foto artis foto HOT foto lucu foto panas foto unik ga gadis gadis cantik gambar artis lokal gambar artis luar gambar berbahaya gambar HOT gambar lucu gambar sexy gambar unik game game indonesia game seru hack handphone terbaru hewan aneh hewan berbahaya hewan unik honey moon Hujan yang aneh indonesia unik IT jadul jav java jepang jepang unik jual septic tank kamus bencong kamus waria kanibal karya unik keajaiban Tuhan keanehan dunia keberadaan alien kelakuan pria kesehatan keunikan alam keunikan hewan keunikan manusia kiamat kiamat 2012 koleksi foto tasya djerli komputer kota terunik kota unik kreatif kucing berdoa kuliner lab Algoritma laptop jadul lirik lagu lorong waktu luar biasa luna maya maho makanan makanan aneh makanan unik manusia hebat manusia liliput manusia raksasa manusia unik maria ozawa materi kuliah mengapa pesawat sukhoi jatuh? pramugari pesawat sukhoi mengerikan Mesin waktu mey meydiana sari miss banten miss indonesia miss indonesia 2013 miss indonesia meydi misteri mistis motivasi nekat payudara penampakan alien Penemuan pengetahuan umum penghargaan nobel penghasilan penyakit aneh penyebab pesawat sukhoi jatuh perwakilan banten pesawat sukhoi pesawat sukhoi jatuh pohon aneh pria maho ramalan dunia ramalan kiamat renungan reseller rin sakuragi rohani rumah unik sejarah sejarah windows selebritis septic tank septic tank biological septic tank fiberglas septic tank modern septic tank murah septictank bio seputar hantu seram sora aoi spiteng fiber spiteng fibreglass tahukah anda tangki septic tank tato 3D teknologi terbaru tikus jadi ayam tips and trik blog tips kesehatan tips unik tumbuhan unik tutorial facebook unik unik-unik video porno waria windows 8 wisata kuliner

TaTTiTTuT Blog Copyright © 2011 | Template created by O Pregador | Powered by Blogger