Posts

install pear dan phpunit pada windows 7 + appserv

- C:\AppServ\php5\ - klik 2x "go-pear.bat" - ikuti semua instruksinya sampai selesai. buka command prompt lalu ketik : - pear channel-update pear.php.net - pear upgrade  lanjutkan dengan install phpunit : - pear config-set auto_discover 1 - pear install pear.phpunit.de/PHPUnit kode tambahan saat instalasi gagal : untuk reinstall phpunit : - pear install --alldeps --force phpunit/PHPUnit upgrade pear : - pear upgrade-all clear cache : - pear clear-cache php_pear_php_bin is not set correctly : ganti : SET "PHP_PEAR_PHP_BIN=.\php.exe" menjadi : SET "PHP_PEAR_PHP_BIN=C:\AppServ\php5\.\php.exe"

setting time_zone mysql

SET GLOBAL time_zone = 'Asia/Jakarta'

Validating array inputs using jquery validation plugin

Image
<script> $(document).ready(function(){ //save complaint $("#submitcomplaint").click(function(){ $("#fcomplaint").validate({ debug: false, showErrors: function(errorMap, errorList) { $(".errormsg").html($.map(errorList, function(el) { return el.message; }).join(", ")); }, wrapper: "span", rules: { 'complaintdesc[]': "required", }, messages: { 'complaintdesc[]': "please enter complaint description", }, submitHandler: function(form) { //$.post('updatecomplaint.php', $("#fcomplaint").serialize(), function(data) { // alert(data.pesan); ...

create new paper size Epson LX-300+II ESC/P on windows xp

Image
start -> control panel -> printers and faxes -> file -> server properties

membuat shortcut alamat website

Image
1. buka notepad 2. ketik  :  [internetshortcut] url=link website 3. save as dengan Encoding "ANSI". dan simpan dengan nama file.url (berikan extension .url) 4.selesai

JDK 7 With Netbeans: FTP Problem With Windows Firewall

this is work for me, and hope it work for you too, open MS-DOS with administrator rights and paste this, then press enter : netsh advfirewall set global StatefulFTP disable reference : http://www.kubilayerdogan.net/?p=89#comment-646

how to get keyCode, which, charCode property with jquery

<html> <head> <title>charCode/keyCode/which example</title> <script type="text/javascript"> function showKeyPress(evt) { alert("onkeypress handler: \n" + "keyCode property: " + evt.keyCode + "\n" + "which property: " + evt.which + "\n" + "charCode property: " + evt.charCode + "\n" + "Character Key Pressed: " + String.fromCharCode(evt.charCode) + "\n" ); } function keyDown(evt) { alert("onkeydown handler: \n" + "keyCode property: " + evt.keyCode + "\n" + "which property: " + evt.which + "\n" ); } </script> </head> <body onkeypress="showKeyPress(event);" onkeydown="keyDown(event);" > <p>Please press any key.</p> </body> </html>  Demo