Skip past navigation, straight to the content

Monthly Archives: March 2005

Sunset at Ray’s Boathouse

  • A boat with a sunset in the background
  • View from Ray's Boathouse

Unfortunately, Ray’s happy hour does not extend to their deck, or past 6pm.

Heiruspecs at Suite G

The Heiruspecs at Suite G

I saw the Heiruspecs at Suite G in Fremont last night. My expectations were fairly high, because they’re known for their live performances. It was my first time at Suite G, which is a very small venue. The audience was small, there were probably 100 people there, with 20-30 actually standing up near the stage. To their credit, the Heiruspecs managed to keep an energetic set in spite of the venue and low attendance.

Unfortunately, their live set was not as impressive as I hoped. The Roots’ live performances are dynamic and engaging in part because of difference between their live and studio renditions. In contrast, the Heiruspecs’ live set sounded like their CD (at least their first album and EP, I have not heard their latest), which, although good, didn’t live up to expectations.

Solid (B-)

Thievery Corporation - The Cosmic Game

For those familiar with the Thievery Corporation’s seminal Mirror Conspiracy, the duo’s latest album, The Cosmic Game, will sound incredibly familiar. The Thievery Corporation seems to have found a comfortable niche of mid-tempo international trip-hop, because their latest comes off as a lazy remix of the Mirror Conspiracy. It’s still an enjoyable listen, but covers no new ground.

Registered users can sample this as the Album of the Week.

Solid (B) A re-hash of their previous work

Enabling Ligatures in Avalon

Avalon natively supports OpenType fonts, which add a variety of typographic features that are unavailable in True Type fonts. One of those features is Ligatures, an ancient readibility technically that has been around for hundreds of years. We’ve enabled OpenType features throughout the platform; to illustrate, I’ll use a Button to show ligatures using an OpenType font, Palatino Linotype (which comes with Windows).

An Avalon Button with Standard Ligatures Enabled

Notice how the adjacent Fs in "Effect" are connected. This is an example of a standard ligature, which is enabled by default in Avalon. The markup for this button is shown below:

<Button FontFamily="Palatino Linotype" FontSize="20" Padding="10">
  Quixotic Effect
</Button>

Because standard ligatures are enabled by default, you have to do extra work to disable them. I’ve provided the screen shot and markup for the button with standard ligatures disabled below:

An Avalon Button without Ligatures Enabled

<Button FontFamily="Palatino Linotype" FontSize="20" Padding="10">
  <Inline Typography.StandardLigatures="False">
    Quixotic Effect
  </Inline>
</Button>

Another OpenType feature are discretionary ligatures, these are optional ligatures that are part of an OpenType font, but aren’t enabled by default because they tend to be historical or ornate, meaning they don’t particularly enhance readability. The image below illustrates the same Button with discretionary ligatures enabled:

An Avalon Button with Discretionary Ligatures Enabled

Notice the swash that goes from the Q to underneath the U, as well as the connection between the c and t. Once again, the markup:

<Button FontFamily="Palatino Linotype" FontSize="20" Padding="10">
  <Inline Typography.DiscretionaryLigatures="True">
    Quixotic Effect
  </Inline>
</Button>

Contextual Alternates

Contextual Alternates are another fun OpenType feature enabled by default throughout Avalon. Below are the words “Contextual Alternates” written with the beautiful Ambiance BT with contextual alternates enabled:

The words 'Contextual Alternates' with contextual alternates enabled

Contextual alternates are enabled by default, so the markup I used for this is quite simple:

<TextFlow FontFamily="Ambiance BT" FontSize="30">
  Contextual Alternates
</TextFlow>

You can, of course, disable alternates. Here is a screenshot of the same words with contextual alternates disabled:

The words 'Contextual Alternates' with contextual alternates disabled

And the markup:

<TextFlow FontFamily="Ambiance BT" FontSize="30"
  Typography.ContextualAlternates="False">
  Contextual Alternates
</TextFlow>

If you compare the two images, the difference is most noticable in the capital letters at the beginning of each word. These alternates look really cool when you’re typing and the characters are swapped automatically. I’ll close this post with an animated screenshots of typing the word "Effect" with alternates enabled (especially the transition from "E" to "Ef"):

An animated sequence of the word 'Effect' being typed

Sage Francis - A Healthy Distrust

I’m off on vacation for a few days, so I don’t have time to go in depth. There are plenty of reviews that can give you backstory and pointless anecdotes.

My quick take: Sage Francis has verbal skill and an emotive style that is excellent when it works, and a bit annoying when it doesn’t. The beats are mostly solid, but there are no standouts, so the lyrics are what carry the album. Standout tracks include “Sea Lion” and “Guns, Yo.”

Registered users can sample this as the Album of the Week.

Solid (B). Above average with a few high points

Stanley

As recently as the mid-90s, Stanley used to be a sleepy fishing town. Now, like everywhere else, it’s been converted into shopping malls. The center of Stanley has a “traditional” market that lures tourists through low prices. Like the rest of Hong Kong, the prices seem to be about the same as America.

  • Shops, in Stanley, Hong Kong

(more…)

Hong Kong First Impressions

In list format, because I don’t have enough time to write elegant prose (plus, I love lists):

  • The weather is not what I expected, it’s been quite Seattle-esqe here, damp, chilly, and overcast — which is frustrating given the gorgeous weather I left in Seattle. I am poorly prepared, because I packed for much warmer weather.
  • Even though people warned me, Hong Kong is far more western than I expected.
  • Memorizing Chinese characters has not been particularly useful (although learning about them has been interesting). For example: Even though I know the character for “Water”, I was unable to recognize any part of the word “Waterfront.” [Although I did recognize the character for Mountain in a sign that pointed to Victoria Peak]
  • There are shopping malls everywhere. I’m not exaggerating. Every place I went today was either a shopping center, or bordering one. I hate shopping.
  • The skyline and scenery are beautiful. Hong Kong reminds me of Rio de Janeiro and Manhattan. If you want to imagine Hong Kong: Take Manhattan’s skyscrapers, replace their innards with shopping malls, and place them between Rio’s beautiful hills that descend into the ocean.
  • Public transportation is very good, we either walked or took buses all over town.

Macau

  • A Portuguese-style sign in Macau

Macau is the smaller, less famous, Portuguese counterpart to Hong Kong.

(more…)

Hsin-Chu Market

Snapshots from the central market in Hsin-Chu, Taiwan.

  • A shop in the Hsin-Chu Central Market, Hsin-Chu, Taiwan

(more…)

Taroko

Taroko is a large national park on the mountainous Eastern side of Taiwan. The park is centered around the Taroko Gorge, formed by the erosion caused by the Liwu river.

The park is gorgeous; unfortunately I posess neither the photographic skill nor equipment to do the park justice.

  • Temple, in Taroko, Taiwan

(more…)

Chiang Kai-shek Memorial Hall

  • The Chiang Kai-shek Memorial Hall, Taipei, Taiwan

(more…)

Taipei 101

Determining which building is the world’s tallest isn’t as easy as it should be. I visited Taipei 101, which is the currently leader in a few of the categories. The audio tour always refers to the building as “Taipei 101, the world’s tallest building.” (Example: “You can take a picture of Taipei 101, the world’s tallest building, from so-and-so square”) As far as I’m concerned, Taipei 101 is the world’s most emotionally insecure building.

  • The Taipei 101 building in Taipei, Taiwan

(more…)

Blue Scholars - Blue Scholars

The Blue Scholars are a local hip-hop band with good potential. Their intelligent lyrics and old-school jazzy beats will appeal to fans of Jurassic 5, Ugly Duckling, or People Under the Stairs. Standout tracks include “Blink” and “Bruise Brothers.”

I’m a little late here, as the album was released last year.

Registered users can sample this as part of the album of the week.

Recommended (B+)

Shilin Night Market

The Shilin Night market is the largest and most famous of Taipei’s night markets. I was expecting a traditional market, but Shilin is more like an after-hours food court; I found the Hsin-Chu market more interesting.

  • Shilin Night Market in Taipei, Taiwan

(more…)

Á-Má Statue

Situated on the highest peak in Macau (Alto de Coloane, on Coloane island), this is a twenty meter statue of Á-Má, a peasant girl from ancient local folklore (and supposedly Macau’s namesake).

  • The Á-Má statue, Macau

(more…)

Farol de Guia

An old Portuguese lighthouse and fort in Macau.

  • Guia Lighthouse, Macau

(more…)

Macau Bonus

A few miscellaneous pictures of Macau:

  • Temple Gate, Macau

(more…)

Cheung Chau

I took a ferry this morning from Kowloon to Cheung Chau, one of Hong Kong’s outer islands.

  • A ferry departs from Kowloon to Cheung Chau, Hong Kong

(more…)

Central

  • A skyscraper in Central, Hong Kong

(more…)

Kowloon Night

  • A view of Central from Kowloon, Hong Kong

(more…)

Pete Miser - Camoflauge is Relative

Pete Miser’s third solo album was released last year and somehow completely slipped through my radar (I’m not alone, Pitchfork seems to have missed the album as well). For those unfamiliar, Miser beats fit neatly within the latest generation of jazz-influenced hip-hop, and his MCing is reminiscent of Del the Funky Homosapien and J-Zone (although Pete not as profane, nor quite as witty, as J-Zone).

Neither beats nor lyrics are outstanding, but Camoflauge is Relative is an enjoyable listen. You can watch the video for Scent of a Robot, which, despite the slightly annoying chorus, is a decent song. Registered users can sample the album.

Solid (B) Some slow points, but good overall

Using Viewbox

Nathan has called me out, so I should post some more now that I’m back from vacation. Today I’ll attempt to give a proper introduction for the simple, yet powerful Viewbox.

Images and Avalon can be scaled to fit within a layout, the most common and useful technique is a uniform scale into the available space. Viewbox allows you to take any Avalon content and scale it as if it were an Image.

I’ll illustrate with a simple example, which uses the following markup:

<StackPanel xmlns="http://schemas.microsoft.com/winfx/avalon/2005"
      xmlns:x="http://schemas.microsoft.com/winfx/xaml/2005"> 

  <Border Background="VerticalGradient #cfc transparent"
          BorderBrush="#ccc" BorderThickness="1"
          Padding="10" Margin="10">
    <TextFlow FontFamily="Calibri, Verdana" FontSize="20">
      Lorem ipsum dolor sit amet.
    </TextFlow>
  </Border>

  <Viewbox Margin="10">
    <Border Background="VerticalGradient transparent #ccf"
            BorderBrush="#ccc" BorderThickness="1"
            Padding="10">
      <TextFlow FontFamily="Calibri, Verdana" FontSize="20">
        Lorem ipsum dolor sit amet.
      </TextFlow>
    </Border>
  </Viewbox>
</StackPanel>

In case you can’t sight-read XAML, I used a TextFlow within a Border to display some text within a border with a gradient background. I then made a copy of the Border and TextFlow, changed the background, and placed it within a Viewbox (I also moved the Border’s Margin up to the Viewbox, but the two are otherwise identical).

Here’s a screenshot of the results:

A StackPanel with two elements, one of which is within a Viewbox

Notice that, aside from their different backgrounds, the text looks exactly the same. This is because I took this screenshot at the exact window size such that the text fits perfectly. Let’s see what happens when I make the window smaller:

A StackPanel with two elements, one of which is within a Viewbox

Notice that the text on top has wrapped to a second line, while the one on the bottom has been scaled down and still fits on a single line. That’s Viewbox at work. Here’s another screenshot, this time with a larger window size:

A StackPanel with two elements, one of which is within a Viewbox

At this window size, the top text has enough space to flow within a single line and looks the same as in our first example. However, the bottom text has been scaled up to fill the larger width (perceptive readers may notice that the thickness of the border has also been scaled).

Essentially, Viewbox performs layout on its content once, freezes that layout, then scales the content up or down as appropriate. You can put anything within a Viewbox, users can interact with it, but the content won’t re-layout based on changes in window or screen size (it will only re-scale).

The Stretch and StretchDirection properties can be used to control how the content is stretched. These properties are useful for situations in which you do not want to scale uniformly, or perhaps when you only want to scale content down, but not up.

Although Viewbox is a quick and easy way to adapt to different screen or window sizes, it’s not always the ideal solution. I’ll be covering other strategies for dealing with these issues in a later posts.

(Aside: I’ve used Calibri, one of the great new fonts from Microsoft. Unless you work at Microsoft (and even if you do), you probably don’t have the font installed, you’ll see Verdana used in it’s place)

Asia Wrap-Up

I’ve been back from vacation for almost a week, and my sleep schedule still isn’t quite right. Here are my closing thoughts, impressions, and statistics:

  • Would I go back? I’ve gotten this question a lot, and although I enjoyed the trip, the answer is no. It’s a long flight, vacation time is scarce, and there are many parts of East Asia that I want to visit first (Thailand, China, Japan, to name a few). Hong Kong and Macau’s are good places to begin a trip into China, so I could see spending a little time there again (especially if I need a new wardrobe).
  • Demographics: I was surprised how few non-Asians I saw on my trip, especially in Taiwan. Taipei is a large business center, butI probably saw fewer than ten non-Asians during my day there. Apparently, white people are rare enough that teenagers on the subway asked me to pose for pictures with them. Mainland Chinese tourists thoroughly dominate Macau and, to a lesser extent, Hong Kong.
  • Culture / Society: I’m still amazed how western everything was, once again, especially in Taiwan. Highways in Taiwan are indistinguishable from those in America; except for the occasional temple or market, the cities are incredibly similar as well. I don’t know if this is a case of mimicry or convergent evolution, but I suspect the former in the suburbs and latter in the cities.
  • Language: I’m glad I speak English, because it was the only second language I encountered (and even then, the coverage was extremely low considering how western everything was). Also, the language was completely opaque to me; the experience has inspired me to learn Mandarin.
  • Statistics / Trivia:
    • Distance Traveled: Over 14,500 miles (23,200 km)
    • Best Food: Unknown chinese restaurant in Taipei (Runner-up: Portuguese food at Fernando’s in Macau)
    • Strangest thing eaten: Fried Boar’s Skin (Runner-up: Minced Pidgeon Soup)
    • Photos Taken: 704 (1.15 GB)
    • Words Learned: Under 10 (Mandarin or Cantonese), had a tough time with this
    • Characters Learned: ~30, not particularly useful though
    • Favorite Place: Taroko (Runner-up: Hong Kong)
    • Border Crossings: 8. Although they’re all part of the same country, Macau, Hong Kong, and China each have distinct borders and immigration. Supposedly, this will end by 2050, when the transitional period expires.