Senin, 12 November 2012

How to Detect Browser Internet Explorer with PHP

Tidak ada komentar:

How to Detect Browser Internet Explorer with PHP


You know, if you are website programmer or website designer you will understand why so important to detect Internet Explorer browser, cause generaly this browser have different treatment  in processing html, css and javascript. So maybe you need different page for this browser.
So this is PHP script will help you for detect Internet Explorer Browser or not.

<?php
if (strpos($_SERVER['HTTP_USER_AGENT'], '(compatible; MSIE ')!==FALSE) {
   //action for internet explorer
   header('location:form-ie.php?idu='.$_GET['idu']);  
} else {
      //action for other browser
header('location:form.php?idu='.$_GET['idu']);
}


Rabu, 07 November 2012

Handling Event Window Close or Reload With jQuery

Tidak ada komentar:

Handling Event Window Close or  Reload With jQuery

         When we want to know that the user will leave the pages of the website, we need a trigger that can be used as a reference to determine the user has left the website pages.
There are some conditions in which the user can leave the web page:

- Refresh or reload page
- Back to previous page
- Close page

example with javascript:
window.onunload=function(){SomeJavaScriptCode};

example with jquery
$(window).unload(function() {
    //some javascript code
}

Some Problem :
onUnload only working on Firefox , Internet Explorer and Opera

Senin, 22 Oktober 2012

One Piece's Osaka Exhibition

Tidak ada komentar:

One Piece's Osaka Exhibition

One Piece's Osaka Exhibition


Awal tahun ini Eiichiro Oda merayakan kesuksesannya ilustrasi manga selama kurun waktu 15 tahun oleh, menampilkan ilustrasi aslinya di "Pameran One Piece". Karena popularitas acara yang digelar di Tokyo, panitia menambahkan acara lain di Osaka.


Di bawah ini adalah snapshot dari dua iklan mempromosikan acara tersebut. Jika seseorang dari Anda kebetulan berada di sekitar Jepang (24 November-17 Februari) dan merupakan penggemar berat manga, pastikan untuk mampir untuk berkunjung! Peserta akan mampu menangkap preview penuh Oda sketsa karakter manga terkenal langkah-demi-langkah.








sumber : http://www.jpopasia.com/news/one-pieces-osaka-exhibition::12441.html

Sejarah Bahasa Pemrograman PHP

Tidak ada komentar:

                 Sejarah Bahasa Pemrograman PHP

Logo PHP Banyak Programmer PHP tidak mengetahui sejarah dari PHP, berikut adalah sedikit sejarah pendek dari bahasa pemrograman yang sangat populer di seluruh dunia.  

PHP diciptakan oleh Rasmus Lerdorf, seorang pemrograman C yang andal. semula PHP hanya digunakan untuk mencatat jumlah pengunjung pada homepagenya. Pada waktu itu PHP masih bernama Form Interpreted (FI), yang wujudnya berupa sekumpulan skrip yang digunakan untuk mengolah data formulir dari web.
Selanjutnya Rasmus merilis kode sumber tersebut untuk umum dan menamakannya PHP/FI. Dengan perilisan kode sumber ini menjadi sumber terbuka, maka banyak pemrogram yang tertarik untuk ikut mengembangkan PHP.
zeev suraski PHPrasmus lerdorf Founder PHPandi gutsman PHP

Pada November 1997, dirilis PHP/FI 2.0. Pada rilis ini, interpreter PHP sudah diimplementasikan dalam program C. Dalam rilis ini disertakan juga modul-modul ekstensi yang meningkatkan kemampuan PHP/FI secara signifikan. Pada tahun 1997, sebuah perusahaan bernama Zend yang terdiri  dari sebuah kelompok pengembangan software yang terdiri dari Rasmus, Zeew Suraski, Andi Gutman, Stig Bakken, Shane Caraveo dan Jim Winstead bekerja selama tujuh bulan ulang interpreter PHP menjadi lebih bersih, lebih baik, dan lebih cepat. Kemudian pada Juni 1998, perusahaan tersebut merilis interpreter baru untuk PHP dan meresmikan rilis tersebut sebagai PHP 3.0 dan singkatan PHP diubah menjadi akronim berulang PHP: Hypertext Preprocessing.

zend logo php company

Pada pertengahan tahun 1999, Zend merilis interpreter PHP baru dan rilis tersebut dikenal dengan PHP 4.0. PHP 4.0 adalah versi PHP yang paling banyak dipakai pada awal abad ke-21. Versi ini banyak dipakai disebabkan kemampuannya untuk membangun aplikasi web kompleks tetapi tetap memiliki kecepatan dan stabilitas yang tinggi.
Pada Juni 2004, Zend merilis PHP 5.0. Dalam versi ini, inti dari interpreter PHP mengalami perubahan besar. Versi ini juga memasukkan model pemrograman berorientasi objek ke dalam PHP untuk menjawab perkembangan bahasa pemrograman ke arah paradigma berorientasi objek.

Kelebihan PHP dari bahasa Pemrograman lain

  1. 'Bahasa pemrograman PHP adalah sebuah bahasa script yang tidak melakukan sebuah kompilasi dalam penggunaanya.'
  2. 'Web Server yang mendukung PHP dapat ditemukan dimana - mana dari mulai apache, IIS, Lighttpd, hingga Xitami dengan konfigurasi yang relatif mudah.'
  3. 'Dalam sisi pengembangan lebih mudah, karena banyaknya milis - milis dan developer yang siap membantu dalam pengembangan.'
  4. 'Dalam sisi pemahamanan, PHP adalah bahasa scripting yang paling mudah karena memiliki referensi yang banyak.'
  5. 'PHP adalah bahasa open source yang dapat digunakan di berbagai mesin (Linux, Unix, Macintosh, Windows) dan dapat dijalankan secara runtime melalui console serta juga dapat menjalankan perintah-perintah system.'

sumber : - http://id.wikipedia.org/wiki/PHP
               - Pemrograman Web dengan PHP karya Yudhi Purwanto

Rabu, 10 Oktober 2012

Sabtu, 11 Agustus 2012

Anime Festival Asia (Indonesia) Presents Final Artist Line-Up for its Anisong Concert

Tidak ada komentar:
AFAID - Anime Festival Asia Indonesia 2012
AFAID - Anime Festival Asia Indonesia 2012

Anime Festival Asia (AFA) celebrates its 5th anniversary this year. Since its birth in Singapore, this is the first year it expands to other Southeast Asia countries. Having hosted one in Kuala Lumpur (Malaysia) just earlier this year, it was announced that Jakarta (Indonesia) is next in September, followed by Singapore in November.
The final line-up is just announced for AFA Indonesia 2012's Super Anisong Stage in Jakarta. Don't miss the biggest and most electrifying line-up of J-Pop artistes ever to hit the shores of Indonesia! All details are given in the picture as follow by the AFA organisers:

AFAID 2012 Artist Schedule
AFAID 2012 schedule

Selasa, 03 Juli 2012

Desks of Famous Manga/Anime Creators

Tidak ada komentar:

 Desks of Famous Manga/Anime Creators

 Meja Kerja Para Pembuat Manga atau Anime yang Terkenal


3 Anime Jepang yang sangat populer saat ini yaitu Naruto, One Piece dan Bleach dibuat oleh para mangaka terkenal yaitu :

Tite Kubo - Creator of Bleach
Masashi Kishimoto - Creator of Naruto
Eiichiro Oda - Creator of One Piece

naruto One Piece Bleach Wallpapaer


Tapi seperti apa meja kerja para mangaka tersebut berikut tiga foto meja kerja mereka :

Tite Kubo - Creator of Bleach
Tite Kubo Desk Creator of Bleach


Masashi Kishimoto - Creator of Naruto
Masashi Kishimoto Desk Creator of Naruto


Eiichiro Oda - Creator of One Piece
Eiichiro Oda Desk Creator of One Piece


Minggu, 03 Juni 2012

Can't Running Microsoft Office Powerpoint with Wine on Linux

Tidak ada komentar:
Can’t Running Microsoft Office Powerpoint on Wine


After i do installation Microsoft office 2007 with Wine on my Linux Ubuntu, all looks very good, but when i running Powerpoint it can't.
and i do it for fix it:




  1. open Wine configuration  ” winecfg
  2. Make sure that the Windows Version is set to Windows XP (Applications Tab).
  3. In the Libraries section, you need to add two overrides: “riched20” and “usp10”. To do this, simply type the the names (no quotes) into the dropdown-looking textbox, and click “Add”. Repeat this for both of the overrides, and you are done!
  4. do it : ” - wget http://www.kegel.com/wine/winetricks”  ”- chmod +x winetricks
  5. Run (and change prefix if need be): “./winetricks vcrun2005

How To Install TuxCut on Linux Ubuntu

Tidak ada komentar:

TuxCut is one of linux application. it can use for cutting intenet access on your network like netcut in windows..


Now i will install TuxCut on Linux Ubuntu 10.10 



How to Install :


1.  Download TuxCut
2. Install  arp-scan, dsniff, arptables
       - sudo apt-get install arp-scan        
       - sudo apt-get install dsniff      
       - sudo apt-get install arptables
3. Install TuxCut
sudo dpkg -i TuxCut-3.2_all.deb
4. Run TuxCut
sudo TuxCut




// If u have Problem when instalation process 


tryng to fix with

sudo apt-get install -f

for update your system

Rabu, 22 Februari 2012

How to POST data with cURL PHP

Tidak ada komentar:
<?php
$url = 'http://api.myurl.com/mm/status/0/'
$data = 'name=me&address=mystreeet&phone=1234';
        $ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, null);
curl_setopt($ch, CURLOPT_POST, TRUE);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec($ch);
curl_close($ch);