DMGreer LLC Rotating Header Image

The Moose (’02 WRX) Gets A New Oxygen Sensor

I went to get my WRX inspected, but my Check Engine light was on, so Kwik Kar charged me $89 to find out that it was Upstream Oxygen Sensor. They said it would cost $450 to replace, so I bought one online for $150 and replaced it myself. Of course, this was at the end of the month, so for a few days I was an outlaw on the streets. It took me about 45 minutes to do, and I saved $300, so that’s $400/hour.

In the process, I made a photo tutorial with my new fz28. I’m so used to film, it’s amazing how easy digital cameras make things like this. With an 8 gig card, you can take as many pictures as you want. You can take photos inside of nooks and crannies you can’t even get your head into. Probably sounds funny to people who have only ever known digital.

Created a Legalization Wiki at http://legalizationwiki.org

I made a wiki for legalization at http://legalizationwiki.org. Even though Obama has stated he’s not in favor of it, the buzz on legalization has been growing out of control since his election. In March, California Assemblyman Tom Ammiano introduced a bill proposing the legalization of marijuana in his state. Since that introduction, legislators and newspapers in a number of other states have begun to call for legalization.

Though well intentioned, even the Ammiano bill is fraught with language influenced by Drug War hysteria. My intention in creating the legalization wiki is to try and head off bad legislation at the pass, so to speak, and to provide a resource for those involved in creating or critiquing legislation on legalization that will appear in the near future.

Since I first wrote this draft and forgot to post it, the legalizationwiki has gotten more filled out. A bill has been presented to the Massachusetts legislature, Senate Bill 1801 and House Bill 2929, written by Attorney Richard Evans. Massachusetts has an Initiative and Referendum process through which citizens can present their own legislation. It’s a well written bill, with only a couple of exceptions. I took that and made a model bill out of it. I hope citizens in one or more of the other states with Initiative will bring a bill like this before their legislature. In Texas we don’t have that yet, but we have a movement dedicated to bringing it.

WTC Pancaking and Conservation of Momentum: Establishing a Freefall Baseline

I was arguing with someone about this idea that the World Trade Center towers fell at freefall speed. I pointed out that if you look at this clip of WTC2, it’s pretty easy to count the seconds. It begins collapsing around second 10, and you can see the blowback from the top section hitting the ground at around 28 seconds, so about 18 seconds to fall. Since the bottom of the top section is around 300 meters off the ground, freefall time would be sqrt(2.0*300/9.8), or about 7.8 seconds.

So then he says he’s got this Matlab model that applies conservation of momentum to the pancaking and gets a freefall time of 15 seconds, indicating that there’s hardly any resistance to the collapse, and isn’t that fishy.

In response, I made my own conservation of momentum model of pancaking. Okay, what’s that?

WTC2 was hit at around the 78th floor and above. When it began to collapse, it was that 32 floor top section that started falling first. It hit the 77th floor and gained the mass from that, then it hit the 76th floor and gained the mass from that, and so on and so forth. Each time it gained mass, it had to slow down a little because momentum is always conserved. In solving problems like these, it’s good to start with a simple model first.

The top section fell 3.77 meters, the distance between floors, and gained sqrt(2.0*9.8*3.77) or 8.6 meters per second of speed. In this simple model, it then collided inelastically with the 77th floor, and lost 8.6*(32/33) or 0.26 m/s, and then started accelerating again. Each time it hit a floor, it lost a fraction of its velocity, but then gained more back as it fell. The fraction at the next floor would be 33/34, next would be 34/35, and so on until the last fraction would be 108/109.

Over the entire collapse, this freefall pancaking conservation would add 1.76 seconds to the time of collapse, for a total collapse time of 9.56 seconds, yet the actual fall took 18 seconds. Clearly this is much slower than freefall, there is some resistance mechanism, but the nature of that mechanism is beyond the scope of this article. Note that the actual fall time is about twice the freefall pancaking model time.

A similar analysis of WTC1, yields similar results. You can see from this clip of WTC1 collapsing that it takes about 23 seconds to fall. It was hit at a higher floor, the freefall pancaking model takes about 11.5 seconds. Again, actual fall time is about twice the model fall time.

Here’s the little program I used to do the calculations.

<?php
$height = 415.0; // Height of WTC2 in meters
$n = 110.0; // Number of floors
$s = $height/$n; // Distance between floors
$a = 9.8; // Acceleration of gravity in meters per second per second
$h = 78; // Floor hit by plane
$floors = 110-$h; // Floors to fall
// Velocity of the falling mass after one floor
$vm = sqrt(2.0*$a*$s);
// Time for first floor to floor drop
$dt = sqrt(2.0*$s/$a);
// Total time
$t = 0;
// Initial distance fallen
$x = $s;
echo "<table>";
for($i = 0; $i <= $h; $i++)
{
// Add the time to fall to the total time
$t += $dt;
echo "<tr>";
echo "<td><pre>$floors</pre></td>";
echo "<td><pre>$vm</pre></td>";
echo "<td><pre>$dt</pre></td>";
echo "<td><pre>$t</pre></td>";
echo "<td><pre>$x</pre></td>";
echo "</tr>";
// Velocity after colliding with the next floor down
$vc = $vm*($floors/($floors + 1));
// New velocity of falling mass before next collision
$vm = sqrt($vc*$vc + 2.0*$a*$s);
// Time to drop one floor
$dt = 2.0*$s/($vc+$vm);
// Calculate the distance fallen to double check the model
$x += $vc*$dt + ($a*$dt*$dt)/2.0;
// Accumulate mass
$floors ++;
}
echo "</table>";
?>

Open Letter to Barack Obama Concerning His Remarks of March 25, 2009

Here’s a letter I sent to Obama today.

Mr. President:

You lost a lot of support today with your offhanded dismissal of the online community which brought you to power. I am one of those, a 52 year old software developer helping my daughter work her way through college. I even made a website to support your candidacy, obamaredneck.com, so you can imagine how abused and disappointed I feel right now.

With your first hand experience of marijuana, how can you justify its Schedule I status? How can you justify spending billions each year to harass and imprison marijuana producers, distributors, and users? How can you justify preventing sick people from getting marijuana and locking up their suppliers?

And with your emphasis on ethanol, how can you ignore the immense utility of hemp, which is four times as efficient at producing ethanol than corn? Hemp is also four times as efficient at producing paper than trees.

Mr. President, my calculations show that legalization of cannabis would create at least 100,000 jobs in the US directly in the industries of marijuana and hemp production. That seems a drop in the bucket when we’re losing over 500,000 jobs a month, but it’s not nothing.

Legalization of cannabis would not be a panacea that would solve all our problems but studies have shown that it would save the Federal government and the States $50 billion a year, and could bring in taxes of another $10 billion a year or so. This is also not a huge amount, but again it’s not nothing. It’s around four times the budget for NASA.

Mr. President, it’s not so much that you are not supportive of legalization, we all knew that going in, but we all believed that you were a listener. We believed that you wanted our input, and that when you asked for our advice, you would listen. And that is why we voted for you, and voted in huge numbers for you.

And so it’s your dismissal of us that hurts the most. “I don’t know what that says about the online community”? Really, Mr. President, it’s going to be a long four years if that’s going to be your attitude about those who played such a big part in getting you where you are today.

Sincerely,

Obama Redneck

Added a Couple of New Photo Galleries

I went on a field trip to Comanche Peak Nuclear Power Plant with my daughter’s physics class, and then I went hiking around White Rock Lake in Dallas.

It’s kind of a pain, because I’ve uploaded these to Facebook, Flickr, and now here. I like this gallery software the best, it’s called NextGen for WordPress. I may reupload them in a larger size, because this gallery handles that well.

Added NextGen Photo Gallery

I added NextGen Photo Gallery. It looks alright, now I need to scan in a bunch of film, as well as start taking more photos with my fz28.

Panasonic FZ28 Images of Noise - Part 2

I was looking at the last post I did on this subject and thinking “What the heck? Why did I post the inverted images?” But there’s a good reason for that, the eye sees slight variations of white a lot more keenly than slight variations of black. Still, I thought it best to show the noise non-inverted, but this time instead of adjusting brightness and contrast, I went straight to Levels and clipped everything above a value of 7 on a scale from 0 to 255. The “black” images have some values up to 16, but they are very few and there’s a clear cutoff at 7, so it seems like a good place to clip.

FZ28 noise, clipped to peak of 7, reduced to to 12.5%

FZ28 noise, clipped to peak of 7, reduced to 12.5%

FZ28 noise, clipped to peak of 7, cropped to 12.5%

FZ28 noise, clipped to peak of 7, cropped to 12.5%

And then I did the gif movies too. I was surprised at the blotchiness of the noise. It isn’t just random bits over the whole sensor, it’s random bits and random ranges, big blotches of dozens of pixels with near the same value.

Aaaagghh! Looking at the cropped gif, if I stare long enough it looks like the noise is rotating counter clockwise, but then I can make it reverse rotation, or make it go up or down or sideways. Weird.

FZ28 noise, clipped to peak of 7, reduced to 12.5%

FZ28 noise, clipped to peak of 7, reduced to 12.5%

FZ28 noise, clipped to peak of 7, cropped to 12.5%

FZ28 noise, clipped to peak of 7, cropped to 12.5%

You can see in all of these the blue and purple cast to the noise. That’s because green has the least noise and blue the most. Most of the noise has a value of 1, 2, or 3. In the red it’s mostly 1 and 2; in the green it’s mostly 1, but actually green was mostly 0 which is not noise; in the blue there’s hardly any black, there are a lot of values at 2, 3, 4, and 5. I’ll show the channels separated in my next post.

Panasonic Lumix FZ28 Images of Noise

I got my first digital camera recently, haven’t had much time to take photos worth displaying because I’ve been learning how to use it. I took a photo on the way to pick up my daughter at the airport.

I thought it turned out alright, quality-wise, for such low light. It was a 1 second exposure at ISO 100 in Night Portrait->Illuminations mode, so yeah, there’s some blurring from camera shake but not as much as I expected for such a long exposure with one hand.

Testing FZ28 exposure compensation

Testing FZ28 exposure compensation

Then I took this photo of some objects laying around the house, just playing around. I had read that one of the things that makes film superior to digital is the the exposure “shoulders” film has when it’s overexposed. Digital just flatlines over a certain exposure, goes straight to pure white, but film always has just a little bit left over, and it’s in the film so even when you scan the film to digital it’s better than straight digital in that regard.

The FZ28 has a setting where you can make overexposed areas flash black and white. The specular highlights in this one were flashing so, I did some exposure compensation. This one is at -2 ev, but then I adjusted curves in Photoshop to bring it back up. Another advantage of underexposure in this case is that the camera increased the shutter speed, so there was less blurring in this image than in the recommended exposure. A long focal length for this one, 300 mm equivalent, made camera shake more of a problem here.

But then as I was messing around with the gamma, I noticed if you set the gamma very high, you begin to see some noise blotches, great big blotchy areas like the thing got rained on. So I decided to take a closer look at the noise.

In the FZ28’s Picture Adjust section, I set the Noise Reduction to -2. I set mode to manual, then set the aperture to f8 and the shutter speed to 1/2000 second, turned the lights out outside the bathroom, turned the lights out inside the bathroom and shut the door, and then covered the camera in a black cloth and shot 12 exposures.

Inverting the resulting “black” exposure produced these two shots. The first is the full frame reduced to 12.5%, and the second is the center of the frame, cropped to 12.5%, which you can barely see.

Inverted "Black" Reduced to 12.5%

FZ-28 black exposure, inverted, reduced

Inverted "Black" cropped to 12.5%

FZ-28 black exposure, inverted, cropped

These next two images are the same as the above, but with brightness set to -4 and contrast set to +96. As before, the first is the full frame reduced, and the second is full resolution cropped.

Contrast and brightness adjusted

Contrast and brightness adjusted

Cropped, Brightness -4, Contrast +96

Cropped, Brightness -4, Contrast +96

Finally, I made a couple of short gif movies of the 12 frames, both reduced and cropped. I like being able to see the noise in this way, you can see exactly what kind of noise is going to go into every single frame you shoot.

GIF movie of fz28 noise, reduced size

GIF movie of fz28 noise, reduced size

GIF movie of fz28 noise, cropped size

GIF movie of fz28 noise, cropped size

The sensor on the fz28 is pretty small, it’s 1/2.33 in digital camera jargon, which works out to about 30 square millimeters, compared to 243 mm^2 for the 4/3 format and 864 mm^2 for 35 mm film. So some people have been complaining about the noise, while others have been extolling the superior noise reduction software of the fz28.

I’d sure like to see this kind of analysis done for other cameras, though. I’ll try to do some more with the fz28 at different noise reduction settings.

Panasonic FZ28 Images of Noise - Part 2

Photography Forbidden In The Homeland, “Journalists” Don’t Care

It’s insane, there was a little 10 second report on the local NBC affiliate here in Dallas about a protest against the bombing in Gaza. At the end of it they showed footage of the one guy who was arrested saying “One man was arrested after repeatedly being told not to take photos.”

But of course the clip is not on their website, nor can any mention of this arrest be found online, even though the story is there. That kind of thing should be front page news, and especially people reporting the news should be outraged. I’ve written a letter to NBC5 in Dallas to see if I can get some more information on this.

Lightning and Thunder of Childhood

When I was little, when there was lightning and thunder my dad told me the old Norse myth that it’s all about Odin and Thor and their buddies bowling with huge boulders in the heavens. Now whenever there’s lightning and thunder, I can still take myself back to that childhood state, when I could honestly believe without believing, and when I could see those gods and their boulders so vividly in my mind.

Childhood is a special time that doesn’t need to always be filled with cold reality and harsh logic. We can acquire that outlook later, but we only have a short window of opportunity for giving our children such treasures that will last them their whole life.