How to make a div a link

February 20th, 2008

Here’s how to make a div tag a link.  It’s really simple.  This is the javascript-free way.  It works in Firefox and IE.

Basically you are setting the link display style to “block” and then have the link span the width and height of the div.

<div id=”header”><a style=”display:block;width:100%;height:100%;” href=”index.html”> </a></div>

Grep Example

November 16th, 2007

This is a super useful grep example that I post here so I can remember it.  To search for a string in all files in a directory, do the following:

 find . -exec grep “your string here” ‘{}’ \; -print 

Unix commands rock.

How to block your own access to a website

June 24th, 2007

You might need to do this if you are hurting your own productivity by visiting a website. ;)

The simplest way to block access to a website from your computer is to edit your hosts file.  The hosts file is a hold-over from the early days of the internet–before we had the DNS system.  Anyway, navigate to

c:\windows\system32\etc on Windows, or /etc/ on Mac OS X, and edit the text file there called “hosts”.

Add a line at the bottom which is “”.

Save the file.  When your browser tries to go to, it attempts to connect to your local machine (at IP address to serve up the site.  Because you don’t have the site on your local machine (aka your computer), nothing shows up. It’s as easy as that.

Help for those with Macs and Linksys WRT54G Routers

June 9th, 2007

So I’m working at a startup in Cambridge, MA.  Turns out that, when I showed up, my MacBook knocked the Linksys Wireless Router into a tizzy.  It’s been causing problems on and off for a few days. After surfing the web, talking to linksys support over chat, and reading linksys forums, I chose to roll-back the router firmware to version 1.00.9.  Sounds crazy, I know, but it works.  Linksys support, however, insisted the latest firmware would solve the problem.  We found that the latest firmware (already on the router) caused the problem.

The problem:  My MacBook would knock everyone else on the same network off the internet. This irritated my peers a lot. And I couldn’t get the connection myself.  This problem is reproduced on a MacBook Pro (or apparently any Mac Hardware) and the LINKSYS WRT54G ROUTER V6.  A quick internet search reveals many people with the same issues.

The solution: Download the 1.00.9 firmware from the linksys FTP server at Install firmware by following instructions in the downloaded file.

Hope that helps someone searching for these terms… ;)

Great Fortune Cookie

May 16th, 2007

So I just enjoyed some authentic Chinese cuisine from a Chinese Restaurant in Seattle’s International District.  I’m going to miss Seattle.  My fortune at the end of the meal read, “You will never know hunger.”  Quite an appropriate quote for my current stage in life. I’m going to take that to heart.

The Ribbon Newsweek Article

May 12th, 2007

I spent the better part of the last four years as the program manager for RibbonX — the developer model for the Office 2007 user interface. Here’s a great Newsweek article that covers the new UI, which will be coming to a desktop near you very soon.  Office is ubiquitious, so even if you don’t like what we did, your alternatives are still pretty slim right now. :)  Anyway, here’s the article.  I was on Julie Larson-Green’s team!

Project 001: Success

May 1st, 2007

Mission accomplished.

Project 001: Air filter maintenance

May 1st, 2007

I got my car serviced a couple years ago, and I was charged over $70 for “air filter maintenance.”  I’ve got some free time on my hands, and no steady income :), so I’m going to do this one myself. I bought the K&N cleaning kit and I’ll let you know how it turns out.

Outstanding Pianist

April 25th, 2007

This girl is 9 years old, and she’s outstanding. She’s totally in the zone. I want to be in the zone like her! Kids: no inhibitions, no doubts, no reservations, just raw expression.

Weighing Cho’s Heritage and Identity

April 22nd, 2007

Check out this nice NPR segment that captures how people jump on the VT shooter’s identity and try to label a larger group as responsible for the problem.  The correct larger group, as Robert Seigel points out, is really America.