Friday, August 24, 2012

Stargazing on a Cloudy Night


Over the last year or so I've become interested in backyard astronomy. Growing up in south Florida, I was always fascinated by the rocket launches out of Cape Canaveral.  I remember having one of those cheap "department store" refracting telescopes, but it wasn't worth using for anything more than looking at the moon.

So last year I started reading more about astronomy, and even wound up buying a nice budget-friendly telescope, the Orion SkyScanner 100mm. It's a right nice little scope, and something I enjoy doing is going out on a clear night and taking a look at what's out there. When I head out, I tell my wife I'm going to go listen to "the heavens declare the glory of God." (Psalm 19:1)

The scope comes with a version of "Starry Night," a software planetarium package. It appears to be well regarded, but I run Ubuntu Linux on the machines at home.  For a while I tried to get Starry Night to run under WINE, but to no avail.  So I went hunting for planetarium software which runs under Linux.  I found Stellarium which I think is a fantastic package. It is open-source, and available for Linux, Mac, and Windows. 

One of the neat things about planetarium software is that if it knows where you are, it can tell you what your night sky looks like. So go ahead and download Stellarium, and configure it for your particular location.  Take a look at a constellation or two, and then go outside to see if you can find them for real.

Stellarium includes a number of "plugins" which add to its functionality. I found that with the "Oculars" plugin, I can configure Stellarium to show the sky exactly as it appears through my telescope. I'm going to show you how to do that yourself; it's a fairly straightforward process.  But before you begin, you are going to need to collection a little information:

  • What's the aperture and focal length of your telescope?  Mine is 100mm, focal length 400mm
  • For each eyepiece, what is its focal length and apparent field of view (aFOV)?  I'm going to define two eyepieces, one 10mm eyepiece (aFOV=52) and one 20mm eyepiece (aFOV=52 as well).  You can find aFOV information by looking at the technical specifications for the eyepiece. You can find this at the manufacturer's website, or you can use one of the many online calculators.  For example under the Specs tab here you will see the focal length and apparent field of view for the 10mm eyepiece I have.

Now let's begin
  1. Enable the plugin. In Stellarium, open the Configuration window and select the Plugins tab.  One of the plugins should be titled "Oculars."  Feel free to email a thank you note to its author, Timothy Reaves.  Down at Options, click "Load at startup," then click "Configure"
  2. Add your telescope.  Click the Telescopes tab. You will see a couple of predefined telescopes. Click the Add button. You'll see a new entry called "My Telescope."  Change its name to something you might prefer, and then enter its focal length and diameter.  For my telescope, the focal length is 400, and diameter is 100. My particular telescope is a reflector, so I need to click "Horizontal Flip" and "Vertical Flip" so the image Stellarium presents is like what I'll actually see.
  3. Add your eyepieces. Click the Eyepieces tab. Click the Add button. You'll see a new entry called "My Ocular." Change its name so something you'd prefer, like perhaps "Orion 10mm". Enter the parameters you found for the ocular, ie, the aFOV and focal length.
  4. Test.  Click on any particular target in the sky, then select Ocular View (Ctrl-O [O as in Ocular]).  Once in Ocular View, to select your particular telescope, click Alt-O, scroll to "Select telescope," and select the telescope you want to use. Do the same for the ocular. What you see in now should be pretty much like what you see with this particular telescope/eyepiece combination outside.  Stellarium will also show the view parameters in the upper left of the screen.

I use Stellarium configured for my telescope to help me plan star-hopping to various targets. I can "aim" Stellarium at my starting point, then switch to ocular mode, then along with a star atlas star-hop to my target location. Knowing what my waypoints will look like in Stellarium helps me know what they are going to look like through the telescope outside. And I can stargaze anytime I want, even on a cloudy night.

Monday, August 13, 2012

Adobe Flash Woes

My wife's computer recently started giving her grief. The browser had started to report that "the plugin could not be loaded" on Flash-using sites (ie, Facebook, and most of our 8-year-old daughter's play sites). It is a somewhat elderly machine (AMD Athlon XP 2600+), but it had been running Ubuntu 10.04 LTS (Lynx) nicely for quite some time. I've used Firefox for years, and that was the browser running on that machine too.

I had heard said that Adobe was no longer going to provide Flash for Linux (outside of Chrome), and so I thought I'd try two Flash alternatives: Lightspark and Gnash. The very nice Flash-Aid Firefox plugin made this attempt very straightfoward. However, although the plugins loaded and reported their version numbers to Adobe's test site (http://www.adobe.com/software/flash/about), Facebook said I needed to upgrade the plugin. So the latest Adobe plugin didn't work, and the alternatives worked, but they were too far back.

Let's try a new browser. I read that Google Chrome had "integrated" Flash support, so I thought I could just download and go. So I downloaded Chrome, but the flash plugin still would not run.

Sigh. I suppose it's time to upgrade the OS. I had gotten out of the habit of upgrading that particular machine because,

1. If it ain't broke don't fix it,
2. I had had a pretty messy upgrade experience once with that particular machine.
3. And now that I was several revs back, I'd have to step through each new version to get up-to-date.

So after each version upgrade, I'd try Firefox and Chrome (and Chromium too) to see whether Flash sites would load. 10.10 -- Nope. 11.04 -- Nope. 11.10 -- Nope.

I started to wonder whether I had some kind of incompatibility with my card (an old nVidia GeForce 5200 [I told you this machine was old]) and Flash. I saw references to weird behavior (like the Smurf effect), but none of the fixes for those issues addressed the problem I was having.

In one of the debian forums, there's a thread titled "New Bug: Google Chrome - Couldn't initliaze plug-in" The originator was describing something very similar to what I'm experiencing. The hero of that post asked whether his CPU supported SSE2 instructions. Sure enough

cat /proc/cpuinfo | grep flags 

 implied that my CPU doesn't. The poster also said he thought the 11.1.102.63 didn't have the problem which was affecting the latest version. I downloaded the archive, pulled out libflashplayer.so, and put it into /opt/google/chrome/plugins.

That solved the problem!