<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2327574882685560773</id><updated>2024-09-13T00:40:41.565-07:00</updated><category term="Programming"/><category term="Linux"/><category term="php"/><category term="tipsandtricks"/><category term="android"/><category term="blog"/><category term="codeigniter"/><category term="Catatan Harian P.W"/><category term="SQLite"/><category term="custom title android"/><category term="dropdown android"/><category term="eclipse"/><category term="insert database sqlite"/><category term="java"/><category term="membuat title android"/><category term="spinner"/><category term="title android"/><title type='text'>Blog&#39;e Kang P.W.</title><subtitle type='html'>Salam Wafer.....</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://pwcahyo.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2327574882685560773/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://pwcahyo.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>PW Cahyo</name><uri>http://www.blogger.com/profile/07127917279397769012</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>15</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2327574882685560773.post-2078372954804159437</id><published>2013-01-22T07:27:00.000-08:00</published><updated>2013-05-27T07:11:34.310-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="android"/><category scheme="http://www.blogger.com/atom/ns#" term="insert database sqlite"/><category scheme="http://www.blogger.com/atom/ns#" term="SQLite"/><title type='text'>Insert data SQLITE di Android</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;color: #cc0000; font-size: large;&quot;&gt;Salam Wafer....&lt;/span&gt;&lt;br /&gt;
iseng2 lagi di sore hari,&lt;br /&gt;
dah lama gk posting di blog,&lt;br /&gt;
gara2 maenan skripsing, dapat deadline dari dosen....&lt;br /&gt;
udah diponggal-panggil juga di group fb.&lt;br /&gt;
hey mahasiswa _no_Name_ suruh menghadap.&lt;br /&gt;
hadeh... super sekali bapak dosen, tapi saya tetep suka, berarti dosen pembimbing perhatian sama saya..&lt;br /&gt;
wkwkwk...&lt;br /&gt;
&lt;br /&gt;
udah bercandanya, terusin besok lagi. hehe...&lt;br /&gt;
sekarang cuci kaki terus tidur,... we&#39;eeeee... kok malah mau tidur,&lt;br /&gt;
gk jadi posting ni..&lt;br /&gt;
Jadi om... cuman tidur dulu baru posting, wkwkwk...&lt;br /&gt;
&lt;br /&gt;
SIAPIN JIWA DAN RAGA. hahaha......&lt;br /&gt;
Saya disini pengen buat sedikit tutorial yang kurang berguna bagi para master, kalo bagi saya berguna, cz saya belum master. wkwkwk...&lt;br /&gt;
kasus disini saya pengen membuat sebuah program Android, dan didalam program mobile android tersebut, saya dapat melakukan insert data didalam database SQLITE, &lt;i&gt;inget insert data, untuk edit, delete tunggu tutorial selanjutnya ye... hehe...&lt;/i&gt;&lt;br /&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;&lt;i&gt;Kasusnya menggunakan data mahasiswa, jadi ditutorial ini kita belajar untuk memasukan data mahasiswa kedalam tabel mahasiswa menggunakan SQLite didalam android.&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;i&gt;saya asumsikan temen2 sudah mengerti dan paham akan installing SDK Android, plugin ADT dsbnya.&lt;/i&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;jadi disini kita tinggal codingnya saja.&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;span style=&quot;color: purple;&quot;&gt;1. Siapkan Eclipse, &lt;i&gt;untuk editor saya menggunakan eclipse Indigo&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: purple;&quot;&gt;2. Kalo sudah siap, buka eclipse. kemudian pilih File ---&amp;gt; New ---&amp;gt; Project&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: purple;&quot;&gt;apabila sudah, maka akan keluar window seperti ini :&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://i1127.photobucket.com/albums/l631/insomniart90/Screenshotat2013-01-21213721.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;306&quot; src=&quot;http://i1127.photobucket.com/albums/l631/insomniart90/Screenshotat2013-01-21213721.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Namai project tersebut dengan &lt;span style=&quot;color: #cc0000; font-size: large;&quot;&gt;cahyoDB&lt;/span&gt; kemudian klik next, maka akan dibawa ke tampilan setting develop android, kasus punya saya menggunakan &lt;span style=&quot;color: #38761d;&quot;&gt;&lt;i&gt;android gingerbread ato android 2.3.3&lt;/i&gt;.&lt;/span&gt; Dapat dilihat pada gambar dibawah :&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://i1127.photobucket.com/albums/l631/insomniart90/Screenshotat2013-01-22205657.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;297&quot; src=&quot;http://i1127.photobucket.com/albums/l631/insomniart90/Screenshotat2013-01-22205657.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
sampai tahap ini klik next. maka akan dibawa ketampilan paket. seperti gambar dibawah ini :&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://i1127.photobucket.com/albums/l631/insomniart90/Screenshotat2013-01-21213841.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;306&quot; src=&quot;http://i1127.photobucket.com/albums/l631/insomniart90/Screenshotat2013-01-21213841.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
namai packet tersebut dengan nama &lt;span style=&quot;color: #cc0000; font-size: large;&quot;&gt;cahyo.db.olahdata &lt;/span&gt;centang Create Activity, kemudian klik finish, maka project baru sudah dibuat.&lt;br /&gt;
&lt;span style=&quot;color: purple;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: purple;&quot;&gt;3. Expand project yang baru dibuat tadi, kemudian buat 2 class didalam package cahyo.db.olahdata yang digunakan untuk &lt;i&gt;membuat koneksi dan insert data,&lt;/i&gt; untuk nama class tersebut :&lt;/span&gt;&lt;br /&gt;
DBOpenHelper.java :
&lt;script class=&quot;brush:php&quot; type=&quot;syntaxhighlighter&quot;&gt;
package cahyo.db.olahdata;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteDatabase.CursorFactory;
import android.database.sqlite.SQLiteOpenHelper;

public class DBOpenHelper extends SQLiteOpenHelper{
 public DBOpenHelper(Context context, String name, CursorFactory factory, int version) {
  super(context, name, factory, version);
 }

 @Override
 public void onCreate(SQLiteDatabase db) {
        String createQueryMahasiswa = &quot;CREATE TABLE mhs (_id integer primary key autoincrement, &quot; +
          &quot;nim, nama, jurusan, alamat);&quot;; // _id, nim, nama, jurusan, alamat = kolom tabel       
        
        db.execSQL(createQueryMahasiswa);
        
 }

 @Override
 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
 
 }

}
&lt;/script&gt;
DBConnector.java :&lt;br /&gt;
&lt;script class=&quot;brush:php&quot; type=&quot;syntaxhighlighter&quot;&gt;
package cahyo.db.olahdata;

import android.content.ContentValues;
import android.content.Context;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;

public class DBConnector {

 private static final String DB_NAME = &quot;Mahasiswa.db&quot;;
 private SQLiteDatabase database;
 private DBOpenHelper DBOpenHelper;
 
 public DBConnector(Context context) {
  DBOpenHelper = new DBOpenHelper(context, DB_NAME, null, 1);
 }

 public void open() throws SQLException {
  // open database in reading/writing mode
  database = DBOpenHelper.getWritableDatabase();
 }

 public void close() {
  if (database != null)
   database.close();
 }

 public void insertDataMahasiswa(String nim, String nama, String jurusan, String alamat) {
  ContentValues newCon = new ContentValues();
  newCon.put(&quot;nim&quot;, nim);
  newCon.put(&quot;nama&quot;, nama);
  newCon.put(&quot;jurusan&quot;, jurusan);
  newCon.put(&quot;alamat&quot;, alamat);
  
  open();
  database.insert(&quot;mhs&quot;, null, newCon);
  close();
 } 

}
&lt;/script&gt;&lt;span style=&quot;color: purple;&quot;&gt;4. Apabila kedua class tersebut telah dibuat, selanjutnya adalah membuat tampilan di androidnya.
&lt;/span&gt;&lt;br /&gt;
buka main.xml &amp;nbsp;letak main.xml:&lt;span style=&quot;color: #cc0000;&quot;&gt;cahyoDB --&amp;gt; res --&amp;gt; layout --&amp;gt; main.xml&lt;/span&gt; kemudian isikan source code xml dibawah ini kedalam main. xml&amp;nbsp;&lt;i&gt;sourcode main.xml :&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;script class=&quot;brush:php&quot; type=&quot;syntaxhighlighter&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;scrollview xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
    android:layout_width=&quot;fill_parent&quot;
    android:layout_height=&quot;fill_parent&quot;&gt;
&lt;linearlayout 
    android:layout_width=&quot;fill_parent&quot;
    android:layout_height=&quot;fill_parent&quot;
    android:orientation=&quot;vertical&quot; &gt;

    &lt;TableLayout
        android:layout_width=&quot;fill_parent&quot;
        android:layout_height=&quot;wrap_content&quot;
        android:layout_margin=&quot;5dp&quot;
        android:stretchColumns=&quot;1&quot; &gt;

        &lt;tablerow&gt;

            &lt;TextView
                android:layout_width=&quot;wrap_content&quot;
                android:layout_height=&quot;wrap_content&quot;
                android:text=&quot;@string/labelnim&quot;
                android:textAppearance=&quot;?android:attr/textAppearanceMedium&quot; /&gt;

            &lt;EditText
                android:id=&quot;@+id/nim&quot;
                android:layout_width=&quot;match_parent&quot;
                android:layout_height=&quot;wrap_content&quot; 
                android:hint=&quot;Masukan NIM&quot;&gt;
            &lt;/EditText&gt;
        &lt;/TableRow&gt;
        &lt;tablerow&gt;

            &lt;TextView
                android:layout_width=&quot;wrap_content&quot;
                android:layout_height=&quot;wrap_content&quot;
                android:text=&quot;@string/labelnama&quot;
                android:textAppearance=&quot;?android:attr/textAppearanceMedium&quot; /&gt;

            &lt;EditText
                android:id=&quot;@+id/nama&quot;
                android:layout_width=&quot;match_parent&quot;
                android:layout_height=&quot;wrap_content&quot; 
                android:hint=&quot;Masukan Nama&quot;&gt;
            &lt;/EditText&gt;
        &lt;/TableRow&gt;
        &lt;tablerow&gt;

            &lt;TextView
                android:layout_width=&quot;wrap_content&quot;
                android:layout_height=&quot;wrap_content&quot;
                android:text=&quot;@string/labeljurusan&quot;
                android:textAppearance=&quot;?android:attr/textAppearanceMedium&quot;/&gt;

            &lt;EditText
                android:id=&quot;@+id/jurusan&quot;
                android:layout_width=&quot;match_parent&quot;
                android:layout_height=&quot;wrap_content&quot; 
                android:hint=&quot;Masukan Jurusan&quot;&gt;
            &lt;/EditText&gt;
        &lt;/TableRow&gt;
        &lt;tablerow&gt;

            &lt;TextView
                android:layout_width=&quot;wrap_content&quot;
                android:layout_height=&quot;wrap_content&quot;
                android:text=&quot;@string/labelalamat&quot;
                android:textAppearance=&quot;?android:attr/textAppearanceMedium&quot; /&gt;

            &lt;EditText
                android:id=&quot;@+id/alamat&quot;
                android:layout_width=&quot;match_parent&quot;
                android:layout_height=&quot;wrap_content&quot; 
                android:hint=&quot;Masukan Alamat&quot;&gt;
                
            &lt;/EditText&gt;
        &lt;/TableRow&gt;
    &lt;/TableLayout&gt;

    &lt;Button
        android:id=&quot;@+id/simpan&quot;
        android:layout_width=&quot;match_parent&quot;
        android:layout_height=&quot;wrap_content&quot;
        android:text=&quot;@string/btSimpan&quot; /&gt;

&lt;/LinearLayout&gt;
&lt;/ScrollView&gt;
&lt;/script&gt;
Apabila sudah maka simpan.&lt;br /&gt;
&lt;span style=&quot;color: purple;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;5. Buat class activity dengan nama&amp;nbsp;&lt;/span&gt;CahyoDBActivity.java :&lt;br /&gt;
&lt;br /&gt;
&lt;script class=&quot;brush:php&quot; type=&quot;syntaxhighlighter&quot;&gt;
package cahyo.db.olahdata;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;

public class CahyoDBActivity extends Activity implements OnClickListener{
 EditText etNim, etNama, etJurusan, etAlamat;
 String nim, nama, jurusan, alamat; 
 Button btSave;
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        etNim = (EditText)findViewById(R.id.nim);
        etNama = (EditText)findViewById(R.id.nama);
        etJurusan = (EditText)findViewById(R.id.jurusan);
        etAlamat = (EditText)findViewById(R.id.alamat);
  
        btSave = (Button) findViewById(R.id.simpan);
        btSave.setOnClickListener(CahyoDBActivity.this);
     
    }
    
 public void onClick(View v) {
  // TODO Auto-generated method stub
  switch (v.getId()) {
  case R.id.simpan :
   nim = etNim.getText().toString();
         nama = etNama.getText().toString();
         jurusan = etJurusan.getText().toString();
         alamat = etAlamat.getText().toString();
         
   DBConnector connector = new DBConnector(this);
      connector.insertDataMahasiswa(nim, nama, jurusan, alamat);
      connector.close();
      Toast.makeText(CahyoDBActivity.this,&quot;Data Berhasil Disimpan&quot;,Toast.LENGTH_LONG).show();
   break;
  }
  
 }
    
    
}
&lt;/script&gt;
apabila sudah, maka&lt;br /&gt;
&lt;span style=&quot;color: purple;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: purple;&quot;&gt;6. Buka strings.xml&lt;/span&gt; didalam&amp;nbsp;&lt;span style=&quot;color: #cc0000;&quot;&gt;cahyoDB --&amp;gt; res --&amp;gt; value --&amp;gt; strings.xml&lt;/span&gt;&amp;nbsp;kemudian isikan source xml string dibawah ini kedalam strings.xml &lt;i&gt;sourcode strings.xml :&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;script class=&quot;brush:php&quot; type=&quot;syntaxhighlighter&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;resources&gt;
    &lt;string name=&quot;app_name&quot;&gt;CahyoDB&lt;/string&gt;
    &lt;string name=&quot;labelnim&quot;&gt;NIM&lt;/string&gt;
    &lt;string name=&quot;labelnama&quot;&gt;Nama&lt;/string&gt;
    &lt;string name=&quot;labeljurusan&quot;&gt;Jurusan&lt;/string&gt;
    &lt;string name=&quot;labelalamat&quot;&gt;Alamat&lt;/string&gt;
    &lt;string name=&quot;btSimpan&quot;&gt;Simpan&lt;/string&gt;
&lt;/resources&gt;
&lt;/script&gt;
struktur file dan folder, untuk hasil akhir seperti gambar dibawah ini :&lt;br /&gt;
&lt;a href=&quot;http://i1127.photobucket.com/albums/l631/insomniart90/Screenshotat2013-01-22211120-1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://i1127.photobucket.com/albums/l631/insomniart90/Screenshotat2013-01-22211120-1.png&quot; width=&quot;192&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;span style=&quot;color: purple;&quot;&gt;7. Apabila sudah benar semuanya, tidak ada error, jalankan program maka akan keluar tampilan seperti ini :&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://i1127.photobucket.com/albums/l631/insomniart90/Screenshotat2013-01-22215236.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://i1127.photobucket.com/albums/l631/insomniart90/Screenshotat2013-01-22215236.png&quot; width=&quot;193&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: purple;&quot;&gt;8. Coba masukan data seperti dibawah dan klik simpan,&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://i1127.photobucket.com/albums/l631/insomniart90/Screenshotat2013-01-22215610.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;298&quot; src=&quot;http://i1127.photobucket.com/albums/l631/insomniart90/Screenshotat2013-01-22215610.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: purple;&quot;&gt;9.&lt;/span&gt; &lt;span style=&quot;color: purple;&quot;&gt;Apabila data berhasil disimpan, coba liat apakah data tersebut sudah masuk kedalam database Mahasiswa.db pada tab menu eclipse pilih Window --&amp;gt; Show view --&amp;gt; other&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: purple;&quot;&gt;didalam General cari File Explorer kemudian klik ok.&lt;/span&gt; maka akan tampil window file explorer. Expand folder data, kemudian akan muncul folder data lagi expand lagi, cari cahyo.db.olahdata apabila didalam cahyo.db.olahdata ada Mahasiswa.db. laitu &amp;nbsp;file database Mahasiswa. klik Open file in SQLite Manager, untuk lebih jelasnya saya sajikan gambar berikut.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://i1127.photobucket.com/albums/l631/insomniart90/Screenshotat2013-01-22221217.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://i1127.photobucket.com/albums/l631/insomniart90/Screenshotat2013-01-22221217.png&quot; width=&quot;319&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: purple;&quot;&gt;10. Apabila open file in sqlite manager sudah dijalankan maka akan dibawa ke window seperti gambar dibawah ini :&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://i1127.photobucket.com/albums/l631/insomniart90/Screenshotat2013-01-22221459.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;121&quot; src=&quot;http://i1127.photobucket.com/albums/l631/insomniart90/Screenshotat2013-01-22221459.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: purple;&quot;&gt;11. Pilih Browse Data kemudian dropdown Tabel cari tabel mhs. dan select, apabila didalam tabel ada data yang sudah diinputkan tadi maka insert kedalam SQLite sudah berhasil , data dapat dilihat pada gambar dibawah.&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://i1127.photobucket.com/albums/l631/insomniart90/Screenshotat2013-01-22221555.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;134&quot; src=&quot;http://i1127.photobucket.com/albums/l631/insomniart90/Screenshotat2013-01-22221555.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Dan selesailah tutorial insert data kedalam database SQLite di Android. lelah juga ya buat tutorial panjang lebar, maaf om... kalau tutorialnya masih belepotan. :D&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://pwcahyo.blogspot.com/feeds/2078372954804159437/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://pwcahyo.blogspot.com/2013/01/insert-data-sqlite-di-android.html#comment-form' title='15 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2327574882685560773/posts/default/2078372954804159437'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2327574882685560773/posts/default/2078372954804159437'/><link rel='alternate' type='text/html' href='http://pwcahyo.blogspot.com/2013/01/insert-data-sqlite-di-android.html' title='Insert data SQLITE di Android'/><author><name>PW Cahyo</name><uri>http://www.blogger.com/profile/07127917279397769012</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>15</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2327574882685560773.post-4816095500229280758</id><published>2012-11-26T08:24:00.002-08:00</published><updated>2015-09-28T20:46:01.006-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="android"/><category scheme="http://www.blogger.com/atom/ns#" term="custom title android"/><category scheme="http://www.blogger.com/atom/ns#" term="membuat title android"/><category scheme="http://www.blogger.com/atom/ns#" term="Programming"/><category scheme="http://www.blogger.com/atom/ns#" term="title android"/><title type='text'>Custom Title Android (with button)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Custom title di android, seperti apa bentuknya ?&lt;br /&gt;
liat gambar custom title dari ane dulu ni. ane meniru custom title button seperti yang diterapkan pada aplikasi sms bawaan default sistem operasi android. seperti gingerbread masih make seperti ini.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://i1127.photobucket.com/albums/l631/insomniart90/bloging/customtitle.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://i1127.photobucket.com/albums/l631/insomniart90/bloging/customtitle.png&quot; height=&quot;320&quot; width=&quot;213&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
custom title buatan ane, ane lingkarin warna merah tu pada gambar atas, custom title ane tersebut menggunakan button, gimana cara nerapinnya, sabar..... dengerin cerita dari ane dulu... hehehe...&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
terus bagaimana bentuk header default atau bawaan aplikasi android itu sendiri ?&lt;/div&gt;
&lt;div&gt;
ni kayak gini ni.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://i1127.photobucket.com/albums/l631/insomniart90/bloging/headernormal.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://i1127.photobucket.com/albums/l631/insomniart90/bloging/headernormal.png&quot; height=&quot;320&quot; width=&quot;213&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
title default bawaan dari aplikasi android itu sendiri seperti gambar yang ane lingkarin diatas atau pada title PassingData, nah..., apabila temen2 tidak mengcustom title tersebut, maka title yang akan diberikan oleh aplikasi android secara default adalah seperti gambar title PassingData tersebut,&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
ok untuk membuatnya ikuti langkah - langkah dibawah ini :&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
1. Buat project android, dengan nama&amp;nbsp;&lt;b&gt;FormatAssessment &lt;/b&gt;, &lt;span style=&quot;color: #cc0000;&quot;&gt;centang/check list&lt;/span&gt; create activity, terus next....&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
2. Buat packet android, kita namai dengan&amp;nbsp;&lt;b&gt;cahyo.format.assessment&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
3. Buat folder &lt;span style=&quot;color: #cc0000;&quot;&gt;drawable&lt;/span&gt; didalam folder &lt;span style=&quot;color: #cc0000;&quot;&gt;res&lt;/span&gt;,&amp;nbsp;download image ni&lt;a href=&quot;http://i1127.photobucket.com/albums/l631/insomniart90/bloging/5-content-new-email.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://i1127.photobucket.com/albums/l631/insomniart90/bloging/5-content-new-email.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
4. Kalau sudah didownload namai image tersebut dengan &lt;span style=&quot;color: #cc0000;&quot;&gt;ic_add.png&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
5. Masukan ic_add.png tersebut kedalam folder drawable yang sudah dibuat tadi&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
6. Kemudian edit &lt;span style=&quot;color: #cc0000;&quot;&gt;string.xml&lt;/span&gt; yang ada didalam folder values, isi string.xml :&lt;/div&gt;
&lt;script class=&quot;brush:php&quot; type=&quot;syntaxhighlighter&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;resources&gt;
    &lt;string name=&quot;app_name&quot;&gt;FormatAssessment&lt;/string&gt;
    &lt;string name=&quot;btAdd&quot;&gt;New Assessment&lt;/string&gt;
&lt;/resources&gt;
&lt;/script&gt;
&lt;i&gt;keterangan : app_name nama aplikasi, btAdd = string nama button&lt;/i&gt;
&lt;br /&gt;
&lt;br /&gt;
7. Kemudian buat file custom_title.xml didalam folder values. isi custom_title.xml :
&lt;script class=&quot;brush:php&quot; type=&quot;syntaxhighlighter&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;resources&gt;
 &lt;style name=&quot;CustomWindowTitleBackground&quot;&gt;
    &lt;/style&gt;
    
    &lt;style name=&quot;CustomTheme&quot; parent=&quot;android:Theme&quot;&gt;
     &lt;item name=&quot;android:windowTitleSize&quot;&gt;70dip&lt;/item&gt; 
        &lt;item name=&quot;android:windowTitleBackgroundStyle&quot;&gt;@style/CustomWindowTitleBackground&lt;/item&gt;
    &lt;/style&gt;
&lt;/resources&gt;
&lt;/script&gt;
&lt;i&gt;keterangan : pertama membuat custom window title Background, didalamnya bisa ditambahi item android:background ,  maupun android:pading, android:margin dsb.&lt;br /&gt;
kemudian diturunkan menjadi style customtheme yang didalamnya ada item android:windowTitleSize, digunakan untuk mengatur besar kecilnya Title&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
8. Kemudian buat file &lt;span style=&quot;color: #cc0000;&quot;&gt;window_title.xml&lt;/span&gt; didalam folder layout, isikan :&lt;br /&gt;
&lt;script class=&quot;brush:php&quot; type=&quot;syntaxhighlighter&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;LinearLayout
   xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
   android:orientation=&quot;horizontal&quot;
 android:layout_width=&quot;match_parent&quot;
 android:layout_height=&quot;match_parent&quot;&gt;
     
 &lt;Button
        android:id=&quot;@+id/buttonAdd&quot;
        android:layout_width=&quot;match_parent&quot;
        android:layout_height=&quot;match_parent&quot;
        android:paddingRight=&quot;100dp&quot;
        android:paddingLeft=&quot;10dp&quot;
        android:textStyle=&quot;bold&quot;
        android:textSize=&quot;20sp&quot;
        android:text=&quot;@string/btAdd&quot;
        android:textColor=&quot;#404b4e&quot;
        android:drawableLeft=&quot;@drawable/ic_add&quot;/&gt;
&lt;/LinearLayout&gt;
&lt;/script&gt;&lt;br /&gt;
9. Kemudian edit Activity, &lt;span style=&quot;color: #cc0000;&quot;&gt;FormatAssessmentActivity.java &lt;/span&gt;yang ada didalam folder src, packet&amp;nbsp;&lt;b&gt;cahyo.format.assessment , &lt;/b&gt;edit class&amp;nbsp;&lt;span style=&quot;color: #cc0000;&quot;&gt;FormatAssessmentActivity.java &lt;/span&gt;menjadi :&lt;br /&gt;
&lt;script class=&quot;brush:php&quot; type=&quot;syntaxhighlighter&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
package cahyo.format.assessment;

import android.app.Activity;
import android.os.Bundle;
import android.view.Window;
import android.widget.Button;

public class FormatAssessmentActivity extends Activity {
    /** Called when the activity is first created. */
 Button b;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
        
        setContentView(R.layout.main);
        
        getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.window_title);
      
    }
}
&lt;/script&gt;
10. edit &lt;span style=&quot;color: #cc0000;&quot;&gt;AndroidManifest.xml&lt;/span&gt; berikut :&lt;br /&gt;
&lt;script class=&quot;brush:php&quot; type=&quot;syntaxhighlighter&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;manifest xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
    package=&quot;cahyo.format.assessment&quot;
    android:versionCode=&quot;1&quot;
    android:versionName=&quot;1.0&quot; &gt;

    &lt;uses-sdk android:minSdkVersion=&quot;10&quot; /&gt;

    &lt;application
        android:icon=&quot;@drawable/ic_launcher&quot;
        android:label=&quot;@string/app_name&quot; 
        android:theme=&quot;@style/CustomTheme&quot;&gt;
        &lt;activity
            android:name=&quot;.FormatAssessmentActivity&quot;
            android:label=&quot;@string/app_name&quot; &gt;
            &lt;intent-filter&gt;
                &lt;action android:name=&quot;android.intent.action.MAIN&quot; /&gt;

                &lt;category android:name=&quot;android.intent.category.LAUNCHER&quot; /&gt;
            &lt;/intent-filter&gt;
        &lt;/activity&gt;
    &lt;/application&gt;
&lt;/manifest&gt;
&lt;/script&gt;
&lt;i&gt;keterangan : android:theme=&quot;@style/CustomTheme&quot; diambil dari style custom title.xml&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
11. Kalo sudah dan masih agak sedikit bingung dengan struktur folder penempatan file - file tadi, ni liat struktur folder ane :
&lt;a href=&quot;http://i1127.photobucket.com/albums/l631/insomniart90/bloging/Screenshotat2012-11-26224809.png&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://i1127.photobucket.com/albums/l631/insomniart90/bloging/Screenshotat2012-11-26224809.png&quot; height=&quot;595&quot; width=&quot;343&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
kalau sudah, tinggal kita run, seperti apa hasilnya, apabila temen - temen mengikuti tutorial ini dengan benar, maka akan tampil hasil seperti gambar 
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://i1127.photobucket.com/albums/l631/insomniart90/bloging/customtitle.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://i1127.photobucket.com/albums/l631/insomniart90/bloging/customtitle.png&quot; height=&quot;320&quot; width=&quot;213&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
temen - temen bisa mengganti header button tersebut menggunakan text maupun gambar, tinggal kreasi temen2. caranya tinggal mengedit file &lt;span style=&quot;color: #cc0000;&quot;&gt;window_title.xm&lt;/span&gt;l dibagian :
&lt;script class=&quot;brush:php&quot; type=&quot;syntaxhighlighter&quot;&gt;
&lt;Button
        android:id=&quot;@+id/buttonAdd&quot;
        android:layout_width=&quot;match_parent&quot;
        android:layout_height=&quot;match_parent&quot;
        android:paddingRight=&quot;100dp&quot;
        android:paddingLeft=&quot;10dp&quot;
        android:textStyle=&quot;bold&quot;
        android:textSize=&quot;20sp&quot;
        android:text=&quot;@string/btAdd&quot;
        android:textColor=&quot;#404b4e&quot;
        android:drawableLeft=&quot;@drawable/ic_add&quot;/&gt;
&lt;/script&gt;

contoh apabila menggunakan image edit button tersebut dan ganti dengan:
&lt;script class=&quot;brush:php&quot; type=&quot;syntaxhighlighter&quot;&gt;
&lt;imageview 
  android:id=&quot;@+id/header&quot; 
  android:src=&quot;@drawable/ic_add&quot;
  android:layout_width=&quot;wrap_content&quot; 
  android:layout_height=&quot;wrap_content&quot;/&gt;
&lt;/script&gt;
&lt;i&gt;keterangan : android:src=&quot;@drawable/ic_add&quot;. &lt;br /&gt;ic_add adalah nama image yang akan diload kedalam header. bisa diganti terserah menurut design agan&lt;/i&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://pwcahyo.blogspot.com/feeds/4816095500229280758/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://pwcahyo.blogspot.com/2012/11/custom-title-android.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2327574882685560773/posts/default/4816095500229280758'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2327574882685560773/posts/default/4816095500229280758'/><link rel='alternate' type='text/html' href='http://pwcahyo.blogspot.com/2012/11/custom-title-android.html' title='Custom Title Android (with button)'/><author><name>PW Cahyo</name><uri>http://www.blogger.com/profile/07127917279397769012</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://i1127.photobucket.com/albums/l631/insomniart90/bloging/th_customtitle.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2327574882685560773.post-7774788884668157808</id><published>2012-11-20T19:26:00.002-08:00</published><updated>2012-11-30T01:48:04.646-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="android"/><category scheme="http://www.blogger.com/atom/ns#" term="dropdown android"/><category scheme="http://www.blogger.com/atom/ns#" term="eclipse"/><category scheme="http://www.blogger.com/atom/ns#" term="Programming"/><category scheme="http://www.blogger.com/atom/ns#" term="spinner"/><title type='text'>Membuat Spinner di Android (Dropdown)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Ok guys.... kita kembali lagi. kali ini mainan android,&lt;br /&gt;
pertama kali posting android ya ini ni...&lt;br /&gt;
Membuat spinner, kurang serem postingannya, hahaha...&lt;br /&gt;
tanpa basa basi,&lt;br /&gt;
saya asumsikan temen2 sudah bisa create project android, di eclipse, netbeans, atau aplikasi lainnya.&lt;br /&gt;
aplikasi yang saya pake disini make eclipse,&lt;br /&gt;
langsung saja :&lt;br /&gt;
1. Create project baru dengan nama FormSpinner, Pilih SDK Target, kemudian hilangkan checklist create activity&lt;br /&gt;
2. Namai paket project tersebut dengan&amp;nbsp;cahyo.spinner.form&lt;br /&gt;
3. Langsung buka folder res/layout/main.xml&lt;br /&gt;
disitu kita tinggal desain tampilan, isi main.xml ane :
&lt;br /&gt;
&lt;script class=&quot;brush:php&quot; type=&quot;syntaxhighlighter&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;

&lt;linearlayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
android:layout_height=&quot;fill_parent&quot; 
android:layout_width=&quot;fill_parent&quot; 
android:orientation=&quot;vertical&quot; &gt;

&lt;spinner 
android:drawselectorontop=&quot;true&quot; 
android:id=&quot;@+id/spinTransport&quot; 
android:layout_height=&quot;50px&quot; 
android:layout_width=&quot;fill_parent&quot; 
android:prompt=&quot;@string/pilTransport&quot;&gt;
&lt;/spinner&gt;

&lt;/linearlayout&gt;
&lt;/script&gt;
&lt;br /&gt;
4. buka folder res/values/ tambahkan file ArrayTransport.xml (digunakan untuk menyimpan item dropdown yang akan kita tampilkan nanti). isi&amp;nbsp;ArrayTransport.xml :&lt;br /&gt;
&lt;br /&gt;
&lt;script class=&quot;brush:php&quot; type=&quot;syntaxhighlighter&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;

&lt;resources&gt;
        &lt;string-array name=&quot;transportItem&quot;&gt;
            &lt;item&gt;Darat&lt;/item&gt;
            &lt;item&gt;Laut&lt;/item&gt;
            &lt;item&gt;Udara&lt;/item&gt;
        &lt;/string-array&gt;
    &lt;/resources&gt;
&lt;/script&gt;
5. Kemudian edit res/values/string.xml menjadi :&lt;br /&gt;
&lt;script class=&quot;brush:php&quot; type=&quot;syntaxhighlighter&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;

&lt;resources&gt;
    &lt;string name=&quot;app_name&quot;&gt;Form Assessment&lt;/string&gt;
    &lt;string name=&quot;pilTransport&quot;&gt;Pilih Transportasi&lt;/string&gt;
&lt;/resources&gt;
&lt;/script&gt;
digunakan untuk setting text di aplikasi, seperti nama aplikasi, nama judul pemilihan spinner &quot;Pilih Transport&quot;
&lt;br /&gt;
&lt;br /&gt;
6. Kemudian buat class untuk mengatur spinner, didalam paket cahyo.spinner.form klik kanan --&amp;gt;New--&amp;gt;class , kemudian isikan nama class tersebut FormSpinnerActivity . Isi FormSpinnerActivity.java tersebut adalah :&lt;br /&gt;
&lt;script class=&quot;brush:php&quot; type=&quot;syntaxhighlighter&quot;&gt;

package cahyo.spinner.form;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Spinner;
import android.widget.Toast;
import android.widget.AdapterView.OnItemSelectedListener;

public class FormSpinnerActivity extends Activity {
 /** Called when the activity is first created. */
 Spinner spinTransport;

 @Override
 public void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.main);

  spinTransport = (Spinner) findViewById(R.id.spinTransport);
  
  // Adapter for spinner
        ArrayAdapter adapter = ArrayAdapter.createFromResource(getApplicationContext(),  R.array.transportItem, android.R.layout.simple_spinner_dropdown_item);
        // Sets the layout resource to create the drop down views
        adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
 
        //The Adapter is used to provide the data which backs this Spinner.
        spinTransport.setAdapter(adapter);
        spinTransport.setOnItemSelectedListener(new OnItemSelectedListener(){
         public void onItemSelected(AdapterView parent, View view, int position,
           long id) {

          // On selecting a spinner item
          String item = parent.getItemAtPosition(position).toString();

          // showing a toast on selecting an item
          Toast.makeText(parent.getContext(), item, Toast.LENGTH_LONG).show();

         }

   public void onNothingSelected(AdapterView arg0) {
    // TODO Auto-generated method stub
    
   }
        });
 }


}
&lt;/script&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://fbcdn-sphotos-g-a.akamaihd.net/hphotos-ak-prn1/536623_523187647691410_860459184_n.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://fbcdn-sphotos-g-a.akamaihd.net/hphotos-ak-prn1/536623_523187647691410_860459184_n.jpg&quot; width=&quot;213&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://fbcdn-sphotos-a-a.akamaihd.net/hphotos-ak-snc7/484918_523187677691407_700763948_n.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://fbcdn-sphotos-a-a.akamaihd.net/hphotos-ak-snc7/484918_523187677691407_700763948_n.jpg&quot; width=&quot;213&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Seremmmm kan,,, hehehe... :D&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pwcahyo.blogspot.com/feeds/7774788884668157808/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://pwcahyo.blogspot.com/2012/11/membuat-spinner-di-android.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2327574882685560773/posts/default/7774788884668157808'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2327574882685560773/posts/default/7774788884668157808'/><link rel='alternate' type='text/html' href='http://pwcahyo.blogspot.com/2012/11/membuat-spinner-di-android.html' title='Membuat Spinner di Android (Dropdown)'/><author><name>PW Cahyo</name><uri>http://www.blogger.com/profile/07127917279397769012</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2327574882685560773.post-3651421423366787021</id><published>2012-06-06T15:05:00.003-07:00</published><updated>2012-06-08T22:26:38.502-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="codeigniter"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><category scheme="http://www.blogger.com/atom/ns#" term="Programming"/><title type='text'>Create captcha in codeigniter 2.1.0</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Setelah kemaren membuat form login with session di dalam codeigniter 2.1.0, sekarang kita mencoba untuk menambahkan captcha didalam form login tersebut. Untuk generate captcha itu sendiri sudah disediakan helper captcha bawa&#39;an didalam codeigniter 2.1.0 berbeda dengan Codeigniter 1.7.x yang menggunakan captcha dibawah plugin. Ok, Bagi temen - temen yang belum mengikuti langkah dalam membuat form login with session bisa dilihat &lt;a href=&quot;http://pwcahyo.blogspot.com/2012/06/form-login-with-session-in-codeigniter.html&quot;&gt;disini&lt;/a&gt;. Karena tutorial berikut ini akan meneruskan dari tutorial yang sebelumnya.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;1. Saya anggap temen - temen sudah mengikuti tutorial membuat form &amp;nbsp;login with session sebelumnya.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;2. Kita tambahkan tabel captcha didalam database ci :&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;/span&gt;
&lt;script class=&quot;brush:php&quot; type=&quot;syntaxhighlighter&quot;&gt;
CREATE TABLE captcha (
 captcha_id bigint(13) unsigned NOT NULL auto_increment,
 captcha_time int(10) unsigned NOT NULL,
 ip_address varchar(16) default &#39;0&#39; NOT NULL,
 word varchar(20) NOT NULL,
 PRIMARY KEY `captcha_id` (`captcha_id`),
 KEY `word` (`word`)
);
&lt;/script&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;
3. Apabila database captcha tersebut sudah dibuat, kita tinggal membuat direktori dimana captcha tersebut akan disimpan sementara,&lt;/span&gt; buat folder &lt;b&gt;asset/captcha&lt;/b&gt; didalam root ci-nya, struktur seperti ini &lt;b&gt;ci/asset/captcha&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;4. Set permission folder captcha agar bisa ditulis dan dibaca oleh server&lt;/span&gt;, kalau diubuntu &lt;b&gt;sudo chmod -R 777 captcha/&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;5. Apabila permission sudah diset, kita tinggal membuat model untuk create captcha,&lt;/span&gt; buat file dengan nama &lt;b&gt;m_captcha.php&lt;/b&gt; , simpan didalam folder &lt;b&gt;ci/application/models&lt;/b&gt; isi model tersebut :&lt;/span&gt;&lt;br /&gt;
&lt;script class=&quot;brush:php&quot; type=&quot;syntaxhighlighter&quot;&gt;
&lt;?php if (!defined(&#39;BASEPATH&#39;)) exit(&#39;No direct script access allowed&#39;); 

class M_captcha extends CI_Model 
{

        function __construct()
 {
          parent::__construct();
 }
         
        function setCaptcha()
        {
          $this-&gt;load-&gt;helper(&#39;captcha&#39;);
          $vals = array(
           &#39;img_path&#39;       =&gt; &#39;./asset/captcha/&#39;,
           &#39;img_url&#39;        =&gt; base_url().&#39;/asset/captcha/&#39;,
           &#39;expiration&#39;     =&gt; 3600,// one hour
           &#39;font_path&#39;   =&gt; &#39;./system/fonts/georgia.ttf&#39;,
           &#39;img_width&#39;   =&gt; &#39;140&#39;,
           &#39;img_height&#39;   =&gt; 30,
           &#39;word&#39;   =&gt; random_string(&#39;numeric&#39;, 6),
                 );
                 
          $cap = create_captcha($vals);
          if ($cap)
          {
                  $capdb = array(
                   &#39;captcha_id&#39;       =&gt; &#39;&#39;,
                   &#39;captcha_time&#39;     =&gt; $cap[&#39;time&#39;],
                   &#39;ip_address&#39;       =&gt; $this -&gt; input -&gt; ip_address(),
                   &#39;word&#39;                     =&gt; $cap[&#39;word&#39;]
                  );
                  $query = $this-&gt;db-&gt;insert_string(&#39;captcha&#39;, $capdb);
                  $this-&gt;db-&gt;query($query);
          }else {
                                return &quot;Captcha not work&quot; ;
                         }
                        //$data[&#39;cap&#39;] = $cap;     
                    return $cap[&#39;image&#39;];
 }        
}
&lt;/script&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;
6. Tambahkan script untuk pemanggilan model captcha didalam c_login.php&lt;/span&gt; yang telah kita buat pada tutorial sebelumnya, edit &lt;b&gt;c_login.php&lt;/b&gt; tersebut sehingga menjadi :&lt;/span&gt;&lt;br /&gt;
&lt;script class=&quot;brush:php&quot; type=&quot;syntaxhighlighter&quot;&gt;
&lt;?php  if ( ! defined(&#39;BASEPATH&#39;)) exit(&#39;No direct script access allowed&#39;);
class C_login extends CI_Controller
{
       function __construct()
 {
         session_start(); //mengadakan session
  parent::__construct();
  $this-&gt;load-&gt;model(&#39;m_captcha&#39;);
  $this-&gt;load-&gt;helper(&#39;captcha&#39;);
 } 
 
        public function index()
        {
              if ( isset($_SESSION[&#39;username&#39;]) ) { //cek apakah session ada
                 redirect(&#39;c_home&#39;); //redirect controller c_home
              }
              
              $data[&#39;captcha&#39;] = $this-&gt;m_captcha-&gt;setCaptcha();     
              $this-&gt;load-&gt;library(&#39;form_validation&#39;); //load library form_validation
              $this-&gt;form_validation-&gt;set_rules(&#39;username&#39;, &#39;Username&#39;, &#39;required&#39;); //cek, validasi username
              $this-&gt;form_validation-&gt;set_rules(&#39;password&#39;, &#39;Password&#39;, &#39;required|min_length[4]&#39;); //cek, validasi password
              $this-&gt;form_validation-&gt;set_rules(&#39;captcha&#39;, &#39;Captcha&#39;, &#39;trim|required|callback_valid_captcha&#39;);
              $this-&gt;form_validation-&gt;set_message(&#39;valid_captcha&#39;,&#39;%s tidak sama&#39;);

              if ( $this-&gt;form_validation-&gt;run() == TRUE ) { //apabila validasi true(benar semua)
                 $this-&gt;load-&gt;model(&#39;m_user&#39;); // load model m_user
                 $result = $this-&gt;m_user-&gt;cek_user_login( //jalankan fungsi cek_user_login dari model m_user
                             $this-&gt;input-&gt;post(&#39;username&#39;),  //menangkap username dari form
                             $this-&gt;input-&gt;post(&#39;password&#39;) //menangkap password dari form
                          );
                 
                            
                        if ( $result == TRUE) { //apabila result = true(ada data)
                                $_SESSION[&#39;username&#39;] = $this-&gt;input-&gt;post(&#39;username&#39;); //create session
                                redirect(&#39;c_home&#39;); // redirect controller c_home
                        }
              }  
              
                $this-&gt;load-&gt;view(&#39;login/v_form&#39;,$data); //apabila session kosong load login/v_form 
        }
        
        
        function valid_captcha($str)
 {
  $expiration = time()-60; // 1 minutes
                $this-&gt;db-&gt;query(&quot;DELETE FROM captcha WHERE captcha_time &lt; &quot;.$expiration); 

                // Then see if a captcha exists:
                $sql = &quot;SELECT COUNT(*) AS count FROM captcha WHERE word = ? AND ip_address = ? AND captcha_time &gt; ?&quot;;
                $binds = array($_POST[&#39;captcha&#39;], $this-&gt;input-&gt;ip_address(), $expiration);
                $query = $this-&gt;db-&gt;query($sql, $binds);
                $row = $query-&gt;row();

                if ($row-&gt;count == 0)
                {
                        return FALSE;
                }
                else
                {
                        return TRUE;
                }
 }
                
        public function logout() //fungsi logout
        {
              session_destroy(); //session destroy
             $this-&gt;index();//buka halaman login/v_form
         }
}
&lt;/script&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;
7. Tambahkan script pemanggilan captcha didalam v_form.php&lt;/span&gt; yang telah kita buat pada tutorial sebelumnya, edit &lt;b&gt;v_form.php&lt;/b&gt; sehingga menjadi :
&lt;script class=&quot;brush:php&quot; type=&quot;syntaxhighlighter&quot;&gt;
&lt;h1&gt;
Please Login&lt;/h1&gt;
&lt;?php echo form_open(&#39;c_login&#39;); ?&gt;
&lt;table&gt;
&lt;tr&gt;
        &lt;td&gt;Username&lt;/td&gt;
        &lt;td&gt;:&lt;/td&gt;
        &lt;td&gt;&lt;?php echo form_input(&#39;username&#39;) ?&gt;&lt;/td&gt;
        &lt;td&gt;&lt;font color=&quot;#ef4423&quot;&gt;&lt;?php echo form_error(&#39;username&#39;); ?&gt;&lt;/font&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
        &lt;td&gt;Password&lt;/td&gt;
        &lt;td&gt;:&lt;/td&gt;
        &lt;td&gt;&lt;?php echo form_password(&#39;password&#39;); ?&gt;&lt;/td&gt;
        &lt;td&gt;&lt;font color=&quot;#ef4423&quot;&gt;&lt;?php echo form_error(&#39;password&#39;); ?&gt;&lt;/font&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
        &lt;td valign=&#39;top&#39;&gt;&lt;?php echo $captcha ?&gt;&lt;/td&gt;
        &lt;td&gt;:&lt;/td&gt;
        &lt;td valign=&#39;top&#39;&gt;&lt;input type=&#39;text&#39; name=&#39;captcha&#39;&gt;&lt;/td&gt;
        &lt;td&gt;&lt;font color=&quot;#ef4423&quot;&gt;&lt;?php echo form_error(&#39;captcha&#39;);?&gt;&lt;/font&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td colspan=&quot;4&quot; align=&quot;middle&quot;&gt;&lt;?php echo form_submit(&#39;submit&#39;, &#39;Login&#39;); ?&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;?php echo form_close(); ?&gt;
&lt;/script&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;8. Apabila sudah dipanggil didalam form, kita tinggal check aja di browser&lt;/span&gt; apakah captcha tersebut sudah berhasil dibuat. check dengan localhost/ci maka akan keluar tampilan seperti ini apabila telah berhasil :&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimV0TYCcAuIZpS9KRXeU1z5ZZqE7jgLDOU7gMl0RQxKFEh5BG_6jhszcPb98WZIuHiCB1XMnh-fRPLttibeBA6mm15SoN8L3_XrpDKt45GKsrtX_lyxAZf6cQtFemTRqYlWN7H1pk3Rp4/s1600/Screenshot+at+2012-06-07+04:47:59.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;186&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimV0TYCcAuIZpS9KRXeU1z5ZZqE7jgLDOU7gMl0RQxKFEh5BG_6jhszcPb98WZIuHiCB1XMnh-fRPLttibeBA6mm15SoN8L3_XrpDKt45GKsrtX_lyxAZf6cQtFemTRqYlWN7H1pk3Rp4/s320/Screenshot+at+2012-06-07+04:47:59.png&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;9. Apabila kita memasukan captcha salah. maka akan keluar seperti gambar dibawah ini :&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqTB2yDs8oWhpgUNsQKbzvuimIf1cYDJ5VwognpIzcH4d14Gx6qmv8Gfq-3h4TPOaWSp0Y8y-IpU6-N-YWjo0TsAK9P7fFW7720rYE5hhbjvtHfAyhtRCa9hVpVKOB1xNbV8mLU79iJSY/s1600/Screenshot+at+2012-06-07+04:59:12.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;167&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqTB2yDs8oWhpgUNsQKbzvuimIf1cYDJ5VwognpIzcH4d14Gx6qmv8Gfq-3h4TPOaWSp0Y8y-IpU6-N-YWjo0TsAK9P7fFW7720rYE5hhbjvtHfAyhtRCa9hVpVKOB1xNbV8mLU79iJSY/s400/Screenshot+at+2012-06-07+04:59:12.png&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;10. Success... Selamat mencoba&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pwcahyo.blogspot.com/feeds/3651421423366787021/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://pwcahyo.blogspot.com/2012/06/create-captcha-in-codeigniter-210.html#comment-form' title='10 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2327574882685560773/posts/default/3651421423366787021'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2327574882685560773/posts/default/3651421423366787021'/><link rel='alternate' type='text/html' href='http://pwcahyo.blogspot.com/2012/06/create-captcha-in-codeigniter-210.html' title='Create captcha in codeigniter 2.1.0'/><author><name>PW Cahyo</name><uri>http://www.blogger.com/profile/07127917279397769012</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimV0TYCcAuIZpS9KRXeU1z5ZZqE7jgLDOU7gMl0RQxKFEh5BG_6jhszcPb98WZIuHiCB1XMnh-fRPLttibeBA6mm15SoN8L3_XrpDKt45GKsrtX_lyxAZf6cQtFemTRqYlWN7H1pk3Rp4/s72-c/Screenshot+at+2012-06-07+04:47:59.png" height="72" width="72"/><thr:total>10</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2327574882685560773.post-244725788192542910</id><published>2012-06-06T05:25:00.003-07:00</published><updated>2012-11-20T18:52:11.586-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="codeigniter"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><category scheme="http://www.blogger.com/atom/ns#" term="Programming"/><title type='text'>Form login with session in Codeigniter 2.1.0</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Membuat login dengan session di codeigniter 2.1.0 bagaimana sih ??&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;sulit apa mudah ?&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;kalau sudah bisa sih mudah, kalau yang belum mengimplementasikan secara langsung, mungkin sedikit bingung.&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Ok, pada kali ini saya ingin membuat sedikit tutorial create &amp;nbsp;form login with session, didalam codeigniter 2.1.0, database dan session itu sendiri dibawah libraries codeigniter, sedangkan form berada dibawah helper codeigniter, ok, Langsung saja,.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;b&gt;1. Saya asumsikan temen - temen paham menggunakan xampp, atau lampp,&amp;nbsp;&lt;a href=&quot;http://codeigniter.com/download.php&quot;&gt;Download Codeigniter 2.1.0&lt;/a&gt;&amp;nbsp;terlebih dahulu&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;b&gt;2. Extract codeigniter tersebut menjadi ci&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;b&gt;3. Buat database ci kemudian jalankan syntax create tabel dibawah ini untuk menampung data user :&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;script class=&quot;brush:php&quot; type=&quot;syntaxhighlighter&quot;&gt;
CREATE TABLE IF NOT EXISTS `users` (
  `id` int(20) NOT NULL AUTO_INCREMENT,
  `username` varchar(30) NOT NULL,
  `password` varchar(34) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `username` (`username`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;

--
-- Dumping data for table `users`
--

INSERT INTO `users` (`id`, `username`, `password`) VALUES
(1, &#39;cahyo&#39;, &#39;772c2161cb7137df9da9d3ad4d57b16f&#39;);
&lt;/script&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;b&gt;
4. Apabila ketiga langkah diatas sudah dijalankan, edit config.php yang ada didalam folder ci/application/config/config.php menjadi :&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;script class=&quot;brush:php&quot; type=&quot;syntaxhighlighter&quot;&gt;
$config[&#39;base_url&#39;] = &#39;http://localhost/ci/&#39;; //line 17
$config[&#39;encryption_key&#39;] = &#39;c4hy0g4nt3n6b4ng3t&#39;; //line 226
&lt;/script&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;b&gt;
5. Edit konfigurasi autoload.php yang ada didalam satu folder dengan config.php sebelumnya,&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;script class=&quot;brush:php&quot; type=&quot;syntaxhighlighter&quot;&gt;
$autoload[&#39;libraries&#39;] = array(&#39;database&#39;,&#39;session&#39;); //line 55
$autoload[&#39;helper&#39;] = array(&#39;form&#39;,&#39;url&#39;); //line 67
&lt;/script&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;b&gt;
6. Edit konfigurasi database.php yang ada didalam satu folder dengan config.php sebelumnya,&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;script class=&quot;brush:php&quot; type=&quot;syntaxhighlighter&quot;&gt;
$db[&#39;default&#39;][&#39;hostname&#39;] = &#39;localhost&#39;; //line 51
$db[&#39;default&#39;][&#39;username&#39;] = &#39;root&#39;; // username phpmyadmin/mysql
$db[&#39;default&#39;][&#39;password&#39;] = &#39;&#39;; // password phpmyadmin/mysql
$db[&#39;default&#39;][&#39;database&#39;] = &#39;ci&#39;; // nama database
&lt;/script&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;b&gt;
7. Edit konfigurasi routes.php&amp;nbsp;yang ada didalam satu folder dengan config.php sebelumnya,&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;script class=&quot;brush:php&quot; type=&quot;syntaxhighlighter&quot;&gt;
$route[&#39;default_controller&#39;] = &quot;c_login&quot;; //line 41
&lt;/script&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;b&gt;
8. Buat model, dengan nama m_user.php simpan kedalam folder ci/application/model isi model :&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;script class=&quot;brush:php&quot; type=&quot;syntaxhighlighter&quot;&gt;
&lt;?php if (!defined(&#39;BASEPATH&#39;)) exit(&#39;No direct script access allowed&#39;); 
class M_user extends CI_Model
{
        
        function __construct()
 {
  parent::__construct();
 }
 
        function cek_user_login($username, $password) 
        {
        $query = $this
            -&gt;db
            -&gt;where(&#39;username&#39;, $username) // kolom username
            -&gt;where(&#39;password&#39;, md5($password)) // kolom password
            -&gt;limit(1) // pembatasan jumlah select
            -&gt;get(&#39;users&#39;); //table name

        if ($query-&gt;num_rows() == 1) { // jika data = 1
                return $query-&gt;row_array(); // return data dan nilai TRUE
        }
        else
                {
                        return FALSE; // else mengembalikan FALSE
                }
        }
}
&lt;/script&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;b&gt;
9. Buat controller c_login untuk mengatur model tersebut&amp;nbsp;simpan kedalam folder ci/application/controller&amp;nbsp;, isi controller :&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;script class=&quot;brush:php&quot; type=&quot;syntaxhighlighter&quot;&gt;
&lt;?php  if ( ! defined(&#39;BASEPATH&#39;)) exit(&#39;No direct script access allowed&#39;);
class C_login extends CI_Controller
{
       function __construct()
 {
         session_start(); //mengadakan session
  parent::__construct();
 } 
 
        public function index()
        {
              if ( isset($_SESSION[&#39;username&#39;]) ) { //cek apakah session ada
                 redirect(&#39;c_home&#39;); //redirect controller c_home
              }
              
              $this-&gt;load-&gt;library(&#39;form_validation&#39;); //load library form_validation
              $this-&gt;form_validation-&gt;set_rules(&#39;username&#39;, &#39;Username&#39;, &#39;required&#39;); //cek, validasi username
              $this-&gt;form_validation-&gt;set_rules(&#39;password&#39;, &#39;Password&#39;, &#39;required|min_length[4]&#39;); //cek, validasi password
              if ( $this-&gt;form_validation-&gt;run() == TRUE ) { //apabila validasi true(benar semua)
                 $this-&gt;load-&gt;model(&#39;m_user&#39;); // load model m_user
                 $result = $this-&gt;m_user-&gt;cek_user_login( //jalankan fungsi cek_user_login dari model m_user
                             $this-&gt;input-&gt;post(&#39;username&#39;),  //menangkap username dari form
                             $this-&gt;input-&gt;post(&#39;password&#39;) //menangkap password dari form
                          );
                 
                            
                        if ( $result == TRUE) { //apabila result = true(ada data)
                                $_SESSION[&#39;username&#39;] = $this-&gt;input-&gt;post(&#39;username&#39;); //create session
                                redirect(&#39;c_home&#39;); // redirect controller c_home
                        }
              }  
              
                $this-&gt;load-&gt;view(&#39;login/v_form&#39;); //apabila session kosong load login/v_form
        }
        
        public function logout() //fungsi logout
        {
             session_destroy(); //session destroy
             $this-&gt;index();//redirect function index()
        }
}
&lt;/script&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;b&gt;
10. Buat controller c_home.php, simpan kedalam&amp;nbsp;folder ci/application/controller, isi controller :&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;script class=&quot;brush:php&quot; type=&quot;syntaxhighlighter&quot;&gt;
&lt;?php if ( ! defined(&#39;BASEPATH&#39;)) exit(&#39;No direct script access allowed&#39;);

class C_home extends CI_Controller {

        function __construct()
        {
                session_start();
                parent::__construct();
                if ( !isset($_SESSION[&#39;username&#39;]) ) {
                        redirect(&#39;c_login&#39;);
                }
        }

        public function index()
        {
                $this-&gt;load-&gt;view(&#39;login/v_home&#39;);
        }

}
&lt;/script&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;b&gt;
11. Buat view v_form.php simpan didalam folder ci/application/views/login (folder login create sendiri), isi view :&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;script class=&quot;brush:php&quot; type=&quot;syntaxhighlighter&quot;&gt;
&lt;h1&gt;

Please Login&lt;/h1&gt;
&lt;?php echo form_open(&#39;c_login&#39;); ?&gt;
&lt;table&gt;
&lt;tr&gt;
        &lt;td&gt;Username&lt;/td&gt;
        &lt;td&gt;:&lt;/td&gt;
        &lt;td&gt;&lt;?php echo form_input(&#39;username&#39;) ?&gt;&lt;/td&gt;
        &lt;td&gt;&lt;font color=&quot;#ef4423&quot;&gt;&lt;?php echo form_error(&#39;username&#39;); ?&gt;&lt;/font&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
        &lt;td&gt;Password&lt;/td&gt;
        &lt;td&gt;:&lt;/td&gt;
        &lt;td&gt;&lt;?php echo form_password(&#39;password&#39;); ?&gt;&lt;/td&gt;
        &lt;td&gt;&lt;font color=&quot;#ef4423&quot;&gt;&lt;?php echo form_error(&#39;password&#39;); ?&gt;&lt;/font&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
        &lt;td colspan=&quot;4&quot; align=&quot;middle&quot;&gt;&lt;?php echo form_submit(&#39;submit&#39;, &#39;Login&#39;); ?&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;?php echo form_close(); ?&gt;
&lt;/script&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;b&gt;
12. Buat form v_home.php satu folder dengan v_form.php , v_home.php digunakan untuk redirect apabila login berhasil maka akan dilarikan kedalam halaman tersebut, isi view v_form :
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;script class=&quot;brush:php&quot; type=&quot;syntaxhighlighter&quot;&gt;
Hai, &lt;strong&gt;&lt;?php echo $_SESSION[&#39;username&#39;]; ?&gt;&lt;/strong&gt;! Kamu di area home admin. &lt;?php echo anchor(&#39;/c_login/logout/&#39;, &#39;Logout&#39;); ?&gt;
&lt;h1&gt;

Welcome to the Top Secret Section&lt;/h1&gt;
&lt;/script&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;b&gt;
13. Apabila sudah jalankan localhost/ci didalam browser,&lt;/b&gt; maka akan keluar form login seperti ini :
&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJ1NFTr2Ag4LuX7M6XYTICJMZKLTZdPdgS84RQl5K-OZ0XMuc9Hkoyn_cpKn1ygQtxbnUun-oaHn4fpx2DCk2BONb6q-jYzccAbCCR1vIP2FIOY8RF-b_RfjI90AEdMjTXD_B2CQcbvbY/s1600/Screenshot+at+2012-06-06+19:17:55.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJ1NFTr2Ag4LuX7M6XYTICJMZKLTZdPdgS84RQl5K-OZ0XMuc9Hkoyn_cpKn1ygQtxbnUun-oaHn4fpx2DCk2BONb6q-jYzccAbCCR1vIP2FIOY8RF-b_RfjI90AEdMjTXD_B2CQcbvbY/s1600/Screenshot+at+2012-06-06+19:17:55.png&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;isikan username : cahyo | password : cahyo&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;b&gt;14. Apabila isian username dan password benar, maka akan redirect ke halaman admin&lt;/b&gt; seperti gambar dibawah ini :&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrl_4R_788KJxY_tVUQHiKoQ6pIJaPhG8pfD1y7SpPEfd_b4AKpfSffWn_uWLG1BAfle3h-B2TEdbSgUXGPj7in691B5WWhb8cPHQGy5rkvOmmWUIoWinfo1CmsIgSj2GQgOle3Ba0oXY/s1600/Screenshot+at+2012-06-06+19:19:22.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;70&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrl_4R_788KJxY_tVUQHiKoQ6pIJaPhG8pfD1y7SpPEfd_b4AKpfSffWn_uWLG1BAfle3h-B2TEdbSgUXGPj7in691B5WWhb8cPHQGy5rkvOmmWUIoWinfo1CmsIgSj2GQgOle3Ba0oXY/s400/Screenshot+at+2012-06-06+19:19:22.png&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Bagaimana, mudah bukan. apabila ingin menggunakan autentikasi tank_auth bisa lihat &lt;a href=&quot;http://pwcahyo.blogspot.com/2012/05/autentikasi-login-dengan-tankauth-ci.html&quot;&gt;disini&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pwcahyo.blogspot.com/feeds/244725788192542910/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://pwcahyo.blogspot.com/2012/06/form-login-with-session-in-codeigniter.html#comment-form' title='19 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2327574882685560773/posts/default/244725788192542910'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2327574882685560773/posts/default/244725788192542910'/><link rel='alternate' type='text/html' href='http://pwcahyo.blogspot.com/2012/06/form-login-with-session-in-codeigniter.html' title='Form login with session in Codeigniter 2.1.0'/><author><name>PW Cahyo</name><uri>http://www.blogger.com/profile/07127917279397769012</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJ1NFTr2Ag4LuX7M6XYTICJMZKLTZdPdgS84RQl5K-OZ0XMuc9Hkoyn_cpKn1ygQtxbnUun-oaHn4fpx2DCk2BONb6q-jYzccAbCCR1vIP2FIOY8RF-b_RfjI90AEdMjTXD_B2CQcbvbY/s72-c/Screenshot+at+2012-06-06+19:17:55.png" height="72" width="72"/><thr:total>19</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2327574882685560773.post-9118902430407601247</id><published>2012-05-30T21:16:00.001-07:00</published><updated>2012-06-06T05:40:46.389-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="codeigniter"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><category scheme="http://www.blogger.com/atom/ns#" term="Programming"/><title type='text'>Autentikasi Login Dengan tank_auth (CI)</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Hai...&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;kembali lagi dengan ane, salam wafer.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Kali ini ane ingin sedikit share autentikasi login menggunakan tank_auth. Sebenarnya framework autentikasi login tu ada banyak, ada ion_auth, wolf_auth, tetapi disini ane mencoba untuk share installasi tank_auth.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Bagaimana caranya ? ok, Siapkan amunisi dulu...&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Ingat dalam tutorial ini, ane make php framework CI (CodeIgniter), dan OS Ubuntu 11.10&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Dengan Asumsi, temen2 sudah menginstall Apache Server dan Database Mysql, kalaupun belum, temen2 bisa &lt;a href=&quot;http://www.apachefriends.org/en/xampp-linux.html#374&quot;&gt;download LAMPP disini&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;1.&amp;nbsp;&lt;a href=&quot;http://codeigniter.com/download.php&quot;&gt;Download CodeIgniter 2.1.0&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;2. Download library framework autentikasi &lt;a href=&quot;http://www.konyukhov.com/soft/tank_auth/tank_auth.zip&quot;&gt;tank_auth 1.0.9&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Langkah - Langkah :&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;1. Extract Codeigniter, klik kanan pada&amp;nbsp;&lt;b&gt;CodeIgniter_2.1.0.zip &lt;/b&gt;Kemudian rename menjadi &lt;b&gt;cilog , &lt;/b&gt;Nama cilog bisa diganti menurut keinginan agan2, saya make cilog karena agar mudah ngetiknya diweb browser, kalau sudah masukan folder cilog tersebut didalam folder htdocs LAMPPnya.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;2. Apabila langkah pertama sudah dilakukan, Sekarang extract &lt;b&gt;tank_auth.zip.&lt;/b&gt; didalam folder &lt;b&gt;tank_auth.zip&lt;/b&gt;&amp;nbsp;akan ada 3 jenis file, &lt;i&gt;1 file database dengan nama schema.sql&lt;/i&gt;, &lt;i&gt;2 direktori dengan nama application dan captcha&lt;/i&gt;. atau dapat dilihat seperti gambar dibawah ini.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTZkNw9ZMZ1FBh31eNHpJUXJYBiRLnNlJ6WCiWzWiPfDPjymyiOs1_1pXvOBKrNWxo6N5nkGVlT3CBBViwfHeEhYK7g-zt5iUrALOlvxuTlvHcWoOA_XReygQgME8oSsMji4u1q_NYSVo/s1600/auth.jpeg.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;137&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTZkNw9ZMZ1FBh31eNHpJUXJYBiRLnNlJ6WCiWzWiPfDPjymyiOs1_1pXvOBKrNWxo6N5nkGVlT3CBBViwfHeEhYK7g-zt5iUrALOlvxuTlvHcWoOA_XReygQgME8oSsMji4u1q_NYSVo/s640/auth.jpeg.png&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;3. Copykan &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;isi&lt;/span&gt;&lt;/b&gt; folder application kedalam folder &amp;nbsp;&lt;b&gt;htdocs/cilog/application&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;4. Copykan &lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;folder&lt;/b&gt;&lt;/span&gt; captcha kedalam folder root cilog atau&amp;nbsp;&lt;b&gt;htdocs/cilog&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;5. Buatlah database dengan nama &lt;b&gt;cilok&lt;/b&gt; didalam phpmyadmin. &lt;b&gt;localhost/phpmyadmin&lt;/b&gt; didalam browser, dengan aturan apache dan mysql dalam posisi running.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;6. Dump/import database schema.sql kedalam database cilok, cara dumping database bisa cari di google.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;7. Apabila database sudah temen2 dump, buka file config.php, tank_auth.php, database.php, autoload.php didalam folder&amp;nbsp;&lt;b&gt;htdocs/cilog/application/config&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;a. edit config.php&lt;/b&gt; &lt;/span&gt;di line 227, &lt;b&gt;$config[&#39;encryption_key&#39;] = &#39;&#39;; &amp;nbsp;&lt;/b&gt;ubah menjadi&amp;nbsp;&lt;b&gt;config[&#39;encryption_key&#39;] = &#39;thi5k3yc0nf1gur4t10n&#39;;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Mengapa demikian, karena digunakan untuk enskripsi disetiap pemanggilan page di dalam CI (Untuk keamanan kalau masih bingung)&amp;nbsp;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/b&gt;Sedangkan line&lt;b&gt;&amp;nbsp;&lt;/b&gt;251,&amp;nbsp;&lt;b&gt;$config[&#39;sess_use_database&#39;]&amp;nbsp;= FALSE; &lt;/b&gt;menjadi&amp;nbsp;&lt;b&gt;$config[&#39;sess_use_database&#39;]&amp;nbsp;= TRUE;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Digunakan agar Session yang diload dari database dapat bekerja didalam Codeigniter.&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;b. edit tank_auth.php&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;di line 10 dan 11 terdapat :&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$config[&#39;website_name&#39;] = &#39;Your project&#39;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;//isikan&amp;nbsp;&lt;b&gt;http://localhost/cilog/ &lt;/b&gt;menjadi&amp;nbsp;&lt;b&gt;$config[&#39;website_name&#39;] = &#39;http://localhost/cilog/&#39;;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$config[&#39;webmaster_email&#39;] = &#39;webmaster@your-site.com&#39;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;//webmaster@your-site.com ganti&amp;nbsp;alamat email ente&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: red; font-weight: bold;&quot;&gt;c. edit database.php&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt; menjadi seperti ini :&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;script class=&quot;brush:php&quot; type=&quot;syntaxhighlighter&quot;&gt;
$db[&#39;default&#39;][&#39;hostname&#39;] = &#39;localhost&#39;;
$db[&#39;default&#39;][&#39;username&#39;] = &#39;root&#39;;
$db[&#39;default&#39;][&#39;password&#39;] = &#39;&#39;;
$db[&#39;default&#39;][&#39;database&#39;] = &#39;cilok&#39;;
$db[&#39;default&#39;][&#39;dbdriver&#39;] = &#39;mysql&#39;;
&lt;/script&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;
Isikan hostname = localhost, username = &lt;i&gt;username_phpmyadmin(default root), &lt;/i&gt;password = password_phpmyadmin(default kosong), database = cilok &lt;i&gt;(nama db yang telah kita buat didalamnya ada hasil dumping dari schema.sql). &lt;/i&gt;dbdriver =mysql.&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt; &amp;nbsp;d. edit autoload.php&lt;/span&gt;&lt;/b&gt; &lt;b&gt;$autoload[&#39;libraries&#39;] = array();&lt;/b&gt; menjadi&amp;nbsp;&lt;b&gt;$autoload[&#39;libraries&#39;] = array(&#39;database&#39;,&#39;session&#39;);&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Gunanya agar session dan database bisa digunakan, maka harus meload library tersebut.&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;8. Ubah permission folder /capctha agar server bisa mengenali/membacanya,&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;diterminal ketikan &lt;b&gt;sudo chmod -R 777&lt;/b&gt; &lt;b&gt;&lt;i&gt;&lt;span style=&quot;color: red;&quot;&gt;direktori_captcha_berada&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Semisal : &lt;/span&gt;sudo chmod -R 777 /opt/lampp/htdocs/cilog/captcha&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Apabila sudah, dilocalhost ketikan &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;localhost/cilog&lt;/span&gt;&lt;/b&gt; maka akan keluar halaman :&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2V9QUL6FcPzm606-iwaiUgT379kuBq5qKudTwZwAKg6L5SFbv_FFIG0IXxhJeXcmzJzsIcIrFBcU3UfAQvHehpXCz_di0bw2QbqcrWOSd0_OAb2yGAd47lUJr8-wMvi6wBFGOG8brR88/s1600/Screenshot+at+2012-05-31+10:54:49.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;118&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2V9QUL6FcPzm606-iwaiUgT379kuBq5qKudTwZwAKg6L5SFbv_FFIG0IXxhJeXcmzJzsIcIrFBcU3UfAQvHehpXCz_di0bw2QbqcrWOSd0_OAb2yGAd47lUJr8-wMvi6wBFGOG8brR88/s320/Screenshot+at+2012-05-31+10:54:49.png&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Untuk mendaftar sebagai user, temen2 bisa &amp;nbsp;Klik &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;register&lt;/span&gt;&lt;/b&gt;, maka akan di suguhi halaman :&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6vZ4WZlxovw0iLh7xL2vkYx-Qg5draLQB-Vzco2QXq7ljl4W03QKk3ye1EzAZQF_yhz26MqS2iXmajWgvcMsiKDecgIeRELiD53T4TrMrfernEfO16KsLo7rbhL8dkXxH1IVjCDM8BCo/s1600/Screenshot+at+2012-05-31+10:57:14.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;243&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6vZ4WZlxovw0iLh7xL2vkYx-Qg5draLQB-Vzco2QXq7ljl4W03QKk3ye1EzAZQF_yhz26MqS2iXmajWgvcMsiKDecgIeRELiD53T4TrMrfernEfO16KsLo7rbhL8dkXxH1IVjCDM8BCo/s320/Screenshot+at+2012-05-31+10:57:14.png&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;**Note : untuk register, memasukan captcha harap sama, case sensitive&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Sudah daftar kok masih belum bisa login, ubah activated user yang telah anda daftarkan menjadi &lt;span style=&quot;color: red;&quot;&gt;1 . &lt;/span&gt;Cara Mengubah buka database cilok, cari tabel users, dikolom activated (yang semula 0, diganti menjadi 1). kemudian ulangi lagi&amp;nbsp;&lt;span style=&quot;color: red; font-weight: bold;&quot;&gt;localhost/cilog&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihuXH2hyDNRV0GiPpFo_gplNwb9Sa8ytZDVPC6XRVe2skYZMXnKNbIVHekJb_mnuKxyeGeLB21hmAONA4JGp6eMEgPND_Yu7mc19tuM46sidZeZbF3KYnx2QI9MNx5a0gWFuYY8PAWpdQ/s1600/Screenshot+at+2012-05-31+11:08:34.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihuXH2hyDNRV0GiPpFo_gplNwb9Sa8ytZDVPC6XRVe2skYZMXnKNbIVHekJb_mnuKxyeGeLB21hmAONA4JGp6eMEgPND_Yu7mc19tuM46sidZeZbF3KYnx2QI9MNx5a0gWFuYY8PAWpdQ/s1600/Screenshot+at+2012-05-31+11:08:34.png&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Masukan Username dan Password, apabila sudah berhasil maka temen2 akan dibawa ke halaman home seperti gambar dibawah :&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhiQxXCzL8E8CvWr3QhwSdU18D8lWfPGeMWljTA_nel9jyX48v5OCqtzrs02x04eyol0H3Z0FOuJhHoMPLwK-ekgF6G2hm7M1v4PSOrmjG89atvdhgkJVB6unb6FGVrsRcGiPyheLbGlEc/s1600/Screenshot+at+2012-05-31+11:08:55.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhiQxXCzL8E8CvWr3QhwSdU18D8lWfPGeMWljTA_nel9jyX48v5OCqtzrs02x04eyol0H3Z0FOuJhHoMPLwK-ekgF6G2hm7M1v4PSOrmjG89atvdhgkJVB6unb6FGVrsRcGiPyheLbGlEc/s1600/Screenshot+at+2012-05-31+11:08:55.png&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Untuk Mengganti design halaman home, bisa diedit &lt;b&gt;welcome.php&lt;/b&gt; didalam folder &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;/htdocs/cilog/application/views&lt;/span&gt;&lt;/b&gt; didalamnya ada welcome.php silahkan berkreasi...&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Maka autentikasi login menggunakan tank_auth sudah bisa digunakan, mudah bukan menggunakan tank_auth, daripada menggunakan cara login manual. kita harus mengetik macem2 kode, yang mana digunakan select data user, dan sebagainya. dengan framework autentikasi kita dimanjakan tinggal menambahkan librarynya saja. CMIIW&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://pwcahyo.blogspot.com/feeds/9118902430407601247/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://pwcahyo.blogspot.com/2012/05/autentikasi-login-dengan-tankauth-ci.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2327574882685560773/posts/default/9118902430407601247'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2327574882685560773/posts/default/9118902430407601247'/><link rel='alternate' type='text/html' href='http://pwcahyo.blogspot.com/2012/05/autentikasi-login-dengan-tankauth-ci.html' title='Autentikasi Login Dengan tank_auth (CI)'/><author><name>PW Cahyo</name><uri>http://www.blogger.com/profile/07127917279397769012</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTZkNw9ZMZ1FBh31eNHpJUXJYBiRLnNlJ6WCiWzWiPfDPjymyiOs1_1pXvOBKrNWxo6N5nkGVlT3CBBViwfHeEhYK7g-zt5iUrALOlvxuTlvHcWoOA_XReygQgME8oSsMji4u1q_NYSVo/s72-c/auth.jpeg.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2327574882685560773.post-2012076397272737765</id><published>2012-05-18T19:14:00.003-07:00</published><updated>2012-05-18T23:04:17.157-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Programming"/><category scheme="http://www.blogger.com/atom/ns#" term="tipsandtricks"/><title type='text'>Installasi PostgreSQL di Linux Ubuntu</title><content type='html'>&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Install PostgreSQL didalam Linux UBUNTU 11.10 (Oneiric Ocelot).&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Apa yang kita butuhkan :&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Download &lt;span style=&quot;color: black;&quot;&gt;&lt;a href=&quot;http://get.enterprisedb.com/postgresql/postgresql-9.1.3-2-linux.run&quot;&gt;PostgreSQL 9.1.3 disini&lt;/a&gt;, untuk PostgreSQL terbaru silahkan cek &lt;a href=&quot;http://www.enterprisedb.com/products-services-training/pgdownload&quot;&gt;disini&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Apabila temen - &amp;nbsp;temen menginginkan cara install OFFLINE kedua Hal tersebut harus terpenuhi, kalau mau install ONLINE sih mudah, tinggal &lt;b&gt;apt-get, &lt;/b&gt;saya tidak bermaksud memberikan cara yang sulit didalam installasi ini, kenapa ? Apabila temen - temen tidak ada koneksi inet kan agak bribet. Makannya saya berikan tutorial yang mudah, bisa diterapkan pada komputer konek internet maupun tidak.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Keuntungan dengan installasi OFFline diantaranya, kita dapat dengan mudah mendistribusikan postgresql tersebut ke ubuntu laen, gk usah apt-get berkali2 dan menggunakan inet yang lemot, hehehe.....&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Jujur saja sih, installasi ONLINE membuat saya tidak mandiri, kenapa ? karena saya harus ketergantungan internet untuk install software, bentar - bentar apt-get,&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Makannya saya menyukai installasi offline,&amp;nbsp;hehehe...&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Apabila postgresql sudah didownload, ikuti langkah2 yang akan dijelaskan dibawah ini :&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;1. Ubah permission dari &lt;b&gt;postgresql-9.1.3-2-linux &lt;/b&gt;menjadi executable,&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;diterminal ketikan, sudo chmod +x&amp;nbsp;postgresql-9.1.3-2-linux&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;2. Kemudian jalankan installasi, GUI-nya, caranya bagaimana, tinggal ketikan ./&lt;b&gt;postgresql-9.1.3-2-linux&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;di terminal, maka akan keluar tampilan&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Splashscreen :&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://i1127.photobucket.com/albums/l631/insomniart90/bloging/pos1.png&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;sabar bro, tunggu bentar akan keluar tampilan :&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://i1127.photobucket.com/albums/l631/insomniart90/bloging/pos2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;308&quot; src=&quot;http://i1127.photobucket.com/albums/l631/insomniart90/bloging/pos2.png&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Dari tampilan diatas kita tinggal klik next, seperti installasi biasanya dalam windows, klik next akan muncul :&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://i1127.photobucket.com/albums/l631/insomniart90/bloging/pos3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;308&quot; src=&quot;http://i1127.photobucket.com/albums/l631/insomniart90/bloging/pos3.png&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Gambar diatas menunjukan, mau dimana letak installasi postgresql tersebut, ditempat ane, ane install di folder &lt;b&gt;/opt/PostgreSQL/&lt;/b&gt;, Apabila folder&amp;nbsp;&lt;b&gt;PostgreSQL &lt;/b&gt;didalam folder tidak ada, create folder&amp;nbsp;&lt;b&gt;PostgreSQL &lt;/b&gt;dulu bro,&amp;nbsp;sampai sini klik next lagi, akan muncul tampilan seperti dibawah :&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://i1127.photobucket.com/albums/l631/insomniart90/bloging/pos4.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;308&quot; src=&quot;http://i1127.photobucket.com/albums/l631/insomniart90/bloging/pos4.png&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Itu isikan password user postgres, isikan dua kali, la disini postgres bertugas sebagai root kalau di mysql, dia memiliki hak akses tertinggi, apabila dua field diatas sudah diisi, klik next lagi bro...&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://i1127.photobucket.com/albums/l631/insomniart90/bloging/pos5.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;308&quot; src=&quot;http://i1127.photobucket.com/albums/l631/insomniart90/bloging/pos5.png&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Maka akan disuguhi tampilan seperti diatas, isikan port yang digunakan untuk menjalankan postgres, port standard dari postgres yaitu 5432, apabila tidak mau mendefinisikan sendiri port mana, biarkan saja dan klik next lagi, maka akan muncul tampilan seperti gambar dibawah.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://i1127.photobucket.com/albums/l631/insomniart90/bloging/pos6.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;308&quot; src=&quot;http://i1127.photobucket.com/albums/l631/insomniart90/bloging/pos6.png&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Untuk database Cluster isikan Default Locale saja. klik next maka akan tampil seperti gambar dibawah &amp;nbsp;:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://i1127.photobucket.com/albums/l631/insomniart90/bloging/pos7.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;308&quot; src=&quot;http://i1127.photobucket.com/albums/l631/insomniart90/bloging/pos7.png&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Gambar diatas, menunjukan bahwa postgresql sudah siap diinstall, klilk next. maka akan melakukan installasi seperti pada gambar dibawah.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://i1127.photobucket.com/albums/l631/insomniart90/bloging/pos8.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;308&quot; src=&quot;http://i1127.photobucket.com/albums/l631/insomniart90/bloging/pos8.png&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Tunggu hingga selesai, apabila installasi sudah selesai maka akan disuguhi tampilan seperti gambar dibawah :&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://i1127.photobucket.com/albums/l631/insomniart90/bloging/pos9.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;308&quot; src=&quot;http://i1127.photobucket.com/albums/l631/insomniart90/bloging/pos9.png&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;hilangkan tanda didalam stackbuilder agar tidak melakukan download additional tool, apabila sudah dihilangkan klik finish, dan lihat hasilnya di menu :&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://i1127.photobucket.com/albums/l631/insomniart90/bloging/pos10.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;378&quot; src=&quot;http://i1127.photobucket.com/albums/l631/insomniart90/bloging/pos10.png&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Tukan.... Postgresql dah berhasil di install, o iya, untuk pengolahan database postgresql ini, didalam postgresql 9.1.3 sudah default bawaan &lt;b&gt;pgAdmin III , &lt;/b&gt;jadi disini kita tidak perlu repot untuk installasi pgadmin maupun phppgadmin, akan tetapi apabila temen - temen suka menggunakan phppgadmin, temen - temen juga bisa untuk install tersendiri.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Untuk cara penggunaan kita lanjutkan pada &lt;b&gt;step berikutnya&lt;/b&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: white; color: red; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 14px; line-height: 20px;&quot;&gt;Dilarang keras, COPAS Seluruh artikel ini kedalam blog maupun website, usahakan dan biasakan cara berfikir temen - temen untuk selalu creative dalam posting blog.&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pwcahyo.blogspot.com/feeds/2012076397272737765/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://pwcahyo.blogspot.com/2012/05/installasi-postgresql-di-linux-ubuntu.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2327574882685560773/posts/default/2012076397272737765'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2327574882685560773/posts/default/2012076397272737765'/><link rel='alternate' type='text/html' href='http://pwcahyo.blogspot.com/2012/05/installasi-postgresql-di-linux-ubuntu.html' title='Installasi PostgreSQL di Linux Ubuntu'/><author><name>PW Cahyo</name><uri>http://www.blogger.com/profile/07127917279397769012</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://i1127.photobucket.com/albums/l631/insomniart90/bloging/th_pos1.png" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2327574882685560773.post-3422784243857031214</id><published>2012-05-18T09:26:00.005-07:00</published><updated>2012-05-18T09:33:45.614-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Programming"/><category scheme="http://www.blogger.com/atom/ns#" term="tipsandtricks"/><title type='text'>PostgreSQL is</title><content type='html'>&lt;div style=&quot;text-align: right;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;b&gt;Postgresql ?&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Apa itu postgresql ?, temen - temen sudah taukan, apa itu postgresql, postgresql adalah perangkat lunak RDBMS (Relational Database Management System), yang saat ini masih bersifat open source, hampir seperti Mysql. keduanya mengakomodasi SQL (Structured Query Language). Bedanya saat kita ingin mengolah data tersebut secara GUI (General User Interface). Biasanya Mysql menggunakan PHPMyadmin, sedangkan Postgresql menggunakan phppgadmin atau pgadmin.&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Kedua RDBMS di atas bersifat open source, terus ada atau tidak RDBMS yang bersifat commercial, yang memiliki kemampuan Expert diatas RDBMS Open Source tersebut ? Jawabnya adalah &lt;b&gt;ada&lt;/b&gt;, dan banyak. Diantaranya ada Oracle, Sybase Adaptive dan Microsoft SQL Server. Ketiga RDBMS tersebut bersifat commercial dan kemampuan sesuai dengan harga atau budget yang dikeluarkan juga donk... Mau lebih jelas ni liat perbedaannya dibawah.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;http://img.com.com/i/tr/contentPics/r00220020307low01_01.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;519&quot; src=&quot;http://img.com.com/i/tr/contentPics/r00220020307low01_01.gif&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;**untuk lebih jelasnya. klik pada gambar&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Terlihat bedanya kan... dari Support, Operating Sistem, Feature dan bidang keunggulan lainnya...&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Sampai sini kita sudah mengerti, Postgresql dan mengetahui kelebihan maupun kekurangannya. Disini tergantung temen - temen mau menggunakan yang mana, kalo berduit dan pengen yang mempunyai kemampuan expert dalam mengolah data, dsb. Seperti data nasabah bank, data pengguna Operator. Bisa memilih Oracle&amp;nbsp;9i&amp;nbsp;Enterprise atau IBM DB2 Enterprise Extended.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Walaupun Postgresql open source, paling tidak kita mengerti dan cara penggunaan RDBMS Postgresql tersebut, untuk itu kita belajar Install Postgresql 9.1.3 di Linux Ubuntu terlebih dahulu&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: red; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 14px; line-height: 20px;&quot;&gt;Dilarang keras, COPAS seluruh artikel ini diblog maupun website, usahakan dan biasakan cara berfikir temen - temen untuk selalu creative dalam posting blog :D.&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pwcahyo.blogspot.com/feeds/3422784243857031214/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://pwcahyo.blogspot.com/2012/05/what-is-postgresql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2327574882685560773/posts/default/3422784243857031214'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2327574882685560773/posts/default/3422784243857031214'/><link rel='alternate' type='text/html' href='http://pwcahyo.blogspot.com/2012/05/what-is-postgresql.html' title='PostgreSQL is'/><author><name>PW Cahyo</name><uri>http://www.blogger.com/profile/07127917279397769012</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2327574882685560773.post-1984098186817565201</id><published>2012-05-17T03:42:00.001-07:00</published><updated>2012-05-18T09:34:57.868-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="php"/><category scheme="http://www.blogger.com/atom/ns#" term="Programming"/><title type='text'>Latihan PHP OOP [Part 1]</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Penjelasan PHP OOP sudah tahukan, di pembahasan kemaren kan udah di jelasin, kalau masih lupa, liat lagi &lt;a href=&quot;http://pwcahyo.blogspot.com/2012/05/php-oop.html&quot;&gt;disini&lt;/a&gt;, Ok sekarang kita bahas, Pertama kita buat class dengan nama mobil.php .&lt;script class=&quot;brush:php&quot; type=&quot;syntaxhighlighter&quot;&gt;
&lt;![CDATA[
&lt;?php
        class mobil{
                var $warna;
                var $merek;
                
                function __construct($warna, $merek){
                        $this-&gt;warna = $warna;
                        $this-&gt;merek = $merek;
                }
                        
                function tampilWarna(){
                        echo $this-&gt;warna;
                }
                
                function tampilMerek(){
                        echo $this-&gt;merek;
                }
        }
?&gt;
]]&gt;
&lt;/script&gt;
Kedua kita buat file php dengan nama index.php, isi file index.php
&lt;script class=&quot;brush:php&quot; type=&quot;syntaxhighlighter&quot;&gt;
&lt;![CDATA[
&lt;?php 
        include (&quot;mobil.php&quot;);

        $sedan = new mobil(&quot;Merah&quot;,&quot;Daihatsu&quot;);
        $pickup = new mobil(&quot;Putih&quot;,&quot;Toyota&quot;);

        echo &quot;Warna Sedan : &quot;; $sedan-&gt;tampilWarna();
        echo &quot;&lt;/br&gt;Merek Sedan : &quot;; $sedan-&gt;tampilMerek();
        echo &quot;&lt;/br&gt;&quot;;
        echo &quot;Warna Pickup : &quot;; $pickup-&gt;tampilWarna();
        echo &quot;&lt;/br&gt;Merek Pickup : &quot;; $pickup-&gt;tampilMerek();
?&gt;
]]&gt;
&lt;/script&gt;
didalam file index.php terdapat object baru dengan nama sedan dan pickup &lt;i&gt;(cara create object, lihat line 4 dan 5)&lt;/i&gt;, kedua object tersebut diciptakan dari class mobil yang sebelumnya diload kedalam index.php, &lt;i&gt;lihat posisi index.php pada line 2&lt;/i&gt;.
&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Saat create object sedan dan pickup, mereka memakai dua parameter, contoh : dicreate object sedan menggunakan parameter Merah dan Daihatsu, begitu pula parameter yang digunakan oleh object pickup, kedua parameter yang ada didalam 2 object tersebut akan ditangkap oleh constructor mobil pada file mobil.php,
&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Untuk pemanggilan method, lihat line 7 pada index.php. didalam line 7 tersebut, ada syntax &lt;b&gt;$sedan-&amp;gt;tampilWarna();&lt;/b&gt; itu digunakan untuk memanggil method tampilWarna terhadap object sedan. begitu pula  pemanggilan method tampilMerek, lihat line 8. Untuk pemanggilan method terhadap object pickup, sama, lihat line 10 dan 11.
&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;udah paham to ?? mudah bukan...,&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Dilarang keras, COPAS Seluruh artikel ini kedalam blog maupun website, usahakan dan biasakan cara berfikir temen - temen untuk selalu creative dalam posting blog.&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pwcahyo.blogspot.com/feeds/1984098186817565201/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://pwcahyo.blogspot.com/2012/05/latihan-php-oop-part-1.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2327574882685560773/posts/default/1984098186817565201'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2327574882685560773/posts/default/1984098186817565201'/><link rel='alternate' type='text/html' href='http://pwcahyo.blogspot.com/2012/05/latihan-php-oop-part-1.html' title='Latihan PHP OOP [Part 1]'/><author><name>PW Cahyo</name><uri>http://www.blogger.com/profile/07127917279397769012</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2327574882685560773.post-5835147753923410422</id><published>2012-05-14T17:25:00.001-07:00</published><updated>2012-05-14T18:16:14.063-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="blog"/><category scheme="http://www.blogger.com/atom/ns#" term="tipsandtricks"/><title type='text'>Syntax Highlighter Blog</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Kemaren ane dah posting bagaimana cara posting source code program di blog menggunakan syntax highlight gorbatchev versi 1.5.2. &amp;nbsp;Ternyata e ternyata sekarang dah ada Syntax Gorbatchev Version 3.0.83. Ketinggalan kan makannya sekarng ane mau posting yang terbaru ni....&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Cara set, di template htmlnya bagaimana, hampir sama kayak setting &lt;a href=&quot;http://pwcahyo.blogspot.com/2012/05/menambahkan-syntax-highlight-di-blogger.html&quot;&gt;highlight old version&lt;/a&gt;. Perbedaan terbukti jelas pada CSS dan Javascript yang digunakan, serta cara penempatan saat ingin memposting source code tersebut.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Kita tinggal mengedit Template Html kita, taruh source code CSS dan JavaScript di atas &lt;b&gt;&amp;lt;/head&amp;gt;&lt;/b&gt; . Untuk Sourcenya silahkan copy paste bawah ini :&lt;/span&gt;&lt;/div&gt;
&lt;pre class=&quot;brush:html&quot;&gt;&lt;link href=&quot;http://alexgorbatchev.com/pub/sh/current/styles/shCore.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt;&lt;/link&gt;
&lt;link href=&quot;http://alexgorbatchev.com/pub/sh/current/styles/shThemeDefault.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt;&lt;/link&gt;
&lt;script src=&quot;http://alexgorbatchev.com/pub/sh/current/scripts/shCore.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;
&lt;script src=&quot;http://alexgorbatchev.com/pub/sh/current/scripts/shBrushCpp.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;
&lt;script src=&quot;http://alexgorbatchev.com/pub/sh/current/scripts/shBrushCSharp.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;
&lt;script src=&quot;http://alexgorbatchev.com/pub/sh/current/scripts/shBrushCss.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;
&lt;script src=&quot;http://alexgorbatchev.com/pub/sh/current/scripts/shBrushJava.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;
&lt;script src=&quot;http://alexgorbatchev.com/pub/sh/current/scripts/shBrushJScript.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;
&lt;script src=&quot;http://alexgorbatchev.com/pub/sh/current/scripts/shBrushPhp.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;
&lt;script src=&quot;http://alexgorbatchev.com/pub/sh/current/scripts/shBrushPython.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;
&lt;script src=&quot;http://alexgorbatchev.com/pub/sh/current/scripts/shBrushRuby.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;
&lt;script src=&quot;http://alexgorbatchev.com/pub/sh/current/scripts/shBrushSql.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;
&lt;script src=&quot;http://alexgorbatchev.com/pub/sh/current/scripts/shBrushVb.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;
&lt;script src=&quot;http://alexgorbatchev.com/pub/sh/current/scripts/shBrushXml.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;
&lt;script src=&quot;http://alexgorbatchev.com/pub/sh/current/scripts/shBrushPerl.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;

&lt;script language=&quot;javascript&quot;&gt;
SyntaxHighlighter.config.bloggerMode = true;
SyntaxHighlighter.config.clipboardSwf = &#39;http://alexgorbatchev.com/pub/sh/current/scripts/clipboard.swf&#39;;
SyntaxHighlighter.all();
&lt;/script&gt;

&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;Kita lihat dari syntax CSSnya, di Syntax Highlight Gortbachev Version 3.0.83. Disertakan beberapa template CSS, sehingga teman - teman bisa menggantinya sesuai keinginan teman - teman.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;diantaranya ada :&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;1.&amp;nbsp;&lt;a href=&quot;http://alexgorbatchev.com/SyntaxHighlighter/manual/themes/default.html&quot; style=&quot;background-color: white; color: #507aa5; font-size: 12px; line-height: 18px; text-align: justify; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;shThemeDefault.css&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;2.&amp;nbsp;&lt;a href=&quot;http://alexgorbatchev.com/SyntaxHighlighter/manual/themes/django.html&quot; style=&quot;background-color: white; color: #507aa5; font-size: 12px; line-height: 18px; text-align: justify; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;shThemeDjango.css&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;3.&amp;nbsp;&lt;a href=&quot;http://alexgorbatchev.com/SyntaxHighlighter/manual/themes/eclipse.html&quot; style=&quot;background-color: white; color: #507aa5; font-size: 12px; line-height: 18px; text-align: justify; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;shThemeEclipse.css&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;4.&amp;nbsp;&lt;a href=&quot;http://alexgorbatchev.com/SyntaxHighlighter/manual/themes/emacs.html&quot; style=&quot;background-color: white; color: #507aa5; font-size: 12px; line-height: 18px; text-align: justify; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;shThemeEmacs.css&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;5.&amp;nbsp;&lt;a href=&quot;http://alexgorbatchev.com/SyntaxHighlighter/manual/themes/fadetogrey.html&quot; style=&quot;background-color: white; color: #507aa5; font-size: 12px; line-height: 18px; text-align: justify; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;shThemeFadeToGrey.css&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;6.&amp;nbsp;&lt;a href=&quot;http://alexgorbatchev.com/SyntaxHighlighter/manual/themes/midnight.html&quot; style=&quot;background-color: white; color: #507aa5; font-size: 12px; line-height: 18px; text-align: justify; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;shThemeMidnight.css&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;7.&amp;nbsp;&lt;a href=&quot;http://alexgorbatchev.com/SyntaxHighlighter/manual/themes/rdark.html&quot; style=&quot;background-color: white; color: #507aa5; font-size: 12px; line-height: 18px; text-align: justify; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;shThemeRDark.css&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Cara Penggunaannya Biasa, tinggal ganti aja nama cssnya&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjazOg2cChiX_7cI_bdS3U6AvosPzmGLoljkpUTS9chU6OKPawuNFa5z9cMWSQ-nEcOC0197uHyRnamOFxSMPgE1YTa0g3n5EOFyUHXJD-JDIiAEnpNTkVXhyBs8MTvu4x9WORoZTb1n5E/s1600/gorbatchev.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjazOg2cChiX_7cI_bdS3U6AvosPzmGLoljkpUTS9chU6OKPawuNFa5z9cMWSQ-nEcOC0197uHyRnamOFxSMPgE1YTa0g3n5EOFyUHXJD-JDIiAEnpNTkVXhyBs8MTvu4x9WORoZTb1n5E/s1600/gorbatchev.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;Kita lihat dalam Javascriptnya :&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;- Old &lt;i&gt;(yang dulu)&lt;/i&gt;:&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush:html&quot;&gt;&lt;script src=&quot;http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shCore.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;
&lt;/pre&gt;
- &lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;New &lt;i&gt;(di versi 3.0.83)&lt;/i&gt;:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush:html&quot;&gt;&lt;script src=&quot;http://alexgorbatchev.com/pub/sh/current/scripts/shCore.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;
&lt;/pre&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Terlihat dengan jelas source yang pertama alamat Javascript mengarah ke http://syntaxhighlighter.googlecode.com/ sedangkan yang kedua atau yang baru mengarah ke situs gorbatchevnya langsung http://alexgorbatchev.com/

&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Ok, kalau script Javascript dan CSSnya sudah dipaste diatas &lt;b&gt;&amp;lt;/head&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Kita menuju ke cara posting, cara posting ada dua cara :&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;1. Menggunakan syntax &amp;lt;pre&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush:html&quot;&gt;&lt;pre class=&quot;brush:html&quot;&gt;HTML code ketikan disini
&lt;/pre&gt;
&lt;/pre&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Untuk Syntax selain html tinggal ganti &lt;b&gt;brush:html&lt;/b&gt; dengan &lt;b&gt;brush:java&lt;/b&gt; dsbnya.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;2. Menggunakan syntax &amp;lt;script&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush:html&quot;&gt;&lt;script class=&quot;brush:php&quot; type=&quot;syntaxhighlighter&quot;&gt;
&lt;![CDATA[
PHP code ketikan disini
]]&gt;
&lt;/script&gt;
&lt;/pre&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;untuk Syntax selain php tinggal diganti &lt;b&gt;brush:php&lt;/b&gt; dengan &lt;b&gt;brush:html&lt;/b&gt; dsbnya&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;**NOTE khusus untuk syntax php menggunakan &amp;lt;script&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Apabila teman - teman tidak pernah memposting source code Python, untuk memperingan load tampilan browser, teman - teman delete saja script :&lt;/span&gt;&lt;br /&gt;
&lt;pre class=&quot;brush:html&quot;&gt;&lt;script src=&quot;http://alexgorbatchev.com/pub/sh/current/scripts/shBrushPython.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;
&lt;/pre&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Tapi memang, enak make yang baru, daripada yang lama, Hehehe...&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Sudah, itu aja, teman - teman tinggal nyoba. untuk list brush bisa dilihat &lt;b&gt;&lt;a href=&quot;http://alexgorbatchev.com/SyntaxHighlighter/manual/brushes/&quot;&gt;disini&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;#Jangan Copas Artikel Milik Orang laen, Hargai Usaha Orang Laen.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;SALAM WAFER....&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://pwcahyo.blogspot.com/feeds/5835147753923410422/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://pwcahyo.blogspot.com/2012/05/kemaren-ane-dah-posting-bagaimana-cara.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2327574882685560773/posts/default/5835147753923410422'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2327574882685560773/posts/default/5835147753923410422'/><link rel='alternate' type='text/html' href='http://pwcahyo.blogspot.com/2012/05/kemaren-ane-dah-posting-bagaimana-cara.html' title='Syntax Highlighter Blog'/><author><name>PW Cahyo</name><uri>http://www.blogger.com/profile/07127917279397769012</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjazOg2cChiX_7cI_bdS3U6AvosPzmGLoljkpUTS9chU6OKPawuNFa5z9cMWSQ-nEcOC0197uHyRnamOFxSMPgE1YTa0g3n5EOFyUHXJD-JDIiAEnpNTkVXhyBs8MTvu4x9WORoZTb1n5E/s72-c/gorbatchev.png" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2327574882685560773.post-7024660532267599835</id><published>2012-05-13T22:30:00.002-07:00</published><updated>2012-05-17T04:02:34.795-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="php"/><category scheme="http://www.blogger.com/atom/ns#" term="Programming"/><title type='text'>PHP OOP</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Apa itu PHP OOP, PHP OOP itu sendiri adalah tata cara pemrograman berbasis Object Oriented yang dilakukan menggunakan PHP. Kenapa OOP lebih di sukai, dikarenakan Simpel, membuat programing kita lebih efisien, terhadap syntax maupun fikiran, karena didalam OOP itu sendiri kita tidak lepas dengan namanya class dan method, apabila class tersebut sudah &amp;nbsp;kita create atau diciptakan, didalamnya kita bisa mendefinisikan method - method yang akan kita gunakan, seumpama kita ingin membuat Objek, kita tinggal create new Objek terhadap class yang telah kita ciptakan tadi, apabila Object baru sudah dipanggil, kita bisa memanggil method terhadap Objek baru yang telah kita ciptakan tadi. Intinya, OOP dalam PHP tu hampir sama dengan java. Apabila teman - teman telah mempunyai modal pengetahuan tentang java, maka akan sedikit lebih mudah dalam implementasi OOP dalam PHP.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Ok, sampai sini kita sudah mengerti apa yang dimaksud dengan PHP OOP, banyak juga keuntungan programing with OOP, apabila kita menggunakan PHP OOP kita akan lebih mudah dalam belajar Framework, Diantaranya CI(CodeIgniter), CakePHP dan banyak juga yang lain.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Untuk lebih mudah dalam pengertian saya kasih gambaran tentang alur sederhana pembuatan Oject OOP dalam PHP.&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPXGyKE15BPOGjczOVc8iK0b7JRRyxchxALJw-Cx7VoD1Mlq_JqrRyHpS2rwzdSq51NtrpTOBFXBk9jIZxCt9snp8DOI7MpVRFL5MYq3dgkb3aPVNCcE2PYNMp1sMh_3ypgOozCaeEONQ/s1600/oop.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPXGyKE15BPOGjczOVc8iK0b7JRRyxchxALJw-Cx7VoD1Mlq_JqrRyHpS2rwzdSq51NtrpTOBFXBk9jIZxCt9snp8DOI7MpVRFL5MYq3dgkb3aPVNCcE2PYNMp1sMh_3ypgOozCaeEONQ/s1600/oop.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; Dari gambar diatas dapat kita pahami, bahwa sebelumnya kita membuat&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;- &lt;b&gt;class mobil&lt;/b&gt;, yang ada disisi sebelah kiri, class mobil itu mempunyai variable warna dan merek. Selain itu mempunyai constructor berparameter warna dan merek. Tak hanya itu, class mobilpun memiliki function tampilWarna() dan tampilMerek.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;untuk menggunakan class mobil tersebut, kita menciptakan 2 object, yaitu &lt;b&gt;sedan&lt;/b&gt; dan &lt;b&gt;pickup&lt;/b&gt;. disetiap create object tersebut menggunakan parameter warna dan merek lihat &lt;b&gt;sedan = new mobil(warna, merek)&lt;/b&gt; yang nantinya akan ditangkap oleh parameter didalam __&lt;b&gt;constructor(warna, merek)&lt;/b&gt;&amp;nbsp;&lt;i&gt;(parameter itu variable yang ada didalam kurung function atau constructor, kalau diatas dikasih nama warna pada parameter 1, merek pada parameter kedua, sehingga function atau method tersebut dapat dibilang mempunyai 2 parameter.)&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;kenapa ditangkap oleh&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;__&lt;/span&gt;&lt;b style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;constructor(warna, merek). &lt;/b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Karena constructor adalah funtion/method bawaan default yang dipunyai dalam class tersebut, sehingga saat kita mengcreate objek, maka constructor tersebut akan otomatis di load, tanpa harus menggunakan definisi panggilan method&lt;b&gt;.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Apabila object berhasil kita ciptakan, kita dapat memanggil method/function yang ada didalam class mobil. didalam class mobil ada function/method tampilWarna() dan tampilMerek.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;cara pemanggilannya seperti apa &lt;b&gt;nama_object-&amp;gt;nama_method.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;apabila object sedan ingin memanggil method tampilWarna tinggal sedan-&amp;gt;warna&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;apabila object sedan ingin memanggil method tampilMerek tinggal sedan-&amp;gt;tampilMerek()&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;bagaimana dengan object pickup ???, sama saja dengan pemanggilan pada object sedan. untuk lebih jelasnya kita bisa melihat &lt;a href=&quot;http://pwcahyo.blogspot.com/2012/05/latihan-php-oop-part-1.html&quot;&gt;latihan berikut&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pwcahyo.blogspot.com/feeds/7024660532267599835/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://pwcahyo.blogspot.com/2012/05/php-oop.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2327574882685560773/posts/default/7024660532267599835'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2327574882685560773/posts/default/7024660532267599835'/><link rel='alternate' type='text/html' href='http://pwcahyo.blogspot.com/2012/05/php-oop.html' title='PHP OOP'/><author><name>PW Cahyo</name><uri>http://www.blogger.com/profile/07127917279397769012</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPXGyKE15BPOGjczOVc8iK0b7JRRyxchxALJw-Cx7VoD1Mlq_JqrRyHpS2rwzdSq51NtrpTOBFXBk9jIZxCt9snp8DOI7MpVRFL5MYq3dgkb3aPVNCcE2PYNMp1sMh_3ypgOozCaeEONQ/s72-c/oop.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2327574882685560773.post-5180159585116916545</id><published>2012-05-13T17:41:00.002-07:00</published><updated>2012-05-14T22:39:12.969-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="blog"/><category scheme="http://www.blogger.com/atom/ns#" term="tipsandtricks"/><title type='text'>Google Sandbox</title><content type='html'>&lt;h2 style=&quot;text-align: center;&quot;&gt;






&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;b&gt;WHY GOOGLE SANDBOX ???&lt;/b&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhh19LXKyijt7WV3cI7ZdicItJt6fz4zQNnVvADIM6mwsBh0Gs0lR5nwYE3mdXDWNNgXUaJmrw3HEec667Sf3eJyh2m5vChb3dHcMJmeFxx5Pi6tSwe1uAw2iwDuybTScW9eJcEMZ30Ofo/s1600/google-sandbox.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhh19LXKyijt7WV3cI7ZdicItJt6fz4zQNnVvADIM6mwsBh0Gs0lR5nwYE3mdXDWNNgXUaJmrw3HEec667Sf3eJyh2m5vChb3dHcMJmeFxx5Pi6tSwe1uAw2iwDuybTScW9eJcEMZ30Ofo/s1600/google-sandbox.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Dari kemaren ane bingung, kenapa situs ane ini masuk kedalam google sandbox ya... padahal blog ini lum lama ane buat, ato emang blog baru jadi langsung kena sandbox karena belum punya page rank, ato gimana. Kalo situs temen - temen bagaimana ? masuk jugakah dalam google sandbox coba cek situs temen - temen, masukkah dalam google sandbox, harap - harap cemas aja dah kalo situs ente kena google sandbox. ni coba cek di&amp;nbsp;&lt;a href=&quot;http://www.searchenginegenie.com/sandbox-checker.htm&quot;&gt;Sandbox Checker&lt;/a&gt;&amp;nbsp;semoga situs temen - temen tidak termasuk situs yang dibanned oleh google, sebenarnya sih bisa dikeluarin dari sandbox, caranya bagaimana ?&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ol&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Hentikan pengoptimalan seo untuk sementara, apalagi kalo situs anda make script seo demi mendapatkan index dari search engine google.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Buat artikel mengenai google sandbox. usahakan ada backlink kesitusnya.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Postingan ente jangan plagiat ama situs laen.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Jangan melakukan backlink2 secara langsung dan berkali - kali. maka usahakan dapat backlink dengan persetujuan situs tersebut.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Resubmit sitemap blog ente, menggunakan bantuan &lt;a href=&quot;http://www.google.com/webmasters/tools&quot;&gt;Google Webmaster Tool&lt;/a&gt;, untuk lebih jelasnya silahkan cari bagaimana membuat submit sitemap blogger.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Yang terakhir kali berdoa, semoga situs ente terbebas dari jeratan sandbox&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Semoga berhasil dan mari berusaha, semoga situs kita cepet keluar dari google sandbox.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Update, sory bro, ternyata usut punya usut, kalau blog baru aja dibuat dan belum dapat page rank gk langsung terindexs google, dan apabila di check di situs&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://www.searchenginegenie.com/sandbox-checker.htm&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Sandbox Checker&lt;/a&gt;&amp;nbsp;. &lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Keluarnya bakalan blog ente masuk kedalam google sandbox. Kagak usah cemas bro, itu bukan apa - apa. karena blog ente lum dikenali google, cz barusan aja buatnya, ente harus punya pagerank dulu, apabila blog ente sudah terindex google kok terus SERP(Search Engine Result Page)nya menurun drastis itu baru bisa dikatakan kalau blog ente di bawa pandanya GOOGLE, dikurung di padang pasirnya GOOGLE (SANDBOX), Bukan SANDY yang ada didalam SpongeBob Lo... Hehehe...&lt;br /&gt;&lt;br /&gt;Ok Sekarang waktunya untuk perjuangan, agar blog baru ane terindex kedalam google...&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pwcahyo.blogspot.com/feeds/5180159585116916545/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://pwcahyo.blogspot.com/2012/05/google-sandbox.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2327574882685560773/posts/default/5180159585116916545'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2327574882685560773/posts/default/5180159585116916545'/><link rel='alternate' type='text/html' href='http://pwcahyo.blogspot.com/2012/05/google-sandbox.html' title='Google Sandbox'/><author><name>PW Cahyo</name><uri>http://www.blogger.com/profile/07127917279397769012</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhh19LXKyijt7WV3cI7ZdicItJt6fz4zQNnVvADIM6mwsBh0Gs0lR5nwYE3mdXDWNNgXUaJmrw3HEec667Sf3eJyh2m5vChb3dHcMJmeFxx5Pi6tSwe1uAw2iwDuybTScW9eJcEMZ30Ofo/s72-c/google-sandbox.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2327574882685560773.post-2750099093866709317</id><published>2012-05-13T06:12:00.001-07:00</published><updated>2012-05-14T22:57:24.897-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="blog"/><category scheme="http://www.blogger.com/atom/ns#" term="tipsandtricks"/><title type='text'>Highlight Blogger [old version]</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Apa itu syntax highlight, temen - temen pasti tau, kalau kita search code program, atau kebetulan menemukan kode program yang tampil didalam blog atau website kok bisa tampil di blog/web, tanpa memepengaruhi tampilan blog tersebut, bahkan kita dapat mengcopy paste code program tersebut tanpa ada kesalahan penulisan program, itulah namanya highlight, jadi highlight adalah salah satu cara bagaimana kita memposting kode program kedalam web/blog dengan tampilan yang begitu menawan dan tidak merusak tampilan blog kita, seperti contoh gambar dibawah ini, tampilan code yang kita posting didalam blog kita dapat tampil semanis madu, hehehe... semanis gambar dibawah ini pastinya... Syntax highlight ini memake Highlight Gorbatchev version 1.5.2 [old version]&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjV530gF6WhABOk6xAWaFkAofencFMWD5lqKQkT97wvxNYbLHt97HWajoIrLEtWUpgRhPe20dshDs8rV-XfFwd-dA-ca7Qv8t9pyruBSTTZOGwhRB1IhHhG_y_zXpT5kxqXPR_8Edfs1FM/s1600/Screenshot+at+2012-05-13+19:42:48.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjV530gF6WhABOk6xAWaFkAofencFMWD5lqKQkT97wvxNYbLHt97HWajoIrLEtWUpgRhPe20dshDs8rV-XfFwd-dA-ca7Qv8t9pyruBSTTZOGwhRB1IhHhG_y_zXpT5kxqXPR_8Edfs1FM/s1600/Screenshot+at+2012-05-13+19:42:48.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;yang saya lingkari hitam, disitu kita bisa mengklik dan mengcopy source code yang kita posting tadi tanpa tercopy line numbernya.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;apabila kita klik view plain maka akan tampil window baru yang berisi source code aslinya, atau dapat kita lihat seperti contoh gambar dibawah.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeyVaFjvvTiAqj0aWJcQp-jJpAHkxp6ol93ic5LJltP5NjYYyJqUmTLiMLyycbCumEzW1090rwzoaMVqsrI6Z7IOBvQ_fmONorYGBH0CKLE1dRWNirXI0aqcoPCupCZNKaiKaECpFKm-g/s1600/Screenshot+at+2012-05-13+19:47:57.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;276&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeyVaFjvvTiAqj0aWJcQp-jJpAHkxp6ol93ic5LJltP5NjYYyJqUmTLiMLyycbCumEzW1090rwzoaMVqsrI6Z7IOBvQ_fmONorYGBH0CKLE1dRWNirXI0aqcoPCupCZNKaiKaECpFKm-g/s400/Screenshot+at+2012-05-13+19:47:57.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Caranya, agar bisa tampil seperti itu bagaimana...&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;1. Menuju ke dashboard blogger --&amp;gt; Template --&amp;gt; Edit Html --&amp;gt; Lanjutkan&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;[Cara yang saya gunakan menggunakan tampilan blogger versi baru]&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Maka kita akan dibawa ke window edit template melalui html, atau seperti gambar dibawah.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEieUbDdK-HYOSg4AXP6MZ1NPPNvQvrfYyNSgSuV4d6fdda4lZ9ye4SaW1mNCPBzwFuh_7BLFZ3KjEAM7keCef-3Kag-t6ucgALM1Pb7X9FGBzfdK0rEAx9q2CONhuWLDYqdFdtD6morsfo/s1600/Screenshot+at+2012-05-13+19:55:49.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;460&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEieUbDdK-HYOSg4AXP6MZ1NPPNvQvrfYyNSgSuV4d6fdda4lZ9ye4SaW1mNCPBzwFuh_7BLFZ3KjEAM7keCef-3Kag-t6ucgALM1Pb7X9FGBzfdK0rEAx9q2CONhuWLDYqdFdtD6morsfo/s640/Screenshot+at+2012-05-13+19:55:49.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Centang Expand Template Widget,&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;2. Menuju halaman&amp;nbsp;&lt;a href=&quot;http://syntaxhighlighter.googlecode.com/svn/trunk/Styles/SyntaxHighlighter.css&quot; rel=&quot;nofollow&quot;&gt;css&lt;/a&gt;&amp;nbsp;copy paste seluruh isi css tersebut kedalam source code edit HTML diantara code berikut:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUcI_7BEt-Me-K_yejeX61D3Nk0SinTYNEjP-VvTkCXPr3oSgNYGoQfVMbXGwDIK76ONi_MOVRx35ddXTS_T8B3HJtr-oSzQR9Q7fohMznqIex7HnsfHqClj0J2tB79q-3Sr_JX1ClUTc/s1600/Screenshot+at+2012-05-13+20:20:49.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUcI_7BEt-Me-K_yejeX61D3Nk0SinTYNEjP-VvTkCXPr3oSgNYGoQfVMbXGwDIK76ONi_MOVRx35ddXTS_T8B3HJtr-oSzQR9Q7fohMznqIex7HnsfHqClj0J2tB79q-3Sr_JX1ClUTc/s1600/Screenshot+at+2012-05-13+20:20:49.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;3. Apabila langkah nomor 2 sudah dilakukan, copy pastekan code berikut :&lt;/span&gt;&lt;/div&gt;
&lt;pre class=&quot;html&quot; name=&quot;code&quot;&gt;&lt;script src=&quot;http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shCore.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;
&lt;script src=&quot;http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushCpp.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;
&lt;script src=&quot;http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushCSharp.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;
&lt;script src=&quot;http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushCss.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;
&lt;script src=&quot;http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushDelphi.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;
&lt;script src=&quot;http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushJava.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;
&lt;script src=&quot;http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushJScript.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;
&lt;script src=&quot;http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushPhp.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;
&lt;script src=&quot;http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushPython.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;
&lt;script src=&quot;http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushRuby.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;
&lt;script src=&quot;http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushSql.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;
&lt;script src=&quot;http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushVb.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;
&lt;script src=&quot;http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushXml.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;

&lt;/pre&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;pastekan diatas syntax &amp;lt;/head&amp;gt; kode diatas digunakan untuk menggenerate source code yang akan ditampilkan, apabila temen - temen pengen blognya ringan dan simple, gk mau masukin berbagai macam script, hanya pengen masukin java saja, maka source code tersebut dapat di delete sesuai kebutuahan temen - temen, ingat pastekan diatas :&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9_0BgZQEAr1W8lY-7MKEZbFeBdo9hLrYldB1Uj7PIvvPo0QgGB3m3NHuKES0yLggGoPfEnTIY2XNyJaeu05iYys89owJyWL4_xaBJB24WswTiee6YCuMGIJtz6ML3t12fdilbdFnt49g/s1600/Screenshot+at+2012-05-13+20:34:10.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;43&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9_0BgZQEAr1W8lY-7MKEZbFeBdo9hLrYldB1Uj7PIvvPo0QgGB3m3NHuKES0yLggGoPfEnTIY2XNyJaeu05iYys89owJyWL4_xaBJB24WswTiee6YCuMGIJtz6ML3t12fdilbdFnt49g/s200/Screenshot+at+2012-05-13+20:34:10.png&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;4. Apabila langkah 3 sudah berhasil dijalankan, kita copy pastekan script berikut :&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;b&gt;&amp;lt;script language=&quot;javascript&quot;&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;b&gt;dp.SyntaxHighlighter.BloggerMode();&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;b&gt;dp.SyntaxHighlighter.HighlightAll(&#39;code&#39;);&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;b&gt;&amp;lt;/script&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;copykan script tersebut diatas tag &amp;lt;/body&amp;gt; script tersebut berguna untuk memanggil method sehingga tampilan source code bisa ditampilkan:&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhytgue_Rue5da0s2-lDL0H5hxwVreUMWXFYHdq67Tx39RHscA1KgDdhH7eWfKCq9XERlMW8ypZQRZmxkiEESs_qV29kJVgvhfOs46193g82-utgSohJbEGZs6APGfy6cfcGyzXd-s0DF8/s1600/Screenshot+at+2012-05-13+20:43:10.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;29&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhytgue_Rue5da0s2-lDL0H5hxwVreUMWXFYHdq67Tx39RHscA1KgDdhH7eWfKCq9XERlMW8ypZQRZmxkiEESs_qV29kJVgvhfOs46193g82-utgSohJbEGZs6APGfy6cfcGyzXd-s0DF8/s200/Screenshot+at+2012-05-13+20:43:10.png&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Apabila semuanya sudah &lt;span style=&quot;color: #741b47;&quot;&gt;&lt;b&gt;Simpan Template&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;color: #741b47;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;5. Apabila kita ingin memposting halaman yang menggunakan source code program, kita tinggal memanggil class source code tersebut.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;pergi ke menu posting ada 2 pilihan, &lt;b&gt;compose dan html. &lt;/b&gt;untuk memposting source code gunakanlah html, apabila ingin menulis karakter biasa, pindahkan ke compose,&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;script untuk pemasangan source code, yang akan dimasukan melalui pilihan html :&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;pre class=&quot;html&quot; name=&quot;code&quot;&gt;&lt;script language=&quot;javascript&quot;&gt;
&lt;pre name=&quot;code&quot; class=&quot;cpp&quot;&gt;
Pastekan/tulis source code didalam bagian ini
&lt;/pre&gt;
&lt;/script&gt;
&lt;/pre&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Setiap kita akan memosting source code, gunakan script diatas, mudah bukan... kalau mau mencoba highlight versi terbaru &lt;a href=&quot;http://pwcahyo.blogspot.com/2012/05/kemaren-ane-dah-posting-bagaimana-cara.html&quot;&gt;disini&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Dilarang Keras copas article :D&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://pwcahyo.blogspot.com/feeds/2750099093866709317/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://pwcahyo.blogspot.com/2012/05/menambahkan-syntax-highlight-di-blogger.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2327574882685560773/posts/default/2750099093866709317'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2327574882685560773/posts/default/2750099093866709317'/><link rel='alternate' type='text/html' href='http://pwcahyo.blogspot.com/2012/05/menambahkan-syntax-highlight-di-blogger.html' title='Highlight Blogger [old version]'/><author><name>PW Cahyo</name><uri>http://www.blogger.com/profile/07127917279397769012</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjV530gF6WhABOk6xAWaFkAofencFMWD5lqKQkT97wvxNYbLHt97HWajoIrLEtWUpgRhPe20dshDs8rV-XfFwd-dA-ca7Qv8t9pyruBSTTZOGwhRB1IhHhG_y_zXpT5kxqXPR_8Edfs1FM/s72-c/Screenshot+at+2012-05-13+19:42:48.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2327574882685560773.post-1737369147373035553</id><published>2012-05-12T21:37:00.000-07:00</published><updated>2012-05-18T05:47:52.417-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Programming"/><title type='text'>Ping Java on Linux</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Salam Wafer....&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Kembali lagi dengan P.W Cahyo The Golden blog.. wkwkwk...&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Tetap semangat mengisi postingan blog, blog baru harus terisi donk... masak baru buat blog terus ditinggal aja, kayak habis manis sepah dibuang, hapis sepah manis dibuang, hehehe...&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Kita ketemu lagi dalam acara programing java, dikit2lah, walaupun bukan seorang master java, yang penting lama - lama menjadi bukit, bukan lama - lama menjadi buncit, maupun irit, hohoho...&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Ok, kita mulai pokok bahasan kali ini, pertama sediakan kopi atau susu, cz setiap ane utak utek didepan komputer pasti tu minum kopi ato susu, gk ada kopi gk rame, kedua hidupkan komputer, weks...&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;kelama&#39;an.. takutnya temen - temen bosen dengan gaya postingan ane wkwkwk...&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Kita ini mau apa kok jadi lupa, oh iya... mau buat program sederhana, program ping host atau alamat ip menggunakan java. apa itu java, nanti ah kita bahas java itu apa. sekarang programingnya aja, hehehe....&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;langsung ke TKP. buka gedit, netbeans ato eclipse, ato editor teks laennya bro.. &amp;nbsp;asal jangan buka pintu kamar cewek ente, ntar dikira mau nyolong sendal. hehehe....&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;buka gedit, siap2 bro komputer ente meledak.., hohoho....&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;b&gt;Hal pertama yang perlu dilakukan, ente cek/cari apakah program ping sudah terinstall di linux ente&lt;/b&gt;, kalo ente make ubuntu&amp;nbsp;biasanya&amp;nbsp;tu program belum terinstall alias tidak default bawaan ubuntu bro...&amp;nbsp;cara ngeceknya gimana ? gampang, kayak biasa dah... lihat di folder &lt;b&gt;&lt;span style=&quot;color: #4c1130; font-size: large;&quot;&gt;/bin&lt;/span&gt;&lt;/b&gt; adakah file ping disitu.&amp;nbsp;la kalo kagak ada, gampang pula cara ngadainnya, keluarin senjata andalannya bro... &lt;b&gt;&lt;span style=&quot;color: #4c1130; font-size: large;&quot;&gt;sudo apt-get install ping&lt;/span&gt;&lt;/b&gt;, dengan catatan pc/laptop/alat tempur ente kudu konek internet. kalo sudah apt-get install tinggal tekan &lt;span style=&quot;color: #741b47; font-size: large;&quot;&gt;&lt;b&gt;ENTER&lt;/b&gt;&lt;/span&gt; and tunggu dah... tu program nginstall, kalo dah selesai cek lagi di direktori /bin adakah tu file ping. kalo kagak ada, cari dah, dimana tu file ping tersembunyi, biasanya sih di direktori /bin . Apabila program ping sudah terinstall coba ente ngeping host atau alamat ip, contoh : buka terminal dulu, tekan dikeyboard Alt+f2 lalu ketikan gnome-terminal terus ENTER. tukan keluar gnome-terminalnya. Terus ketikan ping google.com atau ping 8.8.8.8 kalo hasil keluaran dah kayak kiye... waduh jadi ngapak.. hehehe...&lt;/span&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiv-l6xiJaGc73We8BfnNRC7Ic6eQvRWN2J4J2N6clDN4RkTeUAnwEHvr3UvWAe4tsDhe0CLbAYWB9XkU01PUfcaQATmusLmTSCORkfUWIUyplpL4X-duPaOjHqeIwDO7Hofryd5ecKVjg/s1600/Screenshot+at+2012-05-13+16:57:25.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; display: inline !important; margin-bottom: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;275&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiv-l6xiJaGc73We8BfnNRC7Ic6eQvRWN2J4J2N6clDN4RkTeUAnwEHvr3UvWAe4tsDhe0CLbAYWB9XkU01PUfcaQATmusLmTSCORkfUWIUyplpL4X-duPaOjHqeIwDO7Hofryd5ecKVjg/s640/Screenshot+at+2012-05-13+16:57:25.png&quot; title=&quot;gambar1&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;berarti program ping udah terinstall tu...&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;b&gt;And Lanjut kelangkah kedua...&amp;nbsp;buat class dengan nama ping.java, nama class harus sama dengan nama file ya bro..&lt;/b&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;.&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;pre class=&quot;brush:java&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;import java.io.BufferedReader;
import java.io.BufferedReader;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;

public class ping {
void Ping() throws IOException, InterruptedException {

  List commandPing = new ArrayList();// arrayList
  String s = null, valuetime = null;
  float baru = 0; int kirim = 0;
  commandPing.add(&quot;/bin/ping&quot;);
  commandPing.add(&quot;-s&quot;);
  commandPing.add(&quot;8&quot;);
  commandPing.add(&quot;-c&quot;);
  commandPing.add(&quot;2&quot;);
  commandPing.add(&quot;8.8.8.8&quot;);

  ProcessBuilder pb = new ProcessBuilder(commandPing);
  Process process = pb.start();

  BufferedReader stdInput = new BufferedReader(new InputStreamReader(process.getInputStream()));
  BufferedReader stdError = new BufferedReader(new InputStreamReader(process.getErrorStream()));
  
  while ((s = stdInput.readLine()) != null) {
   System.out.println(s);
  }
  
  // read any errors from the attempted command
  if ((s = stdError.readLine()) != null) {
   System.out.println(&quot;Error parsingan ping\n&quot;);
   while ((s = stdError.readLine()) != null) {
    System.out.println(s);
   }
  }
 }
}
&lt;/span&gt;&lt;/pre&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;setelah kita buat class ping.java tersebut, penjelasan script dari line diatas nomor 14-19 itu digunakan untuk melakukan eksekusi ping, syntax tersebut hampir sama kalau kita melakukan ping di terminal, line 14, &lt;b&gt;/bin/ping&lt;/b&gt; menjelaskan bahwa program ping berada dalam direktori /bin, line 15,&amp;nbsp;&lt;b&gt;-s&lt;/b&gt; berarti membatasi paket icmp yang dikirim. line 16, &lt;b&gt;8&lt;/b&gt; berarti mendefinisikan paketan yang dikirim adalah 16 bytes, line 17, &lt;b&gt;-c&lt;/b&gt; berarti membatasi ping tersebut. line 18, &lt;b&gt;2&lt;/b&gt;&amp;nbsp;berarti pembatasan ping, berarti ping hanya dilakukan dua kali, line 19, &lt;b&gt;8.8.8.8 &lt;/b&gt;adalah ip yang dituju untuk melakukan proses ping. line 28, Melakukan result atau print-out hasil ping. seperti gambar nomor 1 hasil ujicoba ping diterminal.&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;3. langkah ketiga,&amp;nbsp;baru kita membuat class main.java dengan isian :&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre class=&quot;brush:java&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;import java.io.IOException;
class main{
        public static void main(String[]args) throws IOException, InterruptedException {
          ping cobaping = new ping();
          cobaping.Ping();
        }
}&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Script diatas menjelaskan, line 3 berarti kita menciptakan objek baru dengan nama cobaping, line 4 menjelaskan bahwa objek cobaping memanggil method Ping untuk dieksekusi.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;kita tes buka gnome-terminal compile file main.java dengan cara masuk direktori tempat menyimpan kedua file tersebut. tentunya menggunakan cd terminal, kemudian ketikan&amp;nbsp;&lt;span style=&quot;font-weight: bold;&quot;&gt;javac main.java, &lt;/span&gt;Apabila berhasil dan gak ada error, langsung jalanin programnya bro, ketikan &lt;b&gt;java main&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;lihat contoh di bawah juga bisa bro...&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZ_M7Gq3BOXXClKT6i3nD1wtxkQZ7NPLv51dXYh34Mf-QFmk_lTrHxso8RFkGVN4Cc8gmcppkMbbJpzKOP1XwlrucRJHuuTNqf9qkr8ECj6q9NnJ69KebbAUc-kYmpqv67Y2IsyQVC6Tg/s1600/Screenshot+at+2012-05-13+18:38:45.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZ_M7Gq3BOXXClKT6i3nD1wtxkQZ7NPLv51dXYh34Mf-QFmk_lTrHxso8RFkGVN4Cc8gmcppkMbbJpzKOP1XwlrucRJHuuTNqf9qkr8ECj6q9NnJ69KebbAUc-kYmpqv67Y2IsyQVC6Tg/s1600/Screenshot+at+2012-05-13+18:38:45.png&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
Sekian dan terimakasih... kalau mau nanya, ane standby ni bro buat nanggepin. hehehehe...&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;apabila copas ijin dulu dan sertakan alamat asli ane, :D&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://pwcahyo.blogspot.com/feeds/1737369147373035553/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://pwcahyo.blogspot.com/2012/05/salam-wafer.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2327574882685560773/posts/default/1737369147373035553'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2327574882685560773/posts/default/1737369147373035553'/><link rel='alternate' type='text/html' href='http://pwcahyo.blogspot.com/2012/05/salam-wafer.html' title='Ping Java on Linux'/><author><name>PW Cahyo</name><uri>http://www.blogger.com/profile/07127917279397769012</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiv-l6xiJaGc73We8BfnNRC7Ic6eQvRWN2J4J2N6clDN4RkTeUAnwEHvr3UvWAe4tsDhe0CLbAYWB9XkU01PUfcaQATmusLmTSCORkfUWIUyplpL4X-duPaOjHqeIwDO7Hofryd5ecKVjg/s72-c/Screenshot+at+2012-05-13+16:57:25.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2327574882685560773.post-95487762999642647</id><published>2012-05-12T11:13:00.003-07:00</published><updated>2012-05-13T11:45:49.982-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Catatan Harian P.W"/><title type='text'>Bromo Adventure</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgc87GsWk8yZfb5Kl4MgF1q7TJFx5B8eMW1KXJarh1wlButAzhZ1tL7zVAVFCaXSWV7x5AyA3eEorvnfIbwuZlAUQh7cEIm1vv2Bv-f0oN9YPeR6AInAk5Z9K6oRzyzRK4FMWU1VjVKyHI/s1600/starky_bromo.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgc87GsWk8yZfb5Kl4MgF1q7TJFx5B8eMW1KXJarh1wlButAzhZ1tL7zVAVFCaXSWV7x5AyA3eEorvnfIbwuZlAUQh7cEIm1vv2Bv-f0oN9YPeR6AInAk5Z9K6oRzyzRK4FMWU1VjVKyHI/s1600/starky_bromo.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Kemaren belum lama ini aku dan teman - temanku pergi&amp;nbsp;berpetualang&amp;nbsp;kegunung bromo, ceritanya sih mau liburan, Kami berangkat dari JOGJA menggunakan kereta api, pagi - pagi bener aku bangun, langsung bergegas ke stasiun lempuyangan, takut ketinggalan kereta. sampai di stasiun aku bertemu dengan teman - temanku, diantaranya starky, andi, rijal, ian, haris, raleck, gupon, dan afif.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Ok, Petualangan kami dimulai dari stasiun lempuyangan, dari stasiun lempuyangan kami menuju stasiun probolinggo(nama stasiunnya lupa, hehehe...). didalam kereta kami bersendau gurau, starky dengan gaya bebasnya (kenapa gaya bebas, karena kebiasaan dia yang suka ngomong sakkarepe dewe). gupon dengan gaya memelas (karena dijadikan bahan candaan), ian juga dengan gaya sedikit agak memelas (karena guyonan sehabis dari gupon langsung dilempar ke ian), andi juga dengan gaya agak sedikit gak jelas (karena status dia yang kadang kena lemparan candaan kadang juga suka foto2 make bb, terus diupload ke fb, ampe ketua prodi juga ikut komentar, :hammer sampai sini..). raleck dalam posisi aman, karena dia cuman ikut ketawa aja, kalau temennya jadi bahan candaan. Rijal dengan gaya terpojokan, karena sesekali si Starky menggunakaan gaya bahasa madura menyidir rijal yang emang orang madura, tapi bicaranya starky tetep... sak karepe dewe. Afif dan Haris dengan gaya batu, karena mereka berdua cuman duduk, sambil maenan hp, kalau gk ya sesekali dia mencoba memejamkan mata pengen tidur. :p .&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Aku sendiri gaya mencari hiburan, la temen - temenku satu tempat duduk dikereta afif dan haris cuma diem. aku cari tempet duduk untuk ikut bercanda sama ke enam temenku yang lain, walau sesekali atau bahkan berkali2 aku harus geser gantian tempat duduk, karena tempat duduk yang aku pakai adalah tempat duduk &amp;nbsp;penumpang laen. akhirnya jam tengah 5 sore sampai stasiun juga, 9 jam kalo gk salah, perjalanan dikereta doank, maklum make ekonomi, jadi lama, hehehe... sesampai distasiun probolinggo, kami sholat, cari makan. lanjut ekspedisi naek bison, kata orang probolinggo sih bison, kalo ane sih nyebutnya bis ompreng, kami naek bison sampai bromo, 3 jam setengah kami nyampai bromo, tepat jam 7 malem, dinginnya...,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;di bromo cari penginapan bro, dapat harga lumayan, semalem 350 tu di bagi 9 anak, jadi peranak 40an, fasilitasnya lengkap, ada tv, kulkas, kamar mandi, kamar tidur ada 4 ruangan, pokoknya lumayanlah...&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;disitu baru kerasa kalo kami berada di rumahnya orang suku tengger, ternyata di atas pintu ada lambang suku tengger, aku tanya temenku itu kaligrafi apa kok aneh.. temanku bilang itu bukan kaligrafi. tapi lambang dari suku tengger.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;paginya kami langsung bergegas... mendaki gunung lewati lembah... persiapkan segala kebutuhan, langsung capcus, bangunin anak2.. yang masih pada molor karena udara dipagi hari, lumayan dinginlah, dan cocok pula kalo untuk tiduran dipagi hari, hdeh...&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;semua dah pada bangun, semua dah pada siap mulai menuruni bukit, kami berjalan di lautan pasir, cz kalo mau nyampe gunung bromo harus jalan kaki lewati lautan pasir tetep aja semangatlah... kan adventure...&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;yang agak aneh... kita mau naek gunung bromonya itu lo mas bor........&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;antreeeee........&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;masak naek gunung harus antree........&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;tetep aja ane gk mau antre, cari jalur sendiri, lereng gunung yang berpasir ane libas abis...&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;mosok naek gunung lewat tangga kurang menantang buat ane, hehehe....,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;naek gunung lihat kawah di puncak... wuih.... ati2 mas bor.... cz puncaknya tu deket banget ama bolongan kawah... eh... ama jurang kawah, pagar pembatesnya aja udah tenggelem kena pasir jadi harap hati2... takutnya kalo bercanda tu nyemplung kekawah.... gk usah berlama2 dipuncak, cz udah puas, kami turun lagi.... kami mandi siap2 bergegas pulang ke JOGJA. dari penginapan kami naek bison lagi sampai terminal bayu angga probolinggo, kemudian disitu kami ditawari untuk naek travel seharga 60 ribu perorang, capcus dah, dari probolinggo ke JOGJA harga segitu ya agak sedikit gk masalah lah.. di dalem travel dah bisa tiduran... nikmatnya....&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Sampai JOGJA jam 1 malem....&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;TOTAL ANGGARAN YANG DIKELUARKAN SELAMA ADVENTURE BROMO 300 RIBU RUPIAH, itu dah berat kotor, cz + sambil beli oleh2 buat keponakan, hehehe...&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Sampai kontrakan Langsung Tepar dah, eits jangan lupa, kalo belum Sholat, sholat dulu..... hehehe....&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Pesan dari ane, kalo kita dialam, jaga kelestarian lingkungan, jangan merusak ataupun mengotori,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Kita Syukuri cipta&#39;aan Illahi, Subhanallah.....&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pwcahyo.blogspot.com/feeds/95487762999642647/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://pwcahyo.blogspot.com/2012/05/bromo-adventure.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2327574882685560773/posts/default/95487762999642647'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2327574882685560773/posts/default/95487762999642647'/><link rel='alternate' type='text/html' href='http://pwcahyo.blogspot.com/2012/05/bromo-adventure.html' title='Bromo Adventure'/><author><name>PW Cahyo</name><uri>http://www.blogger.com/profile/07127917279397769012</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgc87GsWk8yZfb5Kl4MgF1q7TJFx5B8eMW1KXJarh1wlButAzhZ1tL7zVAVFCaXSWV7x5AyA3eEorvnfIbwuZlAUQh7cEIm1vv2Bv-f0oN9YPeR6AInAk5Z9K6oRzyzRK4FMWU1VjVKyHI/s72-c/starky_bromo.jpg" height="72" width="72"/><thr:total>0</thr:total></entry></feed>