I'm on TV! (Technically speaking)

Haha, this is pretty sad - I was having some beers with Cyrus a few months back on the Santa Monica 3rd Street Promenade. They were filming a TV show, which we were told was called Private Practice, and asked us if it was ok that we'd be in the background. Thuyen was watching the show the other day, and I told her "Hey, that's me in the background." Of course she rolled her eyes....

Here are the pics - you can pretty clearly match the event from two perspectives. :)

1) Shot from the show. (we're in the upper right)
2) View from where we were sitting.

(download)

Wangtang Year 2009 Goals

Here are just some simple goals for the year 2009.

1) Get all 3 of my fledgling startup businesses launched and profitable.
2) Create and ship an iPhone app.
3) Get a LEGO Mindstorms robot and teach my kids some basics of computer programming.
4) Learn how to actually properly use my Nikon D90, put together a good lens set, and take some cool photos.
5) Get my existing data (primarily photos) organized.
6) Get my house organized, esp. the garage, so I can park my car in it.

And all the usual stuff:
Be a better dad, hubby... Get in better shape. :)

The Zune Bug

Here's the offending code for Zune bug that's been causing the mysterious hangs. Can you find it without looking at the solution?


//------------------------------------------------------------------------------
//
// Function: ConvertDays
//
// Local helper function that split total days since Jan 1, ORIGINYEAR into
// year, month and day
//
// Parameters:
//
// Returns:
//      Returns TRUE if successful, otherwise returns FALSE.
//
//------------------------------------------------------------------------------
BOOL ConvertDays(UINT32 days, SYSTEMTIME* lpTime)
{
    int dayofweek, month, year;
    UINT8 *month_tab;

    //Calculate current day of the week
    dayofweek = GetDayOfWeek(days);

    year = ORIGINYEAR;

    while (days > 365)
    {
        if (IsLeapYear(year))
        {
            if (days > 366)
            {
                days -= 366;
                year += 1;
            }
        }
        else
        {
            days -= 365;
            year += 1;
        }
    }


    // Determine whether it is a leap year
    month_tab = (UINT8 *)((IsLeapYear(year))? monthtable_leap : monthtable);

    for (month=0; month< 12; month++)
    {
        if (days < = month_tab[month])
            break;
        days -= month_tab[month];
    }

    month += 1;

    lpTime- >wDay = days;
    lpTime- >wDayOfWeek = dayofweek;
    lpTime- >wMonth = month;
    lpTime- >wYear = year;

    return TRUE;
}

Why was Dora Crying? Crying works!

http://news.yahoo.com/s/ap/20090101/ap_on_bi_ge/viacom_time_warner_cable

Dora_alone

LOS ANGELES – Millions of Time Warner Cable customers won't lose their access to MTV and 18 other channels after the cable giant reached an agreement early Thursday with media conglomerate Viacom Inc.

...

Viacom president and CEO Philippe Dauman said the company was happy a deal was struck. Viacom had mounted an advertising onslaught warning customers of the possible blackout, taking out ads in major newspapers and Web sites from The New York Times and http://TVGuide.com">TVGuide.com featuring a tearful "Dora the Explorer" crying and clinging to her monkey pal, Boots.

"Why is Dora crying?" the ad read. "Tonight you will lose Nickelodeon and 18 other channels from your TV." It then prompted people to call their cable company to complain.

...