sponsor

Tuesday, January 20, 2009

my article in google translate

I just opened my website is a long time, and in fact one of the articles there have been translated from English into English. I already have other people who use google translate to translate the page. Original title is cara instalasi xampp
And this is a version of the translation in the English language

XAMPP is an installation package for PHP, Apache and MySQL. By using XAMPP, we do not need to be bothered to install the software that third separately.XAMPP can be downloaded at http://www.apachefriends.org/en/index.html.Here is how to install XAMPP.

  1. Run the file xampp-Win32-1.4.12-installer.exe (or other version)

  2. Then will appear to select a language option during installation to run.Please select the English language or English, unless you take another language. In this example I choose the English language because I love English.Memilih bahasa

  3. The installation will start. Click forward to get started.Mulai Instalasi

  4. Akan appear license software. Please read it if you want, but I prefer not to read it because too many. Click I Agree to continue.Lisensi Software

  5. Then please select your location to install XAMPP. Then click install

  6. Wait a while until the installation is complete.Tunggu sebentar

  7. Installation finishedinstalasi selesai

  8. Until this stage, we have installed XAMPP. That means we have finished installing PHP, Apache and MYSQL. The next step is to run servicenya.

  9. Run the XAMPP Control Panel on the desktop. Or you can also run the XAMPP Control Panel from the Start menu -> All Programs -> apachefriends -> xampp -> xampp control panel.xampp control panel

  10. Turn on Apache and Mysql by clicking the Start button. Open your web browser, and type http://localhost. If it looks like below, then apache is installed correctly.

  11. As information only, document property XAMPP root folder is located on the E: \ Program Files \ apachefriends \ xampp \ htdocs. This is because I install XAMPP folder on the E: \ Program Files \ apachefriends.


you can view the complete article in english here

Monday, January 12, 2009

how to get number of days in the month with php

if you want to know number of days in the month with php, you can call function cal_days_in_month()
this function returns the number of days in a given month, based on the calendar, month, and year that you specify

the format of this function is
Cal_days_in_month (calendar, Month, year)
This function have three parameters,
  • calendar, you can fill this parameter with CAL_GREGORIAN
  • month, you can fill this parameter with month (1 - 12)
  • year, you can fiil this parameter with 4 digits of year (2008)
example :
$days = cal_days_in_month(CAL_GREGORIAN, 1, 2009) ;
echo "In January 2009 there were $days days";
?>

that example will display
In january 2009 there were 31 days

Wednesday, December 31, 2008

calculate age with mysql

you can use mysql to determine how many years old of your employee is. This is just compute the difference in the year part of the current date and the birth date, then subtract one if the current date occurs earlier in the calendar year than the birth date. The following query shows, for each employee, name, birth date, the current date, and the age in the years. In this example I use table employee which has fields : employee_id, employee_name, birthdate

SELECT employee_id, employee_name, birthdate, CURDATE(),
(YEAR(CURDATE())-YEAR(birthdate))
- (RIGHT(CURDATE(),5)<RIGHT(birthdate,5))
AS age
FROM employee

Sunday, December 7, 2008

instalasi java di microsoft windows xp

Java di sini bukan berarti pulau jawa, bahasa jawa maupun hal-hal yang berhubungan dengan jawa. Java di sini adalah sebuah bahasa pemrograman yang digunakan untuk membuat aplikasi berbasis desktop maupun berbasis web.

Di sini saya tidak akan menjelaskan tentang bagaimana membuat hello world di java atau bagaimana cara membuat aplikasi java dengan koneksi database mysql.

Yang akan saya jelaskan di sini adalah bagaimana cara menginstall program java ke dalam komputer yang berbasis Microsoft Windows XP.

Instalasi Java di Microsoft Windows XP


Sebelum melakukan instalasi pastikan Anda sudah mempunyai installer java. Jika belum punya, download java versi terbaru di sun.com. Dalam praktek kali ini saya menggunakan java versi 6. Langkah yang ada di tutorial ini mungkin saja berbeda jika Anda menggunakan java versi lainnya

  1. download terlebih dahulu installer java di sun.com. Yang saya gunakan di sini adalah java versi 6. Jika sudah didownload, klik 2 kali untuk mulai instalasi Klik Next melanjutkan


  2. Muncul License Aggrement. Sebaiknya Anda baca isinya terlebih dahulu. Jika setuju dengan isinya klik Accept. Jika tidak setuju klik Decline.

  3. Tentukan fitur apa saja yang akan diinstall. Ada Development Tools, Demos and Samples, Source Code, Public JRE dan java DB. Secara default semua fitur ini akan diinstal. Anda juga bisa menentukan letak instalasi. Secara default aka diinstal di C:\Program Files\Java\jdk1.6.0_04. Anda bisa mengubah letaknya dengan mengklik Change. Klik Next untuk melanjutkan

  4. Instalasi akan berjalan. Tunggu beberapa saat

  5. Selanjutnya instalasi Java Runtime Environment. JRE ini diperlukan agar java bisa berjalan di windows. Klik Next untuk melanjutkan


  6. Instalasi akan dilanjutkan kembali. Tunggu beberapa saat sampai selesai

  7. Proses instalasi selesai. Klik Finish


Thursday, November 6, 2008

Blogger, Let's protect your idea

Jakarta - Internet technology that lead to developing a new lifestyle, including the development of content. Unfortunately, many developers content including blogs that have not yet know that his work is protected by law when dikomersilkan.

According to Andi Noorsaman Sommeng, Director General of the Department of Property Rights Law and Human Rights, the profits from developing content on the internet can indeed berpromosi free. Still, the creators can only prosecute the people who commercialize the content buatannya.

"What rights will be taken they take, but if the creator does not want to prosecute not do anything," he said, on the sidelines of the Asia-Pacific Symposium World Intelectual Property Organization, which takes place at the Mercure Hotel Ancol, Jakarta.

Rights are protected under Law 19 of 2002 on Copyright, the threat maximum fine of Rp 5 billion and a month in jail. "So there is a publication that, without the need to register • DEPKUMHAM perlindungannya already there," Andi supplement.

Unfortunately, other than the ringback tone content developers, content developers many other bloggers still have not been particularly aware that his work is protected by law. "It is not yet well, the problem of the people of Indonesia and many geographically separated. Hence this symposium aims to create public awarness that, "said Andi.

This law is the product while protecting foreign downloaded through the Internet. "Haki this law applies to members of WIPO because resiprokal system. If we protect their product, the product we also protected by the Law on them, "he continued.

WIPO is an organization under the auspices of the United Nations the right to manage the Intellectual Property (IP). This organization has 180 members around the country.

The symposium itself Andi claimed as the first in the world. Selection of Indonesia as the host because it is based because the U.S. considered superior in the development of content compared to other countries.

"You see, if indeed we lose the software with our hardware, while India lost to Singapore. But if Indonesia ideally in the content, try the song-hardened players who often played in other countries, that can be protected, "Andi umbar.

Meanwhile, WIPO consultant for the Asia Pacific Candra N. Darusman said, so far in Indonesia have not been many reports of violations related to User Generated Content (UGC). "But this issue will be dominant in the next 5 years. The most protected are the creator of songs, and recording companies who have content, "Andi also

diterjemahkan dari http://away.blogsome.com/2008/02/21/bloger-ayo-lindungi-karyamu/
dengan google translate