Wolfram|Alpha: Systematic knowledge, immediately computable.

Sunday, January 9, 2011

159 Degrees of Separation: One of the greatest escapes in history.

I'm a huge fan of Paul Nahin. A true polymath, his areas of expertise range far and wide. Paul has written a series of books targeted at the lay reader (perhaps better said as advanced lay reader) on a wide range of subjects, from electronics (The Science of Radio), probability (Duelling Idiots and Other Probability Puzzles), to general mathematics and physics (several).

I have them all, and enjoy them immensely. One of my favorites is Chases and Escapes: The Mathematics of Pursuit and Evasion, a fantastic overview of the history and mathematics of modern pursuit theory. Pursuit theory in this context includes the analysis of optimal strategies for both pursuing (catching) a target, and evasion (losing or avoiding the chaser) by the target.

I thought of Paul recently when I caught the excellent BBC documentary Hiroshima, part of the BBC History of World War II series. If you have any interest in the history changing atomic bombing of Japan, I can highly recommend this documentary / docudrama. The film intersperses interviews with members of the allied forces, and those of survivors from Hiroshima, with superb reenactments and CGI of the events leading to, and including, the bombing.

In the documentary, it is mentioned that after the release of the bomb, the pilot of the B-29 Enola Gay, Colonel Paul Tibbets, made a "159 degree diving turn" to maximize the distance from the bomber to the detonation point of the Little Boy Uranium gun-type bomb. It had been determined that the plane could be damaged and possibly crippled if the distance was less that eight miles. As it turns out, Tibbets put 10.5 miles between the detonation and the plane (according to science officers analyzing data after the bombing.)

Why 159 degrees?

Tibbets had said to Oppenheimer (the father, in essence, of Little Boy and the subsequent Fat Man Plutonium implosion bomb): "I told him that when we had dropped bombs in Europe and North Africa, we'd flown straight ahead after dropping them - which is also the trajectory of the bomb. But what should we do this time?"

According to Tibbets, Oppenheimer replied "You can't fly straight ahead because you'd be right over the top when it blows up and nobody would ever know you were there."

Tibbets continues "He said I had to turn tangent to the expanding shock wave. I said, 'Well, I've had some trigonometry, some physics. What is tangency in this case?' He said it was 159 degrees in either direction. 'Turn 159 degrees as fast as you can and you'll be able to put yourself the greatest distance from where the bomb exploded.'"

I'm quite sure that something got lost in the translation here, either by the interviewer, or in Tibbets' memory of what was said (I'm quite sure Oppenheimer would not have said such a thing!): As we'll see, the statement "I had to turn tangent to the expanding shock wave" doesn't make much sense, and I'm sure what was meant is more along the lines of "Turn until the line from the detonation to the plane is tangent to the turning radius..."

We can do a simplified version of the problem with simple trigonometry. We want to maximize our speed and distance away from the detonation point, within the reasonable limits of the aircraft (i.e., no Split-S maneuvers, though I think the plane could tolerate one, and it might have been even more effective at getting maximal distance.)

Viewed from above the bomb run, we can diagram the problem as below (most certainly not to scale):


D represents the distance from the release of the bomb to the detonation point.

R represents the turning radius of the B-29 Superfortress (I am not aware of any actual data on Tibbets' aircraft: having been lightened by removal of non-essential components, I would venture a slightly smaller number than a standard B-29.)

Plugging in some rough numbers garnered from various sources, we find R/D ≅ 0.19

Since the tangent of angle a is defined as that value, we find that a = Tan-1(0.19), or a = 10.8 degrees.

a is half of angle b, making b = 21.6 degrees.

We know from basic trigonometry that angle c is 180 - b, or 158.4 degrees. Close enough for government work!

Hence, a turn of this angle will point the Enola Gay directly away from the detonation point, maximizing the distance over time from  that moment of flight.

In reality, the problem is a bit more complex, since it really is a problem in three dimensions (the drop height, actual detonation height of ~ 1900 feet, the time from drop to detonation, and the speed of the aircraft and the effects of the dive and turn must all be taken into account.)

In a personal communication, I asked Paul Nahin if he was aware of any such analysis. His reply was negative. Perhaps in the next printing of the book...

Rob

Monday, December 27, 2010

COD:Black Ops - One of the best war movies I've seen recently...

Now past the billion dollar sales point, Call of Duty: Black Ops, the seventh game of the series, and the third by developer Treyarch, has been a huge success, At least sales wise. But what to make of the game itself?


I preordered the game, based on my enjoyment of several of the past games in the series. Not something I do often - too many recent games have turned out to be turds in a punchbowl, so I now wait until I've heard from my 'buy everything' gaming pals, or get some hands-on time with a new game before shelling out my shekels.

I figured the online MP experience would be plagued with issues on release (it was), and did not even bother to install the game or play it on release day. I ended up so busy playing other games, I'd not gotten around to it until recently.

One of my constant gaming buddies got the game as a gift, and I watched a bit of his game play in single player. It sparked my interest, so here's my nutshell review.

First, a note on my biases: I am mostly interested in single player these days. I retired from competitive gaming, and pubbing is filled with far too many cheats / hacks / noodle-heads to have much fun. I limit my online play to games where my close gaming cohorts are the only other players. They're all good enough that cheating is out of the question for them.

I fired up the single-player campaign, to be met with the typical, long (looooooonnnggg) 'intro' video that the player is forced to watch before getting into the action. Ugh.

And therein lies the crux of my complaint with this game. Far too much of the game is cut-scenes, most where the player is unable to skip viewing. F.E.A.R. got this right: you had to watch such scenes on first play, but after that, you could elect to skip them. Added to this, some of the scenes are ridiculously long. Seriously. One of them is so long, I'm quite certain I could cook myself a nice breakfast, and eat it, before the scene is over.

A few of the scenes can be skipped (too few, in my opinion) but sometimes it's with a mouse click, sometimes with a space bar hit. What? Did anyone Q/A this thing?

To add insult to injury, at the conclusion of one cut-scene (one of those, like in a lame movie, where they run out of time / budget, so they end with the "it was really a dream in the mind of the dog owned by the sister of the neighbor that lived behind the house where the ghost of the axe murderer was seen by the uncle of the bank president that loaned the money to the owner of the pet shop the dog came from in return for sex with what turned out to be his long-lost sister"...you get the idea), you as the player have to endure a long sequence of slow-motion navigating of a government building, interspersed with more cut-scene flashbacks, where your only action is to move your avatar through what feels like air made of clear gelatin. Slow, slow, slow, and boring as hell.

If that kind of 'play' is not irritating enough, there are plenty of cut-scenes that are long enough to put you to sleep, only to find that the instant the cut-scene ends, you were supposed to press some key, or click some mouse button, to rescue your avatar from certain death.

Even when you are actually playing, there are far too many places where you must follow an NPC, and you are strictly limited to a narrow corridor of play, with no way to 'pass' the NPC, as if they had a ten foot wide Plexiglas sheet strapped to their back. More of an 'interactive' cut-scene than real game play.

That aside, the campaigns are challenging enough, particularly on the highest difficulty levels. But there's nothing really fresh here.

If you've played past recent releases of the series, you've played this game already: shoot a bunch of baddies, blow up this and that, get this or that important thingy, cut some wires, slap some fools around in the name if interrogation, etc. Same game, different scenery.

That graphics are fine, actually quite good: humans look and act pretty human, the AI of the NPC (friendly and enemy) seldom does anything really stupid, though you certainly won't be fooled into thinking there's anything human about them. Avatar movement is also pretty well done.

A nice assortment of weapons is available, so you mostly get to choose how to accomplish your slaughter to your liking.

The full single player game is rather short (I'd guess 4-6 hours for a player familiar with the series), and leads you to the best part of the game, in my opinion: a very well done, very funny scene with banter between several luminaries from the times of the game, resulting in battle with Nazi zombies. The Zombie mode of the game provides a challenging and fun game, sure to please fans of games like the past COD Zombie modes or Left 4 Dead.

Overall, the game feels, to me, like one where an epic, detailed game was planned, that might have provided 20+ hours of single-player involvement, but someone said "No way!", and too many key elements were turned into arduous cut-scenes.

The game, apart from that, feels lovingly made. But, I wouldn't eat a lovingly made shit pie, nor would I recommend it to my friends. Fans of the series will find it a must play, just as fans of Star Wars will buy every DVD in the series despite some of the films being turkeys.

Really, if the developer / publisher continue on this route, why not just make the next game in the series a theatrical release, where moviegoers get a fake game controller, and can pretend they're 'playing' the new COD?

B- on a good day, C+ on days when I'm grumpy.

Rob

Monday, December 20, 2010

The Father of Modern Gaming: An excellent profile of Shigeru Miyamoto in The New Yorker.

If you're a gamer, you owe it to yourself to acquire a copy of the December 20 & 27 2010 issue of the magazine The New Yorker.

An excellent, lengthy article on Shigeru Miyamoto, arguably the father of modern gaming and gaming consoles will be found starting on page 86. A delightful read, even if you are not a console gamer.

If you are unable to peruse a physical copy, the complete article is available at the time of this blog entry's writing at The New Yorker Online.

Rob

Sushi For Your Gaming: Hamachi VPN for LAN multiplayer over the internet.

I've recently been playing some older games (Rainbow Six series) in co-op multi-player mode with some gaming buddies. An issue often faced when playing online, particularly with older games, is the availability of the various servers (log-in / authentication / etc.) from the publisher to enable this mode of play.

Sometimes, the servers are unavailable for maintenance or other reasons, sometimes they've been completely shut down when the game is at "end of life" by the publisher. What's a gamer to do that still enjoys playing with geographically dispersed friends for games that fall into these holes?

So long as the game incorporates a LAN multi-player aspect, this can be easily accomplished with the most excellent Hamachi VPN from LogMeIn.

In a nutshell, Hamachi provides a painless, zero-configuration (95% success) Virtual Private Network facility ideally suited to online gaming (unlike a typical VPN, Hamachi will pass broadcast and multi-cast traffic, vital for proper functioning of most LAN games.)

Non-commercial use is free, setup is quick and painless. The service provides a web-based interface to create networks, manage clients, and deploy customized client installers. The latter facility enables players with no technical expertise to easily become a member of your private gaming network without any Hamachi configuration - just a simple installation is required.

Mesh (all members can 'see' all other members), Hub-and-Spoke (Members are connected to hubs, hubs 'see' all members, members see only the hubs), and Gateway (members 'see' the entire physical network, and share its address space) networks are supported, Mesh being the most appropriate for most WAN based LAN gaming.

A really fantastic free service with very respectable performance and reliability, and security (encryption of data flow) when desired.

Its use is of course not limited to gaming: it makes a fine VPN for accessing your LAN while out on the road for general use.

A few caveats for gamers (these apply to the 'host' or originator of the network, and the clients / members):
  • Most games will use the 'first' LAN network adapter found on the machine for traffic. You must ensure that the Hamachi 'adapter' (actually a virtual adapter installed by Hamachi that is treated by the operating system as a real, physical adapter) is 'first' in the list. Failure to do so may result in an inability to connect the participating PCs together in the game (clients may not 'see' the server / host, etc.) You can adjust this by going to the advanced settings in your network connections control panel window (see image below), and using the arrows next to the connections window on the adapters and bindings tab. Move Hamachi to the top. You might need to reboot your machine for the changes to take effect.
  • Recent versions of Windows (7, and probably Vista though I've not verified this) have changed the behavior of broadcast traffic routing. This one had me head-scratching for a bit! Before, such traffic would be sent on the adapter used for the connection. In recent Windows, this order is ignored, and the adapter with the lowest interface metric will be used, regardless of its order in the adapters connections list. The result is symptoms similar to the adapter itself not being seen as 'first': clients will likely not see the server / host, or not be able to connect successfully. To remedy this, right-click on the Hamachi adapter in your network connections control panel window, select properties, double-click on the Internet Protocol Version 4 item, and click on the advanced button in the lower right of the dialog. Set the Interface Metric to 1 and reboot your machine (you can also try just disabling and re-enabling the Hamachi adapter in lieu of rebooting.) The default metric used by Hamachi of 9000 causes broadcast traffic to route over your 'real' NIC, causing connection issues for the games. Network internals savvy users may recognize there are other means to accomplish this end. Feel free to experiment - you won't permanently break anything.
Give it a look and a try. As long as a game supports LAN multi-player, you will always be able to enjoy it with friends in the cloud using this nifty tool.

Rob

One of the funniest persons I've read.


http://hyperboleandahalf.blogspot.com/

I laugh hard every time I visit.

Rob