Heads Up: US Trip Tentative Plans

Maggie, Emily and I are finalizing our plans for a trip to CA. Our current tentative plans look like this:

September 15: Arrive SFO late afternoon

September 21 (approx): Drive to SB

October 3 (approx): Drive back to San Jose

October 6: Leave SFO Evening

Now’s your chance to look at your schedules if you want to meet up with us during this time. I will post further details once we hear back from a few people and actually buy tickets.

Nice people are everywhere

It’s pretty common on web sites for ex-pats in Taiwan to see a lot of complaints about the behavior of Taiwanese people. And actually I’ve seen some bad examples of this myself. But I’ve also seen plenty of examples of kind and considerate Taiwanese people.

Today we decided to go down to the Dajia Wharf park along the Keelung (Jilong) river. This is the area along the river in north Zhongshan district. It’s a fairly good distance from our house, but we decided to walk the whole way there. Unfortunately by the time we arrived, dark clouds had formed, lightning and thunder started up, and before we could actually do anything, it started pouring down rain. And we had also arrived pretty much unprepared for such an event.

We quickly walked across the field to the parking lot and huddled under a tree while Maggie tried to call a taxicab to come pick us up. (Normally it’s only a matter of going out to the street and lifting up your arm to get a taxi within a minute or too, but there weren’t any to be found in the park, and the traffic jam of cars trying to get out was probably preventing any from coming in.)

The rain was coming down hard enough that the tree was not providing a whole lot of cover. Just then a guy drove up and handed an umbrella out the window to us and then drove off even as we were thanking him profusely, just waving his hand out the window to us. Umbrellas are fairly inexpensive here, only about US$3 or so, but at such a time it was a most wonderful gift.

By this time, Maggie was having troubles with her cell phone, so since we had an umbrella, we started walking towards a main street where we were more likely to get a taxi. We had made it almost to the exit road when a small bus pulled up and opened the door for us. The bus regularly makes two stops in the park, but since it was raining, the driver was going around and picking up stranded pedestrians like us, and not just stopping at the designated bus stops.

The bus driver asked us (and each group of people he picked up) where we wanted to go. The bus route went near our home, and the bus driver offered to drop us off at the nearest intersection to our house, again not at an official bus stop, and even waited for the light to change before dropping us off so we wouldn’t need to stand in the rain long.

These may be simple gestures, but they certainly brightened our day in what otherwise would have been a miserable experience. Thanks to the donation of an umbrella, and a friendly and helpful bus driver, while we arrived home in soaked clothes, we were still happy that such kind people took time to help us out.

Converting DVDs to audio files

A few days ago sylphon mentioned trying to extract audio files from a DVD. I had been thinking of doing the same thing, but really hadn’t looked into it at all. I have a few concert DVDs that I’d like to listen to on my iPod or in iTunes without having to actually watch the DVD. At least for most concert DVDs, the music is still quite entertaining without the video.

sylphon had mentioned trying a program called “DVD Audio Ripper” but said there were some drawbacks with it. Unfortunately there are more than half a dozen programs with “DVD Audio Ripper” in the name. Going through the ones I found, they all annoyed me in various ways. I know that I’m a very picky person (or as I prefer to say, I have very high standards), but some of these programs were really awful.

This kind of takes me back to the mid-90s when digital audio on computers was still a fairly esoteric and difficult thing to do. I remember first hearing about it at the LISA 1995 conference where someone from (I think) Bell Labs was streaming audio between home and work. Sometime after that, I discovered the Fraunhofer mp2 encoder (this was before the mp3 standard was finalized) and a program that could read CDDA off of Audio CDs.

This stuff all came as source code that you had to compile yourself and were all controlled on the command line. I put a wrapper around them so that I could copy the tracks one by one, then it would ask me for the Album, Artist and Track names. This was before ID3 tags were invented, so this information was put only in the directory and file names for the tracks. Encoding a CD would take a few hours, given the CPU power of the time. Playback was also with command line programs. It was, to put it mildly, quite clunky.

Later we got CDDB which allowed us to get Artist/Album/Track info automatically, ID3 tags that allowed embedding that information inside the file itself, as well as improved compression algorithms like MP3, OGG, and AAC. Nowadays iTunes makes it so easy that you can set it to automatically rip a CD after it is inserted and eject when done. All you have to do is keep feeding it CDs. And most computers are fast enough to rip a CD in around 10-15 minutes at most. But it wasn’t until relatively recently that things were so easy.

So these DVD Audio Rippers take me back to the time in the late 90s where GUI based CD Rippers existed but were still limited in features, and clunky to use. One of the ones I tried didn’t even allow you to split things up by chapters, and most of them made things way more difficult that it had to be. A few of them were almost adequate, but not quite.

The critical feature I was missing though was the ability to rip at the native DVD 48khz sampling rate. CDs use 44.1khz 16 bit PCM stereo, while DVDs with uncompressed audio typically use 48khz 16 bit PCM stereo. (DVDs can also go up to 96khz 24 bit sampling, but those are uncommon.) If you’re going to want to put something onto CD, then you’ll want 44.1khz. Otherwise, keeping it at 48khz is better, and most sound cards and portable players support 48khz just fine.

I’m not sure why these programs insist on converting to 44.1khz by default, or why they either ignore it or produce broken files if you set it to 48khz, but the fact is that none of those I tried were able to correctly implement this fairly basic feature.

Then after some more searching, I came across DVD Audio Extractor. This program was fairly simple and straightforward to use, and it produced working 48khz audio files split by chapter without jumping through hoops. My two complaints are that it is a bit slow unless you bump the thread priority up on the encoding screen, and it doesn’t automatically get title/artist/track names. Since there is no CDDB analogue for DVDs that I know of, the latter limitation is certainly not their fault.

One of the really nice things about it is that they let you download a demo that is completely unlocked with all features activated for you to try for 30 days. That’s very generous, compared to other similar products. It certainly makes me feel comfortable that it will meet my needs before I fork over the cash.

I’ve now ripped a couple of concert DVDs, first ripping to WAV, then importing to iTunes, converting to AAC and then adding the title/artist/track info manually. It will also rip to MP3 or OGG format, but I prefer iTunes’ AAC encoding. It’s still a bit of work, but until there’s a central repository of DVD track metadata, this is about as simple as possible.

If you do decide to buy DVD Audio Extractor, please come back and use this link to do so and I’ll get a small commission. (In case you are wondering whether this influenced this review, I was going to write this up anyways but noticed that they have an affiliate program. If you are still worried that I was biased, then try it yourself free for 30 days.)

Fiona Apple New Release

Two years ago, Fiona Apple submitted her third album, Extraordinary Machine, to her record label. Since both of her previous albums had gone multi-platinum in sales, you’d think her label would be eager to get it into the stores. But for some inexplicable reason, they instead decided that the album did not have commercial appeal and shelved it instead.

Earlier this year, mp3s of this album leaked out onto the net and garnered rave reviews from those able to get their hands on it. My own opinion is that it is easily a match to her earlier albums, if not a bit better. For anyone who was puzzled by her album being shelved, this removed all doubts as to whether the record label was justified in shelving the album.

It was therefore a pleasant surprise to open the weekly iTunes Music Store newsletter to see a new release from Fiona Apple. No, it’s not the whole album. But it is a small taste of the album. The release is of the album track O’ Sailor and a b-side track, Parting Gift.

If you already have the bootleg mp3s, here are some reasons to buy this single:

1) It is likely that the label will base their decision on whether to release the album or not on whether this single sells well or not. Buying it is a vote in favor of an album release.

2) It’s the right thing to do to replace your bootleg copies once a legit release is available.

3) You don’t have the b-side yet.

4) The single features an updated mix of the track. (As well as a different spelling from your bootleg!)

Click here: Fiona Apple – O’ Sailor / Parting Gift (iTunes Music Store US)

Ooh La La

Today I got my long awaited parcel from HMV UK containing the new Goldfrapp singles. Goldfrapp has been one of my favorite groups since shortly after rosminah introduced me to their work. My wife asked me what kind of music they are and I honestly have no idea. It’s a bit like trip hop electronica, but that’s still not quite it.

Anyways, according to my last.fm profile (formerly audioscrobbler), Goldfrapp is my second favorite band, and I’m the 6th biggest Goldfrapp fan on the site. So I guess that’s a pretty good indication of how much I listen to them.

Goldfrapp is composed of Alison Goldfrapp and Will Gregory. I’d actually first heard Alison Goldfrapp on Tricky’s debut album Maxinquaye which I rank as one of the best albums every made. She sang with Tricky on the track “Pumpkin” on that album. She also sang with the obscure group Add N to (X) before hooking up with Will Gregory to form their own group. They’ve released two albums so farm, Felt Mountain and Black Cherry, and I think they are both brilliant.

Their third album, Supernature is out on 8/24, and they’ve so far released two CD singles and one DVD single in the UK of the song “Ooh La La.” And that’s what came in the mail today. The first single has the single version and a b-side. The second single has three remixes, and the DVD has the music video, a behind-the-scenes video and an audio-only remix of Ooh La La.

Maybe it’s a bit obsessive to get all three of these, but after listening/watching them, I can’t say that any one of them is not worth it. The b-side on the first CD is great, the second single contains some pretty good remixes, and the video on the DVD is not to be missed, nor is the Andy Bell/Manhattan Clique remix on it. I think the only disappointing thing is that while the video is widescreen, it’s encoded in 4:3 format, which means lower resolution than if they’d encoded at 16:9.

If you’re not quite so obsessed, you might just wait for the regular CD release later in the month. For now you can click through to their website and preview the album. Myself, I have the special limited edition album/dvd set already on order.

The problem of politically correct terminology

Usage of politically correct terminology sometimes results in situations where the usage is factually incorrect. One example is included in a poster celebrating the 60th anniversary of the founding of the United Nations. This poster lists the 51 nations who were signatories of the June 26, 1945 founding of the UN. This poster lists the People’s Republic of China as one of the signatories.

There’s one small problem with that: the People’s Republic of China didn’t exist in 1945. The signatory was actually the Republic of China. But the UN can’t put down Republic of China because the PRC would have a fit. So they have to put down the PRC as a founder, even though it’s wrong.

http://www.taipeitimes.com/News/taiwan/archives/2005/08/14/2003267684

PHP problem solved

Last week I was trying to help Pazu in Vienna debug a problem where file uploads in a PHP application weren’t working on my web server. We’d been running around in circles trying to figure out what was wrong. First we thought it was the PHP version, but that wasn’t it. Then we thought permissions, but that wasn’t it. The bizarre thing was the using an alternate instance of Apache on the same server using the same software and an only slightly altered httpd.conf worked fine.

Today I was able to get the Apache configs converged to the point where there were only about 4 lines in the two configs that were different, and those were only paths and port numbers. The only other difference was that the broken server had all the virtual hosts configured, while the working server only had one virtual host configured. Thinking it might be that it worked on the first (default) vhost, I added a second, but the test program still worked on both. Then I added ALL the virtual hosts, and suddenly it broke.

So here’s what the root problem turned out to be: http://bugs.php.net/bug.php?id=32491&edit=3

Basically, the old stdio method of handling file descriptors has a limit of 256 file descriptors. Most modern OSes can support many more (usually 1-64K), but to be able to use them you need to make minor changes to the code. Unfortunately, parts of the PHP code still use the old method and are therefore limited to 256 descriptors. One of the parts so limited is the file uploading code. This particular bug with file uploading has been fixed in the current development version, but not in a released version of PHP yet.

Fortunately, we were just a little bit over the 256 file limit, so I was able to squeeze things down to below that by removing some old defunct vhosts, and merging vhosts that refer to the same server under different names (for example foo.com, foo.net and foo.org may have had different vhosts but all got served out of the same directory). Once the server had less than 256 open files, the file upload problem disappeared.

The aggravating factor in this is that I have per-vhost log files, and log files in apache are all held open constantly, so each one means one more file open for all the children of the main httpd. I probably should get with modern times and roll things back to one main log file with an extra field for the vhost.

These kinds of obscure problems are very difficult to diagnose.