Ca-Phun Ung

Co-Founder at Tofugear and Father-of-three!
Categories
- Accessibility (6)
- Browser Testing (5)
- CSS (12)
- Django (3)
- Events (5)
- Hong Kong (3)
- JavaScript (23)
- jQuery (4)
- jQuery Hong Kong (1)
- Labs (2)
- Optimisation (2)
- PHP (8)
- Ramblings (13)
- Reviews (6)
- Ruby on Rails (4)
- Tools (5)
- Web Standards (10)
- WiFi (3)
- WordPress (1)
jQuery: Shuffle Plugin
I recently came across a really compact array shuffling function on JSFromHell.com, which I thought would make a nifty jQuery plugin. This jQuery shuffle plugin could be applied to any HTML element or Array object. (function($){ $.fn.shuffle = function() { return this.each(function(){ var items = $(this).children(); return (items.length) ? $(this).html($.shuffle(items)) : this; }); } $.shuffle [...]
JavaScript: Event Delegation
Recently, I’ve been hearing much about event delegation. Many new to this concept seem to be baffled by the term. However, it really is a simple idea when you realise what’s involved. Put simply, event delegation is the practice of directing events on parent DOM elements who then listen on their children for events. To [...]
jQuery UI Spinner
After contributing jQuery Numeric Stepper to the jQuery UI community. Paul Bakaus kindly asked whether I’d like to merge it with the official jQuery UI Spinner, of which I was more than happy to do out of pure love for jQuery. The jQuery UI Spinner widget will be available with the soon to be released [...]
jQuery: outerHTML
The outerHTML property (IE only) could sometimes be very handy, especially if you’re trying to replace an element entirely. Brandon Aaron has very kindly given us a outerHTML plugin that does half the job as it doesn’t support replacements. The following code snippet fills in the blanks: jQuery.fn.outerHTML = function(s) { return (s) ? this.before(s).remove() [...]
Banana Apple Orange?
Which do you prefer? maybe all? maybe none? It’s totally up to you and down to individual preference. The same could be said for Web Frameworks. This choice has come at a time when I am deciding on a Web Framework to use for a number of projects. So this post should hopefully put some [...]
Targeting Safari 3
Found this CSS hack for Safari 3 today which can be handy from time to time: @media screen and (-webkit-min-device-pixel-ratio:0){ /* Safari 3 specific styles go here */ } Most of the time if something looks good in Firefox 2 there’s a 99% chance it will in Safari 3 too. So use this hack sparingly [...]
Unsecured WiFi
Free WiFi is everywhere now. Most coffee shops in central London have one; you can even get it at McDonald’s in Regent street. But next time you’re accessing free and open WiFi aka unsecured WiFi; STOP and think for a second. Consider the following: Do you have anything in your shared / network folders that [...]
Hyper-connected
Jeremiah Owyang’s post on Email Consumes Us gives us food for thought on the ever changing tide of communication. Email can become very unmanageable it seems; although only last year many were singing its praises saying that Email is the best invention and all good web applications basically mirror an Email architecture. So if Email [...]
