Showing posts from 2012

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 upgrade

 lanjutkan dengan install phpunit :

- pear config-set auto_discover 1
- pear install

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

<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

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

membuat shortcut alamat website

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

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 :

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> 


print another page from the current page

already tested. $(document).ready(function(){ $('#printButton').click(function(evt) { evt.preventDefault(); $('body').append('<iframe src="document_to_be_printed.php?param=value" id="printIFrame" name="printIFrame"></iframe>'); $('#printIFrame').bind('load', function() { window.frames['printIFrame'].focus(); window.frames['printIFrame'].print(); } ); }); });

reference :

Entity Framework Development Approaches

As shown in the following diagram, there are three ways you can work with data in the Entity Framework: Database First, Model First, and Code First.

Database First If you already have a database, the Entity Framework can automatically generate a data model that consists of classes and properties that correspond to existing database objects such as tables and columns. The information about your database structure (store schema), your data model (conceptual model), and the mapping between them is stored in XML in an .edmx file. Visual Studio provides the Entity Framework designer, which is a graphical designer that you can use to display and edit the .edmx file. The sections Getting Started With the Entity Framework and Continuing With the Entity Framework in the Web Forms tutorial series use Database First development.
Model First If you don't yet have a database, you can begin by creating a model using the Entity Framework designer in Visual Studio. When the model is finis…

Data Flow Diagram (DFD)

DATA FLOW DIAGRAM Data Flow Diagram (DFD) describes the system distribution into a smaller system. DFD allows the user to easily learn about computer and understand about worked system. DFD allows to learn new system are logically develop without consider the physically environment where the data flow (like by phone, mail, etc) or physically environment where the will be save (like file card, microfiche, hard disk, tape, diskette, etc). DFD is a tool used in methodology structured Analysis and design. CONTEXT DIAGRAM Context Diagram consists of one process to describe the system environment. It’s a highest level in DFD which is describes all the input into the system and output from system. System has a boundary which is to separate the system with the external entity. In context diagram there is no storage. Because context diagram are process to describe the system environment. ZERO DIAGRAMS Zero diagrams are describes the process of DFD. It gives a opinion spread all o…

Mansory Ferrari 458 Spider (2012)

Looks, style and power. The 2012 Mansory Ferrari 458 Spider delivers it all.
The aerodynamic design and aggressive styling are completely appropriate for this high performance machine.
This limited edition of which only 3 were made, will cost more than chassis and a piston. This Mansory Monaco Edition of the Ferrari 458 Spider Convertible is certain to cause aficionados to gawk and stare.

General InfoVehicle Type:Super Sport CoupeEst. Market Price:NAFuel Tank Capacity:22.7 gallons (86l)MPG:NADimensionsLength:178.2 in. (452.6 cm)Wheelbase:104.3 in. (264.9 cm)Height:47.7 in. (121.1 cm)Width:76.3 in. (193.8 cm)Curb Weight:NAGround Clearance:NALuggage Capacity: 8.1 cu ftMaximum Seating: 2PerformanceEngine:V8 DOHCDisplacement:4.5 LiterHorsepower:590 HPHP per Liter:131 HPTorque:413 lb-ftTransmission:7-Speed Dual0-60 mph:3.2 secondsTop Speed:205 mph (330 km/h)Engine & Performance
The V8 4.5 liter engine produces 590 hp and 413 lbs-ft of torque. Get behind the wheel of…

cara daftar di DMOZ

ODP(Open Directory Project) DMOZ menjadi fenomenal karena hampir semua search engine terkenal mengacu pada directory Dmoz. Beberapa Search Engine yang mengacu pada Dmoz diantaranya: Google, Alexa, Yahoo, AOL, Lycos, Teoma, AskJeevess Netscape, Hotbot dan masih banyak lagi.

berikut cara untuk daftar di DMOZ :
1. buka
2. pilih kategori yang paling sesuai dengan web/blog yang akan didaftarkan. katergori seperti yang dilingkari merah pada gambar di bawah ini (Arts, Business,Computers) masih memiliki banyak sub kategori lagi. PILIH sub sub kategori sampai tidak ada sub kategori lagi dibawahnya.

untuk mempermudah menentukan kategori yang sesuai bisa menggunakan fasilitas search. masukkan alamat url web/blog orang lain yang sejenis dengan web/blog anda. kalau web/blog tersebut sudah terdaftar di dmoz maka akan muncul beserta dengan keterangan kategori dan sub kategorinya. selanjutnya anda tinggal pilih kategori tersebut dan lanjutkan dengan langkah selanjutnya.

 3. setela…

cara mendaftarkan web/blog ke google

buka link berikut :

lalu tambahkan website/blog anda.

Page CTR, CPC and Page RPM

CTR = Click Through Rate as a %, divide the # of clicks by the # of page views or # of ad impressions
CPC = Cost Per Click as an average of what you are getting for each click, so it's total earnings divided by # of clicks RPM = Rate Per 1000 Impressions, is just a reference # of what you are currently earning (or would be earning) for every 1000 impressions

register a .ocx file to system32

- copy .ocx file to system32 folder
- open command line(open as administrator on windows 7)
- type and enter 'regsvr32 filename.ocx' without single quotes