Creating Lightbox with Yahoo! User Interface Library

Demo Updated (8/29/2007): In addition to the image lightbox demos, I added four more types: text content, web page, web page with video, and embedded video. Check it out.

Yahoo! User Interface Library (YUI) provides a very handy class for creating modal dialog box with background masking, which can be used to create lightbox. If you have no idea what a lightbox is, you can run this online demo to get a taste of what it looks like.

Lightbox Demo

There are several advantages to use YUI to create lightbox. The most important one is you get cross-browser compatibility support out-of-box. The above demo has been tested in IE 6, Firefox, Netscape 8.1, Mazilla 1.7 and Opera 9.21, which was created without any hacking. Another hot feature is that one can easily create a drag & drop lightbox without any extra effort.
Continue reading

Firefox Download Window Bug

If you are experiencing Firefox download problem, in which case the Download window no longer shows up when performing download and "Save Page As" is no longer saving any web pages, your Firefox configuration file might have been corrupted.

I had this problem for almost three months now. I have tried almost anything that I can think of: clean install, messing around settings in Options, removing themes and extensions. None of which have worked. Problem persists until recently I ran into a site which is trying to solve exactly the same problem. It turns out my Firefox download configuration file, downloads.rdf, is corrupted.
Continue reading

How to Browse Wikipedia Offline/Locally?

Update (8/14/2007): This article is outdated due to incompatible of Wikifilter and the latest Wikipedia XML dump file. Check comments for the workaround.

Although the credibility of Wikipedia is not well respected among academic communities, that doesn't stop Wikipedia from becoming the most popular encyclopedia on the web. According to the update-to-date statistics, the English Wikipedia contains almost 2 millions articles. Don't scream if I tell you that you can store all articles in English Wikipedia in your computer and view them locally, because you can.
Continue reading

Download Speed on Windows Vista Has Dropped Dramatically

The Problem

The download speed on my Windows Vista have dropped from 300kb/s to around 20kb/s. It took me several attempts to find out what the problem was.

It first seemed to me that my ISP was in a technical difficulty state. I am on a dual-boot system with both XP and Vista. In order to verify that Vista was not the cause of the problem, I booted into Xp and did some speed throughput test. Surprisingly my download speed in XP was normal (300kb/s). Clearly the cause for my slow download in Vista was the Vista itself.
Continue reading

Mobile Tooltip Widget for GWT(Google Web Toolkit)

I am making an Ajax application using GWT and I need some kind of facility to display a tooltip on an image when I hover my mouse over it. Unfortunately GWT does not provide such widget that I can use directly. After spending some time on GWT forum, I found two neat posts (refer to post 1 and post 2), which included some source code for making tooltip widget.

I made a mod version of the tooltip widget which supports mouse movement event. Check it out. The source code is available for free.
Continue reading