Skip to content

Category Archives: Programming

Another way of joining table without JOIN syntax in SQL

28-Apr-09

We often use JOIN syntax for joining 2 or more tables in SQL. Such as INNER JOIN, OUTER JOIN, etc. But here I found another way of joining table that much like INNER JOIN, that is by tricking WHERE syntax.
Below is the example of INNER JOIN between table Customer and Member:

SELECT customer.name, member.name
FROM customer INNER [...]

Latest jQuery v1.3.2’s bug on WebKit

26-Feb-09

I found a bug (may be a browser bug) which is happen on my favorite framework, the latest version of jQuery (v1.3.2) on WebKit browser when I was trying slickspeed with some popular JavaScript Frameworks.
Here the screenshots:
Safari 3.1.2

Chrome 1.0.154.48
 
No problem found in Safari 3.1.2 Nightly, Firefox 3.0.6, Opera 9.63 and IE7.
Test the slickspeed here: http://xing.web.id/slickspeed/
Selectors I [...]

PHP.JS – Use PHP functions in JavaScript

03-Feb-09

PHP.JS is an open source project in which to port PHP functions to JavaScript. The library is developed by Kevin van Zonneveld and his contributors, and they have been working hard in adding more functions into it. By including this library into your own web projects, you can use those higher-level PHP functions such as file_get_contents(), [...]

jQuery v1.3.0 has been released!

19-Jan-09

A long wait for this release, finally jQuery has released version 1.3 on its birthday (14 Jan).
New features on 1.3 are:

Replaced old CSS selector engine with Sizzle, a standalone framework which is developed by John Resig and donated to the Dojo Foundation.
A new event API, Live Events, that can binds event to the future DOM [...]

PHP: Convert If to Switch

23-Dec-08

I have been being asked by some friends of mine, that is in PHP language how to convert If statement into Switch statement (in some cases, using Switch is for shortening code).
At first, I thought that Switch was just only for ‘equal’ comparison. But actually it is more than just equal. So I did a [...]