Archive for December, 2009

Woods Hole, MIT, Virgin America; it’s a small world

Monday, December 28th, 2009

Yesterday, in return­ing from a week long, Christmas related stint in my home state of Massachusetts, I had a par­tic­u­larly intrigu­ing synchronicity.

I was fly­ing Virgin America, which is an excel­lent air­line but that’s an entire dis­cus­sion of its own right. As a mat­ter of good for­tune, I was fly­ing Main Cabin Select, which pro­vides, amongst other things, the option of check­ing in through the First Class line. The reg­u­lar line was pro­ceed­ing rather quickly and a young lady behind me in line made a com­ment to the effect of it seem­ing a mis­take to be in the First Class line. My moti­va­tions being as they are, I took a few moments to chat with this nice young lady but didn’t make it far before it was my turn to go for­ward and check my baggage.

Conversations cut short are unfor­tu­nate but such things hap­pen. I pro­ceeded through secu­rity, got to the gate, waited a while and boarded the plane where who should end up in the seat next to me but the very same young woman who had been behind me in line. This was a pleas­ant coin­ci­dence but not ter­ri­bly sur­pris­ing inso­far as there are not very many Main Cabin Select seats on any given plane. Shortly after tak­ing her seat, this young woman says to me, “nice ring” and, as I glance over, it turns out that she’s an MIT grad­u­ate as well; there’s a pleas­ant extra level to this coin­ci­dence and a good source for con­ver­sa­tion topics.

As we’re chat­ting about var­i­ous things, this young woman (who I am going to refer to as Margaret because it’s eas­ier than con­tin­u­ing to use qual­i­fied generic nouns), men­tions that she was on the crew team and I men­tioned that I had been on the sail­ing team. Somehow, in dis­cussing sail­ing, I men­tioned spend­ing sum­mers on Cape Cod, which raised the ques­tion of where. My answer, of course, is Woods Hole and, lo and behold, Margaret’s fam­ily also has a place in Woods Hole. I should note that Woods Hole is a very small town and it’s quite rare that I encounter some­one in Woods Hole that I have not met before, espe­cially some­one within 5 years of my own age. As a result, rather unsur­pris­ingly, it turns out that Margaret and I have at least a dozen mutual acquain­tances and friends.

Overall, it was a fan­tas­ti­cally sur­pris­ing coin­ci­dence; so much so that it makes me wish that Mr. Data were on hand to tell me what the odds of the coin­ci­dence were. Certainly there exist cer­tain biases to cor­rect for, which make it such that the coin­ci­dence isn’t purely ran­dom but I am not ter­ri­bly inclined to enu­mer­ate all of the non-random fac­tors that may have con­tributed. Why such a coin­ci­dence hap­pened, I can’t say, but it did, and that’s great. The end result is that I’ve nar­rowed the gap of peo­ple that I don’t know in Woods Hole and made a con­nec­tion with a pleas­ant new per­son in this world.

Avatar: The last film I will see in 3D

Tuesday, December 22nd, 2009

I saw Avatar last night in RealD 3D and, I have to say, it is a very pretty, rather fun, awe­some to watch movie. The 3D for Avatar was incred­i­bly well done but it gave me such a bad headache and nau­sea that it almost wasn’t worth it. Luckily, I was able to imme­di­ately go home and go to sleep, thus not deal­ing with the dis­com­fort much. Needless to say, I think that I’m going to stick to 2D movies for the fore­see­able future.

Diatribe about 3D aside, Avatar is a pretty great movie. Sure it’s Dances with Wolves in space but Dances with Wolves was a good movie so why not put it in space. Actually, more than that, to me Avatar was Dances with Wolves meets Dinotopia in space. The color palettes of Avatar were vibrant and pretty in much the way that the palettes of Dinotopia were; fur­ther­more, the crea­tures and world were suf­fi­ciently real­ized to make it seem like a place that one might really want to go. In fact, I think Avatar has pro­vided me with the first arti­fi­cial set­ting that I have had a strong desire to visit since Dinotopia.

So, hav­ing dis­cussed the pain (lit­er­ally) of the 3D, the ade­quacy of the story (ade­quate being the right word), and the beauty of the world, let’s talk about the spe­cial effects. For quite a while, I have been adamantly opposed to the use and overuse of CGI in the film indus­try. Certainly, some stu­dios do CGI cor­rectly (Pixar, DreamWorks) but when mixed with live action, I tend to think that the Jurassic Park or Aliens approach of rely­ing pri­mar­ily on live action, pup­pets and robots is a much safer and more visu­ally appeal­ing approach. The clear­est exam­ple of where real is good and CGI is bad is to look at the orig­i­nal Star Wars tril­ogy in com­par­i­son to the new Star Wars tril­ogy. Somehow, thank­fully, James Cameron has not fallen in the same way that George Lucas has; Avatar beau­ti­fully mixes the real with the CGI and I did not once feel as though things had fallen into the uncanny val­ley.

Hopefully Avatar will end up prof­itable in spite of its truly ludi­crous bud­get (offi­cially $237M + $150M mar­ket­ing) and James Cameron will be allowed to keep mak­ing crazy as heck sci­ence fic­tion stuff (it was at >$232M after its open­ing week­end so odds are pretty good). The out­stand­ing ques­tion now is whether he’s going to make a sequel to Avatar or whether he’s going to make Battle Angel Alita like he’s been talk­ing about for a while.

So yeah, over­all, I am inclined to rec­om­mend the Dances with Wolves meets Dinotopia in space movie, oth­er­wise known as Avatar but I do not rec­om­mend it in 3D unless you’ve got some dra­mamine to take before­hand. Actually, that’s an idea; maybe I’ll pop a cou­ple dra­mamine and try see­ing it again, you know, for science.

Unsticking Stuck LCD Pixels: A Script

Tuesday, December 8th, 2009

As I just recently sug­gested I might do, I have made a script for auto­mat­i­cally gen­er­at­ing color cycling ani­ma­tions of arbi­trary sizes and speeds.

The script can be used at: http://blog.gwax.com/files/rgbanim.php

The script accepts the para­me­ters height, width, and delay, so it can also be used in more inter­est­ing ways. Feel free to play around (if you crash it, let me know).

Ex.: http://blog.gwax.com/files/rgbanim.php?width=100&height=100&delay=7

Or, bet­ter still:

- Width - Height - Delay

For the curi­ous amongst you, the rel­a­tively sim­ple code follows:

< ?php
if(isset($_GET['delay']) && is_numeric($_GET['delay']))
	$delay = max((int)$_GET['delay'], 1);
else
	$delay = 10;
 
if(isset($_GET['width']) && is_numeric($_GET['width']))
	$width = max(min((int)$_GET['width'], 1920), 1);
else
	$width = 320;
 
if(isset($_GET['height']) && is_numeric($_GET['height']))
	$height = max(min((int)$_GET['height'], 1080), 1);
else
	$height = 240;
 
$out = new Imagick();
$out->newImage($width, $height, '#FF0000', 'gif');
$out->setImageDelay($delay);
$out->newImage($width, $height, '#00FF00', 'gif');
$out->setImageDelay($delay);
$out->newImage($width, $height, '#0000FF', 'gif');
$out->setImageDelay($delay);
 
header('Content-type: image/gif');
echo $out->getImagesBlob();
?>

Unsticking Stuck LCD Pixels (Redux)

Friday, December 4th, 2009

My pre­vi­ous arti­cle on Unsticking Stuck LCD Pixels hav­ing been rather a hit and hav­ing been asked for an alter­nate gif image, I fig­ured I should revisit the topic briefly.

The ani­mated gif images were cre­ated with ImageMagick. Having long since for­got­ten how I did it last time, I reac­quainted myself with ImageMagick and have devel­oped this lit­tle one liner:

convert -delay 20 -loop 0 -size 100x100 xc:#FF0000 xc:#00FF00 xc:#0000FF rgbanim.gif

This com­mand will gen­er­ate an ani­mated gif to use in attempt­ing to fix stuck pix­els. Key para­me­ters are:

Image size can be changed by chang­ing the size para­me­ter.
ex.: -size 640x480

Cycling speed can be var­ied by chang­ing the delay para­me­ter.
ex.: -delay 7

So, if my orig­i­nal images don’t serve your pur­poses, go grab a copy of ImageMagick and make one of your own. (If I feel ambi­tious, I might hack together a script to auto-generate these gif images)

UPDATE: Apparently, I was suf­fi­ciently ambi­tious.