True's beaked whale.jpg

Western spotted skunk

Hooded skunk

Yellow-throated Marten

Wolverine

The shape of programmer’s brains

October 11th, 2008

I ran across a remarkable paper, “The Camel has two Humps”. Incoming Introduction to Programming students all *want* to learn to program, but about half the class never gets the hang of it and never will. The authors found a test that identifies the students that can learn to program.

The authors’ pretest asks questions about variable assignment: a=10, b=20, a=b. There is a typical meaning for these assignments in programming languages but the incoming students may not know them. So the authors classify the type of logic required to reach different answers and whether the students use the same logic for each question or switch around on different questions. Students who come up with consistent answers for different questions are the students who can learn to program.

Here’s a key figure:
consistent and inconsistent answers corellated with grades

This is remarkable, a way to candle incoming CS students and figure out (mostly) which ones can learn to program.

One notable thing that further research can answer is about the oddballs. The 2-3% of initially inconsistent testers that *do* learn to program–what sort of programmers are they? Do they end up writing different programs than the typical programmer?

Word cloud program

August 24th, 2008

I saw the Wordle site for making word clouds and was really impressed. I had a few ideas for doing things differently–showing phrases instead of individual words for example. So I wrote my own version.

Origin of the Species word cloud

It displays phrases, words, or combinations of words and phrases. Text size indicates the relative frequency of different words. The output is a PDF file.

Uplift word cloud

The algorithm used to arrange the words places them randomly on open spaces in the image. Horizontal and vertical placements alternate. There is a bias toward placements towards the center of the image. This helps keep the cloud together. Words difficult to place are shrunk up to 10%. The Postscript font metrics are used to find the exact size of each letter. The allows close word placement.

GEB

Here it is: freq_8-08.zip
System requirements: OS X or Linux.

Things not known in the 1860s

June 24th, 2008

I find it fascinating that things part of common knowledge today were discovered relatively recently. Here is something not known in the 1860s, from Darwin’s Origin of the Species, p 29-30:

I do not believe, as we shall presently see, that all our dogs have descended from any one wild species; but, in the case of some other domestic races, there is presumptive, or even strong, evidence in favour of this view.

The whole subject must, I think, remain vague; nevertheless, I may, without here entering on any details, state that, from geographical and other considerations, I think it highly probable that our domestic dogs have descended from several wild species.

We now know that all dog breeds are descended from wolves through a domestication event or several closely spaced domestication events about 100,000 years ago. This explains why dogs are found with aboriginal human groups throughout the world.

This is from a section describing how in most domesticated animals have many breeds or varieties yet are descended from a single wild species. In the 1860s, the the evidence pointed to more than one wild ancestor for dogs.

Godel, Escher, Bach – An Eternal Golden Braid

June 16th, 2008

I was thinking about Godel, Escher, Bach – An Eternal Golden Braid because I started up my ant farm. It’s an incredible book, a work of genius that blew my mind when I read it in HS. Turns out Douglas Hofstadter, the author, has a new book out that is described as covering similar ground titled I Am a Strange Loop. So I wanted to reread GEB. I looked around and checked my book list, but no GEB. I’ve really got to pick up a copy!

Funny church announcement

June 9th, 2008

Catholic church announcement:

Polish mass

Great Health Nuttery

June 7th, 2008

Ah, health nuttery, a spice that can be added to anything. I’ve heard it many times, that alternative medicine and quack cures have a collection of ideas (all bonkers) that often get combined together. You see all sorts of combinations. Qi magnets, detoxifying magnets, Qi detoxification. Most of these terms mean so little that they can be combined randomly to make a novel-sounding new types of alt. med.

It’s really just like advertising, where there is a pool of non-specific positive adjectives that are slapped on a product to jazz it up. Pick any two or three: new, brighter, improved, best, free, breakthrough, exciting.

That’s all background for describing something that made me bust a gut. Bear Grylls, star of the Man vs. Wild survival show, had caught and gutted a fish. As he often does, he starts chomping on it raw. Then he says it’s high in protein, gives you energy, and helps boost the immune system. Yes, boosts the immune system! One of the universal alt med claims! If you are stranded in the wilderness without shelter, fire, food, or water, ‘Does this boost my immune system?’ is not on your list of priorities. Bear didn’t think through his food options, and think, I could eat a caterpillar, but a fish will boost my immune system more, so I’ll try and catch a fish. No, the choice was a raw fish or nothing, and it is literally true that a fish, being food, would be better for the immune system than not eating for the day. Trivially true, but really, really funny!

President Reagan’s cartoon administration

June 4th, 2008

From way back in 1986, Michael Kinsley reviews David A. Stockman’s The Triumph of Politics: How the Reagan Revolution Failed (1986). Stockman was President Reagan’s budget director from 1981-85.

The Reagan stories are priceless.

Cabinet members take skillful advantage of the Commander in Chief’s capacity for befuddlement. Secretary of Transportation Drew Lewis convinces him that quotas on Japanese cars are not a violation of free trade because Government regulations have hampered American producers. (Japanese cars must meet the same regulations, of course.) Secretary of Defense Caspar W. Weinberger shows up for a meeting intended to settle whether the defense buildup should be $1.46 trillion over five years or only $1.33 trillion. His chief prop is a cartoon of three soldiers – one, a pygmy without a rifle, representing the Carter budget; one, ”a four-eyed wimp . . . carrying a tiny rifle,” representing $1.33 trillion, Mr. Stockman’s defense budget; and one, ”G.I. Joe himself . . . all decked out in helmet and flak jacket and pointing an M-60 machine gun,” representing $1.46 trillion. This is how Presidential decisions are made. Mr. Stockman makes clear that Mr. Weinberger himself had absolutely no idea how to spend all this money at the time he argued it was essential to our national security. He would get as much as he could, then go back to the Pentagon and figure out what to do with it.

And this was before the Alzheimer’s disease was noticeable in Reagan’s second term. Government by cartoon. I wonder if this is the budget process they teach in political science classes. A $130 billion dollar cartoon.

Origin of the Species: Introduction

June 2nd, 2008

Quote from The Origin of the Species Introduction:

In considering the Origin of Species, it is quite conceivable that a naturalist, reflecting on the mutual affinities of organic beings, on their embryological relations, their geographical distribution, geological succession, and other such facts, might come to the conclusion that each species had not been independently created, but had descended, like varieties, from other species. Nevertheless, such a conclusion, even if well founded, would be unsatisfactory, until it could be shown how the innumerable species inhabiting this world have been modified, so as to acquire that perfection of structure and coadaptation which most justly excites our admiration.

The Push to Deploy the Pain Ray

June 1st, 2008

The 60 Minutes TV show has joined the push to deploy the Active Denial System (ADS), a millimeter-wave transmitter that causes intense pain but doesn’t kill or cause burns with short exposures.

60 Minutes has covered the pain ray several times, but today aired a complete endorsement and argument for its immediate deployment. A parade of military, government, and ex-military police officers lauded the pain gun, said it was safe, harmless, and would save lives.

It was so over the top it got creepy. An assistant secretary of the Air Force, the woman in charge of buying the weapon, said the pain ray works so good that anyone that doesn’t run away is a ‘determined adversary’ and can be considered a ‘hostile’, a ‘terrorist’. The direct implication of that is anyone who doesn’t run away can be shot dead. Of course it has a range of half a mile, so if a person doesn’t see where it is coming from and runs the wrong way he or she will get killed. The weapon looks to have a small focus area, so if used on a crowd it would need to be waved around or several pain rays used. This also makes it hard to know the expected or ‘safe’ direction to run. And of course, the use of an intermittent pain ray in a crowd is likely to start a panic, with people trapped in the crowd running every which way.

Also creepy was the military’s test footage provided to 60 Minutes. People carrying anti-war and peace signs in English walking around peacefully were the targets of the pain ray. Err, so why exactly does the military think a demonstration on how the pain ray can disperse peace rallys is a great demonstration? The US does have a long history of peaceful demonstrations disrupted by illegal police actions, but doesn’t seem to suffer from a lack technology…

So what’s the plan? The 60 Minutes episode pushed the pain ray as a US/Iraq War weapon. This is no doubt mostly hype–every new weapon being pushed today is no doubt sold as an Iraq War weapon. But exactly why would the US Army be called out to disperse political protests in Iraq? Isn’t that exactly the role the US has been training the Iraqi police to handle for the last five years?

No doubt the end game has US police departments equipped with the pain ray and using it mainly on peaceful protests. Of course after the police starts firing the pain ray, I’m sure people will be running around screaming–a ready made riot for TV news condemnation.

After a few years to accommodate the US public to the pain ray it will likely get shopped out to foreign governments and used primarily for suppressing protests.

Of course the pain ray is just the most prominent of the anti-democracy technologies in the pipeline. There are many ways being developed to monitor and disrupt democracy activists and their efforts.

Origin of the Species

May 31st, 2008

The first paragraph of Charles Darwin’s Origin of the Species:

INTRODUCTION
WHEN on board H.M.S. Beagle, as naturalist, I was much struck with certain facts in the distribution of the inhabitants of South America, and in the geological relations of the present to the past inhabitants of that continent. These facts seemed to me to throw some light on the origin of species?–that mystery of mysteries, as it has been called by one of our greatest philosophers. On my return home, it occurred to me, in 1837, that something might perhaps be made out on this question by patiently accumulating and reflecting on all sorts of facts which could possibly have any bearing on it. After five years’ work I allowed myself to speculate on the subject, and drew up some short notes; these I enlarged in 1844 into a sketch of the conclusions, which then seemed to me probable: from that period to the present day I have steadily pursued the same object. I hope that I may be excused for entering on these personal details, as I give them to show that I have not been
hasty in coming to a decision.

I’ve never read Origin, having thought of it as mainly of historical interest and not relevant today. But it does have a wealth of examples and descriptions of animals and their niches that now seems interesting to me so I’m having a go it. The Voyage of the Beagle should have even more of this sort of thing, but I figure it makes sense to read Origin first.

It’s funny that Darwin starts his book protesting that he is not hasty. He is the least hasty scientist of which I’ve ever read.