Kamis, 20 September 2012

10 Places Favorite Destination Nature in Australia

Australia is an exotic country in the world. Evidently, one Australian tourist destinations in the list of nominees for the New 7 Wonders of Nature from 259 nominees submitted 222 countries. Any natural exoticism Australia?

Despite failing to place the tourist attraction it one category of natural wonders of the world, there are at least 10 places that became favorite tourist destination during a visit to Australia. Check out some favorite places in question, such as dikutipCNNGo.

1. Great Barier Reef


Great Barrier Reef is the largest collection of coral in Australia. The number reached 400 species of coral. Extends for 3,000 kilometers near the coast of Queensland. There are an estimated 1,500 species of fish live there. His condition is very beautiful. That said, the existence of these reefs have been around 25 million years ago.

2. Uluru





Uluru is a sacred site for the indigenous Anangu people. Locals asked people not to climb the rock monoliths located 450 kilometers southwest of Alice Springs in the Kata-Tjuta National Park Uluru. This place has an area of ​​approximately 9.4 kilometers. Its presence is becoming increasingly popular with the color changing monolith.

3. Shark Bay



Was located about 800 kilometers north of Perth, Australia. Shark beaches have white sand dunes along the 1,500 kilometers. At this location there are also limestone and a very high cliff. In the bay there are a bunch of mermaids. Here too there are dolphins, sea grass, and more.

4. The Pinnacles


The place is said to have been around 30 thousand years ago when the sea receded and left a variety of legacy on the beach. The Pinnacles in Nambung National Park, and is a comfortable home for the gray kangaroo and a variety of reptiles.

5. Twelve Apostles


It is a collection of limestone, and is located off the coast of Victoria. However, given the waning presence of erosion continues to occur. When given the name of the Twelve Apostles (12 limestone), the rest is left only nine. However, now there are only eight.

6. McKenzie Waterfall


This waterfall is the highest in the Grampians Park, Melbourne. The place is also a convenient place for kangaroo. The height reached 30 meters. At certain times, the public can see the rainbow.


7. Fraser Island



Fraser Island is the largest sand island in the world. Length of approximately 123 kilometers and 22 kilometers wide reach. There's also the rainforest with hundreds of animals.

8. Kakadu



The extent of 20 thousand square kilometers. Here there are about 1,700 species of plants with thousands of other biodiversity. Kakadu is located approximately 171 kilometers southeast of Darwin.

9. Blue Mountains



Blue Mountains is located in the west of Sydney. There are gum trees and eucalyptus that grows prolifically.

10. Bungle Bungles




Bungle Bungles is a collection of sandstone that is formed is estimated at 350 million years ago. The height reaches 578 meters. Here, a group of mammals and animal life unique wildlife.


»»  READMORE...

Rabu, 19 September 2012

Unforgettable Experience


          My name is Septian Eka Ady Buananta , I come from Pati, Central Java. I will tell you about an experience I can not forget until now.
At that time I had lived in this poor just a few months. Surely I do not know much about this city, but my friend invited me on a ride motorcycles that have been borrowed from her father boarding.
19:00 o'clock, we went straight off. Our point is only going to be around Sawojajar alone, but instead we got toward the city.
Unfortunately we did not bring a helmet, vehicle registration, driver's license, ID card, and also the only one mirror only.
When passing through a police checkpoint at a red light accidentally cop looked at us.
Then quickly motorcycle policeman chasing us.
We were instantly shocked, scared and rush my friend ran away quickly. I can not imagine it quickly turned out the police chase us because he was right behind me.
we both panicked but immediately I rack my brain, how can escape from the police.
Finally I got an idea, that I told my friend to turn to MC Donald, so if we get caught we pretend say that we will be looking for our parents.
Fortunately the police had lost track of us, we immediately hurried look for shortcuts to get to this Sawojajar. And with very tense Sawojajar we can get to safely.
until now I still can not get over it. Because it makes my heart seemed almost detached.

             But now it's all going to be a very important lesson for me.
From now on I will obey all traffic signs.
Indeed there is some truth in the police said that we were told to pay more attention to all the rules and regulations of the traffic.
I shared my experience is that you do not imitate my actions were very sloppy this.
»»  READMORE...

Sabtu, 08 September 2012

Menu Converting numbers in PHP

Hello guys!

I'm here about the making of the program will explain the conversion of numbers in php.
Where at first view appears web log, or so-called validator program, after the click 'go' he would immediately open the web converter combination.
This coding set of global variables, the name of the input variables, input gender, and check whether the data has been loaded correctly or not.




1. First we have to do is open up NetBeans.
2. Next create a new project with the name 'a.php'.
3. After that, write a script like this and you may modify according to the liver.



<?php
if(isset($_POST['submit'])){//isset : penekanan form
$nama=$_REQUEST['nama'];
    if(isset($_POST['gender'])){
        $gender=$_REQUEST['gender'];
    }
    else{
        $gender='';
    }
$cek='';
}
else{
    $nama='';
    $gender='';
    $cek='Silahkan Isi Form Di Bawah ini Dahulu, Sebelum Masuk ke Konverter';
}
?>

4. Furthermore, to set the display, please fill in the following css code between the head tags.


<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Konversi Bilangan ke Biner,Oktal,Hexa</title>
                <style type="text/css">
            body{
                background: url('windows-7-wallpaper.jpg') no-repeat;
            }
            .a{                               
                font-family: Gill Sans MT;
                padding-top: 5%;
                padding-left: 65%;
                padding-right: 5%;
                color: orange;
                text-align: center;
            }
            .b{    
                 font-family: Gill Sans MT;
                color:blue;
                text-align: center;
            }
            form {
                 padding-bottom: 40%;
                padding-left: 65%;
                padding-right: 5%;
            }
            form input.highlight{
                background: blue;                
                border-radius:5px;
                padding: 5px;
            }
            form input.highlight:focus {                
                background: whitesmoke;
                border-radius:5px;
                box-shadow:2px 2px 5px orange;
            }
        </style>
    </head>

5. Furthermore enter the following code to set the login web design.



<body>
        <div>
       <h2 class='a'><?php echo $cek ?></h2>
        </div>
<br>
        <form action="b.php" method="post" name="form1">
            <p>
<h3 class='b'>
Nama : <input class='highlight' placeholder="Nama kamu siapa ?" required="required" type="text" name="nama" size ="30" value="<?php echo $nama ?>"/></h3>
</p>
<p>
<h3 class='b'>
Pastikan Jenis Kelamin ada : <br>
                <input type="radio" name="gender" value="L"
                               <?php ($gender=="L")? print 'checked=""' : print ''; ?>/>
                Laki-Laki<br>
                <input type="radio" name="gender" value="P"
                       <?php ($gender=="P")? print 'checked=""' : print ''; ?>/>
                Perempuan
            </h3>
</p>
<center><input type="submit" name="submit" value="Masuk"></center>
        </form>
    </body>
</html>


6. That way, the a.php as web validator is complete.
                                 
             Now it makes b.php webpage, and here are the steps.

1. Create a new php web page, give it a name that will be web b.php converter combination.
2. Fill in the following code above the html code, to set the global variables php program, the decimal input and conversion options.


<?php
if(isset($_POST['submit1'])){
$decimal=$_REQUEST['decimal'];
    if(isset($_POST['pilih'])){
        $pilih=$_REQUEST['pilih'];
    }
    else{
        $pilih='';
    }
}
else{
    $decimal='';
    $pilih='';
}
?>

3. Next enter the following code, the display manager (css) from b.php.


<html>
    <head>
                <style type="text/css">
            body{
                background:url('windows-7-wallpaper.jpg');
            }
            .ab{                               
                font-family: Gill Sans MT;
                padding-top: 5%;
                padding-left: 65%;
                padding-right: 5%;
                color: orange;
                text-align: center;
            }
            .abc{                               
                font-family: Gill Sans MT;
                padding-top: 1%;
                padding-left: 65%;
                padding-right: 5%;
                color: orange;
                text-align: center;
            }
            a {
                              
                font:18px;
                font-weight: bold;
                color: white;
                text-align: center;
                padding: 10px;
                border-radius: 12px;                
                -webkit-border-radius: 12px;
                background: lightblue;                
            }
            a:hover{
                background: orange;
            }
            a:active{
                color: #990000;
            }
            form {
                 padding-bottom: 0%;
                padding-left: 65%;
                padding-right: 5%;
            }
            .b{
                color: lightgreen;                                
            }
            
                .bayangan1{                               
                font-family:Calibri;
                font-weight:bold;
                color:blue;
            }
            form input.highlight{
                background: aquamarine;                
                border-radius:5px;
                padding: 5px;
            }
            form input.highlight:focus {
                border: solid 1px #D9AD00;                
                border-radius:5px;
                box-shadow:2px 2px 5px blue;
            }
        </style>

        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>

4. Further input the following code to set the appropriate gender welcome input.

<h1 class="ab">
Selamat Datang di Tempat Konversi Bilangan</h1>
<table border="0" width="900px" heigh="900px" align ="center">
<tr>
    <td class="abc">
    <!-- Proses Pilih Gender dari file Validator.php -->
    <?php
        if(isset ($_POST['submit'])){
            $nama=$_REQUEST['nama'];
            if(isset($_POST['gender'])){
                $gender=$_REQUEST['gender'];
            }
            else{
                $gender='';
            }
        }
        if(isset ($_POST['submit'])){
        if($nama==''|| $gender==''){// tanda || : OR
            echo"<script>
                 alert('Maaf data kurang lengkap ? Isi Nama dan Jenis Kelamin');
                 document.location.href='a.php';
                 </script>";//menggunakan javascript
        }
        else{
            //cek jenis kelamin
            //yang ini pakek petik dua
            if($gender=='L'){
                echo"<br><h1>
Selamat Datang abang $nama !!</h1>
";
                
            }
            else{
                echo"<br><h1>
Selamat Datang nona $nama !!</h1>
";
            }
        }
        }
    ?>
    <!-- End proses pilih Gender -->
    </td>
    </tr>
</table>

5. After that, insert the following code to set the look and function of the converter combination.



<table border="0" width="900px" heigh="900px" align ="center" class='bayangan1'>
<tr> 
    <td align ="center">
    <p>
<form action="<?php echo $_SERVER['PHP_SELF']; ?>
"
          method="POST" name="form1">
        <h2>
 Tuliskan nilai bilangan Desimal nya : </h2>
<input class='highlight' placeholder="Masukkan Bilangan Desimal disini" required="required" type="text" name="decimal" size ="25" value="<?php echo $decimal ?>"/><br>
        <h2>
Mau Convert ke ?? <br>
        <input type="radio" name="pilih" value="B"
               <?php ($pilih=="B")? print 'checked=""' : print ''; ?>/>
        Biner<br>
        <input type="radio" name="pilih" value="H"
               <?php ($pilih=="H")? print 'checked=""' : print ''; ?>/>
        Hexa<br>
         <input type="radio" name="pilih" value="O"
               <?php ($pilih=="O")? print 'checked=""' : print ''; ?>/>
        Oktal<br>
        </h2>
<input type="submit" name="submit1" value="Convert"><br>
    </form>
    <!-- Proses Konversi -->
        <?php
        if(isset($_POST['submit1'])){//isset : penekanan form
        $decimal=$_REQUEST['decimal'];
            if(isset($_POST['pilih'])){
                $pilih=$_REQUEST['pilih'];
            }   
            else{
                $pilih='';
            }
        }
        else{
            $decimal='';
            $pilih='';
        }
        if(isset ($_POST['submit1'])){
        if($decimal==''|| $pilih==''){
            echo"<script>alert('Silahkan pilih dahulu konversi apa yang akan anda lakukan..')</script>";//menggunakan javascript
        }
        else{
            if($pilih=='B'){
            //Konversi ke Biner
            if (isset($_POST['decimal'])) {
                $decimal = $_POST['decimal'];
                $original = $_POST['decimal'];
                $binary = '';
                if (preg_match('/[^0-9]/',$decimal)) {
                        die ("Yang anda inputkan salah, seharusnya anda menginputkan bilangan desimal saja..");
                }
                else {
                    while ($decimal > 0) {
                        if ($decimal%2 == 0) {
                            $binary .= 0;
                            $decimal /= 2;
                        }
                        else {
                            $binary .= 1;
                            $decimal = ($decimal/2)-0.5;
                        }
                    }
                    $result = strrev($binary);
                    echo "<br><h2>
Bilangan decimal : $original jika dijadikan Biner hasilnya adalah $result.</h2>
";
                    }
                }
                else {

                }
            }
            else{
                    if($pilih=='H'){
                    //Konversi ke Hexa
                        if(isset($_POST['decimal'])){
                        $des=$_POST['decimal'];
                        $original=$_POST['decimal'];
                        $hex='';
                        while ($des>0){
                        $hasil=$des%16;
                            switch($hasil){
                            case 0 : $hex.="0"; break;
                            case 1 : $hex.="1"; break;
                            case 2 : $hex.="2"; break;
                            case 3 : $hex.="3"; break;
                            case 4 : $hex.="4"; break;
                            case 5 : $hex.="5"; break;
                            case 6 : $hex.="6"; break;
                            case 7 : $hex.="7"; break;
                            case 8 : $hex.="8"; break;
                            case 9 : $hex.="9"; break;
                            case 10: $hex.="A"; break;
                            case 11: $hex.="B"; break;
                            case 12: $hex.="C"; break;
                            case 13: $hex.="D"; break;
                            case 14: $hex.="E"; break;
                            case 15: $hex.="F";
                            default:break;
                            }
                                if($des/16==0){
                                $sisa=($des%16);
                                $des=$sisa;
                                }
                                    else{
                                    $sisa=($des/16);
                                    $des=$sisa%16;
                                    }}
                                    $result = strrev($hex);
                                    echo "<br><h2>
Bilangan decimal : $original jika dijadikan Hexadecimal hasilnya adalah $result.</h2>
";
                        }
                    }
                    else{
                        //Konversi ke Oktal
                         if(isset($_POST['decimal'])){
                         $des=$_POST['decimal'];
                         $original=$_POST['decimal'];
                         $octal='';
                         while ($des>0){
                         $hasil=$des%8;
                         switch($hasil){
                         case 0 : $octal.="0"; break;
                         case 1 : $octal.="1"; break;
                         case 2 : $octal.="2"; break;
                         case 3 : $octal.="3"; break;
                         case 4 : $octal.="4"; break;
                         case 5 : $octal.="5"; break;
                         case 6 : $octal.="6"; break;
                         case 7 : $octal.="7";
                         default:break;
                         }
                         if($des/8>0){
                            $sisa=($des/8);
                            $des=$sisa%8;
                            }
                            else{
                            $sisa=($des%8);
                            $des=$sisa;
                            }}
                            $result = strrev($octal);
                            echo "<br><h2>
Bilangan decimal : $original jika dijadikan Oktal hasilnya adalah $result.</h2>
";
                            }
                            else{

                            }
                    }
            }
        }
        }
        echo "<h2>
<a href='a.php'>RESET</a></h2>";
        ?>
    <!-- End proses Konversi -->
    </td>
    </tr>
</table>

    </body>
</html>

6. After that, restart apache on xampp, and shift +6 a.php program, the results of the program: 

Fill in your name and your gender.

then click the login button.

Later the image will appear like this:

Then fed decimal numbers

Click the convert button will appear
Then click reset, try to fill login before the data is not complete, it will display:

It is done, my explanation of the conversion of numbers in php.




»»  READMORE...

Rabu, 05 September 2012

Convert numbers decimal with Java

Welcome to my blog.Back again with my post
This time I will give java post interesting lessons
so check this out ..
convert decimal numbers with java --->


step one, please look coding above
use application the name is Net beans
chect this out....

package Praktek1;

import java.util.Scanner;
import javax.swing.JOptionPane;

public class latihan_konvers {
    //global variable
    static String name;//object
    static String kelamin;
    static int bilDes;//variable

    //fingsi/method rekursi
public static void Biner(int n){
    if(n>1) {Biner(n/2);}
    System.out.print(n%2);
}
public static void Hexa(int n){
    char[] daftarHexa={'0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'};
    int sisaBagi = n%16;
    if(n>0){
        Hexa((n - sisaBagi) / 16);
    }
    System.out.print(daftarHexa[n%16]);
}
public static void Oktal(int n){
    char[] daftarOktal={'0','1','2','3','4','5','6','7'};
    int sisaBagi = n %8;
    if(n>0){
        Oktal((n - sisaBagi) / 8);
        System.out.print(daftarOktal[n%8]);
    }
}
public static void inputDes(){
    System.out.print("Masukkan Bilangan Desimal= ");
    Scanner inputan=new Scanner(System.in);
    bilDes=inputan.nextInt();
    //return bilDes
}
public static void tampilBiner(){
    inputDes();
    System.out.print("Binernya adalah ");
    Biner(bilDes);
}
public static void tampilHexa(){
    inputDes();
    System.out.print("Hexanya Adalah ");
    Hexa(bilDes);
}
public static void tampilOktal(){
    inputDes();
    System.out.print("Oktalnya adalah ");
    Oktal(bilDes);
}
public static int inpBil (){
    System.out.println("=========================================="
            + "\nSelamat datang "+kelamin+" "+name+"");
    System.out.println("Silahkan memilih menu konversi "
            + "Bilangan ke: "+
            "\n1. Biner \n2. Hexa \n3. Oktal \n4. Exit");
    System.out.print("Masukkan Angka Menu= ");
    Scanner inputan=new Scanner(System.in);
    int pilmenu=inputan.nextInt();
    return pilmenu;
}
public static void menU(int pil){
    System.out.println("\033");//clear screen
    switch(pil){
        case 1: tampilBiner(); break;
        case 2: tampilHexa(); break;
        case 3: tampilOktal(); break;
        case 4: System.out.println("Kamsia ya, sudah mampir.");
                System.exit(0); break;//memberikan kondisi FALSE
        default:System.out.println("(Maaf. Pilih angka 1-4 saja!)");
        break;
    }
    System.out.println("\033");//clear screen
}
public static void main(String arg[]){
    name=JOptionPane.showInputDialog("Masukkan nama Anda : ");//menampilkan input dialog untuk memasukkan nama
    //menampilkan Option Dialog untuk memilih jenis kelamin
        String[] choices = {"Perempuan", "Laki-Laki", "WARIA"};

        String Perempuan= "Mbak";
        String Laki= "Mas";
        while (true) {
            int response = JOptionPane.showOptionDialog(
                               null
                             , "Apa jenis kelamin Anda ?"
                             , "Jenis Kelamin"
                             , JOptionPane.YES_NO_OPTION
                             , JOptionPane.QUESTION_MESSAGE
                             , null
                             , choices
                             , "Quit"
                           );
        switch(response){
            case 0 : kelamin = Perempuan;
                break;
            case 1 : kelamin = Laki;
                break;
            case 2:
                System.out.println("maaf gak bisa kalo gak laki laki atau perempuan,silahkan melakukan penetapan kelamin!! ");
                     System.exit(0); break;
        }
    do{
        menU(inpBil());
    }
    while(true);
        }
}
}

                                    click shift+f6. then...

enter your name

choose your gender , for example, "Laki-laki"

If you click on one of the man will appear :


Example write the numbers 1, as shown :


Then insert the decimal number :
and will see the results of binary


To exit, content with the number 4:


and finish ..
That was my post, maybe useful if there is a lack of forgiveness.







»»  READMORE...