Revisiting the Desk Clock: Kindle Edition

I have a problem: I need a desk clock, but I don’t want to spend extra money for it. I already have several tech that can function as a desk clock: phone, laptop display (I use external monitor as my main display), or kindle....

July 30, 2024 · 2 min · 317 words

Javascript Closure and Encapsulation

JavaScript is a confusing language. You can do OOP with it, you can do functional programming with it, and so on. A typical and modern way of encapsulating things in javascript is by creating an object....

January 23, 2017 · 2 min · 295 words

HTTP Based NTP Server and Its Quirks

While trying to create a simple web-based desk clock, I notice that not all computers are made equal in regards to the way they sync time. Since then, I’ve been trying to create a simple HTTP and JSON based ntp server to sync all of my clocks....

January 23, 2017 · 2 min · 282 words

HTML 5 Canvas Optimization for Touch Devices

Making a drawing pad with HTML 5 canvas element is relatively easy, until we encounter touch devices. The codes which used to be working on conventional mouse-driven interface no longger works on touch screens....

April 25, 2011 · 2 min · 320 words

Timezone Management with JavaScript and PHP

In the old days, synchronizing php and javascript date and time functionality is a real pain. You need to detect the client timezone offset with javascript, and then convert it to a format which is php friendly, and transform it as a cookie, and so on....

April 13, 2011 · 2 min · 244 words

The Web Magic Called SEO

If you are a web developer, you wont need to read the rest of this page, as I’m still learning towards making a good SEO for my own blog. But if you’re still getting started to make your blog or website, this is some information that you might want to consider before posting a post in your blog....

March 12, 2011 · 2 min · 417 words

A [Ro]Bot In Your Web Browser

Today at work, I encounter a unique problem. I needed to update a database in a regular basis to make sure that certain condition is applied. That can be done by adding certain script in the page that users are frequently accessing....

March 8, 2011 · 2 min · 274 words