23 Juni 2009

Belajar Online Membuat Startup melalui regedit

Startup merupakan fasilitas dari windows yg membuat program otomatis jalan ketika windows dijalankan. Biasanya program yg dibuat startup antara lain Antivirus,Zonealarm, xampp, dsb.
Namun kemarin ketika instal FTP Serv-u ternyata programnya tidak bisa otomatis jalan jadinya setiap booting harus menjalankan ftpnya. Kalau setiap booting harus menjalankan programnya dulu tidak efisien tak coba nyari2 di regedit ternyata bisa membuat startup lewat regefit.
caranya :
1. Klik Start - Run - Ketik regedit dan enter
2. Pilih HKEY_LOCAL_MACHINE - software - Microsoft - windows - CurrentVersion - Run
3. Akan tampil program2 yg dijalankan ketika masuk windows
4. Klik kanan pilih new - string value kemudian beri nama sesuai nama programnya
5. Klik kanan string value tadi dan pilih modify, pada kotak value data ketik alamat dimana
program itu berada. misal program ada di = "D:\software\serv-u\serv-u32.exe" (menulis di
regeditnya memakai tanda petik) - enter
6. Restart windows
Akhirnya sekarang tidak perlu lagi menjalankan ftpnya secara manual setiap kali booting.
READ MORE - Belajar Online Membuat Startup melalui regedit

22 Juni 2009

Belajar Online Load Data Infile MYSQL

Ternyata Script Import data CSV ke MySQl agak sulit dilakukan jika data yang dimasukkan lebih dari 10000 record. Kemarin ketika aku coba buat masukin data 50000 record scriptnya error karena melebihi batas waktu dan hanya sebagian data yg masuk. Aku lihat lagi scriptnya, mungkin karena inputnya memakai sistem pengulangan sehingga ketika recordnya banyak maka script error karena harus melakukan pengulangan yang banyak. Aku coba langsung pakai phpmyadmin, bisa walaupun recordnya banyak. ternyata phpmyadmin memakai sistem Load data infile untuk import data csv ke Mysql. Sistem Load data infile tidak menggunakan system while sehingga meskipun datanya banyak tidak akan error. Setelah utak atik tag Load data infile karena kalau pakai PHP tulisannya tidak sama ketika langsung pakai MYSQL. Ini contoh scriptnya :

=====================================================================
<?php

$conn = mysql_connect('localhost','root');
mysql_select_db('job',$conn);
if(isset($_POST['submit']))
{
$target_path = "D:/apache/htdocs/mon-sopp/intagjastel/data/";

$target_path = $target_path . basename( $_FILES['filename']['name']);

if(move_uploaded_file($_FILES['filename']['tmp_name'], $target_path)) {
echo "<font face=arial size=2>The file ". basename( $_FILES['filename']['name']). " berhasil di upload</font><br>";
} else{
echo "<font face=arial size=2>upload data gagal, silahkan ulangi lagi</font><br>";
}

$filename=$target_path;
$load=mysql_query("LOAD DATA INFILE '$filename' INTO TABLE intagjastel FIELDS TERMINATED BY ',' LINES TERMINATED BY '\r\n' ") or die(mysql_error());
if ($load){
echo("Order data berhasil");
} else {
echo("
Order data Gagal");
}
}
?>
===================================================================

Akhirnya setelah pakai sistem Load data infile, masukkan data lebih dari 50000 record tidak ada masalah.

Penting: untuk data CSV nya. Tanda " , . harus dihilangkan, karena kalau tidak maka kata setelah tanda itu akan dimasukkan ke kolom selanjutnya
READ MORE - Belajar Online Load Data Infile MYSQL

02 Juni 2009

Belajar Online Tag Css

Aku mengenal CSS sewaktu di tempat kerjaku sekarang. Pas sekolah dulu cuman denger2 aja tentang CSS tapi belum mendalami lebih dalam. Ternyata dengan menggunakan CSS Website yang kita bikin lebih kreatif, flexibel. Untuk memakai Script CSS biasanya diletakkan antara tag <head></head>. Tetapi bila menggunakan halaman yang banyak dan CSS yg digunakan sama, daripada menulisnya lagi di halaman lain lebih baik CSS dijadikan satu aja dengan disimpan dalam format *.css. Untuk memakainya di halaman web tinggal kita panggil dengan <link href='styleindexfox.css' rel='stylesheet' type='text/css' />. Penggunaan CSS biasanya menggunakan Tag <div></div> misal isi script css :
<style type="text/css">
#header {
height:80px;
width:1000px;
margin-top:-15px;
margin-left:-10px;
margin-right:-10px;
padding-left:30px;
padding-top:5px;
padding-bottom:0px;
border-bottom:0px solid #BDB76B;
border-top:0px solid #BDB76B;
border-right:0px solid #BDB76B;
border-left:0px solid #BDB76B;
background-image:url(image/bgheader.jpg);
background-repeat:repeat-x;
background-position:top;
}
</style>
dan untuk menggunakan css di atas tinggal Tag divnya diberi id="header".
<div id="header">
</div>
Banyak sekali script CSS diantaranya :
height:80px;--> mengatur tinggi
width:1000px;-->mengatur lebar
margin:10px;-->mengatur jarak antar div
margin-left:10px;-->mengatur jarak div sebelah kiri untuk
kanan=right,atas=top,bawah=bottom
padding:10px;-->mengatur jarak dalam div
padding-left;-->mengatur jarak dalam div sebelah kiri untuk
kanan=right,atas=top,bawah=bottom
border:1px solid black;-->memberikan garis tepi setebal 1px berwarna hitam
border-left:1px solid black;-->memberikan garis tepi sebelah kiri
float:left;-->membuat div selalu sebelah kiri kalau untuk kanan=right
background:black;-->memberikan warna pada div
Untuk memberi background pada div :
background-image:url(image/h3-bg-black.gif);
background-repeat:no-repeat;
background-position:top;
font: bold 17px Arial;--> mengatur jenis,ukuran font dalam div
overflow:auto;-->otomatis akan ada scroolbar pada div bila isi dalam div melebihi batas. Untuk
menghilangkan scroolbar=none
dan mungkin masih ada lagi, soalnya yang saya ketahui sebatas ini.
READ MORE - Belajar Online Tag Css

06 Mei 2009

Belajar online Import data CSV ke MySQL

Import data CSV ke MySQL digunakan untuk memasukkan data yang banyak ke mysql. Bisa dibayangkan kalo ada data 1000 harus dimasukkan ke MySQL secara satu2, bisa makan waktu banyak juga bikin jari keriting. Dengan metode import ini data yang ada di Excell di simpan dulu dalam bentuk CSV, dan perlu diingat urutan kolom2 di excell harus sama dengan urutan kolom di MySQL.Setelah urutan kolom sama dan file disimpan dalam bentuk CSV sekarang file tersebut bisa diimport ke MySQL. Ada dua cara dalam import file, bisa lewat phpmyadmin ato memakai script PHP. Dalam hal ini saya memakai script PHP untuk import data selain lebih praktis dan aman. Sekarang kita bikin scriptnya, tinggal copy script dibawah ini.
==================================================================
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>

<BODY>
<form enctype='multipart/form-data' action="<?php echo $PHP_SELF ?>" method='post'>
<font face=arial size=2>Type file name to import:</font><br>
<input type='file' name='filename' size='20'><br>
<input type='submit' name='submit' value='submit'></form>
<?php
if(isset($_POST['submit']))
{
$target_path = "D:/xampp/htdocs/myweb/excell/"; --> ini alamat untuk tempat copy file CSV

$target_path = $target_path . basename( $_FILES['filename']['name']);

if(move_uploaded_file($_FILES['filename']['tmp_name'], $target_path)) {
echo "<font face=arial size=2>The file ". basename( $_FILES['filename']['name']). " berhasil di upload</font><br>";
} else{
echo "<font face=arial size=2>upload data gagal, silahkan ulangi lagi</font><br>";
} --> ini untuk mengupload file CSV ke alamat tadi
// ini script untuk mengimport data CSV ke MySQL
$filename=$target_path;
$handle = fopen("$filename", "r");
while (($data = fgetcsv($handle, 1000, ",")) !== FALSE)
{

$import="INSERT into data values('$data[0]','$data[1]','$data[2]')";
mysql_query($import) or die(mysql_error());
}
fclose($handle);
print "<font face=arial size=2>Order data berhasil</font>";

}
else
{

print "";
}
>
?>
</BODY>
</HTML>
==================================================================
simpan file itu dengan nama import.php dan panggil file tersebut
READ MORE - Belajar online Import data CSV ke MySQL

04 Mei 2009

Belajar Online PHP Pagination

PHP pagination atau pemberian nomor halaman. Pagination penting buat menampilkan data yang sangat banyak, dengan pagination maka data2 tersebut akan ditampilkan bagian per bagian sesuai dengan permintaan. Misal ada data 1000, tidak mungkin kita tampilkan seluruhnya karena akan membuat halaman web tersebut panjang ke bawah yang akan menyulitkan user, dengan pagination data akan dibagi 10 halaman dan tiap halaman ditampilkan 100 data. User yang ingin melihat data selanjutnya tinggal klik ke halaman berikutnya.Disini saya menggunakan bahasa PHP dalam membuat pagination dan tentu saja scriptnya bukan bikinan sendiri cuman cuman copy paste. Langkah pertama copy script dibawah dan save dengan nama ps_pagination.php.

===================================================================
<?php
/**
* PHPSense Pagination Class
*
* PHP tutorials and scripts
*
* @package PHPSense
* @author Jatinder Singh Thind
* @copyright Copyright (c) 2006, Jatinder Singh Thind
* @link http://www.phpsense.com
*/

// ------------------------------------------------------------------------

class PS_Pagination {
var $php_self;
var $rows_per_page; //Number of records to display per page
var $total_rows; //Total number of rows returned by the query
var $links_per_page; //Number of links to display per page
var $sql;
var $debug = false;
var $conn;
var $page;
var $max_pages;
var $offset;

/**
* Constructor
*
* @param resource $connection Mysql connection link
* @param string $sql SQL query to paginate. Example : SELECT * FROM users
* @param integer $rows_per_page Number of records to display per page. Defaults to 10
* @param integer $links_per_page Number of links to display per page. Defaults to 5
*/

function PS_Pagination($connection, $sql, $rows_per_page = 10, $links_per_page = 5) {
$this->conn = $connection;
$this->sql = $sql;
$this->rows_per_page = $rows_per_page;
$this->links_per_page = $links_per_page;
$this->php_self = htmlspecialchars($_SERVER['PHP_SELF']);
if(isset($_GET['page'])) {
$this->page = intval($_GET['page']);
}
}

/**
* Executes the SQL query and initializes internal variables
*
* @access public
* @return resource
*/
function paginate() {
if(!$this->conn) {
if($this->debug) echo "MySQL connection missing<br />";
return false;
}

$all_rs = @mysql_query($this->sql);
if(!$all_rs) {
if($this->debug) echo "SQL query failed. Check your query.<br />";
return false;
}
$this->total_rows = mysql_num_rows($all_rs);
@mysql_close($all_rs);

$this->max_pages = ceil($this->total_rows/$this->rows_per_page);
//Check the page value just in case someone is trying to input an aribitrary value
if($this->page > $this->max_pages $this->page <= 0) {
$this->page = 1;
}

//Calculate Offset
$this->offset = $this->rows_per_page * ($this->page-1);

//Fetch the required result set
$rs = @mysql_query($this->sql." LIMIT {$this->offset}, {$this->rows_per_page}");
if(!$rs) {
if($this->debug) echo "Pagination query failed. Check your query.<br />";
return false;
}
return $rs;
}

/**
* Display the link to the first page
*
* @access public
* @param string $tag Text string to be displayed as the link. Defaults to 'First'
* @return string
*/
function renderFirst($tag='First') {
if($this->page == 1) {
return '<div style="margin-right:0px;padding:1px;float:left;border:0px solid black;"><font face=arial size=2><b>'.$tag.'</b></font></div>';
}
else {
return '<div style="margin-right:2px;padding:2px;float:left;border:0px solid black;"><a href="'.$this->php_self.'?page=1"><font face=arial size=2><b>'.$tag.'</b></font></a></div>';
}
}

/**
* Display the link to the last page
*
* @access public
* @param string $tag Text string to be displayed as the link. Defaults to 'Last'
* @return string
*/
function renderLast($tag='Last') {
if($this->page == $this->max_pages) {
return '<div style="margin-left:2px;width:35px;padding:2px;float:left;border:0px solid black;"><font face=arial size=2><b>'.$tag.'</b></font></div>';
}
else {
return '<div style="margin-left:2px;padding:2px;width:35px;float:left;border:0px solid black;"><a href="'.$this->php_self.'?page='.$this->max_pages.'"><font face=arial size=2><b>'.$tag.'</b></font></a></div>';
}
}

/**
* Display the next link
*
* @access public
* @param string $tag Text string to be displayed as the link. Defaults to '>>'
* @return string
*/
function renderNext($tag=' &gt;&gt;') {
if($this->page < $this->max_pages) {
return '<div style="margin-left:2px;width:5px;height:5px;padding:2px;float:left;border:0px solid black;"><a href="'.$this->php_self.'?page='.($this->page+1).'"><font face=arial size=2><b>'.$tag.'</b></font></a></div>';
}
else {
return '<div style="margin-left:2px;width:5px;height:5px;padding:2px;float:left;border:0px solid black;"><font face=arial size=2><b>'.$tag.'</b></font></div>';
}
}

/**
* Display the previous link
*
* @access public
* @param string $tag Text string to be displayed as the link. Defaults to '<<'
* @return string
*/
function renderPrev($tag='&lt;&lt;') {
if($this->page > 1) {
return '<div style="margin-left:2px;width:5px;height:5px;padding:2px;float:left;border:0px solid black;"><a href="'.$this->php_self.'?page='.($this->page-1).'"><font face=arial size=2><b>'.$tag.'</b></font></a></div>';
}
else {
return '<div style="margin-left:2px;width:5px;height:5px;padding:2px;float:left;border:0px solid black;"><font face=arial size=2><b>'.$tag.'</b></font></div>';
}
}

/**
* Display the page links
*
* @access public
* @return string
*/
function renderNav() {
for($i=1;$i<=$this->max_pages;$i+=$this->links_per_page) {
if($this->page >= $i) {
$start = $i;
}
}

if($this->max_pages > $this->links_per_page) {
$end = $start+$this->links_per_page;
if($end > $this->max_pages) $end = $this->max_pages+1;
}
else {
$end = $this->max_pages;
}

$links = '';

for( $i=$start ; $i<$end ; $i++) {
if($i == $this->page) {
$links .= "<div style='margin-left:2px;width:5px;height:5px;padding:2px;float:left;background:white;border:1px solid black;'><font face=arial size=2><b> $i </b></font></div> ";
}
else {
$links .= '<div style="margin-left:2px;width:5px;height:5px;padding:2px;float:left;background:white;border:1px solid black;"> <a href="'.$this->php_self.'?page='.$i.'"><font face=arial size=2><b>'.$i.'</b></font></a></div> ';
}
}

return $links;
}

/**
* Display full pagination navigation
*
* @access public
* @return string
*/
function renderFullNav() {
return $this->renderFirst().''.$this->renderPrev().''.$this->renderNav().''.$this->renderNext().''.$this->renderLast();
}

/**
* Set debug mode
*
* @access public
* @param bool $debug Set to TRUE to enable debug messages
* @return void
*/
function setDebug($debug) {
$this->debug = $debug;
}
}
?>
====================================================================
setelah disimpan kini buat file buat menampilkan datanya :

====================================================================
<?php
include('ps_pagination.php');
$conn = mysql_connect('localhost','root');
mysql_select_db('data',$conn);
$sql = "SELECT * from anggota"
$pager = new PS_Pagination($conn,$sql,50,5);-->yg dibold=untuk mengatur jumlah data yg akan ditampilkan,jumlah halaman yg akan ditampilkan.
$rs = $pager->paginate();
echo("page dari $pager->max_pages halaman");
echo("<table style="" cellpadding="2" cellspacing="1">");
echo("<tr bgcolor=#2F4F4F align=center><td><span style=";" ><b>No</b></span></td><td><span style=";" ><b>No Nama</b></span></td><td><span style=";" ><b>Alamat</b></span></td><td><span style=";" ><b>Tgl Lahir</b></span></td></tr>");
$pa=$pager->page;
$no=($pa-1)*50;
while($row = mysql_fetch_array($rs)) {
$no=$no+1; --> yg dibold= agar no urutnya bersambung ke halaman berikutnya
$no1=$no;
$no2=$no1/2;
$no3=round($no1/2);
if ($no2==$no3) {
$color="#DCDCDC";
} else {
$color="#F5F5F5";
}

$nama=$row['nama'];
$alamat=$row['alamat'];
$lahir=$data['lahir'];
echo("<tr align="center"><td style="" bgcolor="#0c0000">$no1</td><td bgcolor="#0c0000" width="75">$nama</td><td align="center" bgcolor="#0c0000" width="65">$alamat</td><td align="right" bgcolor="#0c0000" width="85">$lahir</td></tr>");
}
echo("</tbody></table>");
echo $pager->renderfullnav(); -->
====================================================================
Simpan file dengan nama view.php dan paggil file view.php.
Maka data yang ditampilkan per halaman sebanyak 50 data.
READ MORE - Belajar Online PHP Pagination

05 April 2009

Belajar online Script CSS link

Setiap kali bikin link misal =<a href="index.php">Home</a> maka tampilannya pasti itu2 saja ada garis bawah dan hovernya pasti merah. Aq pikir emang tampilannya itu2 saja , ternyata dengan CSS kita bisa atur tampilannya sesuai dengan keinginan kita. Nyari2 di mbah google akhirnya ketemu script CSS nya, nih scriptnya :

a:link { color: red; } --> warna link yg belum dikunjungi
a:visited { color: black;} --> link yg sudah di kunjungi maka akan berubah jadi hitam
a:active { color: green; } --> setelah link di klik maka akan berubah menjadi hijau
a:hover { color: blue; font-size:14px; } --> ketika mouse melewati linknya maka warna tulisan berubah jadi biru dan ukuran tulisan menjadi 14px
a { text-decoration: none; } --> untuk menghilangkan garis bawah

dengan script diatas maka warna link akan bisa disesuaikan dengan warna websitenya.

Belajar online
READ MORE - Belajar online Script CSS link

Belajar online Memberi warna baris pada tabel

Bosan dengan tampilan tabel yg tiap baris pasti warnanya sama,pinginnya tiap baris warnanya berbeda. Akhirnya bisa ketemu juga scriptnya agar tiap baris beda warna berdasarkan urutan baris ganjil dan genap.Nih contoh scriptnya :
<?phprequire("coba.php");
if ($_POST['submit']) {
$link=open_connection();
$pilih="SELECT * from data";
$hasil=mysql_query($pilih);mysql_close($link);echo("<table border=0 bordercolor=#B0BDC6 align=center width=100% cellspacing=0 cellpadding=1><tr>");
echo("<td>No</td><td>Nama</td><td>Alamat</td></tr>");
while($data=mysql_fetch_array($hasil)) {
$no1=$no1+1;
$no2=$no1/2;
$no3=round($no1/2);
if ($no2==$no3) { $color="#EEEEEE";} else { $color="#FFFFFF"; }
$nama=$data['nama'];
$alamat=$data['alamat'];
echo("<tr><td bgcolor=$color>$no1</td><td bgcolor=$color>$nama</td><td bgcolor=$color>$alamat</td></tr>");}echo("</table>");}?>
Tulisan yg ditebali merupakann script yg membuat warna tiap table berbeda :
$no1=$no1+1; --> membuat urutan no secara otomatis
$no2=$no1/2; --> membagi no urut dengan bilangan 2
$no3=round($no1/2); --> membagi no urut dengan bilangan 2 dan dibulatkan
if ($no2==$no3) { --> melihat no nya ganjil / genap, bila hasilnya sama berarti no nya genap
$color="#EEEEEE";} else { $color="#FFFFFF"; }
<td bgcolor=$color> --> baris tabel akan ganti warna sesuai dengan kondisi no urutnya

belajar online


READ MORE - Belajar online Memberi warna baris pada tabel

16 Maret 2009

Belajar online Bunyi Beep pada Komputer

Ndak terasa udah 1 bulan ndak update blog ini. Kali ini aq mo nulis tentang bunyi beep pada komputer. kejadian ini aq alamin bulan kemarin waktu bersih2 in komputer. Gw lepasin semuanya (komputernya bukan itunya lhooo) trus dibersihin. nah bagian yang pling sukar adalah kembalikan lagi ke tempat semula. setelah selesai. pencet tombol powernya. Walah ndak mo booting malah bunyi teet teet teet. Gw kira ada yg kentut ternyata bunyi komp gwe. Udah capek bersihin komputer skrng komputernya ndak mau nyala. Terpaksa tanya mbah dukun pling ampuh di dunia maya. ketik keyword " bunyi beep pada komputer" langsung muncul artikel2 nya. gw baca satu2 ternyata penyebab bunyi teet itu adalah masang memorynya kurang pas, tapi ternyata bunyinya ndak hanya teet teet doanks , masih ada yg laen. nih gw kasih list bunyinya :

:: Pada Ami BIOS

1. Bunyi BEEP hanya sekali sahaja.
Kemungkinan RAM (random access memory) ada masalah atau tidak dipasang dengan betul.

2. BEEP sebanyak enam kali
Kemungkinan keyboard / papan kekunci anda sudah rusak atau tidak dipasangkan dengan betul pada p/s2 port atau USB port.

3. BEEP sebanyak lapan kali
Kemungkinan VGA (Video Graphics Array) card atau pun graphic card ada masalah atau pun tidak dipasang dengan betul.

4. BEEP sebanyak 11 kali
Checksum Error yaitu melibatkan bateri CMOS anda pada motherboard. Anda boleh menukar bateri CMOS yang baru jika mengalami masalah ini.

:: Award BIOS
1. Bunyi BEEP yang panjang
Memori mempunyai masalah atau tidak dipasang dengan betul.

2. 1 BEEP panjang dan 2 BEEP pendek
VGA card atau graphic card ada masalah atau tidak dipasang dengan betul.

3. 1 BEEP panjang, 3 BEEP pendek
Kemungkinan keyboard bermasalah atau tidak dipasang dengan betul pada p/s2 port atau USB port.

4. Bunyi BEEP yang berpanjangan (contiuouns BEEP)
RAM atau VGA card anda tidak dipasang dengan betul.

:: Pheonix BIOS

1. 1 BEEP, 1 BEEP dan 4 BEEP
Disebabkan BIOS anda tidak berfungsi. Boleh update atau flash BIOS.

2. 1 BEEP, 2 BEEP dan 1 BEEP
Disebabkan motherboard yang sudah rusak.

3. 1 BEEP, 3 BEEP dan 1 BEEP
RAM mungkin bermasalah atau tidak dipasang dengan betul.

4. 3 BEEP, 1 BEEP dan 1 BEEP
Adalah disebabkan masalah motherboard computer.

5. 3 BEEP, 3 BEEP dan 4 BEEP
VGA card atau graphic anda bermasalah atau tidak dipasang dengan betul.

READ MORE - Belajar online Bunyi Beep pada Komputer

20 Januari 2009

Belajar Online Merubah Tampilan Button dan Textbox

lama2 bosan juga ama tampilan default button dan textbox, kotak dan warnanya pasti coklat. Pas gi browsing internet lihat web dengan tampilan button dan textbox yg menarik, buttonnya ndak default. tak lihat sourcenya ternyata tuk merubah tampilan button agar lebih eye catching (red:enak dipandang mata) bisa menggunakan CSS. nih source cssnya =

.button {
BORDER-RIGHT: #FFFFFF 1px solid; BORDER-TOP: #FFFFFF 1px solid; BORDER-LEFT: #FFFFFF 1px solid; WIDTH: 50px; COLOR: #0099FF; BORDER-BOTTOM: #FFFFFF 1px solid
}
.isi {
BORDER-RIGHT: #FFFFFF 1px solid; BORDER-TOP: #FFFFFF 1px solid; BORDER-LEFT: #FFFFFF 1px solid; WIDTH: 100px; COLOR: #0000FF; BORDER-BOTTOM: #FFFFFF 1px solid
}

ntar di code buttonnya <input type=submit class="button"> di code textboxnya <input type=text class="textbox">

sekarang tampilannya udah menarik lagi ndak default. klo bosan ama yg lama tinggal edit cssnya ganti lagi dech dgn yg baru



READ MORE - Belajar Online Merubah Tampilan Button dan Textbox

10 Januari 2009

Belajar Online Instal Wordpress

,bGw kemarin iseng2 buka web wordpress (soalnya gw seringnya pake blogspot. wordpress lom pernah nyoba -> maklum masih newbie). Aq kira klo wordpress sama dengan blogspot. emang sama sih dengan blogspot cuman di wordpress kita mendownload program CMS wordpress. Klo lo mau donlot nih gw kasi linknya = download WP .
Langkah instal WP :
1. Setelah lo donlot filenya. kmu extrak dulu filenya di folder web kamu.Karena aq pake xampp
q extrak di folder httdocs.
2. Lo buat database lewat phphmyadmin
3. Ubah nama file wp-config-sample.php menjadi wp-config.php.

4. Buka file wp-config.php trus lo edit :
/** The name of the database for WordPress */
define('DB_NAME', 'wordpress'); --> nama databasenya

/** MySQL database username */
define('DB_USER', 'root'); --> username mysql nya (defaultnya root)

/** MySQL database password */
define('DB_PASSWORD', 'admin'); --> password mysql (klo ndak ada passwordnya lo kosongi
aja.
/** MySQL hostname */
define('DB_HOST', 'localhost'); --> nama hostname (defaultnya localhost)

5. Jalankan instalasi wpnya dengan ketik http://localhost/wordpress/wp-admin/install.php
6. Selesai , wordpress 2.7 sudah terinstal di web kamu

READ MORE - Belajar Online Instal Wordpress

01 Januari 2009

Belajar online Daftar Grub Error

Setelah gw ngalamin grub error 21 dan berhasil benerinnya. gw jadi penasaran kenapa namanya 21, berarti ada grub error yg laen. gw cari2 di google akhirnya ketemu list dari grub error dan maksud dari error tersebut. ternyata banyak juga yaa grub errornya.

1 : Filename must be either an absolute filename or blocklist
This error is returned if a file name is requested which doesn't fit the syntax/rules listed in the section Filesystem syntax and semantics.
2 : Bad file or directory type
This error is returned if a file requested is not a regular file, but something like a symbolic link, directory, or FIFO.
3 : Bad or corrupt data while decompressing file
This error is returned if the run-length decompression code gets an internal error. This is usually from a corrupt file.
4 : Bad or incompatible header in compressed file
This error is returned if the file header for a supposedly compressed file is bad.
5 : Partition table invalid or corrupt
This error is returned if the sanity checks on the integrity of the partition table fail. This is a bad sign.

6 : Mismatched or corrupt version of stage1/stage2
This error is returned if the install command is pointed to incompatible or corrupt versions of the stage1 or stage2. It can't detect corruption in general, but this is a sanity check on the version numbers, which should be correct.
7 : Loading below 1MB is not supported
This error is returned if the lowest address in a kernel is below the 1MB boundary. The Linux zImage format is a special case and can be handled since it has a fixed loading address and maximum size.
8 : Kernel must be loaded before booting
This error is returned if GRUB is told to execute the boot sequence without having a kernel to start.
9 : Unknown boot failure
This error is returned if the boot attempt did not succeed for reasons which are unknown.
10 : Unsupported Multiboot features requested
This error is returned when the Multiboot features word in the Multiboot header requires a feature that is not recognized. The point of this is that the kernel requires special handling which GRUB is likely unable to provide.
11 : Unrecognized device string
This error is returned if a device string was expected, and the string encountered didn't fit the syntax/rules listed in the section Filesystem syntax and semantics.
12 : Invalid device requested
This error is returned if a device string is recognizable but does not fall under the other device errors.
13 : Invalid or unsupported executable format
This error is returned if the kernel image being loaded is not recognized as Multiboot or one of the supported native formats (Linux zImage or bzImage, FreeBSD, or NetBSD).
14 : Filesystem compatibility error, cannot read whole file
Some of the filesystem reading code in GRUB has limits on the length of the files it can read. This error is returned when the user runs into such a limit.
15 : File not found
This error is returned if the specified file name cannot be found, but everything else (like the disk/partition info) is OK.
16 : Inconsistent filesystem structure
This error is returned by the filesystem code to denote an internal error caused by the sanity checks of the filesystem structure on disk not matching what it expects. This is usually caused by a corrupt filesystem or bugs in the code handling it in GRUB.
17 : Cannot mount selected partition
This error is returned if the partition requested exists, but the filesystem type cannot be recognized by GRUB.
18 : Selected cylinder exceeds maximum supported by BIOS
This error is returned when a read is attempted at a linear block address beyond the end of the BIOS translated area. This generally happens if your disk is larger than the BIOS can handle (512MB for (E)IDE disks on older machines or larger than 8GB in general).
19 : Linux kernel must be loaded before initrd
This error is returned if the initrd command is used before loading a Linux kernel. Similar to the above error, it only makes sense in that case anyway.
20 : Multiboot kernel must be loaded before modules
This error is returned if the module load command is used before loading a Multiboot kernel. It only makes sense in this case anyway, as GRUB has no idea how to communicate the presence of location of such modules to a non-Multiboot-aware kernel.
21 : Selected disk does not exist
This error is returned if the device part of a device- or full file name refers to a disk or BIOS device that is not present or not recognized by the BIOS in the system.
22 : No such partition
This error is returned if a partition is requested in the device part of a device- or full file name which isn't on the selected disk.
23 : Error while parsing number
This error is returned if GRUB was expecting to read a number and encountered bad data.
24 : Attempt to access block outside partition
This error is returned if a linear block address is outside of the disk partition. This generally happens because of a corrupt filesystem on the disk or a bug in the code handling it in GRUB (it's a great debugging tool).
25 : Disk read error
This error is returned if there is a disk read error when trying to probe or read data from a particular disk.
26 : Too many symbolic links
This error is returned if the link count is beyond the maximum (currently 5), possibly the symbolic links are looped.
27 : Unrecognized command
This error is returned if an unrecognized command is entered into the command-line or in a boot sequence section of a configuration file and that entry is selected.
28 : Selected item cannot fit into memory
This error is returned if a kernel, module, or raw file load command is either trying to load its data such that it won't fit into memory or it is simply too big.
29 : Disk write error
This error is returned if there is a disk write error when trying to write to a particular disk. This would generally only occur during an install of set active partition command.
30 : Invalid argument
This error is returned if an argument specified to a command is invalid.
31 : File is not sector aligned
This error may occur only when you access a ReiserFS partition by block-lists (e.g. the command @command{install}). In this case, you should mount the partition with the `-o notail' option.
32 : Must be authenticated
This error is returned if you try to run a locked entry. You should enter a correct password before running such an entry.
READ MORE - Belajar online Daftar Grub Error

14 Desember 2008

Belajar Online - Grub Error 21

Grub error 21 , tulisan yg pertama kali keluar ketika aq restart komp q sehabis instal linux Kubuntu. Udah berkali2 gw restart tetep aja tulisan itu yg keluar (ndak bisa masuk OS). Ampek 3 kali gw instal ulang tuh linuxnya tapi tetep aja, trus gw ganti instal ubuntu masih lom bisa juga. Akhirnya aq cari2 di google ketemu caranya yaitu reinstal grubnya, Langkah2nya:
!. Kamu masuk ke linuxnya pake live CD.
2. Klik application - accesoris - terminal
3. Ketik : sudo grub (sudo ->untuk masuk ke root) lalu enter maka tampilan terminalnya
berubah jadi grub >
4. Ketik find /boot/grub/stage1 (untuk mengetahui grubnya diinstal dimana) lalu enter

5. Ketik root (hd1,5) --> hd1 berarti di harddisk yg kedua (gw pake 2 harddisk yg
satu buat windows yg satu lagi buat linux. kenapa hd1 untuk harddisk yg kedua karena
awal hitungannya bukan 1 tapi 0) , 5 berarti di partisi yg ke 5
6. ketik setup (hd1) enter.
7. ketik reboot
Setelah restart kemudian booting.... haaaaaa tulisannya masih keluar jugaaaa :( :( . Hampir setengah hari mbetulin grub lom selesai2 juga. Tanya2 ma temen lewat ebuddy akhirnya diberi cara lain yaitu ubah config di bios.
Ubah config pada harddisk di bios :
Primary master
Type = user mode = LBA
Slave
Type = auto mode = auto
Restart lalu booting yesss alhamdulillah tulisannya ndak keluar lagi tapi langsung masuk ke pilihan bootingnya. Akhirnya usaha keras q selama 12 jam selesai juga, sekarang waktunya tuk belajar Linux.
READ MORE - Belajar Online - Grub Error 21