Text-only individual archives in Movable Type

When I was first investigating John Gruber‘s excellent text-formatting system Markdown, one of the things that caught my eye on his demonstration pages was the ability to see the ‘source’ for any of the pages by simply replacing the .html extension with .text. I’d been wondering if it would be possible to pull such a trick for my site for a while, and got it figured out tonight.

You’ll now notice that just after the post date for each entry, there’s the option to go to a ‘text’ version of the entry. The URL is the same as the normal archive, except that it ends with .txt rather than .html. Clicking on the link will send you to the text-only version of the entry, which is simply the entry without any formatting applied to it whatsoever — just what I’ve typed, nothing more, nothing less.

For instance, here’s the text version of this entry.

I’m honestly not sure if there’s a huge use for this, actually, but that’s never stopped me from trying something before. ;) The biggest benefit I can see is that it allows for very easy copy-and-paste operations without having to worry about “smart quotes” fouling things up along the line. It also allows visitors to see the posts as they were written, of course — and thanks to Markdown, the text-only versions are generally just as readable as the formatted HTML versions, without lots of HTML code cluttering things up. Essentially, they look very similar to what a text e-mail might look like, with URLs placed after each paragraph, and references to each link at the appropriate point in the text.

I have noticed some caveats to this technique, however, which may put the usefulness of this entire technique into question.

  1. Safari doesn’t seem to display text files as pure text — rather, it treats them as HTML. This has the effect of running all paragraphs together as a single line, and rendering any HTML it might find. This has the rather unfortunate effect of defeating the purpose. If anyone has any suggestions as how to force Safari to actually display the text as text rather than rendering the HTML, I’d love to hear them.

    Update: Well, now Safari’s behaving and displaying the text versions as I’d expect them to display — as pure text, with un-rendered HTML. I have no idea why it didn’t do so the first time. This first caveat may be moot, then (which is a good thing).

    Update: John Gruber was kind enough to fill me in on why Safari will sometimes display the text as text, and other times will render it as HTML:

    Oh, and the reason that Safari sometimes refuses to show your text
    pages as plain text is because it tries to be clever. If anything
    that resembles an HTML tag appears in the first 100 KB or so of your
    document, Safari treats it as HTML, even if the HTTP headers state
    that it should be “text/plain”.

    Very frustrating, IMO. Apparently it’s a workaround for
    misconfigured servers that send HTML as “text/plain”, and it matches
    a similar workaround in IE/Win.

  2. Firefox will not wrap text files at the end of the screen, so each paragraph ends up as a single long line. Admittedly, this is technically correct, but without the word wrap, it’s a bit difficult to find something in the midst of a long paragraph. You could, of course, copy-and-paste the entire thing into a text editor before doing anything else, but that adds another step when working with anything.
  3. I have no idea what Internet Explorer will do with this, as I don’t have any version of IE on my computer.

If you’re still interested in implementing this yourself — or just curious — read on for the gory details. This is written for Movable Type users, of course, other systems will have to find their own techniques.

Read more

A blast from the past…

Just a little something that amuses me. Though I’ve been posting regularly since November 2000, and have a few old weblog-style posts going all the way back to December 1995, it wasn’t until February of 2001 that I actually stumbled across the term ‘blogger’.

So it appears I’ve (without really knowing or planning it) become one of the growing number of ‘bloggers’ on the web. Blogger? Well read on…

It’s kind of fun to be able to pinpoint the very day that I realized there was this “weblogging” thing going on…and to know that I’d been doing it for a good while before that.

Yeah. I’m an old-timer. :p

Flip der Svitch!!!

Flip der Svitch!

If you’re seeing this entry, then the switch has been thrown, and Eclecticism has successfully transferred over to its new server!

Michael was kind enough to make me an offer I couldn’t refuse (the good kind, not the horse-head-in-the-bed kind), and we got all the details finalized today. I’ve spent the evening transferring things over, and…oh, man, but this is an improvement.

Last time I had to rebuild my weblog, I couldn’t import all of my entries into Movable Type in one swell foop, because the 11 megabytes of text choked my server, and I had to break things down and do them month by month to avoid getting timeouts. Just a little while ago, I tossed my entire backup file — a whopping 13.78 megabyte text file — at the server, and it chewed through the entire thing and imported all my entries in just about thirty seconds.

So, many, many thanks to Michael!

There may be a few odds and ends that aren’t quite right as I finalize everything (for instance, I need to figure out how I’m going to get my del.icio.us bookmarks back into the sidebar as a linklog), but hopefully nothing too troublesome. If you do come across something that’s obviously broken, please feel free to let me know.

Otherwise, assuming all goes well, we should be in far better shape around these parts than we have been in quite a while. Yay!

(Bonus points if you can identify the movie that the above screencapture comes from….)

Initial thoughts

Some brief initial thoughts on today’s news…

  • There’s a rousing snowball fight going on in hell right now.

  • IBM just got spanked. Hard.

  • From a user-standpoint, this may not be as big of a deal as some might fear. Apple has plenty of past experience dealing with potentially difficult and disastrous transitions. Most recently, of course, the OS transition from OS 9 to the UNIX-based OS X; more applicable to this situation, however, is their earlier switch from the Motorola 680×0 processors to the IBM/whoever-else-was-involved (I’m on lunch and trying to post this quickly, so I’m not looking up all the little details) PowerPC processors.

    From my standpoint, both prior switches were handled quite well. With the number of ways that things could break, it’s amazing how much didn’t. Case in point, just this weekend I downloaded the game Crystal Crazy from the Macintosh Garden, a repository for “abandonware”. This is a game that was written for 680×0 systems, so it’s outdated by many years, one software transition, and one hardware transition…and it still works. Granted, the sound doesn’t work, and it has to be run from the disk image instead of being copied directly to the hard drive, but the fact that it works at all (680×0 code running through the PowerPC emulation inside the Classic environment on an OS X system) is a rather resounding testament to the work Apple did in ensuring backwards compatibility — and I have no doubt that they will do everything they can to continue this trend.

  • This certainly doesn’t mean that the Mac is suddenly going to turn into Windows. No matter what kind of processor is providing the underlying power, it’s OS X that is the heart and soul of the Mac “experience”, and that’s not going to change (well, not beyond future OS upgrades that is).

  • I think it’s extremely unlikely that we’ll start seeing “install anywhere” OS X boxes that will allow OS X to be installed on any random x86-based system. Much of what makes a Mac a Mac is the tight integration between the OS and known, Apple-approved system components, and I don’t see them giving that up and attempting to support the nearly-infinite possible hardware configurations of homebrew PCs. The processor may be going to Intel, but that doesn’t preclude Apple from keeping tight control of their motherboards and keeping OS X on their proprietary hardware.

    That said, I expect plenty of hackers will be doing everything possible to circumvent that. It’ll be interesting to see how successful they are, and how soon they pull it off.

  • I expect that Virtual PC will be undergoing a major shift in a couple years, possibly moving to something closer to the fabled ‘Red Box‘ of the Rhapsody years. No more emulation layer to worry about — Windows will be able to run native code on the Intel processors that it’s written for, at full speed. In theory (and this is definitely theory, as I’m no programmer), all VPC would really have to do is create an isolated virtual machine for Windows to run inside, much like the Classic layer already does for pre-OS X applications. Perhaps we could even see Windows apps running outside of the VPC window, side-by-side with OS X and Classic applications? It’d be a UI nightmare, sure, but it might not be outside the realm of possibility anymore.

  • I can’t wait until I get off work and can really dive into all the various analysis and speculation after this. I’m going to have a lot of reading to do tonight!

Any other thoughts?

Slashdot Slashdotted

Here’s an amusing little something that I’d never seen before. I tried to take a look at a Slashdot story about the Apple/Intel switch, when…

Slashdot slashdotted

Apparently everybody was trying to get to that story, and for once, Slashdot couldn’t keep up! Pretty impressive, and an indicator of just how big this news is.

iTunesMy Dark Life” by Costello, Elvis/Eno, Brian from the album X-Files, The: Songs In the Key of X (1996, 6:20).

Virtual Moving

I’ve been getting word from a few people recently that my website is responding unusually slowly as of late. I generally don’t notice this much myself (as when I’m at home everything goes over the local network), but I have been noticing that the traffic indicator light on my DSL modem has been very active lately.

There’s a few things that could account for that amount of activity and the speed issues, but my guess is that it’s simply that while my DSL line and aging webserver were fine for my needs a while ago, I’m outgrowing them.

Right now, I’ve got a 1.5 Mb/sec incoming, 768 kbps/sec outgoing DSL line, and an old 350Mhz G3 as webserver. I’ve set my server up to host two domains for myself (djwudi.com, which is currently essentially unused, and michaelhanscom.com), one for my dad (hanscomfamily.com), two for friends (Kirsten at geekmuffin.com and Phil at interalia.org), and I found out a while ago that Phil has set someone else up on my server as well (patreesha.com).

A few months ago, none of those site were getting enough traffic for that to be a major issue. As the sites grow, though, and as Google finds more and more pages to send people to, I’ve simply run out of server horsepower and bandwidth.

So, I think it’s time for me to pare things down a little bit and look into external hosting options. Mike‘s given his hosting provider, LivingDot, a good recommendation, and their packages look better than both Laughing Squid (BoingBoing‘s host) and Logjamming (Wil Wheaton‘s host), but I’m open to suggestions if anyone else might have any.

This won’t be an “overnight” thing, so there’s no danger of me suddenly pulling the plug on any of the sites I host. I already knew that I’d have to be disconnecting my server for an as yet unspecified amount of time when I move in with Prairie in a few months, so the end of August is something of a “drop dead” date for me to get all of this taken care of. My sites may move over before then, depending on affordability and how much of a PROJECT the transition becomes, but I’m not about to just drop my friends’ sites into the great bit bucket in the sky. :)

It’s a bit of a bummer, as I’ve enjoyed having the ability to host things on my own, without having to worry about storage space (I’ve got around 100Gb of drive space on my server) or bandwidth caps (as long as I pay my bills, Speakeasy doesn’t care how much data I pump in or out over my DSL line, or limit what I can or cannot do with my server)…but after a while, even I have to succumb to the reality of the situation.

iTunesUnder the Milky Way” by Church, The from the album Never Mind the Mainstream (1988, 5:00).

ecto blog of the week

Here’s a nice little surprise for the day: Eclecticism is the featured ecto blog of the week!

This week’s featured blog is michaelhanscom.com, a blog that is brimming with courageous manly yet customizable pink. Don’t let the pink fool you, though, as the content is very much multi-colored. Movies, Macs, Seattle, politics, personal anecdotes, “eclecticism” got all the usual stuff that most blogs are made of (apart from that Seattle bit, I guess) and that is what makes blogs fun to read. The entries go as far back as a cold 1995 winter, so I’m hopeful we’ll be able to see this blog reach its first decennium.

“Manly yet customizable” — y’know, that just might do as good a job of describing me as it does my site! ;)

Thanks to Adriaan, both for the showcase spot, and for ecto!

iTunesForbidden Food” by Lady of Darkness from the album Malady (1996, 6:00).

Apple and Intel

There’s a lot of rumbling in the Mac world today thanks to a Wall Street Journal article reporting rumors of Apple talking to Intel about using their chips.

Apple Computer Inc. has been in talks that could lead to a decision soon to use Intel Corp. chips in its Macintosh computer line, the Wall Street Journal reported on Monday.

The report, citing two industry executives with knowledge of recent discussions between the companies, said Apple will agree to use Intel chips.

Neither company would confirm the report and an Apple spokeswoman told the Journal she would characterize it as “rumor and speculation.”

This, of course, has led to the usual fooferal about whether Apple may be looking at either moving away from the Power PC chip and onto X86 chips, or possibly simply releasing a version of Mac OS X for Intel processors.

Personally, I think a few of the Slashdot crowd have a better grasp of what’s probably going on here.

/ASCII: My guess is they really are planning on using Intel chips – just not processors. Remember, Intel produces wireless chips, Flash memory, Ethernet chips, and Salt and Vinegar chips.

Halo1: The gigabit ethernet chip in my old G4/400 in fact is an Intel chip.

arloguthrie: Most notably, the XServe Raid runs on an Intel processor. There are tons of reasons Apple would be meeting with Intel. One day, perhaps “the news” will actually be news and not gossip based on “a friend-of-a-friend told me…”

(via /. and many other sites this morning…)