Formula E bakal dianjurkan di Kuching?


Jumaat, 5 July 2019, 6:00 pm

Apa itu Formula E? Credit: The Verge. Bagi yang tak mengenali apa itu Formula E, mungkin pernah melihat perlumbaan ini di TV1 atau RTM Sports. Ia adalah perlumbaan kereta elektrik, yang tergolong dalam siri perlumbaan Formula (sama seperti F1). Kecil² dulu kalau pernah main kereta Dash, lebih kurang macam tu lah kereta dia, guna bateri […]

Pada hari ini, 15 Ogos

Tahun lalu:

2 tahun lalu:

Macam betul-betuuul


Selasa, 30 April 2019, 8:09 pm

① – Kesemua saluran TV daripada RTM sudah bertukar kepada siaran HD (definisi tinggi) – TV1, TV2, TV Okey, HD Sports dan BES – siap dengan maklumat program dan sarikata interaktif (boleh pilih bahasa, atau nyahaktif).Saya masih ingat lagi semasa masih mengikuti rancangan gusti WWE Raw dan Smackdown setiap minggu pada tahun 2008, apabila WWE […]

Artikel tular

OOP the right way


Khamis, 15 November 2012, 9:36 pm

Most of tutorials on object oriented programming tells the reader about how to do it rather than why we have to write it that way. This post attempts to explain why we write object oriented code the way it is. Why object oriented? Object oriented is a way to write an application in components to […]

Singleton class


Ahad, 11 September 2011, 9:18 pm

This is continuation from singleton pattern post. Here’s the abstract class for singleton pattern, and other classes that need to be singleton just need to extend this class. We can’t directly use self::$instance = new self(); because self will refer to this singleton class itself, not the class we extend. So, to get the extending […]

Filter nudity with PHP


Khamis, 8 September 2011, 10:04 pm

nude.js is JS based nudity scanner using HTML5 Canvas and Webworker. The algorithm is based on this research paper’ve been working on to port the script to PHP and using GD library. So, here’s the result: php-nudity-filter. It’s a direct porting of the nude.js script to PHP, where I maintain the data structure, functions and […]

PHP timezone handling


Isnin, 5 September 2011, 1:11 pm

Within PHP app, we need to set the timezone to only one timezone – UTC. All timestamp data that going in and out of the database must use UTC timezone so that it’s easier to convert to other timezone value. It’s a basic in PHP script to first set the timezone dataThen it is highly […]

PHP async request with auth


Isnin, 5 September 2011, 12:07 pm

In, it shows how to send asynchronous request from PHP script, so that the webpage is immediately rendered without waiting the request to finish.This technique is important if you want to implement background processing in web app, just by send a request to own script that going to run the process at background, while the […]

PHP Templating


Jumaat, 2 September 2011, 4:34 pm

Here’s a simplified template class that was inspired by PHP Tip: Extract, Variable Variables and Templating. It supports template inheritance, it’s object oriented & got auto escaping variables. Furthermore, it doesn’t need to be compiled, since it’s using plain PHPThe class: tpl.class.phpThis class is just a basic class that organize the template files, and it […]

Singleton pattern


Jumaat, 2 September 2011, 2:36 pm

Singleton class is class that allow only one instance of its class to be instantiated. A lot of examples I see the way to implement singleton pattern whether: 1. Extends a base singleton class 2. Each class apply singleton pattern (get_instance() method, has static $instance attribute) 3. Using registry pattern where one dedicated class act […]

PHP Hooks System


Jumaat, 2 September 2011, 11:19 am

After reading Explaining Hooks, finally I understand the concept of hooks in PHP and why people use it in WordPress and say WP codes is poetry.The general idea is, in a web application, during the runtime of the program it go through stages of processes, such as connecting to database, start the session, rendering template […]