Tuesday, November 13, 2012

Make Money With Google AdSense?


What is Google AdSense?

AdSense is a nice way to monetize your traffic, and very easy to implement. It's one of my top earners and has been since 2003. (See the video about my earnings further down.)
AdSense is not a get-rich-quick program. You have to build a site with lots of traffic to make it worthwhile.
This free guide will give you a realistic overview of what you can expect from the program.
Don't pay a cent for these "Get Rich Quick" books on AdSense. Many of them are all hype or they're trying to get you to purchase one of their products.

Right click and "Save As" to download this book.
Google.com earns most of its revenue by allowing other website owners to advertise on their search result pages. All this is managed through a program they call AdWords.
You see these ads displayed above the free/organic results and along the right side of the page on Google.com. The advertisers are paying a certain amount of money per click for these ads.
Now you can earn a share of the revenue that Google earns from AdWords by displaying these same text or image ads on your site. When someone clicks, you earn roughly 60% of the click and Google gets the rest.
This program is called AdSense.
This is a great program that can help you drive additional income to your website -- especially if it's mostly content based.
So if you are one of those people that doesn't like the idea of paying for a site, this is an excellent way to earn your money back and then some.

How Does AdSense Work?

Here's a video I did some years back. The reason I still show it here is the concept is still exactly the same. The biggest difference is it takes more work to build up traffic. Nevertheless, AdSense still works.

How Much Can You Earn With AdSense?

The commission you receive per click depends on how much advertisers are paying Google for the particular ad. You will earn a share of that amount.  I've heard of earnings anywhere from 2 cents to $15 per click.
Getting over $1 is probably very rare, although it does happen from time to time. However, you will find that most of your earnings will be on the lower end of the spectrum.
It's important to note that I cannot estimate how much you will earn based on your traffic. People always want to know what the average amount is per click.
No one knows the answer to this except Google, so don't let anyone try to tell you any different. It would be impossible for myself or any AdSense publisher to give this information because the ads all cost different prices and we have no idea what advertisers are paying.
However, there are some niches that obviously pay more. So it is logical to believe that keyword phrases like sex, make money, etc. may earn you more per click since these are highly competitive keywords that are searched for quite a bit on
The more competitive the search term, the more the advertisers pay and the more you earn as a publisher.
Even though Google will not reveal how much you are earning for each ad that is clicked from your site, you can still login to your account at any time and see the total amount of revenue you've generated that day, week, month, year, etc.
For example, if you see that you've made $12.60 today from 9 clicks then you can calculate that your average click-thru commission was $1.40 per click.  That's as detailed as their stats will get.  Also remember, that's only an average.  You won't know how much each specific ad brought in.
The amount you'll earn also depends largely on the amount of targeted traffic you receive to your own site, how well the ads match your audience's interests, the placement of the ads on your pages, and of course the amount you receive per click.
Ideally, you should create a site on a topic you know a lot about.  That way you'll have a much easier time creating a generous amount of content on that subject.

Monday, November 12, 2012

PHP Script for Displaying Data in Tables with Color Line Hose-cross...


Wah is quite long too huh title of this article above ... For those of you who are still confused with the above title mean, just look at the picture below alone ... for details.

script php tabel data warna selang-seling


In the picture above you can see that each row of the table alternating color. Alternating colors can be easier for people to look at the data, particularly for distinguishing between lines. Well ... have understood it to mean?

OK ... this article will discuss how to make the display as above, with the data read from the MySQL database. Do not worry ... how to make it pretty easy anyway.

The basic idea creation data table rows with alternating colors is sufficient to use the concept of even and odd numbers. In the example above, the background color to be white lines on the odd lines, namely 1, 3, 5, ... and so on. While the gray lines given in even-numbered lines (2, 4, 6, ... etc.).

In PHP, to determine an even number is to use a modulo operation (%), if the number in modulo 2 result 0, then he is even, while if it is not equal to 0, then the odd.

For example, in this case, suppose we have a table structure


CREATE TABLE mhs (
  nim varchar(10),
  namaMhs varchar(30),
  alamat varchar(30),
  PRIMARY KEY (nim)
)
data OF Mahasiswa Table

INSERT INTO mhs VALUES ('M0197001', 'ROSIHAN ARI YUANA', 'Solo');
INSERT INTO mhs VALUES ('M0197002', 'DWI AMALIA FITRIANI', 'Kudus');
INSERT INTO mhs VALUES ('M0197003', 'FAZA FAUZAN KH.', 'Solo');
INSERT INTO mhs VALUES ('M0197004', 'NADA HASANAH', 'Solo');
INSERT INTO mhs VALUES ('M0197005', 'MUH. AHSANI TAQWIM', 'Solo');
Look this PHP script  below:
<?php

mysql_connect("namaHost","namaUser","password");
mysql_select_db("namaDB");
$warnaGenap = "#CCCCCC";   // warna abu-abu
$warnaGanjil = "#FFFFFF";  // warna putih
$warnaHeading = "#FF0000"; // warna merah untuk heading tabel

$query = "SELECT * FROM mhs";
$hasil = mysql_query($query);

echo "<table border='1'>";
echo "<tr bgcolor='".$warnaHeading."'>
      <td>NIM</td>
      <td>Nama Mahasiswa</td>
      <td>Alamat</td>
      </tr>";

$counter = 1;

while($data = mysql_fetch_array($hasil))
{

// cek apakah counternya ganjil atau genap

if ($counter % 2 == 0) $warna = $warnaGenap;
else $warna = $warnaGanjil;

echo "<tr bgcolor='".$warna."'>";
echo "<td>".$data['nim']."</td>";
echo "<td>".$data['namaMhs']."</td>";
echo "<td>".$data['alamat']."</td>";
echo "</tr>";

$counter++; // menambah counter
}
echo "</table>";

?>


PHP script to create WEB THUMBNAIL /SCREENSHOT


Do you want to make webthumbnail? What's that ya 'WebThumbnail'? Web thumbnail is a kind of image capture screen shots or the result of the appearance of a particular website. Thumbnail Web can actually be made ​​manually but very complicated because you have to open a web site that would captured zoom, then the software you need to capture a particular image zoom, and then save the results captured into an image file. Complicated right? But now you do not need to be complicated anymore, because there is already a PHP script to ease the process of making these thumbnails web.
To create a web thumbnails with PHP script, you do not bother him because it has provided a class that you can use for free or free. Give thanks to Lukasz Cepowski, which has made PHP class for web thumbnail. Feel free to download the script webthumnail.php diwww.phpclasses.org
Script Class webthumbnail made ​​by Lukasz Cepowski utilizes APIs from services webthumbnail.org a site that lets generate a screen shot of a web site.
Once the file has been downloaded webthumbnail.php, then how to use them?
Here is an example script to create web thumbnail or view website capturing and storing the file into a directory capturenya.

capture1.php
<?php
require 'webthumbnail.php';

// path file hasil capture
$path = 'd:/images/thumb.jpg';

$thumb = new Webthumbnail("http://blog.rosihanari.net");
$thumb
    ->setWidth(512)
    ->setHeight(512)
    ->captureToFile($path);

echo "Thumbnail sudah disimpan di ".$path;
?>
Examples of the above script when executed will capture views of the site and then save the file http://blog.rosihanari.net capturenya in d :/ images / thumb.jpg. The results captured image size is 512 x 512 pixels. Anyway, make sure his script webthumbnail.php located in the same folder as the capture1.php.
or you can also view results capturenya image directly into the browser, simply by making the script as follows:

capture2.php
<?php
require 'webthumbnail.php';

$thumb = new Webthumbnail("http://blog.rosihanari.net");
$thumb
    ->setWidth(512)
    ->setHeight(512)
    ->captureToBrowser();
?>
Image types generated from the above script is PNG image.
OK, easy right? good luck with ya ...:

PHP Script Export Data MySQL to Excel Multiple Sheet


For the purposes of export data to multiple excel sheet, I am using Spreadsheet_WriteExcel class that is already available. Please you downloadi class here.
However, unfortunately the manual or instructions for using the class is minimal, so I had to dissect the class for any method or facility that can be used in this class.
In this article, I will try to peel a way to export data in MySQL into Excel file using Spreadsheet_WriteExcel class. For example, suppose we have a student data in MySQL as shown below

Export MySQL ke Excel
Next we want to export student data into Excel file with 2 sheets, the first sheet to display data male students, and the second sheet for female student data, as shown in the second image below.
Export MySQL ke Excel
Export MySQL ke Excel
Here is a PHP script that would generate an Excel file with 2 sheets when the script is executed in the browser.
export.php
<?php
  require_once('Worksheet.php');
  require_once('Workbook.php');

  // koneksi ke mysql
  mysql_connect('dbhost', 'dbuser', 'dbpass');
  mysql_select_db('dbname');

  // function untuk membuat header file excel
  function HeaderingExcel($filename) {
      header("Content-type: application/vnd.ms-excel");
      header("Content-Disposition: attachment; filename=$filename" );
      header("Expires: 0");
      header("Cache-Control: must-revalidate, post-check=0,pre-check=0");
      header("Pragma: public");
      }

  // membuat header file excel dan nama filenya
  HeaderingExcel('mhs.xls');

  // membuat workbook baru
  $workbook = new Workbook("");
  // membuat worksheet ke-1 (data laki-laki)
  $worksheet1 =& $workbook->add_worksheet('Laki-laki');

  // setting format header tabel data
  $format =& $workbook->add_format();
  $format->set_align('vcenter');
  $format->set_align('center');
  $format->set_color('white');
  $format->set_bold();
  $format->set_italic();
  $format->set_pattern();
  $format->set_fg_color('red');

  // membuat header tabel dengan format
  $worksheet1->set_row(0, 15);
  $worksheet1->set_column(0, 0, 10);
  $worksheet1->write_string(0, 0, "NIM", $format);
  $worksheet1->set_column(0, 1, 30);
  $worksheet1->write_string(0, 1, "NAMA", $format);
  $worksheet1->set_column(0, 2, 20);
  $worksheet1->write_string(0, 2, "TINGGI BADAN (cm)", $format);

  // menampilkan data mhasiswa laki-laki

  $query = "SELECT * FROM mhs WHERE jns_kelamin = 'L'";
  $hasil = mysql_query($query);
  $baris = 1;
  while ($data = mysql_fetch_array($hasil))
  {
        $worksheet1->write_string($baris, 0, $data['nim']);
        $worksheet1->write_string($baris, 1, $data['nama']);
        $worksheet1->write_number($baris, 2, $data['tinggi']);
        $baris++;
  }

  // membuat worksheet ke-2 untuk data mhs perempuan
  $worksheet2 =& $workbook->add_worksheet('Perempuan');

  // membuat header tabel
  $worksheet2->set_row(0, 15);
  $worksheet2->set_column(0, 0, 10);
  $worksheet2->write_string(0, 0, "NIM", $format);
  $worksheet2->set_column(0, 1, 30);
  $worksheet2->write_string(0, 1, "NAMA", $format);
  $worksheet2->set_column(0, 2, 20);
  $worksheet2->write_string(0, 2, "TINGGI BADAN (cm)", $format);

  // menampilkan data mhasiswa perempuan

  $query = "SELECT * FROM mhs WHERE jns_kelamin = 'P'";
  $hasil = mysql_query($query);
  $baris = 1;
  while ($data = mysql_fetch_array($hasil))
  {
        $worksheet2->write_string($baris, 0, $data['nim']);
        $worksheet2->write_string($baris, 1, $data['nama']);
        $worksheet2->write_number($baris, 2, $data['tinggi']);
        $baris++;
  }

  $workbook->close();
?>
In the script above, there are a few commands that I need to explain here, namely:
$worksheet1 =& $workbook->add_worksheet('Laki-laki');
The above command is used to create a sheet or a worksheet with the name 'man' (worksheet1). Further orders associated with $ worksheet1 is always preceded by a $ worksheet1-> ... Similarly, when making a second worksheet (worksheet2).
The advantages of this class is able to format the text display and cellnya. In the above example, given the following command:

$format =& $workbook->add_format();
$format->set_align('vcenter');
$format->set_align('center');
$format->set_color('white');
$format->set_bold();
$format->set_italic();
$format->set_pattern();
$format->set_fg_color('red'); 
with the above command, we will make the text formatting properties: bold, italic, red background, centered vertical, horizontal centerd, and the font color white. The format will be given in the header of the cell which is the student data table. For example, suppose we want to format the cell header table 'NAME' with the above property on sheet 2, then the command:
$ worksheet2-> write_string (0, 1, "NAME", $ format);
where the parameter 0 and 1 are the coordinates of his cell.
The method set_row (x, y) is used to set the line width in the column x, y pixel wide. While the method set_column (x, y, z) to set the column width in pixels by z-y column. To write data into a cell, can use the method write_string () or write_number (). The difference between the two is if the method write_string () will be generated string in the cell, whereas write_number () data is written in the form of cell 

How to Make a Norton Ghost Boot From USB


Sometimes to install a computer does not have to go through the CDROM, as I usually do is just my computer and then I installed a full install and then my backup with norton GHOST that it becomes a file with the extension. GHO, so the install is faster because the copying his per track rather than per program one by one. quite 5 to 10 minutes if we perform the installation of norton Ghost.nah sometimes a computer does not have a cdrom as a netbook or a client computer cafe that was deliberately not provide cdrom, rather than having to provide external cdrom we can install by booting via USB flash later run norton ghost then we could clone the windows of the windows that we have very mudah.membuat sediakan.Caranya norton ghost using a USB flash drive is as follows:

- Materials
- USB Flash Disk.
- USB Disk Format Software.
- Software Norton.

- Steps ghost usb bootable disk creation
- Download USBFormat.exe here
- Download USBBoot.rar here
- Extract files USBBoot.rar [location up, original mind]
- Tancepin Flash Disk into the PC.
- Open the file USBFormat.
- Select the Flash Disk is used for Ghost Boot.
- Select FAT32
- Check the Create a DOS Bootable Disk.
- Search / Browse Folder USBBoot.
- Click Start to format the Flash Disk.
- Wait for Process Completed.
- Open the folder that was extracted USBBoot.
- Copy all files and folders.
- Open the flash disk formatted just finished.
- Paste all the files in there, if the overwrite confirmation appears, yes to all
-finish

  Staying lawyer cloning process to another pc.

Good luck ...!!

HOW INSTALL WINDOWS 8 FROM USB FLASHDISK



An easy way to install Windows 8 using a USB drive is by using a small program called Rufus
Step2 to make a usb flash to be used to install Windows 8 using a tool Rufus:
1.put usb stick into the computer operating system windows xp, vista or windows 7 and make sure if there's data2 therein backed / secured first.
2. Download and run the  rufus program (rufus_v1.2.0.exe) with administrator privileges (for windows vista and windows 7)
Select Usb flash, select the file system to be used (FAT 32/NTFS), switch mode Quick format, "Create a bootable disk using: MS-DOS" and "Create extended label and icon files"
  1. Klik kanan pada gambar ikon drive kecil disamping pilihan “Create a bootable disk using”, kemudian pilih lokasi dimana file ISO windows 8 berada.
  2. Selanjutnya, klik tombol “Start”, untuk memulai mentransfer file2 dari file iso windows 8 kedalam USB flashdisk, dan setelah proses selesai, USB flashdisk ini dapat digunakan untuk menginstall windows 8 seperti layaknya menggunakan CD/DVD.

  3. Perlu diingat, setelah USB flashdisknya diisi dengan file2 instalasi windows 8, USB flashdisknya masih bisa digunakan seperti biasa (hanya jgn diformat atau dihapus file2 yang telah ada), baik itu digunakan untuk menyimpan data kalian (jika masih ada ruang kosong).
Demikian cara yang Mudah dan Sederhana untuk membuat USB flashdisk kita agar bisa booting layaknya CD/DVD disk, untuk digunakan menginstall windows 8.
Catatan: Pastikan pada settingan BIOS dikomputer kita prioritas boot pertama memakai USB Flashdisk.

WINDOWS 8 DOWNLOAD 100% FREE



For those who want to downlod, please download at the link below.