Time

So I’ve mentioned before that I run an NTP server. Stratum 2, which means it gets its time from a “Stratum 1,” which is set directly to something reliable. The main goal of NTP is to keep clocks in sync, and it’s pretty accurate, down to a fraction of a second, which is more accuracy than most people need. All of my computers will now agree on the time down to a second.

The ultimate source, of course, is the atomic clock. But there isn’t an atomic clock, per se. There’s actually an array of them, each using cesium or hydrogen as an atomic reference. Collectively they form “the” atomic clock, which is used as a frequency standard.

It’s all well and good to keep your computer clock (and wristwatch, and microwave, and oven, and wall clock…) synced within a second, but some things need more accuracy. The USNO (US Naval Observatory, in charge of maintaining the atomic clock system) explains one common scenario well: systems for determining one’s location, such as GPS and LORAN “are based on the travel time of the electromagnetic signals: an accuracy of 10 nanoseconds (10 one-billionths of a second) corresponds to a position accuracy of 10 feet.” There are also lots of other scientific uses for extremely precise time, many of which I couldn’t even begin to understand the basic premise of. But suffice it to say that there are actually a lot of times when knowing the time down to the nanosecond is important.

Things like NTP don’t cut it here. You can get down to the millisecond, but you need to be about a million times more accurate. (A millisecond is a thousand microseconds, which is a thousand nanoseconds.) So how do you keep the exact time? It turns out that there are actually several ways. One way (decreasingly common) was to keep an atomic clock of your own. You can buy a “small” (the size of a computer…ish) device that has cesium or hydrogen or rubidium inside of it, which keeps pretty accurate time. Over time it’ll wander, but at least short-term, it’s quite accurate.

One of the first ways is WWV, a shortwave radio station. (And it’s Hawaiian sister station, WWVH.) They run continuously, disseminating the exact time via radio as observed from the atomic clock system. In the past I’ve synced my watch to this source. More notable, in a behind-the-scenes type of way, is WWVB, a low-frequency (60 kHz) radio broadcast. This is what all your “atomic wall clocks” sync to. (Incidentally, I’ve read that most of them are fairly cheaply built, meaning that their time is really not accurate to more than a second.) Another interesting sidenote is the deal with their antennas: a quarter-wavelength antenna at such a low frequency is 1,250 meters tall, or about 4,100 feet (nearly a mile). But with some wacky designs they can overcome this (although pouring 50,000 Watts into it also helps).

The problem with “straight” receivers for WWVB, though, is that you have to figure in the time it takes for the signal to reach you, which is rarely done all that well (if at all). Instead, a more common technology is used: GPS.

It turns out that GPS carries insanely accurate time. Wikipedia has a really good article on it. Each GPS satellite carries an atomic clock onboard, and people on the ground keep it synced (with nanosecond accuracy) to the atomic system. There’s some funky correction going on to keep things perfectly accurate. GPS has a claimed accuracy of 100 nanoseconds, although people have found that it’s actually about ten times better, down to 10 nanoseconds or so.

As an aside, GPS in general is an interesting read. There’s a lot more going on than meets the eye. I recently dug up an old GPS and wondered if it needed an “update” to get new satellite positions: with ham satellites, we get periodic updates for our tracking software to account for changes in their path. GPS has a neat solution, though: the satellites broadcast this data. Actually, more accurately, they broadcast all the data for all the satellites, so that seeing one satellite will fill you in on the whole setup. There used to be Selective Availability, basically a deliberate introduction of error into the signal. The premise was that we didn’t want enemy forces using it: imagine a GPS-guided rocket, for example. So we introduced error of about 30 meters for a while. Ironically, it was ended because our own troops (before Iraq) couldn’t get the military units, so they were just buying off-the-shelf civilian units and incurring the decreased accuracy. So Selective Availability has been turned off, and there are indications that it was permanent. A third interesting tidbit is that the GPS satellites carry much more than might meet the eye, including equipment monitoring for nuclear detonations.

The timekeeping problem is what to do when you get the time at the GPS, though. High-end GPS units will provide a pulse-per-second signal, which you cna hook up to a computer via serial, and achieve great accuracy. But there are all sorts of considerations I never thought of. Between the time it actually charges the pin and the time the operating system has processed it takes a little bit of time, os there are special kernel modifications available for Linux and BSD to basically get the kernel directly monitoring the serial port, to greatly speed up its processing. I also discovered the Precision Time Protocol (commonly known by its technical name, IEEE 1588), which is designed to keep extremely accurate time over Ethernet, but apparently requires special NICs to truly work well.

I’ve also learned another interesting tidbit of information. CDMA (which is a general standard, not just the cell phone technology that Verizon uses) apparently requires time down to the microsecond to keep everything in sync, such as your multiple towers and all the units (e.g., phones) in sync and transmitting at the right times. So the easiest way to keep all of their towers in sync to a common standard was to put a GPS receiver at each tower and sync the system to that. Thus CDMA carries extremely accurate time derived from GPS, which has led to some interesting uses. It’s hard to get a GPS signal indoors, so they now make CDMA time units–they sit on a CDMA network in receive-only mode, getting the time but never taking the “next step” of actually affiliating with the network. This lets people get GPS-level accuracy inside buildings.

I Told You…

Texas has problems.

Apparently, in the counties that got around to holding caucuses and primaries, no one was quite sure what they were doing. People waited hours to cast their ballot (wait, you cast ballots in a caucus? How is that diferent from a primary? Why do they hold them on the same day?), which apparently also confused a lot of people by, for some reason, asking them to select their sexual orientation?

The results (of candidates, not Texans’ sexuality) are still coming in….

Ohio

The weather in Ohio has apparently turned absolutely miserable, which many predict (for obvious reasons) will hurt the turnout. But, as the photo shows, Obama fans like Arya Kamangar won’t let the weather stop them. I wonder if bad weather is almost in Obama’s favor? Although at this point, Hillary fans are probably pushing really hard for turnout, too.

Yes They Can

There’s a women’s rights movement going on in South Africa.

One thing I think is interesting is that people tend to view this as backwards–they’re just now having a women’s rights movement? But I view it differently. They became a Republic in 1961. It took us centuries from being founded on supposedly-democratic principles before we truly recognized that every person was equal. Forty-five years and they’re already doing it.

And just the other day, Kenyans agreed to a power-sharing deal putting an end to a brutal conflict that had developed there.

It’s Tuesday

Texas and Ohio vote today. Polls show Hillary leading in both, but not by much. Vermont and Rhode Island also vote, but I guess they’re being neglected in most media since they only hold a handful of votes. Obama’s winning in a landslide in Vermont polls, while Rhode Island is another “close, but favoring Hillary” poll.

Someone mentioned a good point, though: imagine if Hillary had won 11 straight states. People would have written Obama off as a lost cause. And if he won Ohio today, people would think, “Woo-hoo, one state on top of 11 straight losses. He’s still done for.” For some reason, Hillary’s not getting that.

Kyle sent me the following image…

title=”4db8fa6df104decb060a885nc0.gif”>4db8fa6df104decb060a885nc0.gif

The image, as hilarious as it is, is even funnier when you realize that it’s taken verbatim from a Neil Gaiman comic, which was not about Obama. How well it adapts!

I’ll close with a quote: “Always remember that no matter what obstacles stand in our way, nothing can stand in the way of the power of millions of voices calling for change.” Texans and Ohioans (?), get out and vote for a better future!

The Top

Inspired in a roundabout way by a recent Ask MetaFilter question, and fueled my desire to procrastinate a little longer, here’s my take–in no particular order–on the top songs ever. I started off as a blanket list of songs were good, but kept whittling it down until only the best songs ever remained.

  1. Pink Floyd – Keep Talking: Not only does it sound great, but find me another song with a guest appearance by Stephen Hawking. And, unlike some of their other songs, it’s pretty “normal” and upbeat. (However, High Hopes takes a close second for Pink Floyd songs, and honorable mention goes to Run Like Hell, Cluster One, Learning to Fly, and the rather creepy One of My Turns. And The Happiest Days of Our Lives, but only if you play it loud.
  2. RHCP – Snow (Hey Oh): I’m hesitant to include things I’ve loved for less than a month, but I’ve liked the Red Hot Chili Peppers for years and years, so it’s not like I’m throwing a Top 10 spot into something unfamiliar. (Their Aeroplane is a close second.)
  3. Jimmy Eat World – Hear You Me: Many of the songs I love turn into lists of other great songs by that author. This isn’t so with Jimmy Eat World–some of their other songs are so-so. This one has secured a spot in the top, though. It’s always been a good time, but have it come up on Shuffle when someone close to you has died and tell me it isn’t wonderfully appropriate. I also tend to not keep downbeat songs in my playlists, but this one–even with all the associate sadness–stays in. You owe it a listen.
  4. Creed – One: I think I own a couple Creed songs, but I might rank them in the Top 100 artists in my playlist. But something about this song propels it into the Top 10. Part of it’s just that it sounds great. It also has a neat sort of “burst of energy” that keeps you from just playing it as background music. And the lyrics are excellent, too. (Actually, one might copy-and-paste this text for Green Day’s American Idiot, although I rank One higher.)
  5. The Fray: I just can’t decide which one. I confess that Iliked them so much that I almost did something vile–bought a CD. I didn’t, but if ever I came close, it was upon hearing their other songs. You’ll surely recognize How to Save a Life and Over My Head (Cable Car), but some of the others–All at Once, Heaven Forbid, Little House, Look after You, and She Is are all as good.
  6. Smashing Pumpkins – Today: Out of a band that does a lot of, err, melancholy, songs, a beacon of happiness. (I think.) And don’t skip the beginning, which caused my classic, “I forgot about glockenspiels!” line. (But really, when was the last time you thought about glockenspiels? I’d gone years without so much as remembering their existence. I might not think about coconuts more than every few weeks, or ventriloquists more than once a month. But glockenspiels? It’s been years.)
  7. Nirvana – Smells Like Teen Spirit: Amid a sea of nice calm, upbeat music, we need something that can only be described as loud. This is it. Unintelligible lyrics? Check. Screaming, without being “heavy metal” that grates on my nerves? Check. But the real reason for including them? Lyrics like “a mulatto, an albino, a mosquito, my libido” are a reminder that sometimes, just every now and then, a song doesn’t have to make any sense at all to be good.

In lieu of finishing a Top 10 list, I’ll leave you with three songs that I bet you heard years ago but forgot all about–the glockenspiel factor.

  • New Radicals – You Get What You Give.
  • Spacehog – In the Meantime.
  • Primitive Radio Gods – Standing outside a Broken Phone Booth with Money in My Hand.

Ecoterrorism

This is an odd story: some luxury homes were burned down and it’s been suggested that ELF was the culprit.

Okay, so that’s among the least-scary, most goofy acronyms I can imagine. But it stands for Earth Liberation Front, and it’s apparently a decentralized group of environmental arsoni… err, activists.

So I sought to find out a little more information about them. This may be their site. I say “may” because, although it’s full of news about the elves and that ELF is a decentralized group with no formal leadership, the title of the page is “Viagra Sample Packs” and the banner ad is for a swingers convention. It also reads like a page that’s lost its stylesheet? So overall I’m just totally confused.

Of course, this will get them the PR they want, but I’m left wondering if it really does any good. I now view them like PETA and Greenpeace, in that they have a good cause, but are so horrifically insane in carrying it out that no one takes them seriously. But if people already think you’re a bunch of loonies, having a webpage partially about your environmental conquests and partially about Viagra, with an ad for swingers clubs, really doesn’t help.

Opium

Afghanistan has a flourishing opium trade. They apparently produce most of the world’s opium. Ironically, it’s kind of our fault–the Taliban had pretty much eradicated all poppy cultivation, but with them gone, it’s come back. A recent news story suggests that the Afghani leaders in charge of fighting opium quit after their pay was slashed due to overseas funding drying up. (This one was poorly thought through…)

I want this job. Here’s my plan: encourage opium cultivation.

India has a flourishing, but regulated, opium trade. The product is sold to pharmaceutical companies, who refine it into morphine. Farmers are apparently limited to how many poppies they can grow. The government periodically does inspections of farmers to make sure they’re complying, and to make sure that their product isn’t being diverted into illegal usage.

This is what Afghanistan needs. You deal a crippling blow (again…) to the illegal drug trade, while also bolstering their economy with pharmaceutical sales.

Where do I submit my resume?