Jon Webb's Blog

Tuesday, August 22, 2017

The eclipse

My son Peter and I had slept, uncomfortably, in the back of my Prius at a rest stop outside Indianapolis. The next morning, at dawn, after breakfast at Waffle House, we set off towards St. Louis, where I figured the weather would be best. The weather maps kept changing and seemed to be pinching the good weather south of St Louis. There was no completely clear weather anywhere along the eclipse path in the eastern United States; there was always a chance that a cloud would block totality.

Peter and me at the Waffle House
The weather map. We were aiming a bit south of St Louis until I got the text from Paul
In Terre Haute we stopped for coffee and I got a text from my friend Paul, who was to the east, that Paducah, KY looked clear. I checked the weather map and there was a hole in the clouds there. So we headed down that way. Traffic was pretty heavy on the Interstate and got heavier as we approached the KY border. Peter kept checking the cities we were passing on a list of cities where totality would occur. After we'd been in the totality zone for a while I got tired of the traffic and pulled off in Merion, IL, which was on Peter's list, and where we saw a bunch of people lined up in the grass next to a Gander Mountain Sports parking lot waiting under tents and umbrellas.
Eclipse watchers at Gander Mountain
This was about 11:30. The eclipse started at 11:54. It was very hot. After getting some lunch we went to the parking lot and waited in the car with the air conditioning running. It was way too hot to be comfortable walking around the lot.
In the back of the Prius, watching the sun disappear
As the partial eclipse started we saw the edge of the sun being eaten away, and as it progressed it looked more and more like a crescent moon in our eclipse glasses. Half moon, quarter. It got cool enough to feel comfortable walking around the parking lot, talking to people. It's amazing how much of the heat, on a hot day, comes from the sun, not the weather. As say a quarter of the sun was left the clouds started to look low contrast. The light was funny.
Cool enough to watch outside the car
Sun shadows. The round sun images get replaced by C's
When the last eighth of the sun was visible you could see the illuminated sign of the Philips 66. Streetlights came on. As the last sliver disappeared someone pointed out the crickets were chirping. We were standing on a slight rise because someone had said you could see the shadow of the moon sweeping across the country. I looked and the horizon to the west was purple and dark, while the east was still light. Then I looked up and saw totality.
In place of the sun there was a perfect ring of silver, rimmed by a glowing cloud, with a perfect black disk cut out of it, like a hole in the sky. It was incredibly beautiful. I hadn't expected the surprise of it, how there was this completely new astronomical object. People started shouting and cheering.
The sky was about as dark as dusk. All around us, on the horizon, was sunset. I could see a star or a planet to the right. I tried to take a picture but it must still have been too bright for the camera because all I could get was a blur, no ring.
As soon as the sun came back I wanted to see it again. It is really an amazing thing, that this happens. We live in the only place in the solar system where it's possible, because the apparent size of the moon almost exactly matches the apparent size of the sun.

Friday, December 10, 2010

Harry Potter and Transport

Has anyone noticed how very many ways there are of getting from one place to another in the "Harry Potter" series? J. K. Rowling was obsessed with transport. Here is a partial list:

  1. Broomsticks.
  2. Hagrid's motorcycle.
  3. Flue powder.
  4. Apparition.
  5. Portkey.
  6. Knight bus.
  7. Thestral.
  8. Griffin.
  9. The death eaters travel through the air leaving smoke behind them.
  10. The Weasley's flying car.
  11. The toilets used to enter the Ministry of Magic.
  12. Sideways-moving elevator in the Ministry of Magic.
One or two ways of magic travel would have been enough. What is the reason for so many?

Monday, December 06, 2010

Tax cuts & Obama

I am as loyal a supporter of Barack Obama that you will find and I have been terribly disappointed by his decision to negotiate with the Republicans on extending the Bush tax cuts. For me, this was the issue the 2008 elections were about, just as the 1998 election was won by George W. Bush on the basis of his "no new taxes" pledge.

Two things have made this situation more interesting, though. One is the article by Ezra Klein in the Washington Post (http://voices.washingtonpost.com/ezra-klein/2010/12/can_the_white_house_win_in_201.html) arguing that by giving in on the tax cuts, Obama is getting more stimulus in the economy that he could have hoped to -- not just the tax cuts, but other benefits he will get in the negotiation, such as extended unemployment benefits, other tax cuts directed at the middle class, and so on. This is probably White House spin selling the idea to the left, but it does have a certain appeal.
But the thing that is truly fascinating about this moment is how fluid it is at this moment (6 December 2010). There are several different groups, any of which could derail the whole thing, but each of which has good reasons not to do so:
  1. Left-wing Democrats, who would like to see the tax cuts renewed only for people making less than $250K/year, and use the money from the newly increased taxes on people making more than that to extend unemployment benefits, and provide some stimulus in other ways.
  2. Right-wing Republicans, who are unalterably opposed to increasing debt (except when it involves a tax cut), who would like to renew all the tax cuts and do nothing else.
  3. President Obama, whose major promise from the 2008 election was not to renew the tax cuts for people making more than $250k/year, and who is smart enough politically to realize that this is a defining issue for his base.
  4. Republican leaders negotiating with Obama, who would like to roll this President on another issue, but who must also be aware that they can very easily end up looking like the President rolled them.
It is actually impossible to predict what is going to happen, on this major issue, which affects all of us.

Sunday, December 05, 2010

Wikileaks and the "poisoned channel"

There is a technique in counter-intelligence called the "poisoned channel." It works like this. Your enemy has a communications channel -- they communicate with the public, or another party. You can counter this in various ways. One is to set up your own channel, pretending to be your enemy. People have no way to tell if your channel or that of your enemy is real. You can interfere with their messages, cause them to lose credibility, and so on. Another way is to take control or partial control of your enemy's channel. You can inject messages into it. Your messages can serve your own purposes, and your enemy and others will believe them.
In the case of Wikileaks, Pfc. Manning, when he downloaded hundreds of thousands of documents from the intelligence web site, may well have been detected. When an intelligence service detects and intrusion like this, they may well decide to hang back and find out what's going on. He then sent the information to Wikileaks, which is apparently a loose coalition of people around the world, which gathered, edited, and posted his stolen information.
There are multiple ways that this information could have been posioned. Pfc. Manning may have been compromised. His transport of information to Wikileaks could have been interfered with. Wikileaks itself may include U.S. intelligence operatives. The Wikileaks servers may have been hacked and information inserted.
Note that the result of the Wikileaks affair has not been entirely to the discredit of the United States. First of all, there appears to be unanimity of Iran's neighbors that Iran is a threat and many of them think we should invade. This serves the purposes of U.S. foreign policy. Iran apparently believes it is thought of as a thread (they recently issued a statement assuring their neighbors that they are not) and this may affect their behavior. Even if one of the nations implicated as speaking against Iran know they were misquoted, they do themselves no good denying it -- and they believe the others think Iran should be invaded. It is a strangely fortunate outcome, don't you think?
A poisoned channel requires smart people, and one thing the Obama administration is is smart. Hillary Clinton is a smart woman. The State Department and U.S. intelligence services employ many smart people, who are normally quite good at keeping secrets. The "poisoned channel" is a well enough known technique that even I know about it.
Think about it.

Friday, August 31, 2007

Zombie Physiology

An interesting question regarding zombie physiology is: how do zombies move? They do not breathe (or at least their lungs do not supply oxygen to their muscles, since they have no circulatory system). While they consume flesh, they do not digest. Where does their energy come from?
Putting aside for the purposes of this article the fact that zombies do not actually exist, we can find the source of zombie energy in the basic chemical reaction that powers the muscles of the living, which is the Krebs citric acid cycle, and its alternate which takes place when insufficient oxygen is present, glycolysis. Zombies must be using glycolysis to power their muscles.
Glycolysis is an inefficient mechanism for transforming glucose into energy. It is, in fact about 14 times less efficient than the Krebs cycle used in cellular respiration (in other words, a 6-carbon glucose molecule is oxydised to produce 2 molecules of ATP. The Krebs cycle produces about 28 molecules of ATP per oxydised glucose molecule). And it produces as a by product lactic acid. What effects does this have on zombies?
First, the loss of energy due to depending purely on glycolysis is dramatic. Given that zombies do not consume, or at least do not digest, food, they must depend purely on stored body reserves of fat for the duration of their existence. A rough estimate of the reserves is given by the "rule of three": a person can survive 3 minutes without air, 3 days without water, 3 weeks without food. By this rule, zombies should "survive" only a day and a half since they burn up their reserves 14 times less efficiently? How, then, do they "survive" for years?
The answer lies in the fact that zombies are not warm-blooded and do not have to expend energy maintaining most organs. All they have to do is control their muscles and move. The other organs in their body are useless. So a day and a half supply of energy goes much further. In fact, the organs they are not using can be broken down and used to supply their muscles with energy as well.
It should also be pointed out that the anaerobic (and acidic, because of the lactic acid) environment inside a zombie's environment partly explains why zombies do not suffer decay due to the action of bacteria, for example those found in the gut. The inside of a zombie's body would likely be sterile following zombification.
It should also be noted that the production of acid by the zombie's muscles must eventually lead to decay of body parts and may account in part for the traditional horrifying appearance of zombies (aside from the fact that they exist only to eat the flesh of the living, of course).
A zombie that is not moving need consume very little energy, only that needed to keep itself aware of the environment. In such a situation a zombie could last for years, using only its initial store of body fat, especially if it started out obese.
The information this article is based on comes from the useful Zombie Survival Guide by Max Brooks.

Friday, February 02, 2007

Microsoft, Google, and Control of Intellectual Property

I've noticed that I now go through this sequence when I'm trying to figure out the cause of an error reported in the EventViewer:

  1. Click on the hyperlink to the event.asp page on the Microsoft web site. This takes me to a page which says:
    We're sorry
    There is no additional information about this issue in the Error and Event Log Messages or Knowledge Base databases at this time. You can use the links in the Support area to determine whether any additional information might be available elsewhere.
  2. Go to msdn.microsoft.com and search on the event id and message content. This is tricky. Sometimes I get no results at all (too many search terms, especially when I include the complete message text). Other times I get taken to a page which doesn't tell me anything informative -- it will usually be something like a guide to the setup of whatever product I'm having the problem with, with no detail whatsoever about the particular problem I'm encountering.
  3. Type the exact content (enclosed in quotes) and the event id into the Google search bar. Click search. This always takes me to a page that tells me something useful about the error. Always! What's even more amazing is that many of these pages are on the Microsoft web site. Sometimes I can solve the problem by reading these pages and sometimes not -- but at least I start getting someplace.
The bottom line is, it appears that Google has better access to Microsoft's intellectual property, as reflected in its documentation, than Microsoft itself does. This is a truly incredible fact. And it does not bode well for Microsoft. This is a more fundamental problem, I think, than, say, IBM's giving Microsoft control of the operating system on its personal computer product. It says something is wrong about Microsoft's corporate culture: they've lost control of their intellectual property.

Labels: , ,

Customize Class Item in Visual Studio 2005

I wanted to customize the Visual Basic Class template in Visual Studio 2005 so it automatically added headers etc. I ran into problems, but eventually found a way around them, and haven't found any other answers on the web.
The first thing I tried was to create a new item template following the instructions in the Visual Studio template help at http://msdn2.microsoft.com/en-us/library/ms247069(VS.80).aspx.
I created a file called Class.vb, with these contents:

' $safeitemname$
'
' Written by Jon A. Webb 2007
' Copyright (c) 2007 by Jon A. Webb
' All right reserved.
'
' $History: $
'
'
Public $safeitemname$ $safeitemname$
#Region "$safeitemname$ variables"
#End Region
#Region "$safeitemname$ lifecycle"
#End Region
#Region "$safeitemname$ operations"
#End Region
#Region "$safeitemname$ properties"
#End Region
End $safeitemname$
Then I selected File->Export template and followed the instructions there to add the template, naming it 'Class'.
This worked, in part. When I added a class called 'Class1' to the project I got this:
' Class18
'
' Written by Jon A. Webb 2007
' Copyright (c) 2007 by Jon A. Webb
' All right reserved.
'
' $History: $
'
'
Public Class18 Class18
#Region "Class18 variables"
#End Region
#Region "Class18 lifecycle"
#End Region
#Region "Class18 operations"
#End Region
#Region "Class18 properties"
#End Region
End Class18
Oops -- at one point, doing a global search and replace, I'd changed 'class' everywhere to '$safeitemname'. That resulted in the class keyword getting replaced. What I'd actually meant to use as the template was
' $safeitemname$
'
' Written by Jon A. Webb 2007
' Copyright (c) 2007 by Jon A. Webb
' All right reserved.
'
' $History: $
'
'
Public Class $safeitemname$
#Region "$safeitemname$ variables"
#End Region
#Region "$safeitemname$ lifecycle"
#End Region
#Region "$safeitemname$ operations"
#End Region
#Region "$safeitemname$ properties"
#End Region
End Class
OK, now, how do I fix this? I tried re-exporting the template but nothing changed. Add new class still used the old template. Then I tried following the instructions at http://geekswithblogs.net/ehammersley/archive/2005/11/08/59451.aspx. I ended up doing
devenv /installvstemplates
Still nothing -- the old template was still there. I poked around and found the cache Visual Studio was using for the template at C:\Documents and Settings\webb\Application Data\Microsoft\VisualStudio\8.0\ItemTemplatesCache. Clearing the directory and rerunning the devenv command above had no effect. There must be a second level cache somewhere.
OK, so, poking around, I found another cache at C:\Documents and Settings\webb\My Documents\Visual Studio 2005\Templates\ItemTemplates with another copy of the old Class.zip there. Deleting it, too, gave the original behavior when I added a class -- an empty class without my customizations. But then re-exporting the template gave me back the template with "Class" globally substituted by $safeitemname$. Very weird. Where was the template coming from? Nowhere -- I searched the disk. Then I realized what was going on... Visual Studio 2005 was itself substituting Class with $safeitemname$. In other words, if I submitted this as a template:
' Class
'
' Written by Jon A. Webb 2007
' Copyright (c) 2007 by Jon A. Webb
' All right reserved.
'
' $History: $
'
'
Public Class Class
#Region "Class variables"
#End Region
#Region "Class lifecycle"
#End Region
#Region "Class operations"
#End Region
#Region "Class properties"
#End Region
End Class
I'd end up with the template above with $safeitemname$ everywhere. I tried this, and it happened. But that leads to a solution -- use capitalization to get around this. So the final template was
' Class
'
' Written by Jon A. Webb 2007
' Copyright (c) 2007 by Jon A. Webb
' All right reserved.
'
' $History: $
'
'
Public class Class
#Region "Class variables"
#End Region
#Region "Class lifecycle"
#End Region
#Region "Class operations"
#End Region
#Region "Class properties"
#End Region
End class
(Note: I had to edit and save this file with a text editor, not Visual Studio, to keep the final 'class' from getting automatically capitalized.) Exporting this as a template worked!

Labels: , ,

Friday, January 05, 2007

Whitney Houston and the Axis of Evil


Has anyone else noticed the strange association between Whitney Houston and the Axis of Evil? Consider:

  • As Harper's recorded, Saddam Hussein's campaign song, during his last presidential campaign, where he won 100% of the vote: "I Will Always Love You."
  • As reported in The Daily Mail, Kola Boof, in her book "Diary of a Lost Girl", claimed that Osama bin Laden was obsessed with Whitney Houston and wanted to kill Bobby Brown.
  • Fox News reported that when the Bush Administration banned the sales of Segways and iPods to North Korea one of Kim Jong Il's favorite movies was "The Bodyguard."
Coincidence? Something more? Perhaps, now that Whitney has finally gotten rid of Bobby Brown, she might be available as a sort of super-ambassador to the Axis of Evil. Could this be the reason for the long delay in Bush's new Iraq strategy?
Just asking.

Labels: ,