Month: February 2011

yohanli.com

Created with Sketch.

Code::Blocks Simple Hello World Console Applications

Create New Project from File -> New -> Project Pick New Console Project then Click Go Click Next Select C then Click Next Fill project title and choose folder to create project in Choose GNU GCC Compiler and then click Finish Create Code in main.c files #include <stdio.h> #include <stdlib.h> int main() { printf(“Hello world!\n”);…
Read more

Substitute TTF Font on Epson TM-U220 Receipt Printer

I found it’s tricky in printing Epson’s receipt printer font (TM-U220) on web browser point of sale application, CSS does not allowed me to access Epson’s receipt printer font. All you need to do is setting font substitution in printing preferences. Open Control Panel to access Printers On Epson’s Receipt Printer do right click then…
Read more

How to Disable Print Dialog on Firefox Browser

Annoying with print dialog? Need to disable print dialog on your controlled environment? Need to disable print dialog on your web based Point of Sale (POS) applications (e.g phppointofsale)? Need to disable print dialog on your web based ticket printing applications? Type about:config on address bar Choose to promise Right clicik and create new boolean…
Read more

Konsep Pemrograman MVC (Model View Controller)

MVC adalah sebuah bentuk pemrograman yang memisahkan berdasarkan logika penanganan tampilan, logika pengontrolan dan logika model. MVC bertujuan supaya pada pengembangan perangkat lunak yang besar mudah untuk dilakukan maintenance (perbaikan/penambahan atau pengurangan code). Model adalah komponen yang berfungsi mengambil data dari database/sumber data. Fungsi yang terdapat dalam Model akan dipanggil oleh Controller. View adalah komponen…
Read more