Senin, 01 Desember 2008

Tutorial - Create PageRank 5 blog ultra fast

I know that you are probably busy with your life and do not have time to read many books so I wanted to make this report short and straight to the point, by looking on the length of it, I think that I accomplished my goal.

Before we get to the nuts and bolts of creating high PageRank blog, I want you keep in mind that this is not instruction about how to make money, in fact I doubt you will make any money, following only my instructions.

This short report is about creating from a scratch, blog with high PageRank, by simply posting to it on daily basis. But you don’t know what to write about, or do not want to write at all?
That’s great! This report is perfect for you.

Here is a short list of things you do NOT need to know or do, to be successful with this report:

  • Search Engine Optimization
  • Link development
  • Buying links
  • Exchanging links
  • Submit links to directories
  • Write articles

If I am guessing right and you already own successful website, then this are the only things you were constantly doing to get a better position in search engines.

Selecting your topic

Obviously if you want to start a blog, you need to select a topic for it, you can’t write about jus anything, although it is possible but we want to keep our blog in certain category.

The best way to select great topic is to go with what interests you. But we will concentrate mainly on semi automatic blogging so the topic is not that important you do not need to be passionate about it.

If you already have a website and want to link to it from your high page rank blog (which you will soon have if you will follow my instructions) then it will be good if your blog will be somewhat related to your website, obviously tou want to have relevant links not the other way around.

Selasa, 08 Juli 2008

Connection Database

Ini adalah sample koneksi database menggunakan MYSQL yang sederhana..
Disini saya akan memberikan contoh class connection MYSQL beserta cara penggunaannya.
Sebelumnya saya akan menjelaskan sedikit untuk methode pada class ConMysql.

Method dari selectQuery bertujuan untuk mengambil data dari database. dan akan mengembalikan data dengan nilai result berType "ResultSet". Sedangkan untuk method updateQuery bertujuan untuk mengupdate, delete, dan akan mengembalikan data result berType "boolean". langsung mulai aja yach..

Isi pada ConMysql.java

package org.kopiitem.util;
/**
* User: akiralie
* Date: May 21, 2007
* Time: 10:15:31 AM
*/
import java.sql.Connection;
import java.sql.SQLException;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;

public class ConMysql {
Connection conn = null;
Statement st = null;
ResultSet rs = null;

public void open() {
try {
Class.forName("org.gjt.mm.mysql.Driver").newInstance();
conn = DriverManager.getConnection(
"jdbc:mysql://localhost/sks", "root", "xxx");
System.out.println("== Success Connect ==");
} catch (IllegalAccessException e) {
e.printStackTrace();
} catch (ClassNotFoundException e) {
e.printStackTrace();
} catch (InstantiationException e) {
e.printStackTrace();
} catch (SQLException e) {
e.printStackTrace();
}
}

public ResultSet selectQuery(String query) {
try {
st = conn.createStatement();
rs = st.executeQuery(query);
conn.close();
} catch (SQLException sqle) {
sqle.printStackTrace();
}
return rs;
}

public boolean updateQuery(String query) {
boolean status = false;
try {
st = conn.createStatement();
status = st.execute(query);
conn.close();
} catch (SQLException sqle) {
sqle.printStackTrace();
}
return status;
}

public void close() {
try {
if (!conn.isClosed()) {
st.close();
rs.close();
conn.close();
}
} catch (SQLException e) {
e.printStackTrace();
}
}
}



dan ini adalah cara penggunaan dari class diatas

isi pada MainApp.java

package org.kopiitem.main;
/**
* User: akiralie
* Date: May 21, 2007
* Time: 10:15:31 AM
*/
import org.kopiitem.util.ConMysql;

import java.sql.ResultSet;

public class MainApp {
public static void main(String[] args) {
ResultSet rs = null;
ConMysql conn = new ConMysql();
String query = "SELECT * FROM USER";
try {
conn.open();
rs = conn.selectQuery(query);
while (rs.next()) {
System.out.println("Data : " + rs.getString("firstname"));
}
conn.close();
} catch (Exception e) {
e.printStackTrace();
}

}

}


Result dari MainApp akan menghasilkan :

== Success Connect ==
Data : System
Data : User


Okay Sekian dulu untuk info nya ya.. he he he tetap Smangat buat belajar java..

Writen By

~ Donny Lie ~