Archive for the ‘Interesting’ Category
This is getting way too confusing. All along, someone said “Georgia” and I thought of the southern state. And then there was a war in Georgia with Russia, and I was just geographically-astute enough to know that they meant the country.
So that raged on for a while, and now, whenever I hear about something happening in Georgia, I think of the country.
So now, people in Georgia claim to have found Bigfoot. And I was thinking, their country is kind of insane-sounding. Like, one day most people have never heard of them. And then one day President Bush visits and someone hurls a grenade at him. But it’s apparently a dud, and no one notices until afterwards anyway… (Talk about failing at terrorism.) And then we all forget about the country again. And then Russia invades them, confusing everyone who both assumed that the news was talking about the US state, and that Russia was a nice country that wouldn’t go starting wars. And then their war ends. And then like the next day they find Bigfoot.
But it seems that it’s actually our Georgia that found Bigfoot.
*proud to be an American*
From my “Random ideas I wish I had the resources to try out…” file…
The way the “pretty big” sites work is that they have a cluster of servers… A few are database servers, many are webservers, and a few are front-end caches. The theory is that the webservers do the ‘heavy lifting’ to generate a page… But many pages, such as the main page of the news, Wikipedia, or even these blogs, don’t need to be generated every time. The main page only updates every now and then. So you have a caching server, which basically handles all of the connections. If the page is in cache (and still valid), it’s served right then and there. If the page isn’t in cache, it will get the page from the backend servers and serve it up, and then add it to the cache.
The way the “really big” sites work is that they have many data centers across the country and your browser hits the closest one. This enhances load times and adds in redundancy (data centers do periodically go offline: The Planet did it just last week when a transformer inside blew up and the fire marshalls made them shut down all the generators.). Depending on whether they’re filthy rich or not, they’ll either use GeoIP-based DNS, or have elaborate routing going on. Many companies offer these services, by the way. It’s called CDN, or a Contribution Distribution Network. Akamai is the most obvious one, though you’ve probably used LimeLight before, too, along with some other less-prominent ones.
I’ve been toying with SilverStripe a bit, which is very spiffy, but it has one fatal flaw in my mind: its out-of-box performance is atrocious. I was testing it in a VPS I haven’t used before, so I don’t have a good frame of reference, but I got between 4 and 6 pages/second under benchmarking. That was after I turned on MySQL query caching and installed APC. Of course, I was using SilverStripe to build pages that would probably stay unchanged for weeks at a time. The 4-6 pages/second is similar to how WordPress behaved before I worked on optimizing it. For what it’s worth, static content (that is, stuff that doesn’t require talking to databases and running code) can handle 300-1000 pages/second on my server as some benchmarks I did demonstrated.
There were two main ways to enhance SilverStripe’s performance that I thought of. (Well, a third option, too: realize that no one will visit my SilverStripe site and leave it as-is. But that’s no fun.) The first is to ‘fix’ Silverstripe itself. With WordPress, I tweaked MySQL and set up APC (which gave a bigger boost than with SilverStripe, but still not a huge gain). But then I ended up coding the main page from scratch, and it uses memcache to store the generated page in RAM for a period of time. Instantly, benchmarking showed that I could handle hundreds of pages a second on the meager hardware I’m hosted on. (Soon to change…)
The other option, and one that may actually be preferable, is to just run the software normally, but stick it behind a cache. This might not be an instant fix, as I’m guessing the generated pages are tagged to not allow caching, but that can be fixed. (Aside: people seem to love setting huge expiry times for cached data, like having it cached for an hour. The main page here caches data for 30 seconds, which means that, worst case, the backend would be handling two pages a minute. Although if there were a network involved, I might bump it up or add a way to selectively purge pages from the cache.) squid is the most commonly-used one, but I’ve also heard interesting things about varnish, which was tailor-made for this purpose and is supposed to be a lot more efficient. There’s also pound, which seems interesting, but doesn’t cache on its own. varnish doesn’t yet support gzip compression of pages, which I think would be a major boost in throughput. (Although at the cost of server resources, of course… Unless you could get it working with a hardware gzip card!)
But then I started thinking… That caching frontend doesn’t have to be local! Pick up a machine in another data center as a ‘reverse proxy’ for your site. Viewers hit that, and it will keep an updated page in its cache. Pick a server up when someone’s having a sale and set it up.
But then, you can take it one step further, and pick up boxes to act as your caches in multiple data centers. One on the East Coast, one in the South, one on the West Coast, and one in Europe. (Or whatever your needs call for.) Use PowerDNS with GeoIP to direct viewers to the closest cache. (Indeed, this is what Wikipedia does: they have servers in Florida, the Netherlands, and Korea… DNS hands out the closest server based on where your IP is registered.) You can also keep DNS records with a fairly short TTL, so if one of the cache servers goes offline, you can just pull it from the pool and it’ll stop receiving traffic. You can also use the cache nodes themselves as DNS servers, to help make sure DNS is highly redundant.
It seems to me that it’d be a fairly promising idea, although I think there are some potential kinks you’d have to work out. (Given that you’ll probably have 20-100ms latency in retreiving cache misses, do you set a longer cache duration? But then, do you have to wait an hour for your urgent change to get pushed out? Can you flush only one item from the cache? What about uncacheable content, such as when users have to log in? How do you monitor many nodes to make sure they’re serving the right data? Will ISPs obey your DNS’s TTL records? Most of these things have obvious solutions, really, but the point is that it’s not an off-the-shelf solution, but something you’d have to mold to fit your exact setup.)
Aside: I’d like to put nginx, lighttpd, and Apache in a face-off. I’m reading good things about nginx.
Drive very, very carefully in Wyoming, if at all. Apparently exceeding the speed limit by more than 5 (!) MPH can bring up to 20 (!!!!!) days in prison.
And this isn’t a technicality or an obsolete law on the books. I found this out after an Ask MetaFilter question by someone whose friend was given three days in prison for speeding.
Last night we were unloading a shopping cart. When done, the place to put it away was pretty far away. But there were about ten other shopping carts littering the parking lot nearby, so I said, “Meh, what’s one more?”
As we got in the car, I proclaimed, “Broken Windows in action!” I think people were confused and assumed I was referring to a literal window which was broken. Instead, I was referring to the Broken Windows Theory, which is an interesting read. The basic premise is that researchers watched an abandoned warehouse. For weeks, no one vandalized the building. One day, one of the researchers (deliberately) broke one of the windows. In short order, vandals knocked out the rest of the windows. The theory is used a lot in policing, but I think it has applications in many other places. Such as parking lots: if you’re diligent in bringing in carts, I’d argue that you’d avoid people doing whta I did. (I also felt the same way at the bowling alley: if we frequently picked up candy wrappers and popcorn from the floor, the place seemed pretty clean. If we slacked, it felt like the place was being trashed by everyone in short order.)
The theory does have its detractors, but it also has strange people who see applications of their theory in parking lots. Enjoy the photo of chives, which have nothing to do with anything, but I just took it and I like it.

Ed.: Because the blogs have been slow, and because this is a hot topic, I’ve fudged the date on this to appear to have been published two days later, so it will stay on the main page a bit longer.
It looks like Obama is the Democratic nominee, while Hillary Clinton, the woman who has twice alluded to Obama being assassinated (okay, the first time was a speaker at her event, not her), has conceded that she’d be open to running as his VP.
I’d be happier with an Obama-Richardson ticket, but people are calling Obama-Clinton the fastest way to try to heal the wounds this election cycle saw. In her defense, if she doesn’t get him assassinated, she’d make an excellent VP.
Needless to say, I’ll be watching the news tonight for what may be two very historic speeches: Obama’s victory speech and Hillary’s concession speech. (It seems like it was just weeks ago that Obama gave his “concession speech” that was anything but a concession speech, in New Hampshire, which led to the Yes We Can Song.)
The AP story is hot off the press, and many MSM outlets aren’t carrying it yet. Whether that’s because the polls don’t close for two hours, because it’s not factual, or just because MSM isn’t as obsessed with checking Google News as I am remains to be seen.
Update: It seems that Hillary hasn’t conceded quite yet. Honestly, I’m not sure how the AP is so sure that Obama’s won yet.
Update 2: USA Today has a good piece suggesting that, while Obama might do it tonight, it’s still about 30 delegates premature. And they also have this good article on exactly how the AP story was put together.
Update 3: You can follow the whole Google News thread.
You know those times when you decide to let yourself surf aimlessly? And an hour later, you have absolutely no idea how you got to where you did?
I found the K0S Strange Antenna Contest page from 2003, where some ham radio operators started using, well, strange things as antennas. Who’d think that a ladder works well? (No no, not ladder line, but an actual ladder.) In fact, after working some people off of a ladder, they got an even better idea, and stood several ladders up, using them to support a pair of extension ladders laid horizontally, forming a ladder dipole, with impressive results. Sadly, they report that combining two shopping carts to make a dipole did not get them any contacts, nor did a basketball hoop.
This has me wondering what else would work… An aluminum chain link fence? A railing? Train tracks? Power lines? (Kidding on that one. Please do not try to attach anything to power lines.) Curtain rods? A couple of cars? A section of guardrail? A metal lamppost?
I poked around the site some more, to see if they did it in subsequent years. And they did. 2004, for example, saw my joke about using two cars come to fruition. (Okay, so they beat me to it by four years.) 2005 saw someone use a bronze statue, and, the next year, he was at it again with railroad tracks, albeit not full ones, but some sort of art exhibit / monument. (Aside: I’m pretty certain that trying to hook up a bunch of wires to train tracks may arouse a bit of suspicion by the police?) 2006 also saw a pair of exercise machines being used, with a comment about how they weren’t very effective, but the apt comment, “On the other hand, we did in fact make two contacts with a pair of exercise machines standing only a few inches above the earth!” And, confusing everything I know about antennas, someone used a tree. And a football stadium (which includes a commentary about how the university police were initially slightly suspicious about someone getting out of their car and hooking wires up to the stadium for some reason). 2007 saw a bridge as an antenna.
And 2008? Well, see, here’s the best thing. The 2008 Challenge is this weekend!
Of course, as a Technician-class license, I don’t have many HF privileges… The Technician license was (before all license classes saw it eliminated) the only class that didn’t require a Morse code exam, so it’s somewhat ironic that almost all of the new HF privileges Techs were given are in the CW portions of various bands. I do get 28.3-28.5 MHz now, allowing SSB on HF…
Time to hit the books, I think. (I think mine–and that one–might be outdated, actually. Looks like the question pool got revised in 2007.) There are always sample exams online, and the feedback can be helpful. Study a bit and take an exam a day, and then review your answers. (Theoretically, actually, you could just learn the answers to each question without understanding the concepts, though that’s really missing the spirit and point of ham radio.)
I came across Ken Rockwell’s site the other day, and, as I perused a lot, I came across his interesting mention of the Casio EX-F1. I’ve “graduated” from integrated point-and-shoots to digital SLRs, although this camera costs more than my digital SLR and three lenses put together.
Photographically, it’s mediocre. 6 megapixels. Except you don’t buy this thing for its resolution. You crave it because:
- 60 frames per second at 6 megapixels. (Note that most movies are shot at 24 fps.)
- “[S]tereo HDTV movies,” although I confess that I’m not quite sure what that means.
- Continuous shooting mode, where it’s just constantly shooting at 60fps, and, when you hit the shutter, saves the ones around that time. Thus, you can actually get shots from before you click the shutter.
- A maximum shutter speed of 1/40,000 second. That is not a typo.
- 60 frames per second is ridiculous. But if you can take a cut in resolution, you can go further, all the way to 1,200 frames per second at a pitiful 336×96.
Actually, 336×96 isn’t just tiny, it’s a really weird size. I’ve resized (and cropped) a random photo of mine down to 336×96:

In conclusion… 6 megapixel camera, with a long zoom lens equivalent to 36-432mm. And it’s an HDTV video camera. And it’s got the crazy bonus of letting you use shutter speeds of 1/40,000 of a second, and capture low-res video at 1,200 frames/second. I wouldn’t carry it as my main camera (though it would probably be entirely usable for that), but I’d love one of these in my bag for video and such.
I also wonder about the “trickle-down” effect. Although really, more like the “trickle-out effect.” Nikon’s D3 will give pretty clean shots at ISO 6400, something no other camera even tries to offer. It goes up to ISO 25,600. Canon and Nikon are very close when it comes to the frames-per-second rate of their high-end digital SLRs; 7-9 frames/second. (Hint: get rid of the shutter, which is useless on a digital camera where you can just “read” the sensor for a given period of time.) Companies keep focusing on packing more and more megapixels into smaller and smaller sensors. As I’ve said before, I have a 20×30″ print from my 6-megapixel camera. (Cropped a bit, too, actually.) I only “upgraded” to my 10-megapixel XTi because the old one broke and you can’t buy a 6-megapixel SLR anymore. Maybe, just maybe, we’ve seen an end to the megapixel arms race. We exceeded the resolution you could squeeze out of film a long time ago, and now we’re giving medium format a run for its money. When I go to buy a new SLR in maybe five years, I don’t want it to be more than 10 megapixels. But I hope that it goes a lot further than 6 megapixels. And if a “prosumer” point-and-shoot camera does 60 frames per second at full resolution, all of a sudden 3 frames per second on an SLR looks pathetic. Similarly, I’m unaware of any still camera (aside from maybe weird scientific-engineered stuff) that will take a 1/40,000-second exposure, or any flash that’s capable of running at 7 frames per second.
(That said, I’m having a hard time figuring out when you’d need a 1/40,000-second exposure. I only hit my camera’s 1/2,000-second limit when I’m too lazy to stop the lens down…)
Found a neat experiment here…. Watch this video very carefully and count how many passes the people wearing white shirts make. It’s kind of a neat challenge.
Afterwards, leave a comment with your answers. (But no cheating! Watch the video first.)
I mentioned in my previous post in passing about determining which was my “dominant eye,” something I’ve merrily gone 22 years without knowing I had.
Wikipedia refers to the subject as ocular dominance. Essentially, the brain “prefers” one eye over the other. Of course, this is something that ordinarily goes unnoticed, but it becomes quite important in some things, including, apparently, firing a weapon. There are two easy tests to determine your “eyedness,” as Wikipedia strangely lists as an accepted name:
- Focus on a distant (6-10 feet is plenty) object. Hold both arms out in front of you, overlapping, and form a golf-ball-sized circle between your thumbs, viewing the image through it. And then, do one of the following:
- Slowly pull your hands towards your face, keeping the image centered in the hole. Eventually, your hands end up in front of one eye. That’s your dominant eye.
- Rather than pulling your hands back towards you and looking ridiculous, close one at a time. With one eye, you won’t be able to see the object: your hand covers it. (If you can see it through both, the hole through which you’re viewing it is way too big.) The eye you can see the object through is your dominant eye.
- Or, with both eyes open and without paying too much attention, point at a distant object. (Don’t look at your finger or you’ll screw things up and have to start over.) Hold your arm steady and close one eye at a time. One finger will be pointing (more or less) right at the thing. The other is pretty far off. The one that’s accurate is your dominant eye.
Of course, I’m left wondering a few things:
- Can you accurately use your non-dominant eye? With one eye closed, if you can align the sights of a gun with your target, isn’t it still going to be accurate? I’m trying to ‘test’ this, but doing it with a flashlight isn’t accurate enough, and I don’t have a laser pointer. Further, I feel like a total goofball sitting here squinting with one eye and shining a flashlight at the electrical socket on the other side of the room. To align the flashlight and flashlight, I do shift the flashlight a little, but in both cases, it’s being pointed in the same place; it’s just a question of the angle.
- Can you change your dominant eye through practice or the like?
- What are the implications in daily life of having your dominant eye be your weaker eye? Uncorrected, I’m something like 20/300 in that eye. Would my perception of scenes be better if my dominant eye was the one with better vision?
- The Wikipedia page makes a cursory mention of the two eyes and how they’re processed by the two brain hemispheres. Does this related to being right-brained or left-brained? Is this like the spinning girl and seeing whether she spins right or left?
Although the citizen’s police academy here formally wrapped up a couple weeks ago, they’d set up an appointment at the local police department’s gun range for us. After about 2 hours of reviewing the functioning of a gun, gun safety, and such, they brought us into the range.
Their standard department weapon is the Glock 23, a .40-caliber handgun. A few comments:
- They’re very strict about gun safety. (As they should be.) As they talked to us in their classroom, he began with a safety note: all the officers in their room had locked their guns up. The “guns” he used in class were non-functioning demonstration units. He had real ammunition, but, because they would later bring a .40-caliber pistol into the room, had only a single, orange, rubber bullet in the .40-caliber size. The “Range Master” came in later with his unloaded weapon, being very careful to demonstrate that it was unloaded. As he demonstrated proper technique holding the weapon, he was insanely cafeful to never point the weapon, which he had all just witnessed was unloaded, at anyone. When we finally got into the range, they stood right beside us in the booth.
- He had us determine our “dominant eye.” I’m right-handed. My right eye has decent vision (maybe 20/40 uncorrected, but 20/15 with contacts), but my left eye is comically bad, 20/300 uncorrected. As he joked, I’m “one of those weirdos” whose dominant eye is different from their handedness (that’s an actual word?!). The way he had us determine it was interesting: hold your arms out and make a hole about the size of a golf ball, and focus on some distant object. And then slowly pull your arms back to you, maintaining the gap you’re looking through. Eventually, your hands end up in front of one of your eyes. That’s your dominant eye. An added wrinkle to the fact that I can’t see out that eye all that well is that, being right-handed, the instinct is to hold the gun towards the right side of your body, and you end up pulling your head over to your right. Of course this must look ridiculous, and the proper thing to do is bring the gun more to your left, keeping your head steady. But as he pointed out, it’s not intuitive.
- He said it’s “optically impossible” to keep the rear sight, front sight, and the target all in focus. Thus, even if it weren’t for my poor vision in my left eye, I’d still have ended up doing what I was doing: focusing on the target as I bring the gun up, and then focusing on the gun’s sights, firing at a blob in the distance.
- Recoil! It’s pretty common knowledge that the gun will recoil and ‘kick back.’ But until you’ve tried it, it doesn’t do it in the way you imagine. He joked about the stereotypical fear of the gun flying back and hitting you in the face. In actuality, the gun goes more upward; in my case, a little to the left. He mentioned that, with most people who’ve never shot before, their first round will hit dead-center, but then we start trying to “compensate” for the recoil which screws us up. And that’s exactly what I did. I took time to aim each of my five shots perfectly, so my shots are pretty much in a perfect vertical line. Just seeing someone shooting, it’s tempting to think, “What idiots! If you hold the gun a little more steady, you can hold it steady when you fire.” You can’t. You hold the gun nice and firm, and, as soon as you pull the trigger, you’re holding the gun in a totally different place. You see people firing one-handed in movies; I think the gun would fly off your hand if you tried that. In addition to being impossible to prevent the gun from recoiling, he pointed out that it’s actually bad to try to control it: you end up pushing the gun down right before you fire, which throws your accuracy off.
- I think shell casings are something that’s viewed like recoil: people know that shell cases get ejected out the side, but don’t give them too much thought. I was firing to the right of someone else. My biggest fear wasn’t that I was holding a loaded firearm with no experience, that I was going to shoot myself in the foot, or that I was going to get my finger sliced as the gun’s slide moved. No, my biggest fear was that one of the red-hot shell casings from the guy next to me was going to hit me. They didn’t, but it’s apparently a fairly common occurrence, hence why they’re big on wearing eye protection. One of the officers we were with was telling us that last time he went to the range, he was wearing a shirt tucked-in but with a loose collar, and ended up getting a shell casing down his shirt, which was apparently not an enjoyable experience. Further, my mental image was that the shell casing would just kind of flop out the side onto the floor. They actually go flying out the side, probably at least six feet.
Anyway, it was kind of fun, but now I see why they spend so much time training: there are so many little things that you need to practice before you’re able to pick a gun up and fire it (with any hopes of hitting your target) in under, say, ten seconds. Which, if you actually need to fire a gun, would probably be the situation.
As an aside, the target was a vaguely human-shaped “blob,” with a very faint “Q” in the middle of it. (They didn’t explain why it had a Q on it.) Part of me wonders if anyone has ever made a T-shirt that just has a very faint “Q” in the center. You’d just have to be careful where you wore it…