Python Problem

Anyone have any idea why the following script doesn’t work?

#!/usr/bin/env python3

# import modules used here — sys is a very standard one
import sys
#import re

# Gather our code in a main() function
def main():
infile = open(‘File1’, ‘r’)
outfile = open(‘File2’, ‘w’)
for line in infile:

#print(“Found string”)

# Standard boilerplate to call the main() function to begin
# the program.
if __name__ == ‘__main__’:

When I run it, it simply copies the old file to the new one, without doing the replacement. I know that it’s seeing the pattern, because if I run the replace function in an if statement, it says that it found it.

This Morning’s Pad Incident

It seems to be news, so most of you probably heard that there was an explosion on the pad at LC-40 this morning, leading up to a static test fire for the upcoming launch of the AMOS satellite.

What we know so far: No one was injured, but the bird (a $200M payload) was lost. It’s a setback for Spacecom, which was about to be purchased by China pending a successful deployment. It happened prior to ignition, and SpaceX is calling it a “pad anomaly,” so it doesn’t seem to have anything to do with the rocket itself. But it will be a setback in SpaceX’s aggressive fall schedule until they determine the cause and how to prevent it in the future, and repair the pad.

It’s worth noting that they won’t be launching crew from that pad, but from 39B. But Phil McAlister and Kathy Lueders will want to know if the abort system would have saved crew had they been on top of the rocket. The immediate interesting question to me is whether or not they had any warning. The rocket itself has failure onset detection systems to trigger an abort, but it’s unclear if the pad itself does, and how much warning they would have had to pull the D-ring on the Dracos. Phil and Kathy had also better brace for a very stupid Congressional hearing, and we can all expect to hear a lot of illogical nonsense about how SpaceX should forget about Mars, and how this proves that reusable rockets don’t work.

[Update a couple minutes later]

One point as follow up to that last graf: SpaceX had been requesting to fuel with crew aboard, and NASA had been considering it. That’s probably out the window now.

[Update a couple more minutes later]

There were nine more flights scheduled this year. That was always unlikely, but it’s certainly not going to happen now.

[Update a few minutes later]

Well, this is timely. The OIG has released a status report on commercial crew certification.

[Update a couple minutes later]

How this will affect Spacecom. Shares are down with the news. I’d call it a buying opportunity.

[Update a couple more minutes later]

Also worth noting that it’s been a bad couple days for launch. Long March had a failure yesterday, and the Chinese have been mum about it (as usual).

[Update a few minutes later]

Jeff Foust already has a story about the potential ripple effects for SpaceX, SES, and the rest of the affected industry.

[Update a few minutes later]

And here‘s Loren Grush’s story.

[Update a couple minutes later]

And from Miri Kramer.

[Update a while later]

[Update a few minutes later]

Joe Pappalardo probably has the best take at this point.

[Update a while later]

Well, this is bad news.

[Update a while later]

Aaaaaand here’s the video. I’ve heard that people felt it in Orlando. It may have been the largest explosion at the Cape in history.

[Update a few minutes later]

This is great news, if true.

Why Didn’t She Destroy All Of The Benghazi Emails?

Because in addition to being corrupt liars, utterly indifferent to national security, she and her team are incompetent dolts. But that shouldn’t be news to anyone who’s been paying attention for the past quarter century. Which is unfortunately far too many people.

Is there any point at which the Democrats finally come to realize that she and they just aren’t up to the job? They can’t even do a decent cover up.

Back In CA

We flew home yesterday. I hadn’t been here in six weeks or so. Trying to catch up, and I’ll have to go back to FL. We have an agent there whom we feel like we can finally trust, but there are some things to be done that only I can do, in terms of determining dispensation of things in the house should it sell (she is fairly confident that it will, with the spruce up, and repricing). Hope to be back to blogging today, but when you’re away for a month and a half, there are a lot of things to take care of at home first.

Getting Over “Apolloism”

I’m heading back to California tomorrow, for the first time in about six weeks (the longest I’ve been away from home since I moved back in 2009), but meanwhile, my long-awaited piece in The New Atlantis is on line.

[Update a few minutes later]

Sorry, that’s just a preview, unless you’re a subscriber. The full piece will be free on line in the future, but I’m not sure when.

Yes, I Am MIA

Thanks for the concerned emails, but I am alive, despite the lack of posts (and tweets). This week has been the final throes of getting the house ready to sell, and we’re doing open houses this weekend.

[Monday-morning update]

We got several bids on the house, but none high enough to accept. Now that it’s in showable condition, we’re going to continue to list by owner. I’m going back to CA tomorrow (after six weeks of not being home) but I’ll be back. We’re probably going to add a laundry room. Millennials seem to want that. Doing laundry in the garage was good enough for us, but apparently not for them.

Biting Commentary about Infinity…and Beyond!