Excel (and all of Microsoft really) can Bite Me!

Ye Gods I hate most near everything Microsoft.

If you ever need to import data from an Excel file, here are things you should know.

  1. Yes, Excel exports tab-delimited text files.
  2. BUT, it will put up two or three annoying dialog boxes about it designed to scare the end-user.
  3. Oh, and also it will put quotes around any cell that contains a comma.
  4. What about a cell that already had quotes you ask? Oh, well then it will put three quotes around it.
  5. And quotes in the interior of the cell will get doubled.
  6. Windows Excel will export the rows with a carriage-return/newline pair ("\r\n"), just like you'd expect.
  7. Mac Excel will export the rows with a carriage-return ("\r"), unlike pretty much anything else on the planet (excepting devices that actually connected to real physical teletypes). Not a newline ("\n"), like everything else on Mac/Unix/Linux/BSD, but a carriage-return.
  8. On Mac Excel you have to export as "Text (Windows)" to get a carriage-return/newline pair, which is at least reasonable to expect your importer to handle.

An example might be in order. If your cell contains the text:

"The quick brown fox nipped in for a drink at the "Lazy Dog". But it was closed."

Excel will make that into:

"""The quick brown fox nipped for a drink at the ""LazyDog"".But it was closed."""

Basically you have to strip an opening/closing quote pair, and then replace any occurrence of "" with " to get your original data.


technorati tags:, ,

Blogged with Flock

Read more

Yarr! Backcompat Update Ahoy!

There is a backwards compatibility update now available over Xbox Live. This free update brings the complete list of original Xbox games that you can play on your Xbox 360 to almost 300.

Xbox Live's Major Nelson : August '06 Back Compat Update

This is the usual mishmash of crazy "Who Cares" games that we've come to expect from the backwards compatibility of Xbox 360, but I mention it because it includes Burnout 3:Takedown and Sid Meier's Pirates. Plus Aquaman and Outlaw Tennis (rolls eyes). Still no Psychonauts or Jet Set Radio though.

technorati tags:, ,

Blogged with Flock

Read more

Comments Feed?

Is anybody out there using the comments feed to watch comments here? If so, are you seeing posts with more than one comment get screwed up? I upgraded NetNewsWire around the same time of the freaky web server crash and ever since then it amalgamates comments into one big comment with a revision history. I've looked over the MT templates, done a rebuild, and visually inspected the XML file itself and that all looks good. So I think it's a new "feature" of NetNewsWire, but I'd like to confirm whether anybody else has trouble.

technorati tags:, ,

Blogged with Flock

Read more

Lead Times Are A Bitch

So today's big science story is that we've found good evidence for dark matter. Today as I'm eating lunch I'm reading the August issue of Discover magazine (Yeah I'm one behind - September came in last week) and run across the article about Mordehai Milgrom and his research into modified Newtonian dynamics (MOND). Thing is, the strongest argument for MOND is basically that with no direct evidence for dark matter, MOND is just as plausible. Until two gas clouds run off and collide somewhere in space. Isn't that just like a pair of gas clouds? Unreliable little things.

Feel free to post theories about why my day is synchronistically about the fundamental cosmological equations of the universe. Normally, not so much news about galactic-level structures of matter.

technorati tags:, ,

Blogged with Flock

Read more