The Future of The Web

Posted in Gado-Gado on April 15th, 2009 by Zaenal M. – 2 Comments

Hari ini tidak ada yang paling ditakuti Bill Gates selain Google Guys, sebutan dua pendiri Google, Sergey Brin dan Larry Page. Bill Gates mengkhawatirkan keberadaan Google Guys bukan karena MSN.com kalah bersaing dengan Google, tetapi karena takut core business Microsoft, Windows dan Office, tergeser Google.

Lha, bagaimana bisa? read more »

Facebook Like Auto-Suggestion Text Field

Posted in Javascript on April 11th, 2009 by Zaenal M. – 4 Comments
AutoField Snapshoot

AutoField Snapshoot

AutoTextField or autoField is javascript class for creating auto suggestion input field like gmail or facebook, and required prototype.js version 1.6.0 or above. AutoTextField support mouseOver and some key: ENTER, TAB, END, HOME, UP, DOWN and ESCAPE.

Calling the class is simple: add new AutoField(fieldID, options) to the HEAD of HTML. In the example below, the fieldID is ‘compose_to’, with two options: script for Ajax request and className for CSS layout (you can find complete CSS sample for layout in demo page or download file).
read more »

inspectForm: Unobtrusive Form Validation

Posted in Javascript on December 11th, 2008 by Zaenal M. – 1 Comment

This script, inspectForm, required Prototype library version 1.6 and above. Some of the features are:

  • unobtrusive
  • client checking
  • server checking with ajax
  • easy to use
  • easy to hack, adjust, extend, modif

read more »

Video: Secrets of JavaScript Closures

Posted in Javascript on December 6th, 2008 by Zaenal M. – Be the first to comment

A must watch presentation! From Fronteers Conference ‘08, Stuart Langridge talks about closures in JavaScript, the secret and the immense power of closure in Javascript. Bring your brain, and a tolerance for jokes. read more »

Determine Client IP on Apache Httpd Configuration

Posted in Know-How, PHP on December 3rd, 2008 by Zaenal M. – Be the first to comment

Sometime REMOTE_ADDR not return the real client IP address value. This is true when the server was behind the firewall, or server use application like Squid, or the client accesses the server trough the proxy (like Google WebAccelerator); so the REMOTE_ADDR become the IP of the firewall server, the Squid server or proxy server. read more »

Mendapatkan IP Pengunjung pada Apache

Posted in Know-How on December 3rd, 2008 by Zaenal M. – 1 Comment

Adakalanya ketika memanggil variabel REMOTE_ADDR, IP yang didapat bukanlah IP sebenarnya dari client (pengunjung). Ini mungkin terjadi bila server menggunakan aplikasi seperti Squid, berada di belakang firewall, atau client mengakses situs kita melalui proxy (seperti Google WebAccelerator); yang membuat IP yang tersimpan pada variabel REMOTE_ADDR merupakan IP dari Squid, firewall server atau proxy server. read more »

Multilingual Javascript Date-Format Class

Posted in Javascript on December 1st, 2008 by Zaenal M. – 4 Comments
PHP strftime and Javascript DateFormat class

PHP strftime and Javascript DateFormat class

For PHP developer, it’s will be nice if we can use same date format parameter both in PHP and Javascript. This DateFormat class created for that purpose, since took strftime like parameter to format the output string. For example passing parameter “%d-%m-%Y” will output “dd-mm-yyyy” date string. See also: PHP strftime manual.

DateFormat has standard version and prototype version. The standard version does not required any other library, because it’s developed under standard Javascript. The prototype version required Prototype library (at least version 1.6). read more »

Hopp bukan Abramovich

Posted in Gado-Gado on November 25th, 2008 by Zaenal M. – Be the first to comment

Buat pecinta bola sekalipun, Hoffenheim adalah nama yang asing. Berbeda misalkan kalau kita menyebut nama Real Madrid, Manchester United atau AC Milan. Bahkan kalau disebut 10-20 tahun yang lalu, orang Jerman sekalipun tidak akan mengenal klub sepakbola bernama TSG Hoffenheim.

Hoffenheim adalah sebuah kota kecil dekat Heidelberg, yang berpenduduk sekitar 3000 jiwa. Sekitar 20 tahun lalu, klub sepakbolanya berada di Divisi 9, namun di tahun 2008 ini sudah berada di Divisi 1 atau Bundesliga. Itu artinya hampir setiap dua tahun, Hoffenheim mendapatkan promosi ke divisi yang lebih tinggi. read more »

PHP Locale for Indonesia Language

Posted in PHP on November 22nd, 2008 by Zaenal M. – Be the first to comment

To format a local time/date according to locale settings, like month and weekday names and other language dependent strings, we can use strftime() function respect the current locale set with setlocale(). read more »

Compressed prototype.js & scriptaculous.js

Posted in Javascript on November 22nd, 2008 by Zaenal M. – 3 Comments

I compressed both  prototype.js version 1.6.0.2 1.6.1 and scriptaculous.js version 1.8.1 1.8.3 using Javascript Packer by Dean Edward (http://dean.edwards.name/packer/) in one file, and the result is about 95kb. read more »