Creating Lightbox with Yahoo! User Interface Library

Posted on July 13, 2007
Filed Under Javascript | 20 Comments
post image 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 [...]
Read more »

Use Mouse Buttons to Perform Copy / Paste in Linux (Updated)

Posted on March 4, 2013
Filed Under Linux | 6 Comments

This is a following-up post for this post. In my previous post, I have discussed how to perform copy/paste quickly using mouse buttons. The setup requires Compiz. If you use Compiz as your window manager, great, you don't need to read this article. If you don't, you still have alternative.

Read more »

Use Mouse Buttons to Perform Copy / Paste in Ubuntu

Posted on July 27, 2012
Filed Under Linux | 10 Comments

Updated (3/4/2013): If you don't have Compiz, you may read this article first.

As a programmer, the ability perform copy and paste efficiently is vital to me. What can be more efficient than Ctrl+C and Ctrl+V -- you might ask. Well, they are very efficient if you are right-handed, but I am left-handed (or rather, ambidextrous). I prefer to use the mouse with my left hand.

Here's the problem: when I am using a mouse, how can I do copy and paste without my left hand leaving the mouse for the keyboard? The right-click-to-bring-up-the-context-menu-and-copy thing will not do -- in order to copy like that, I need to first right click to bring up the context menu, move the mouse cursor the "Copy" position in the context menu, click on it; to paste, I need to right click again to bring up the context menu, and move the mouse cursor to the "Paste" position, click on it. That's four clicks and two movements. I am not all satisfied. After some experiment, I come up with a little script that will allow me to perform copy and paste quickly on a mouse.

Read more »

Connect to Amazon EC2 Instance from Nautilus without Using Password File

Posted on February 1, 2012
Filed Under Uncategorized | 6 Comments

Lately, I have been working frequently with a couple EC2 instances. Remote editing on these instances has become a day-to-day task for me. These instances are based on Amazon Linux. I am so used to the "Ubuntu" way of remote editing, which I have described here. With EC2 instances, however, this method seems to be impossible -- as I need to supply the key file when mounting the remote location via SSH.
Read more »

Solving Weird Facebook Error 191 in IE7

Posted on January 23, 2012
Filed Under HTML, Javascript | 3 Comments

I was doing some QA for a Facebook application the other day. I encountered a strange error message that only occurred in IE 7, but not in any other browsers that I tested against with (Firefox, Chrome, Safari, perhaps IE >= 8 too).

Read more »

Tutorial: Object-Oriented Way of Creating a jQuery Image Slider

Posted on November 22, 2011
Filed Under Javascript | 8 Comments

The purpose of this article is to demonstrate object-oriented design in JavaScript, by creating a jQuery powered image gallery script from scratch. Note that we are not creating a jQuery plugin, but simply using jQuery for DOM selection and manipulation. In the near future, this article might be updated to jQuery plugin version.

Read more »

Ubuntu 11.10 Look Overhaul

Posted on November 14, 2011
Filed Under Linux | 5 Comments

I have been using Ubuntu 11.10 for about two weeks now. During this time, I have been switching back and forth between Unity and Gnome 3 shell interface. I am finally convinced that I am not a Gnome 3 person, and the right choice for me is Unity. I don't want to explain the detail, but to me, Unity just works, and it works pretty well. However, after I had been using Gnome 3 for a while, I am kind of addicted to its look. So, I question myself if I can mimic its look in Unity. After a few attempts, I came up with the following. If you are interested at how it was done, please read on.

Read more »

Page 1 of 912345...Last »
Code Central Special


  • Tell other about your screen resolution (pulled from web stats):

    View Results

    Loading ... Loading ...