Boeing, Boeing…

Boeing’s 737 is appearantly in competition with a model from Brazil’s emergent Embraer.

bq. Seattle Post-Intelligencer: Lockheed looking at Embraer, Boeing for spy plane
Lockheed Martin Corp. is looking at the Embraer 190 and the Boeing Co. 737 as candidates for a new Army spy plane, the company said Friday.

Granted, its a specialized sale, but it again illustrates that, a decade ago, Boeing should have been worrying, not just about Airbus, but about “the little guys”:http://www.geekfun.com/archives/000602.html. They didn’t, and now they are feeling the heat.

Stupid iTunes Podcast Tricks

I installed iPodder shortly after its release and after trying once or twice to listen to podcasts, I gave up on it. The podcasts I found weren’t that interesting and the “online podcast directory was weak”:http://www.geekfun.com/archives/000402.html.

I liked the whole idea though, and so when Apple decided to make it easier to consume podcasts in the latest version of iTunes, I decided to give things a second look.

There are certainly a hell of a lot more podcasts to choose from these days, thats for sure. I lot of established media players have jumped in, driven, in part, by Apple’s entry into the space. All of which is cool, but I’m most interested in podcasting because of the opportunities it offers the unaffiliated up-and-comers.

In the early days of the iTunes podcast directory, those very people, the people who had pioneered the medium, seemed to be shoved off to the side in favor of the big media types. It took some digging to even find them. Happilly, on my latest visit, the “indies” as Apple calls them, are featured more prominently, including a section featuring a handfull of “interesting indies” near the top of the directory.

But, as you can tell from the title, I found something to gripe about. The process of subscribing to podcasts is utterly irritating. Once you’ve found an interesting looking podcast you click a subscribe button to add it to your subscription list. This is where things get bad.

As soon as you click subscribe, iTunes exits the podcast directory and jumps to your podcast subscription list. The browser buttons disappear and the only way (that I can find) back to your place in the directory to subscribe to something else is to start from the beginning again in retrace your steps. VERY LAME!

The podcasts I’ve listened to lately have been better than the early batch, but there are still a lot that are clearly not worth my time after one or two listens. It would be nice if I could easily unsubscribe from a podcast from my iPod.

Drupal Trick: Multiple Subdomains, One Database

Note: This post is from 2005, I’m not sure what, if anything, is still relevant.

Drupal is an opensource content management system that runs on PHP+MySQL with a flair for community created content, and a robust developer community that offers a lot of capabilities “out of the box,” and even more by adding community-developed modules. I think I first encoutered it a year or two ago, but really started investigating it a few months ago to support a few projects for my employer and since then I’ve been giving it strong consideration for some personal projects as well.

For the past day and a half I’ve been trying to figure out a good way to use Drupal to manage a collection of sites while minimizing administrative overhead.

The worst case is to install a copy of drupal for each site, along with a separate MySQL database for each site. This isn’t difficult, it probably only takes 10 minutes or so per site, but it hurts my brain to think of doing 10 or 15 sites that way because it means maintaining a separate set of users for each and it means that content can’t easily be shared between sites.

Slightly better is to take advantage of Drupal’s ability to have multiple installations use a single database while sharing certain tables between installations, specifically the table of users. This approach reduces some of the administrative overhead, but still has potential problems for sharing content and the like.

Of course, one can go even further with this approach, and share content tables. Unfortunately, it gives me a headache thinking about what would be shared and what would need to be unique to each installation. It also requires tweaking of the install scripts for each new installation. Getting it repeatably correct probably requires creating custom config scripts, and frankly, I don’t have the skills to write them before my lazyness takes hold.

Of course, sharing content tables doesn’t necessarily solve the whole problem anyway, because, by my estimation, once you share enough of the database between multiple installations, you loose the ability to make the sites appear notably different, at least in terms of the content they display.

What I really wanted was an easy way to have a single drupal installation, and then show a different home page to the user depending on the domain name they used to access it. I figured I could use Drupal’s powerful taxonomy features to identify which domains/sites a given piece of content should appear on, but I wasn’t sure how to make it appear properly on the front page of the individual sites. There are suggestions for redirecting a subdomain to a particular page using Apache mod_rewrite, but if I read things right, this results in the loss of the original host name.

I went digging through the drupal site for options. I found a number of people looking to do similar things, and I noticed that future versions of Drupal may have Publish-Subscribe functionality that will be useful for this sort of application, but I didn’t find a real solution for right now that wasn’t going to require more custom coding that I was comfortable with doing myself.

Then I hit upon the solution. Drupal lets you host multiple sites off a single copy of the code by setting up separate settings files for each installation (2nd half of step #4). Drupal lets you configure the default homepage for each site. Usually this is stored in the database, but it can be overridden in the settings file. The solution is to put the two togeather. Make a copy of the main settings file for each site and override the home page to point to a taxonomy view filtered by the category used to flag the content. Now try it out. It seems to work.

So, step by step:

# Install Drupal
# Create a vocabulary that designates where content should appear and enable it for all the content types you want to share between sites (look under “adminster:categories”). If you want content to appear on multiple sites, be sure to check the “multiple select” box.
# Add terms to the vocabulary for each target site.
# Set up DNS aliases for each additional site that points to the main site (I suggest a CNAME record).
# If necessary, configure apache to fulfill requests for the subdomains from the same document root as the main site. If you are using CPanel or another hosting control panel, you might have to “park” the additional domains.
# create copies of the main site’s settings.php (sites/default/settings.php) and place them in “example.com” and the additional site was “zinc.example.com” then you’d need to put a copy of the settings file in “sites/zinc.example.com/”. See the Drupal install instructions for detailed information on naming the directories properly.
# edit the settings.php file for each additional domain:
## Update @$base_url@ to match the name of the additional domain (@$base_url=’http://zinc.example.com’;@ for example).
## Override the front page: @$conf = array ( ‘site_frontpage’ => ‘section/zinc’,);@
# Save the file and try visiting the additional site.

_Note:_ I have installed the pathauto module which provides nice human readable URLs for pages, including taxonomy views. As a result, I can use “section/zinc” to designate the front page, rather than “taxonomy/x/y”. You could also do this by hand configuring things in the path module.

This approach isn’t perfect, but at least this gets me up and running and gives me something to build upon. I hope other people will find it useful as well.

I’d intended to cut bait on this at noon today, and didn’t figure out this little trick until after 5pm, but it’s satisfying to have figured it out.

Bit by Bit

Last week I mentioned that I’m “helping out with infrastructure”:http://www.geekfun.com/archives/000612.html to prepare for the release of the next Harvey Danger album. At the time, I could only hint at why it was important, but last week, “the band announced”:http://www.harveydanger.com/news/ that they will be releasing the album as free download on the net a couple of weeks after the CD goes on sale.

Today, “Jeff layed out more details”:http://jeffjlin.typepad.com/rock_and_roll_mcdonalds/2005/08/inching_ever_cl.html on how the release is going to work. In the coming weeks, expect to see more from Jeff on the thinking behind this bold move.

bq. Sept. 13 — Album (deluxe double-CD edition) released in stores
Sept. 20 — Electronic version of the album seeded to Bittorrent
Sept. 27 — Electronic version of album available for download from harveydanger.com

p. Until a week or so ago, I was viewing the Bittorrent as checklist item that would be cool and fun to do even though most people would end up using the web download, but now I’m pretty excited about it, especially since there will be a full week between the bittorrent release and the http release.

I’d intended to post more tonight about the considerations I’ve been working through to get the infrastructure planned and deployed, but its past my bedtime, so it will have to wait. So, come back here for more on the “How,” and keep an eye on “Jeff’s blog”:http://jeffjlin.typepad.com/ for the “Why.”

General JC Christian, Patriot

He is Jesus’ General, an 11 on the manly scale of absolute gender. You may not agree with him, but you should read what “he has to say”:http://patriotboy.blogspot.com/

Mindmapping + OPML?

MindManager is a commercial mind mapping tool for Windows. They’ve recently published an article titled “Blog Better With MindManager”:http://blog.mindjet.com/2005/07/blog-better-with-mindmanager . I’m not sure I’m completely sold on mindmaps, but I like the idea, and they clearly work for some people. It would be interesting to see a bridge between MindManager (and other mindmapping tools like “FreeMind”:http://freemind.sourceforge.net/wiki/index.php/Main_Page) and the “new OPML stuff that Dave Wiener has been bootstrapping”:http://www.opml.org/.

Mindmaps are really just outlines expressed in a visually richer format.