Not much has been going on for me down here. Work has been frustrating as I am learning new things. I am having problems with my scripts because they are using javascript and being run through XSI. I am not having problems creating algorithms and writing code, but variables in memory will become undefined as the script runs. For example:

for (point in uniquePoints) {
    if (cachedPoints[uniquePoints[point]]) {
        var clusterIndex = cachedPoints[uniquePoints[point]];
        for (var i = 0; i < 14; i++) {
            var pointStr = "("+clusterIndex+","+i+")";
            strandsToSelect.push(pointStr);
        }
    }
}
LogMessage(strandsToSelect.join(","));

This should give me output like this:

(18,0),(18,1),(18,2),(18,3),(18,4),(18,5),(18,6),
(18,7),(18,8),(18,9),(18,10),(18,11),(18,12),
(18,13),(23,0),(23,1),(23,2), ...

18 and 23 correspond to hairs, while 0-13 are the points on the hair. The problem I noticed from the log file after XSI crashed was that the clusterIndex was lost in memory. The output was like this.

(18,0),(undefined,1),(undefined,2),(undefined,3),(undefined,4),
(undefined,5),(undefined,6),(undefined,7),(undefined,8),
(undefined,9),(undefined,10),(undefined,11),(undefined,12),
(undefined,13),(23,0),(23,1),(23,2), ...

When I saw that I was like, how am I supposed to code when variables become undefined!? Oh well. I can’t really be blamed for that.

Anyways, enough geeking out. I was chatting with my good friend in Beijing 婷婷 the other day and she said MCK (季迈轲)would be on TV. Then just last night I got a message that had won! Congratulations MCK!!!! He had competed on 超市大赢家 (Supermarket Big Winner). It is really similar to super market sweep. I really wish I could have seen it. After my friend told me I googled ” 超市大赢家 季迈轲” and found his introduction from the tv show. If you guys know Chinese and need a laugh read his intro.

Also, just for fun. I tried to see what Taylor was up to by googling 泰立 and I came across this article about Taylor. It has a great picture of him with his girlfriend in Beijing during the winter. You gotta love the hats too!

That is about all the news I have. I did a little planning for driving back to Seattle from here. If everything goes well Sandra will be able to join me and we can have a nice little vacation before she starts her new job. We will head to San Francisco for a couple days and then stay in Yosemite for another couple days. After that we will probably head back to Seattle. I think it is going to be a great trip. I can’t wait.