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.
- Yes, Excel exports tab-delimited text files.
- BUT, it will put up two or three annoying dialog boxes about it designed to scare the end-user.
- Oh, and also it will put quotes around any cell that contains a comma.
- What about a cell that already had quotes you ask? Oh, well then it will put three quotes around it.
- And quotes in the interior of the cell will get doubled.
- Windows Excel will export the rows with a carriage-return/newline pair ("\r\n"), just like you'd expect.
- 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.
- 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:programming, Excel, text
Blogged with Flock
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.
- Yes, Excel exports tab-delimited text files.
- BUT, it will put up two or three annoying dialog boxes about it designed to scare the end-user.
- Oh, and also it will put quotes around any cell that contains a comma.
- What about a cell that already had quotes you ask? Oh, well then it will put three quotes around it.
- And quotes in the interior of the cell will get doubled.
- Windows Excel will export the rows with a carriage-return/newline pair ("\r\n"), just like you'd expect.
- 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.
- 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:programming, Excel, text
Blogged with Flock
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:Xbox_360, Pirates, Xbox
Blogged with Flock
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:Xbox_360, Pirates, Xbox
Blogged with Flock
Comments Feed?
technorati tags:NetNewsWire, RSS, Apache
Blogged with Flock
technorati tags:NetNewsWire, RSS, Apache
Blogged with Flock
Eurogames on XBL!
technorati tags:gaming, Xbox_360, Eurogames
Blogged with Flock
technorati tags:gaming, Xbox_360, Eurogames
Blogged with Flock
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:science, dark_matter, MOND
Blogged with Flock
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:science, dark_matter, MOND
Blogged with Flock