Skip to content

Almost useful

Engineer-in-Training Reference Manual cover The Engineer-in-Training Reference Manual is the most almost useful reference on almost everything I have ever seen. I’ve had a copy since I was a sophomore engineering student, and still reffer to it fairly frequently. The professor for my Principles of Engineering class went on about how wonderful this book is and what a great reference it is to keep around for absolutely everything. It usually has something close to what I’m looking for, but not quite close enough to be useful so I end up having to look elsewhere, but it is a good starting point. When it does have helpful information, it is mostly in the mysterious SAE units instead of the normal SI units. Still, it has proved useful in my thesis research (physics/chemistry) on several occasions. I don’t know that I’d buy it if it hadn’t been assigned as a textbook, but it is useful enough that I have kept my copy.

BibTeX ref:

@book{lindeburg1998,
	Edition = {8},
	Editor = {Michael R Lindeburg},
	Publisher = {Professional Publications},
	Title = {Engineer-In-Training Reference Manual},
	Year = {1998}
}

Corporatocracy

It’s official. We live in a Corporatocracy. The recent 5 to 4 Supreme Court ruling in Citizens United v. FEC is a dangerous expansion of `corporate personhood.’ I haven’t seen any convincing evidence supporting the ruling. I see no benefit from (and large problems with) the expansions of the already questionable doctrine of corporate personhood. There is a reason that there have historically been limits placed on the `rights’ of corporations. I highly recommend reading Stevens dissenting opinion for an excellent (and well sourced) history of this concept. Stevens’ opinion is the most convincing argument I have seen on the subject. Basically, any corporate `rights’ are simply a convenience granted by the legislature (on behalf of the people), and are distinct from the inherent rights of citizens. Since corporations are not citizens, corporate `speech’ can be limited to avoid corruption.

Since there are already so many loopholes, this ruling may not make much of a practical difference. But, still, it is a dangerous continuation of `corporate personhood’ toward corporate sovereignty.

Suggested reading:

Playing up the numbers

This week I read a USA Today story (from the first screen of Tuesday’s homepage) that made a couple common mistakes. The newspaper’s mistake is basing a story on a press release from an advocacy group, instead of doing an independant story based on the study itself. As frequently happens, the press release commits a common error that is not in the study itself.

Abortion rates for American teen girls

The story is based on press release from the Guttmacher Institute, an abortion advocacy group, originally a division of the Planned Parenthood Federation of America. I have no reason to doubt the published numbers, but the press release makes the mistake of over-interpreting the data to agree with predetermined conclusions. The annual change in the numbers from 2005 to 2006 isn’t large enough to draw a conclusion, yet the press release attributes the change to policies they oppose. This is what Darrell Huff would call playing up numbers, and the wording could be considered cherry-picking. This is exactly the same kind of mistake I see every slightly cool day during the summer when someone (often in the news) claims that it disproves anthropogenic global warming. While it is possible that the Guttmacher Institute’s conclusion is correct, the evidence is not yet strong enough to make a conclusion. The Guttmacher Institute’s press release presents an explanation for 1995 through 2006, leaving out an explanation of the data from 1986 to 1995. This is a problem because there is a larger unexplained peak in 1988 and the decline begins in 1989, not 1995. At the present time, without presenting stronger evidence, an equally plausible explanation is that the 2005 to 2006 change merely represents the expected annual fluctuations around a steady state, and that the slow in the decline is simply due to approaching the steady state. To make their conclusions will require a longer trend, and to explain the prior changes, not just assume the change is due to policies they oppose. It is important to remember to actually look at data and to know that the world is more complex than advocacy groups pretend.

Change in abortion rates for American teen girls

Update 2010-02-02: A new study published in the Archives of Pediatric and Adolescent Medicine provides evidence that the Guttmacher Institute’s attribution of the changes in the abortion rate is likely incorrect. Unlike the Guttmacher Institute’s conclusion, this is published in a peer-reviewed journal. (Found through a story in the Washington Post.)

GM 512 hybrid

Since they are in the business of selling gasoline-powered automobiles, the manufacturers understandably are reluctant to come out and publicly announce the obvious solution to air-poisoning by the gasoline engine: Get rid of the gasoline engine.

On the other hand, every member of the industry is actively engaged in trying to do just that.

–W.E. Butterworth, Wheels and Pistons

While editing down the number of books I own, I found Wheels and Pistons: The Story of the Automobile, a history written for middle schoolers that my grandmother gave me years ago. It is a 1971 book championing the car and car companies, and how the number of cars on the road and miles driven demonstrates the USA is better than the Soviet Union. The chapter on the future is interesting. It mostly talks about turbine and steam engines, but also mentions electric and hybrid gas-electric cars, showing a couple Ford and GM experimental cars.

GM 512 hybrid

GM 512 hybrid diagram

GM 512 electric

GM 512 electric diagram

From the pictures, you can see that GM was treating electric and hybrid technology as a play technology, for use in toy cars. The examples of turbine engines in the book are installed in production cars. This fits well with my understanding of the history of the automobile, where GM has kept up enough research on modern technology to not fall too far behind, but does so in a way that they never have to actually sell a car that could cut into gasoline car production. The book also shows a similar Ford of England Comuta electric car.

It is worth to noting that Wheels and Pistons was published two years before the first oil embargo, and that GM still does not sell an electric or viable hybrid car. (I’m not counting the EV1 beause they were destroyed at the end of their leases, or their current hybrid options because of sub-par performance.)

This is a good time to put in another recommendation to read Edwin Black’s Internal Combustion, an excellent history of the car.

Sources:

@book{butterworth1971,
	Author = {W. E. Butterworth},
	Publisher = {Four Winds Press},
	Title = {Wheels and Pistons: The Story of the Automobile},
	Year = {1971}
}

@book{black2006,
	Address = {New York},
	Author = {Edwin Black},
	Publisher = {St. Martin's Press},
	Title = {Internal Combustion: How Corporations and Governments
	 Addicted the World to Oil and Derailed the Alternatives},
	Year = {2006}
}

Physics and you

Now that we’ve had the first dusting of snow for the season, it’s time for a friendly reminder of one reason everyone needs to understand some physics.

Static friction is greater than kinetic friction.*

In other words, if you aren’t sliding, it is easy to stay not sliding. Once you start sliding, it is hard to stop.

So stop stomping on the pedals when you drive. You’ll just make your wheels spin or lock and slide. When you spin your wheels, you are just turning the snow into an ice slick, making it harder for you and everyone after you to start or stop. So please go easy on the pedal mashing.

Suggested reading:

*Except for some cases you probably won’t encounter.

Another better stoplight

A couple months ago I wrote about the four phase traffic signals I saw in Sweden and Denmark. These are better than the three phase lights we use in the United States. The improved lights help smooth the flow of traffic, improve safety, and save gas. Today I saw a post about a fancier version. Instead of adding a fourth phase, Damjan Stanković proposes a circular progress indicator around the red light:

Traffic signal with progress indicator

This is certainly nicer than the standard three phase light, but I’m not convinced that it is practically better than a four phase light. I prefer the simplicity and reliability of a four phase signal to the extra complication and unneeded detail of the Stanković signal. Still, it is good to see someone else promoting the idea of better traffic signals. I’m not sure how many American drivers are alert and courteous enough to take advantage of better signals, but there are probably enough that we could still see some improvement in traffic flow, saving gas.

Four phase traffic lights

Source:
A Better Understanding of Stoplights through A Stoplight for the Progress Bar Generation

Flood control

In a welcome change from projects like the Foster Park Flood Creation Project, which will make downtown flooding worse, a reasonable approach is being used in one Fort Wanye neighborhood. Homeowners in an area along Junk Ditch are being given the option of selling their houses to the city. According to the News-Sentinel, nearly half of the homeowners in the neighborhood are taking the offer. This will allow the area to be cleared of development, becoming a green space that can absorb flood water.


View Larger Map

In related news, I spent last Sunday afternoon with Dad and several Little River Wetlands Project volunteers documenting a new conservation easement. One-hundrend and forty acres of private land along the Little Wabash River floodplain are being restored. We took a bunch of 360° panoramas and GPS points at key locations on the property. These pictures can repeated every few years to track the changes to the land. Unfortunately, the county surveyor’s office is about to denude the bank along that section of the Little River.

OS X’s Services menu

The Apple Services menu is a timesaving feature that has been improved in Snow Leopard. Services were occasionally useful in OS X 10.5, now with 10.6 they are a great feature. Before Snow Leopard, Services weren’t contextual. To run a service called Task, you’d click on Name of active program in the menu bar > Services > Name of program that does task > Task. Because this is so many clicks, and because a lot of services that don’t apply to the current context were listed (grayed out), it was often faster to do a task manually. Snow Leopard fixes this; only the services that you can actually use show up in a list directly under Services. This makes it much easier to find the service you need. In many programs, the applicable services will show up in the right-click menu. I’m now constantly using the Services menu.

Since I am writing (using LaTeX) and doing literature searches, I spend a lot of time with BibDesk, TeXShop, and a web browser. When I need to add a paper to my bibliography I can just select its BibTeX entry from an online database, then right-click (control-click) and select the Add to Bibliography service. Before, I’d save the BibTeX reference as a text file, open it with BibDesk, move the citation to my current bibliography file, and delete the temp file. Or if the database doesn’t include citation files, I’d manually enter it. Now I just use the Add to Bibliography service, saving time and typos.

Apple Automator makes Services more useful by providing an easy way to create your own. When you create an a new Automator Workflow you have the option for it to be a Service. I used this to create a Service to automatically open a new web browser tab with a Google Scholar search. I just select some text, right click, then select Search with Google Scholar, and it opens my search in Safari. This saves time copying and pasting into a new window.

Automator and AppleScript don’t have all the features needed for fancier scripts, but they provide a way to call fancier scripts or other programs. My Google Scholar Service has to escape the search terms so that they can be sent in the search URL. Automator won’t do text processing directly, and there doesn’t seem to be a good way to do this in AppleScript. My solution was to write the escape script in Python. This ran slower than I thought it should, so I rewrote it in Perl, and it was faster. Much faster. I used time on the command line to test the speed difference. Perl averaged 2 to 5 times as fast. It looks like the difference was in how long it takes to load the necessary libraries. When first running the script, Perl was five times as fast as Python. Later runs decreased the gap to around two times. Without this optimization, this Service wouldn’t have been fast enough, but the optimized version is a time saver.

That’s how I use Apple Services. Here are two example services I made. To install a Service, just place a Workflow in ~/Library/Services/. [UPDATE 2010-01-07: When installing your first Service you may have to open the Service in Automator and use File > Save As... before OS X recognizes your ~/Library/Services/ folder. From then on you can just move Services to this folder to install them.]

Note: These services seem to run much faster if you relaunch Safari and Finder after copying them to ~/Library/Services/.

Related: My post on Customizing Mac OS X PDF Services

Hot, Flat, and Crowded: Why We Need a Green Revolution–And How it can Renew America by Thomas L. Friedman

I finally got around to reading Thomas L. Friedman’s Hot, Flat, and Crowded. Friedman is one of the few columnists that I read on a regular basis and the book is on an interesting subject, so I was expecting to enjoy reading it. I didn’t. While I don’t agree with all his ideas, the main problem is prolix writing. The book is about four-hundred pages long, and parts read like they weren’t edited. I got the feeling that Friedman has a big enough name that no one was willing to edit the book down. It could have been an okay three-hundred pages, or a good two-hundred pages, while still clearly explaining all the content.

My disagreements with Friedman are his technological over-optimism, solutions that increase complexity, and philosophy. I’ll ignore the philosophical differences in this review.

One example of Friedman’s overly complex, overly optimistic solutions is the smart electrical grid. I agree that we need a smart grid. The details are a problem I would like to work on. I disagree with Friedman’s vision of a smart grid. He basically says we should make the grid as smart as possible. This ignores the energy and reliability problems caused by unnecessary complexity. It is an example of a way of thinking common in engineering and politics: add a fix to what we have, even when fixing an underlying problem is easier and solves additional problems. This way of thinking creates unnecessary complexity and contributes to many of our problems. Unfortunately, it is easier to find support to add a law or feature than to change one. There are too many entrenched interests for a real solution to be likely without first moving through suboptimal answers, like the ones that Friedman proposes. Even though they can be better, these are the best likely solutions, so we should move forward as quickly as possible.

The section ‘Make the Word “Green” Go Away’ almost makes up for the rest of the book. Friedman says that green should be normal, so we should stop saying ‘green.’ This is an excellent point. The the word green has been abused recently, especially in greenwashing products. Adding an extra word makes it sound like being green is special. It isn’t. Sustainable practices must become the norm. There isn’t a good answer for this linguistic difficulty, but an improvement would be to drop the word ‘green’ and start calling other things ‘dirty,’ or some better term. It’s too bad stores won’t (or can’t) put soot symbols, or something, on boxes of anything that isn’t green. This would help make unsustainable products appear as different, and environmentally friendly solutions appear normal.

The solutions in this book aren’t always the best, but, Friedman’s proposals are pragmatic and more likely to be implemented than better solutions. While Hot, Flat, and Crowded makes some good points—and has some good quotes—I’d recommend reading a different book on Why We Need a Green Revolution. If you are interested in energy, I recommend Winning Our Energy Independence by S. David Freeman. For more on the business side, the best I have seen is Natural Capitalism: Creating the Next Industrial Revolution by Hawken, Lovins and Lovins.

BibTeX reference:

@book{friedman2008,
	Author = {Thomas L. Friedman},
	Publisher = {Farrar, Strauss and Giroux},
	Title = {Hot, Flat, and Crowded: Why We Need a
		Green Revolution--And How it can Renew America},
	Year = {2008}
}

MagSafe

Apple’s MagSafe power supply connector is one of the rare inventions that I wish I had thought of. Once you see one, it is an obvious solution to a common problem. It is much more convenient than standard power connectors, and has the advantage of easily breaking away if someone trips over your power cord. Despite the genius of the connector design, the rest of the power supply has a major flaw: poor stress relief.

MagSafe power supply

Flexible cables need stress relief where they connect to solid objects to avoid damage to the cable or the electrical connection. The MagSafe power brick’s stress relief on the outgoing DC cable is primarily designed to keep the cable from pulling away from the electrical connections. It does this well. It misses the other purpose of minimizing the stress of the bending cable near the rigid block. The stress relief portion of the cable is overly rigid, creating a spot where the cable can easily kink, damaging the wires inside. The solution is to add an additional little bit of thinner stress relief. This will eliminate the most likely point for the cable to be damaged. The incoming AC cable is an excellent example of good stress relief, so it is odd that the DC cable has this flaw.

MagSafe stress relief sketch

There will always be some who abuse hardware by make the cable bend too tight, or pulling on the cord, so no fix can be perfect. But the stress relief problem on the MagSafe power supplies is bad enough that even someone as careful as I am not to damage an expensive power adaptor ended up with a broken cord. It got to the point that the cord partially melted at the stress point. I had hoped it would be a simple fix: pop the case open, shorten the cord an inch, put it back together. Unfortunately, the brick is glued together. Apparently the best way to open it up is to Dremel around the seam. Once the repair is complete, either re-case the circuit, or tape the case back together. This is not an acceptable repair. Fortunately, Apple recognizes the problem as a safety hazard and—in cases where the damage is from wear, not abuse—is replacing the power supplies even after the warranty runs out. I had to drive to the nearest Apple store (over an hour away) to have it replaced. For some reason they don’t allow the local Apple repair shop to swap them out. Now I have a new power supply, and can get back to work.

Related sites: