Notifications

portfolio

This website has never been updated for more than a year now, and i intend to not to write anything here NOR tracking down your comments, if you need to ping me around please find me at links below:

if you have any questions, comments, or confessions you could write me an email at webmaster .at. chazzuka.com, or join my network at twitter, facebook, flickr, linkedin. Thank you for your support and attentions.

Best Regards

Javascript Conditional and Loop Control Statements

Beberapa waktu yang lalu ada temen minta dibuatin module pembelajaran mengenai Javascript Conditional and Loop Control Statements, karna bingung mulai dari mana dan stepnya kemana (ngga berbakat jadi dosen pengajar nih hahah) jadinya cuman 5 halaman folio (sengaja di banyakin contoh biar lebih banyak halaman heheh) dengan penjelasan singkat dan tu de poin sambil berharap yang baca ngga malah tambah bingung :D berikut ini adalah ringkasan hasil-nya.

IF , IF Else, dan IF Elseif

Conditional statement if seperti di bahasa pemrogramman lain digunakan untuk mem-filter suatu ekspresi kondisi dan kemudian memberikan action berdasarkan hasil filter tersebut.

Satu ekspresi:

if ( variable==‘gula’)
{
    document.write (‘manis’);
}

Dua ekspresi:

if ( variable==‘gula’ )
{
    document.write (‘manis’);
}else{
    document.write (‘pahit’);
}

Tiga atau Lebih ekspresi:

if ( variable==‘gula’ )
{
    document.write (‘manis’);
}elseif( variable==‘asam’ ){
    document.write (‘masam’);
}elseif( variable==’sambal’ ){
    document.write (‘pedas’);
}else{
    document.write (‘pahit’);
}

Switch Statement

Conditional loop switch merupakan alternatif bentuk perulangan IF ELSEIF ELSE, digunakan untuk melakukan perulangan berdasarkan sebuah nilai ekspresi dan kemudian memberikan action berdasarkan kemungkinan nilai-nilai hasil evaluasi. Continue reading ‘Javascript Conditional and Loop Control Statements’

ajaxed 3.0 ajax class untuk classic asp

ajaxed adalah ajax class untuk classic asp (ASP 3.0) (silakan baca postingan saya sebelumnya tentang ajaxed),michal gabrukiewicz author dari webdevbros.net telah me-rilis versi terbaru dari ajaxed (ajaxed 0.3), fasilitas² baru (dan bug fixes) yang ditambahkan antara lain:

  • Menggunakan prototype javascript library versi 1.6
  • Update JSON class utility (sekarang menggunakan versi 1.4)
  • Bug pada loading indicator telah diperbaiki dimana sebelumnya
    loading indicator tidak kelihatan klo halaman di scroll down
  • Style untuk loading indicator tidak di define secara default
    sehingga kita harus membuat CSS class tersendiri
    “ajaxLoadingIndicator”
  • Lebih banyak contoh² yang di bundle dalam download termasuk contoh
    me-load dari database (recordset)
  • AJAXED_DBCONNECTION sekarang di define didalam config untuk
    memudahkan proses integrasi dengan database di setap halaman

Setelah release versi pertama ajaxed ini telah menjadi favorit saya dalam membuat halaman ajax enabled dengan classic asp programming, pada versi ajaxed 0.2, telah di include-kan berbagai library yang menambah kemampuan ajaxed sendiri diantaranya: Database class library dan String Operations Class library. Untuk informasi Semua library tersebut (JSON Utility, Database Class, dan String Operation class) di develop oleh michal sendiri.

Sebelum release ajaxed sebenarnya telah ada library yang menggunakan XMLHTTPRequest untuk classic asp programming yaitu CLASP yang saat ini sudah versi CLASP 2.0, sangat kompleks tetapi menurut saya lebih rumit implementasinya meski dokumentasi dan sample-nya sendiri sangat banyak dan lengkap, silakan mau pilih yang mana :)

was that indonesian justice?

Dapat link ini dari milis bali blogger community, masih ngga malu bapak-bapak? was that indonesian justice? ofcourse not, that was their own justice, wasn’t that sir *sambil lirik pak polisi*

ihateindon.blogspot.com website sampah anti indonesia

website sampah

This blog is dedicated for indon hater. indon is a xenophopic & delusional granduer society. They thought the whole world is revolving around their pathetic nation. Include: 1. Screenshot or hyperlink of world wide web headline showing the word indon, for indon to know that the whole world calling them indon. 2. Copies of newpaper articles or news reporting the bad behaviour of indon 3. Images or picture of indon in Malaysia as a second class citizen 4. Anything bad about indon.

Sudah cukup mendiskripsikan website tersebut, website sampah yang hanya memaparkan bukti dari satu sisi (sungguh kerdil jiwamu nak …), kenapa tidak ditulis soal pemerkosaan TKI, penganiayaan TKI, pencurian kayu dan seterusnya, apakah perlu kita balas? menurut saya ngga usah deee, buang² karna mungkin saja orang-nya memanfaatkan issue keretakan hubungan ke-dua negara (sejak kasus ambalat hingga berbagai claim malaysia atas hak paten yang seharusnya menjadi milik indonesia) untuk menambah traffic websitenya (salah satu trik-nya: tulislah kontoversi)

tetapi apakah seluruh tuduhan itu salah? mungkin tidak, yang jelas sebagai warga negara indonesia tentu tersinggung dengan tulisan² tersebut.

Sangat disayangkan PEMERINTAH NEGARA REPUBLIK INDONESIA dan PARA ELITE BERWENANG terlalu sibuk mengurus gusur-menggusur, kampanye dan cari simpati dan Saling sikut mencari tempat di puncak, sampai lupa (?atau memang tidak mampu) memberikan perlindungan yang cukup kepada warga negara dan juga Alam Lingkungan di wilayah negara republik indonesia tercinta.

So, Lebih penting untuk menyuarakan dan mari kita ingatkan pemerintah untuk lebih memperhatikan dan memberikan perlindungan yang cukup (kalo perlu lebih) kepada warga negara (di dalam dan luar negeri) serta alam lingkungan (hutan² kita hampir botak pak) biar ga hanya sibuk adu sprint sambil sikut menyikut (we have a power!).

Buat Rekan² blogwalker untuk tidak memberikan linkout ke website sampah tersebut

Merdeka !

Web Programmer PHP Vacancy in Bali Indonesia

vacancy web developer web programmer in bali PHP ASP.NET

Lowongan pekerjaan web developer, web programmer, PHP programmer untuk bekerja di Bali Indonesia, dengan gaji yang negotiable

Diburu untuk di penjarakan pekerjakan permanent/contract web developer/web programmer khususnya php programmmer dengan kualifikasi sebagai berikut:
Continue reading ‘Web Programmer PHP Vacancy in Bali Indonesia’

Flash Tutorial Create Water Wave Effect Animation Using Mask and Tween

adobe flash actionscript

I have written a step by step tutorial about how to create a water wave effect animation using adobe flash CS3 (also compatible with erlier version) in my “official” blog, it is explain in detail about the proccess, hopely can help you making the same effects for your own website/project, be creative!

New Website and Blog of chazzuka

new chazzuka blog

I have launch new website chazzuka.com and new blog as i want it to be my branded domain name, my online portofolio site, and also my new place to share anything cause this domain often presumable as another persons blog :), but i will keep this domain as i already left a lot of signs here and also will keep post some stuffs here especially coding stuffs since I am going to move back to be a programmer rather than webmaster.

Re-inventing XMLHttpRequest: Cross-browser implementation with sniffing capabilities by Sergey Ilinsky

Cross Browser Comparration

Sergey Ilinsky has written a great article about cross browser XMLHttpRequest implementation wrapper. The benefit of using this wrapper we can fix things like below:

  • Missing static members (UNSENT, OPEN, SENT, LOADING, DONE) in All browsers
  • missing native XMLHttpRequest object support in Internet Explorer 6.0
  • memory leak caused by onreadystatechange handler in Internet Explorer 6.0
  • onreadystatechange wrong execution context in Internet Explorer All
  • onreadystatechange wrong execution context in Gecko All
  • readystatechange OPEN fired twice in Internet Explorer All
  • readystatechange OPEN fired twice in Gecko All
  • missing readystatechange calls in synchronous requests in Gecko All
  • unnecessary readystatechange DONE call when request aborted in Gecko All
  • annoying “<parsererror />” document in invalid XML responses in Gecko All
  • caching bug in Internet Explorer 6.0

The picture above is the result of Sergey XMLHttpRequest implementation in various browsers. The wrapper download here

PHP functions to validate Integer, Float and characters length input

Sometimes we need to validate an input from client browser before we push the value into further proccess, here i share 3 simple functions to perform validation input from forms and or querrystrings

Validate Integer Value Using isNumeric function

function isNumeric($n){
return ( $n == strval(intval($n)) )? true : false;
}

the simple php function above will perform an integer validation input, the proccess is pretty simple, the if control structure will evaluate whether the argument value ($n) has the same type with itself after cast to integer (strval(intval($n))), the right part of if expression (strval(intval($n))) is a simple way to cast any type of variable into integer. Sample of usage:

echo ‘<br />isNumeric(1) = ‘.(string)isNumeric(1);
echo ‘<br />isNumeric("a") = ‘.(string)isNumeric(‘a’);
echo ‘<br />isNumeric(0.1) = ‘.(string)isNumeric(0.1);

Validate Float Value Using isFloat function

function isFloat($n){
    return ( $n == strval(floatval($n)) )? true : false;
}

the simple php function above has same proccess with isNumeric function the difference is only the second part of if expression (strval(floatval($n))) which has function to cast the value of argument into floating point variable. Sample of usage:

echo ‘<br />isFloat(1) = ‘.(string)isFloat(1);
echo ‘<br />isFloat("a") = ‘.(string)isFloat(‘a’);
echo ‘<br />isFloat(0.1) = ‘.(string)isFloat(0.1);

Validate Characters Length Using isLength function

function isLength($s,$min,$max){
    $curLength = strlen($s);
    return (($curLength >= (int)($min)) && ($curLength <= (int)($max)))? true : false;
}

the php function above will perform a Length of characters validation, it takes 3 arguments which are (string_to_be_validate,minimum_length,maximum_length). Sample of usage:

echo ‘<br />isLength("aku",1,4) = ‘.isLength(‘aku’,1,4);
echo ‘<br />isLength("aku",4,4) = ‘.isLength(‘aku’,4,4);
echo ‘<br />isLength("aku",3,4) = ‘.isLength(‘aku’,3,4);