Archive for September, 2009

Evolution and superior creatures

Saturday, September 19th, 2009

Richard Dawkins:

What if there are life forms on other planets that have evolved so far beyond our level of intelligence and creativity that we should regard them as gods, were we ever so fortunate (or unfortunate?) as to meet them?

Seems to me that Darwin is reinforcing the popular assumption that evolution is a force that continually improves the intellectual abilities of life forms, making them smarter and more capable. Dawkins is one of the most important figures in evolutionary biology so this is kind of surprising. This is certainly not my understanding of how evolution works. There is no reason to think that intelligence is a particularly adaptive trait over the long term. It’s contributed to our success as a species but it could also contribute to our extinction. And anyway, which species is the most successful at this point in geological history? How do you even measure such a thing? I’d argue that you really can’t. You can’t use long term survival as a guide because that is subject to a lot of luck and chance (a large asteroid hitting the earth being a good example of really bad luck the dinosaurs had to endure). It would also suggest that ancient animals, ones that haven’t changed much for millions of years, are the most successful and that horseshoe crabs actually rule the earth:

The oldest living animal species on Earth cannot be known for sure, because not every animal species or fossil has yet been discovered, but our current best guess is the horseshoe crab, which has remained pretty much unchanged since the Ordovician period, 445 million years ago. To put this in perspective, multicellular animals only appear in the fossil record about 600 million years ago, and the typical duration of an animal species is just a few million years. For instance, Tyrannosaurus rex lived for only about three million years. In contrast, the horseshoe crab has existed for about 74% of the time that animals in general have.

Homo sapiens have been around for perhaps 195,000 years. A blip in time. We’ve got millions of years before we catch up to even the short-lived T. Rex. It’s too early to make any assumptions about our ultimate fitness.

Humans are not evolving now other than in the microevolutionary sense. Perhaps our environment will change and speciation will occur. A “god-like” species could arise as Dawkins speculates may have happened on other planets in other solar systems. But there is no reason to expect this to be a natural outcome. New species of human could just as easily have other adaptive traits such as the ability to withstand much higher or much lower temperatures or a different mixture of gases in the atmosphere or what-have-you rather than an increase in our intellectual capacities.

So again, evolution is not always progressive. It doesn’t make organisms better in any meaningful sense. It can cause a species to lose abilities, like blind cavefish. Any trait, including blindness, that makes an individual more likely to survive is adaptive.

Here’s a good overview of evolution from Talk Origins.

AJAX Debugging

Thursday, September 17th, 2009

HTTP Inspector for Komodo IDE
HTTP Headers. Allows you to break on each request/response and modify the header before submitting. Very cool. Comes with Komodo IDE which is great. It’s not cheap but probably worth it. It has a Javascript debugger that works with Firefox as well.

Wireshark: Go deep.
Network Protocol Analyzer. Runs in X11. Looks like X11. Geek quotient – hardcore. The point here is you can see traffic. You need that to analyze ajax requests.

YUI Library: Logger
A component of Yahoo’s YUI javascript libraries. Useful if you’re using YUI, otherwise, not so much. I’m using YUI for some things right now but will probably use other tools for debugging anyway.

firephp_large.png
FirePHP – Firebug Extension for AJAX Development
Use this with Firefox and the Firebug extension. Log messages to the Firebug console from your PHP scripts. It works on the server response side of AJAX rather than the client Javascript side.
The best explanation of what FirePHP is and does was written by the guy who created it. Christoph Dorn – Integrating FirePHP for Ajax Development

There’s also Aptana but I’m taking a break from the whole Eclipse platform.

Database transactions

Thursday, September 17th, 2009

An interesting post on the Doctrine blog. Plus the word of the day. Yes, it’s a real word.

I want to sensibilize you for the fact that there are a lot of factors in PHP application performance and that you can very easily lose the performance that you hoped to gain by not using framework X or Z or building your own (“Not Invented Here”-syndrome) by several orders of magnitude through rather trivial errors or misconceptions.

This is also the run-on sentence of the day. But nevermind, I believe his point is that although you might think a complicated database abstraction layer like Doctrine would make things slower than simple selects, updates, deletes you’d be wrong. Using a framework developed by guys who, like the author, have thought through and benchmarked all this stuff is a big advantage. You only have to weigh that against the pain of the initial learning curve. Or maybe it’s like cycling – you’ll get faster but it will always hurt.

Google News

Wednesday, September 16th, 2009

I thought it was out of beta…

Screen shot 2009-09-13 at 10.44.06 PM.png

We’re #50!

Wednesday, September 16th, 2009

Draw your own conclusions.

CIA – The World Factbook — Country Comparison :: Life expectancy at birth

Man, that’s a sad list.

Vegetarian Gravy Recipe

Wednesday, September 16th, 2009

1/2 cup Canola oil
1/2 cup chopped onion
5 cloves garlic, minced
1/2 cup all-purpose flour
4 tablespoons soy sauce
2 to 3 cups vegetable broth
2 teaspoons Marmite

Saute the onions until they are very soft. Gravy isn’t supposed to be crunchy.
Saute the garlic too.
Add the flour and the soy sauce and whisk.
Add the vegetable broth a bit at a time, keeping it simmering.
Wisk in the Marmite.
Stop adding broth when it is smooth and the consistency you want.

Taxes and civilization

Tuesday, September 15th, 2009

Benjamin Franklin thinks people should pay taxes.

Benjamin Franklin to Robert Morris

Property: Benjamin Franklin to Robert Morris: “The Remissness of our People in Paying Taxes is highly blameable; the Unwillingness to pay them is still more so. I see, in some Resolutions of Town Meetings, a Remonstrance against giving Congress a Power to take, as they call it, the People’s Money out of their Pockets, tho’ only to pay the Interest and Principal of Debts duly contracted. They seem to mistake the Point. Money, justly due from the People, is their Creditors’ Money, and no longer the Money of the People, who, if they withold it, should be compell’d to pay by some Law.

All Property, indeed, except the Savage’s temporary Cabin, his Bow, his Matchcoat, and other little Acquisitions, absolutely necessary for his Subsistence, seems to me to be the Creature of public Convention. Hence the Public has the Right of Regulating Descents, and all other Conveyances of Property, and even of limiting the Quantity and the Uses of it. All the Property that is necessary to a Man, for the Conservation of the Individual and the Propagation of the Species, is his natural Right, which none can justly deprive him of: But all Property superfluous to such purposes is the Property of the Publick, who, by their Laws, have created it, and who may therefore by other Laws dispose of it, whenever the Welfare of the Publick shall demand such Disposition. He that does not like civil Society on these Terms, let him retire and live among Savages. He can have no right to the benefits of Society, who will not pay his Club towards the Support of it.”

Referencing a Founding Father is a bit like quoting the Bible – you can use it to justify anything. Still, this is pretty sweet.