blog

Archive for 2 月, 2008

Oh Amazon, you’re so funny

火曜日, 2 月 26th, 2008

amazon warning

Thanks.

Lantern Festival

日曜日, 2 月 24th, 2008

The Lantern Festival (元宵节) is annually on the 15th day of the lunar year, this year February 21, 2008. Yesterday my Fo Guang friend Aaron and I, after buying textbooks for our upcoming classical Chinese course, met up with Michelle and Jerry in Taipei to check out the lanterns at Sun Yat-sen Memorial Hall. Jerry took us first, though, to a casual but very authentic Japanese restaurant, famous for their eel. (Here’s Michelle and Aaron, below:)

(more…)

Dinner with Barack and Hillary

日曜日, 2 月 24th, 2008

I made some pasta tonight for dinner, and decided to share it with Barack and Hillary. I haven’t cooked in a long time here in Taiwan, especially as the noodles down the street are so cheap. Now that I have, though, I do really enjoy the process and the smells, and of course the familiar flavors that are hard to come by. I look forward to cooking more in the months to come. ^^

On a side note, very cool section in the Texas Democratic debate on second language education.

新年快樂! Chinese New Year with Andy

日曜日, 2 月 24th, 2008

It’s been two weeks now since Chinese New Year—I suppose it’s about time to write up the final adventures of my New Year break. My friend Andy from college who is Taiwanese-American came back to Taiwan to celebrate the New Year and invited me to tag along.

Day 1: New Year’s Eve

The adventure began now three Wednesdays ago, when I took the high speed rail down to Kaohsiung (高雄). Andy showed me around the city a little bit (including the nearby temple with the European-looking knight) and we had the traditional New Year’s Eve dinner, which is one of the most important parts of the New Year. We all stayed up watching TV (and the adults playing Mahjong), then Andy and I then set off some fire crackers at midnight.

(more…)

White Protestants and Catholics don’t frequently attend religious services

水曜日, 2 月 13th, 2008

Breaking news from the Potomac Primaries:

White Protestants and Catholics backed Mrs. Clinton, but Mr. Obama was strongly supported by voters who frequently attend religious services.

Seeing as backing Mrs. Clinton and supporting Mr. Obama are, in terms of votes, mutually exclusive, this sentence entails that white Protestants and Catholics (the majority of ) are not a part of “voters who frequently attend religious services”, as is demonstrated by the infelicity of the following sentence:

“Group A did A, and Group B did not do A — but Group A is part of Group B.”

Well, that just settles it then.

北京 Part 3: The Great Wall of China! and noodles

月曜日, 2 月 11th, 2008

Day 3: The Great Wall

Before we finalized our plans to go to China, K80 just had one criteria for an itinerary: to go to the Great Wall of China. We reserved all of our final full day in Beijing to going to the Wall. After our delicious breakfast, we hit the roads, taking a bus from the Dōngzhímén bus station out to Mìyún (密雲) and then a taxi to Sīmǎtái (司馬臺). Compared with other more popular Great Wall sites, Simatai is less restored, less touristy, and a more challenging hiking experience. We gave in to the adventurers within.

The weather was actually pretty nice, hovering right above 0°C, with beautiful clear skies, making up for the rest of China. We could see miles across. The higher up we went, the more of the Wall we could see.

They weren’t kidding when they said Simatai was more challenging of a hike… with some sections >45° up, sometimes it felt like a climb rather than hike… the path also sort of disappeared towards the end.

The whole experience fills with you a sense of awe, especially when you think of the people, real humans just like us (at least, we think), building this hundreds of years ago. Its scope is mind blowing. We made sure to make our visit memorable and well-documented as well.

In the end we turned back after climbing for a couple hours, and when we saw that the next peak ahead of us looked particularly menacing. We took some final pictures and turned back.

K80 made sure to steal a brick on the wall down. Shh… We also saw a frozen river which excited the Floridian.

Noodles for dinner

For dinner we met up with Anna again and her friend. Anna recommended a noodle place where you can watch the guys whip up the different kinds of noodles in front of your eyes… there’s a guy lassoing some into a pot, a guy beating some dough into submission, another shaving little noodle bits off a ball of dough with a knife. These are the Chuck Norris of noodles.

For desert we had what I describe as Chinese 大学芋… some chunks of sweet potato, dipped in hot candy-ness. You then pick some up, dip it in water to let it cool off, and eat it. It was wonderful.

Thus concludes our haphazard trip to China. We all had a fabulous time, enjoying many cultural sites and seeing and making many friends.

北京 Part 2: Summer Palace, bargaining, The Tree, and fried apple pie

月曜日, 2 月 11th, 2008

Part of the series: K80, mitcho (+Magi!)'s haphazard trip to China

  1. Going to China just got more expensive
  2. Hong Kong
  3. 北京 Part 1: Fulbright love, the Forbidden City, the Temple of Heaven, and Houhai
  4. 北京 Part 2: Summer Palace, bargaining, The Tree, and fried apple pie
  5. 北京 Part 3: The Great Wall of China! and noodles

Day 3: The Summer Palace

Day 3 begins with the Summer Palace. After Magi, K80, and I finally met1 in the morning, we hit the (new) Summer Palace (頤和園). The Summer Palace is way out north-west, past Tsinghua University (the Beijing one), but well worth the trek. In retrospect, I would recommend going earlier, as I could have spent more time there.

The Summer Palace is built around a lake which, apparently, is quite shallow, as it was covered completely in ice on our visit, making for some great skating/sliding.

Much like the Forbidden City, the Summer Palace houses a museum-style areas, with various cultural relics on display. Again like the Forbidden City, however, the architecture and gardens are the reasons to visit.

The main attraction is probably the Tower of Buddhist Incense, which involves going up stairs after stairs, moving up this small mountain. At the top is a beautiful Guanyin.

Behind this tower is a little temple with many beautiful Buddhas on the walls.

We had a great time at the Summer Palace, with one exception…

Suzhou street: a warning

I must warn any potential travelers away from the part of the Summer Palace known as Suzhou Street (蘇州街). But first, an aside on park ticket pricing.

In some parks, such as the Summer Palace, you can buy two types of tickets at the door: a “gate ticket” (門票) and a “through ticket” (聯票). The gate ticket will let you into the park, but it doesn’t include the separate tickets for a number of “special sections” of the park, while hte “through ticket” includes these. You can also just buy a gate ticket, enter, and pay the 10 yuan or so for each special section. The Summer Palace has four such special sections. If my memory serves me right, the gate ticket was ¥20 and the through ticket was ¥50. Each special section was ¥10 if you paid as you went. So the through ticket is a great deal!

So if you’re cheap like me, you’ll buy the through ticket, and then make sure to go to each of the places listed on your through ticket. After all, you paid for them, right? One of these was the Suzhou Street. Suzhou Street is on the north side of the Palace and is a little hard to get to… many signs make it seem like you’re just a few steps away, when in reality it is still at least a 15 minute walk. Once you get there, it’s the definition of a tourist trap… it does look nice and you must pay or have the through ticket to enter but, once you’re in, you must walk around this lake (it says one-way, so you can’t get out quickly), along which there are stores with touristy junk and little tea places. There are no exhibits or anything of real cultural interest here. You have to walk around the lake, at least half way, in order to leave.

In conclusion, the through ticket is convenient, the other three “special sections” were great, and you won’t be wasting money if you get one and don’t go to the Suzhou Street. Just don’t waste your time finding or visiting the Suzhou Street.

Bargaining

After the Summer Palace we went back into the city and to the Hongqiao Market (紅橋市場), a mall in the city famous for pearls, which the girls were interested in. I realized I just don’t have the attitude to bargain properly—I’m just too soft. I tried, and I believe we did get a fair price, but I’d definitely need more practice to get good at it, and it’s not the kind of practice I particularly enjoy. At least the price did immediately drop to half or so once they saw that I spoke Chinese. Funny how things work.

The Tree and fried apple pie à la mode

Finally we met up with Magi’s friend who took us to The Tree, a great pizza place in the Sānlǐtún bar area. Magi reminisced about darkly-lit bars like this in Germany, and we enjoyed the conversation and hearth-baked pizza. I highly recommend The Tree.

Finally, we went over to another bar called Rickshaw for desert, and I had the deep-fried apple pie. I felt like I was back at the state fair.


  1. A warning for all of you traveling to Beijing: transfer stations can have multiple different Exit A’s, one for each line. This is not immediately apparent, given that you can transfer for free between lines at these stations, and that each Exit A outside has a pole saying, for example, “Exit A: line 5 and line 1.” 

北京 Part 1: Fulbright love, the Forbidden City, the Temple of Heaven, and Houhai

日曜日, 2 月 10th, 2008

Part of the series: K80, mitcho (+Magi!)'s haphazard trip to China

  1. Going to China just got more expensive
  2. Hong Kong
  3. 北京 Part 1: Fulbright love, the Forbidden City, the Temple of Heaven, and Houhai
  4. 北京 Part 2: Summer Palace, bargaining, The Tree, and fried apple pie
  5. 北京 Part 3: The Great Wall of China! and noodles

It’s amazing how time flies… just over a week ago I’d just returned from Beijing, but it feels like it’s been weeks… I’ll take this chance to write up my adventures before my memory falters.

Day 1: 北京,你好!

beijing001

After getting into Beijing two Mondays ago, we took some time to explore the city. Our hotel arrangement (the Red Wall Hotel) was much nicer than in Hong Kong, with windows, free internet, nice decor, and a great location, on the north-east corner of the Forbidden City.

Walking around in Beijing, we were both immediately struck by the size of the city, in particular of the amount of open space. The streets were incredibly wide, with sidewalks and space between buildings! The landscape looked much more like an American Midwestern city than any other city I’ve been to in Asia.

beijing003beijing008beijing008

In the evening, K80 and I met up with my high school friend Anna. Anna and I never took Chinese together in high school, but it turns out Anna now is on a Fulbright in Beijing researching environmentalism in China, particularly leading up to the summer olympics. She mentioned she would bring along a friend from her Chinese program who taught English in Taiwan last year, “doing something similar to you.”

It turns out this friend was one of the English Teaching Assistants from last year, in the exact same program that we’re in now. What a small world! K80 and he even lived in the same apartment! We had some great Korean food and shared had a wonderful time catching up.

beijing006

Day 2: The Forbidden City

Magi and we met up in the morning for some breakfast, and then it was off to the Forbidden City (故宮)! The Forbidden City is quite literally a “city,”1 but it now a museum with many gardens and historical relics, about half of which is off limits to the public. While most of the “better items” are in the National Palace Museum in Taipei (the joint result of ”history” and Mao, for he is beyond history), I was pleasantly surprised by the items in the City. That being said, I do think the best parts were the architecture and the gardens, which include various perilous hills.

beijing010beijing011beijing012beijing015beijing016beijing020

We started in the back (north)—the rather unconventional route—having curry for lunch halfway through. The north half houses most of the exhibits, after which the second half is mostly the larger-ticket items, and a number of large courtyards. The City is definitely not just preserved history… Starbucks most famously had a brief stint in the City for a few years, though it is gone now. The curry was good and it was nice to be inside for a bit, satisfying priority one.2

beijing023beijing024beijing026beijing027beijing028beijing029beijing030beijing033

There were a few items of particular note here. First of all, I was surprised by all the signs having both Chinese (traditional, the real Chinese) and Manchurian on them… it turns out the Qing dynasty court used Manchu as a primary or secondary language throughout its rule. I never expected to see that interesting script there.

beijing022

Second, I was surprised to see a bicycle inlay on the ground… this led to my skepticism of the Forbidden City actually being built in the 1400’s.3 I present Exhibit A:

beijing013

Finally, but not least: my four-star toilet experience.

beijing018

Meet Mao

South of the Forbidden City is the Gate of Heavenly Peace, though you might have heard it as 天安門 Tiānānmén. You know, where the tanks ran over protesting students in 1989.4 Everyone and their mother has seen a picture of the huge wall with Mao on it… what you don’t realize is that it’s HUGE. I was standing in front of it, a decent ways away, and it didn’t fit in my camera’s viewfinder. K80 did one of her American Pledge of Allegiance photos there too.

beijing038beijing039beijing040

Temple of Heaven

Afterwards we went to the Temple of Heaven (天壇), a large park a little south of Tiananmen Square. There were some really cool trees, including the camouflage tree, below. The gardening organization of the vast expanse reminded me of the Gardens of Versaille. Surely it would have been even more beautiful in the spring or summer.

beijing043beijing044beijing045beijing046

Afterwards we had some Beijing duck for dinner, though priority one was sadly unfulfilled.

beijing047

Houhai café

On our final leg of Day 2, we went up to the hip Hòuhǎi (後海) area, basically a lake with many bars and restaurants around, with many traditional Chinese streets (胡同) nearby. We stumbled upon a cute café where we drank some citrus tea, tea, and some cakes, all ordered off of their hand-written menus. It was a little hold in the wall, but fulfilled priority one, and had some great conversations about life, politics, and food. Thus concludes Day 2.

beijing048


  1. At least, if Dent, Minnesota gets to be a city with 192 people get to be a “city,” the Forbidden City is for sure. 

  2. Priority one: warmth. The temperature was hovering around 0°C (alas, no snow!) but it was pretty chilly for walking around all day. 

  3. Only to be followed by all the simplified character graffiti on the Great Wall… they must all be hoaxes! 

  4. It’s articles like that that got Wikipedia blocked in China, as my website will be soon, to be sure. Apparently copies of Lonely Planet sold in China also have censored history sections as well. Reminds me of Warai no Daigaku: University of Laughs, Mitani Koki’s humorous film about the censorship of plays in war-time Japan. I guess it’s only funny if you don’t live under such a government. 

Sign language SuperBowl ad

月曜日, 2 月 4th, 2008

I don’t care much for the game, but always love checking out the SuperBowl ads every year… this year there was something really cool… a sign language ad by a deaf group at PepsiCo.1 Very cool.

The crew has their own website at Pepsi too: Bob’s House.


  1. “ad”, used loosely… does this ad sell anything? 

ラーメンズ:日本の形

金曜日, 2 月 1st, 2008

Bailey just pointed me to a hilarious series of videos apparently introducing Japanese culture to foreigners, produced by the Japanese comedians Rahmens. Rahmens are incidentally the ones who play Mac and PC in the Japanese versions of the Apple ads.

Here’s one to get you started:

Display your Last.fm rankings using PHP 4’s XSLT support

金曜日, 2 月 1st, 2008

With all the exciting recent news about Last.fm, I thought I would document a simple bit of code I added to my site the other day.

Last.fm offers a number of Flash-based widgets you can add to your website. Unfortunately, this doesn’t give you much flexibility and, of course, requires Flash. But you, dear friend, have a site written in PHP, and the rankings are just XML files. There is a better way.

Looking around on the web, there are some good instructions and recommendations for using PHP 5’s object-oriented XML support. But, as we know, not everyone is using PHP 5. Here’s what I did on my PHP install, which includes the DOM/XML and DOM/XSLT extensions.1

Write your XSL Transformation

The first step is to write your XSL Transformation, or XSLT, a special XML “program” which takes an XML file and reformats it into another XML file. Remember when you learned in Algebra class what a function was? An XSLT defines a function from XML to XML. In our case, we need to take a special proprietary XML file like the this one for my weekly top artists and return some solid XHTML.

Let’s take a look at the XSLT I used: (it helps to take a look at the original XML file at the same time.)

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="weeklyartistchart">
<ol>
<xsl:apply-templates select="artist[position() &lt; 6]"/>
</ol>
</xsl:template>
<xsl:template match="artist">
<li><a><xsl:attribute name="href"><xsl:value-of select="./url"/></xsl:attribute><xsl:value-of select="./name"/></a><span><xsl:value-of select="./artist"/></span>: <xsl:value-of select="./playcount"/></li>
</xsl:template>
</xsl:stylesheet>

The full spec description will give you all the juicy details, but you really only need a few basic details (or you can just steal my code). First, we note the <xsl:template match="weeklyartistchart"> and <xsl:template match="artist"> items. Each of these code blocks describe what to do to each <weeklyartistchart> and <artist> nodes, respectively, in the input XML. In the code above, when a <weeklyartistchart> is found, an ordered list is opened and the artist template is applied to the first five (position() &lt; 6) <artist> nodes. In the artist template (<xsl:template match="artist">), the script takes each <artist> and prints a list item with the name of the artist, with a link to the url given in the original <artist>’s <url> subnode.

Process the XML with your XSLT

Once your XSLT is written, save it to a file, like last.fm.xml. Now we’ll use the DOM/XSLT extension and apply this XSLT file to the live weekly artist chart XML file from last.fm. Here’s the code I used:

$chartxml = domxml_open_file("/weeklyartistchart.xml");
$xslt = domxml_xslt_stylesheet_file("last.fm.xsl");
$charthtml = $xslt->process($chartxml);
echo $charthtml->dump_mem();

The code is pretty self explanatory—just four lines: 1. open the remote XML file using domxml_open_file, 2. open the stylesheet (XSL transformation), 3. apply the stylesheet to the remote XML file, and 4. echo the output.

That’s it! You can see the results here on my music page.


  1. To see if these instructions will work for you, check your phpinfo for the lines “DOM/XML enabled” and “DOM/XSLT enabled”. If the items aren’t even showing up, you’re out of luck. :( There are, however, other comparable methods to process XML and XSLT in PHP 4.
    dom/xml check 

Hong Kong

金曜日, 2 月 1st, 2008

Day 1: Snack time

K80 and I got into Hong Kong last Friday after staying overnight in a hostel in Taipei. After taking care of our Chinese visa and settling into our hotel in Tsim Sha Tsui (尖沙嘴, or TST in English) in Kowloon (九龍), K80 and I walked around the neighborhood, first snacking at a cha chaan teng (茶餐廳), a kind of Chinese diner, where they serve an interesting mix of Chinese and western food. I got a hot milk tea (熱奶茶), Hong Kong style, which entails some strong, way-overbrewed tea with condensed milk, as well as a roast pork sandwich, and K80 got some noodles, both of which were advertised as part of their “afternoon tea” menu. They were all delicious, though the tea did need some extra sugar… but maybe I’m just too used to Taiwanese drinks. They also had prices written using Suzhou numerals, an interesting form of writing numbers which I’ve never seen before in Taiwan, though I recognized them as it was described in McCawley’s Eater’s Guide to Chinese Characters.

hk01hk02hk03hk04

Museum time

We spent a little time walking to the nearby Hong Kong Museum of History (香港歷史博物館). The main exhibit is a walk through of the history of Hong Kong, starting with a geology primer and the land that Hong Kong sits on, through the four ethnic groups of Hong Kong, then the British, Japanese, and finally the return to the Chinese. It was a great museum with many life-size buildings and cultural relics, making it much more engaging than just some artifacts behind glass cases.

hk06hk07

Dinner and stand-up

We met up with Michael/Kikai, who’s going to school in Hong Kong now, and his friends. We took the world’s largest system of interconnected escalators up from Central to Taco Loco. It was probably the first time I’d had Mexican food since I’ve been in Taiwan, so that was great. We then went out to see Paul Ogata and a couple openers at TakeOut Comedy’s first anniversary show. TakeOut Comedy is Asia’s first full-time stand-up venue, and they also recently started stand-up in Cantonese. Paul Ogata is a Japanese-American comedian from Hawaii, who recently won the San Francisco International Comedy Competition and also an avid Mac fan. The show was fantastic!

hk08hk09hk10hk11hk12hk13hk14hk15

Afterwards we went out to a bar nearby, where I randomly met a guy I who was in my Computational Complexity class at Chicago. It’s a small world. K80 and I also got to know Kikai’s friends, including two students from France and Magi from Germany. K80 and I mention we’re going to China, and Magi (below with me and my duck) says maybe she’ll join us…

hk16hk17hk18hk19

Day 2: Dim sum brunch

I cajoled K80 into having Dim Sum (點心) for breakfast. We went to a restaurant that Magi recommended in TST and had some fantastic dishes… our favorites were the fried shrimp wontons and pork buns.

hk20hk21

10,000 Buddhas Temple

In the afternoon we visited the 10,000 Buddhas temple on 寶福山. After some introductory guard animals and shrubbery, you take the escalators up to the temple, which is made up of a sanctuary with 10,000 Buddhas, and then probably 50 or 60 rooms, each of which house hundreds of graves. K80 happened to see a family bringing in an urn. I was amazed by the number of plates in these rooms which had Christian crosses on them.

hk22hk23hk24hk25hk26hk27hk28hk29hk30hk31hk32hk33hk34

Ladies’ market

The Hong Kong Ladies’ Market, as it is called, is like a huge day market, much like Taiwan’s night markets, but with much taller stalls. Kikai took us around the market and then to one of his favorite snacks: a hot waffle layered with peanut butter, butter, condensed milk, and then sugar. It was both delicious and deadly. K80 then saw a Krispy Kreme (nonexistant in Taiwan) and went over for a donut (after the deadly waffle).

hk39hk40hk41hk42hk43hk44hk45hk46

Symphony of Lights

At night we walked around and saw the Symphony of Lights on Victoria Harbour

hk47hk48hk49hk50

Hong Kong Miscellanea

K80 and I both got saw Hong Kong as a stereotypical yet fascinating mix of east and west. It’s also a very cute city: the emergency man runs even faster than in Taiwan, some trains have a quiet car, a “do not trespass” sign has a cute enter (入) man, and Oracle is 甲骨文, literally oracle bone script. We had some great food, met great friends, and I’ll be sure to go back again—now much more of a possibility as I’ll most likely be back in June for the Association for Language Awareness conference.

hk52hk53hk55hk51


© 2006-2008 mitcho (Michael 芳貴 Erlewine).
Proudly powered by WordPress.
Entries (RSS) and Comments (RSS).
The views expressed on these pages are mine alone and do not
reflect those of my employers and clients, past and present.