Friday, February 29, 2008

15ms of Fame

So I just found out that the wife will be on the news tonight on national TV. In Japan. It looks like the clip's available here, but I doubt it's going to stay there for long so I've archived it on YouTube for posterity.

Can you spot her?

Saturday, February 23, 2008

Undocumented YUI TabView Feature

We've been using dojo at work for a while now but bugs in its UI components have really prevented us from doing everything that we wanted with it. Lately, I've started switching our code over to use YUI instead and have been surprised at how easy it's been.

One of the most critical components for us is the TabView component. While the docs for YUI are generally pretty good, I couldn't figure out how to display a "Loading..." image when dynamically pulling in data for a tab until I stumbled over this undocumented gem. Suppose you declare your tabs like so:

<div id="myTabs" class="yui-navset">
  <ul class="yui-nav">
    ...
  </ul>
  <div class="yui-content">
    ...
  </div>
</div>

Then adding the following CSS rules will automatically do the trick:

#myTabs .loading {
  background-image: url(/images/loading.gif);
  background-position: center center;
  background-repeat: no-repeat;
}
#myTabs .loading * {
  display:none;
}

I stumbled over this while checking out the examples for the Bubbling Library's Dispatcher YUI plug-in, which in turn solves the problem of executing JavaScript in the dynamically loaded content.

Monday, February 18, 2008

Year in Review

Yesterday was my one year wedding anniversary. We didn't really do anything special since we've had family staying with us all week, but we did get a single sheet of our wedding cake to celebrate the occasion. This was entirely the wife's initiative though. My sole contribution was to mention how much I loved our lemon and poppy seed cake a couple weeks ago.

In our first year together we

  • spent a month going around the world for our honeymoon,
  • slowly merged our two separate households together,
  • bought a huge piano,
  • moved out of our house when we finally
  • started our long planned-for remodeling project.

I don't know what the future will bring, but personally, I couldn't be happier and can say that I'm 100% better off now than I was 366 days ago.

Saturday, February 16, 2008

Construction Day 25

All the windows but one are in now, and the patio doors will be arriving next week. They've also started to finish the shear walls.

Monday, February 11, 2008

Construction Day 21

Everything's still going pretty well despite the trouble we're having finalizing our plans. We've had to switch structural engineers because the ones we had been working with are asking for an arm and a leg to do the new calculations. We've also been told that we do not have enough shear wall in the master bedroom due to all the new windows we've added, so we're waiting to see if we have to get rid of a window to add that support or if there are any other alternatives.

Construction-wise, things are pretty much set in the front of the house. We decided to shorten the coat closet by the main entry last week once we saw how narrow the entry into the living room would be, and it's looking much better now. The electrician's starting to position all the recessed lighting and the first window is in!

Saturday, February 09, 2008

A Slight Retraction

The last time I blogged about Barefoot I was deeply unhappy about the changes they'd made. This time I'm writing to retract my statement that I could no longer recommend them as the best place to go for coffee. While I can't say I'm ecstatic about the changes, I can at least say that I've come to terms with them and understand their reasons for it.

While I still miss the old milk, I have come to appreciate the new one as well. Barefoot is right; once I got over my disappointment that it no longer tasted the same, I did actually notice that the new milk lets the coffee come through better.

I did, however, get another surprise today when I ordered a cold latte. Apparently iced and cold lattes now comes pre-mixed using cold-brewed coffee by default (as opposed to using an espresso shot). This is probably a good thing if I was ordering an iced latte because throwing hot espresso on to the cold ice shocks the coffee. For cold lattes (no ice, just cold milk), however, I still prefer a real espresso shot. So now I have to remember to custom order my cold lattes. *sigh*

If only they'd publicize these changes instead of springing it on their poor unsuspecting coffee addicts...

Thursday, February 07, 2008

Happy Chinese New Year!

Year of the Rat

Welcome to the year of the Earth Rat!

We rang in the new year with the wife's extended family, who are all in Sacramento this week since her brother is getting married this Friday.

Tuesday, February 05, 2008

Monday, February 04, 2008

Construction Day 16

The framing is still going on, but the major internal walls are all there now and things are really starting to take shape. The plumber and electrician have also started doing their thing, and the next major step is to get the windows in.

As for the plans, they're still not completely nailed down yet. We'd gone back to the city with an updated set of plans, but they want further revisions. *sigh*

Saturday, February 02, 2008

Super Tuesday

I've been hemming and hawing about the candidates for a while now, but in the end, my choice hasn't really changed. I remember my mom asking me who I'd vote for about a year ago, and I'd said that if I had to choose, I'd opt for Hillary on the Democratic side and McCain on the Republican side. The New York Times recently recommended these two candidates as well, and they've vocalized better than I could why Hillary and McCain are our best options.

The choice on the Republican side is extremely simple for me: McCain is the only one who seems willing to bridge the chasm between the Republicans and the Democrats, with a proven track record for building consensus, and lord knows we need that now more than ever. I've been tempted by Huckabee because he's been running such an amicable and friendly campaign, but I really don't think someone who references his religion every chance he gets will be able to keep the church and state separate.

As for the Democrats, it's a tough call, but in the end I buy into Hillary's experience shpiel. After all, when you're looking for a doctor or a lawyer, do you go for the young guy just out of school? Or do you go for the most experienced one you can find? A few random observations:

  • I was pleasantly surprised by how friendly the race on the Democratic side has been, at least until a couple weeks ago.
  • Even more surprised that Obama has been complaining about Bill Clinton campaigning on behalf of his wife. Really? Is he seriously saying that his team didn't think this was going to happen? I think it's just childish jealousy on his part. If he could have a former president campaigning on his behalf, I don't think he'd say no either. I mean, Bill's basically a very famous volunteer...