Almost everything you want to know about dysfunction in US politics can be symbolized by the most recent findings on the public’s views on human evolution published by the Pew Research Center’s Religion and Public Life Project[1].

On the whole, 33% of US adults say that humans and other living things have existed in their present form since the beginning of time. An additional 7% say that they “don’t know.” We can confidently state that about 40% of the US adult population is either grossly unfamiliar with the overwhelming body of knowledge that supports the hypothesis that all present living organisms evolved over time, or they simply choose to deny it. This is an embarrassment because while the US claims its primacy in the world, a large percentage of its population is ignorant about a critical body of scientific knowledge.

Beliefs about evolution

More disturbingly, partisan differences in beliefs about evolution are growing. In general, where factual evidence exists and is widely available, consensus around that knowledge grows in a predictable way. Instead among US Republican voters, understanding of evolution appears to be receding rapidly. In 2009, 54% of Republican voters stated that humans and other living things evolved over time. Now, four years later, only 43% agree with the same statement. A nearly 10% decline in knowledge cannot be attributed to a change in the evidence base around evolution, because no negative evidence has surfaced during the period. Instead, it reflects something more pernicious about the bundling of science, policy, and religion. See Figure 1 [2] for the gory details.

US voters have few options. Fiscally-conservative voters have no choice but to support candidates who openly trumpet their disdain for scientific knowledge around evolution because these are the positions that are most likely to attract US evangelical voters who find that the science of evolution does not fit properly into their worldview. On the opposite side, voters who support scientific integrity have little choice other than supporting Democratic candidates.

It is indisputable that all existing living things, including humans, evolved from earlier living things. Citizens put tremendous trust in their leaders to make rational decisions. When leaders fail to apply reason in their understanding of fundamental questions about science, how can they be trusted to make rational decisions about matters of policy? We need political candidates and other leaders who are willing to stand up and unequivocally label nonsense when they see it. In short, we need more leaders and fewer panderers.


  1. http://www.pewforum.org (accessed January 4, 2014)

  2. http://www.pewforum.org/2013/12/30/publics-views-on-human-evolution/ (accessed January 4, 2014)

As a family member of a person with addiction, I’ve thought a lot about how AA and Al-Anon work. Both rely heavily on the 12-steps and the Serenity Prayer, written by Reinhold Niebuhr. Based on the work of others, I’ve rewritten the Serenity Prayer as an affirmation to coincide with my own practice.

Here’s my version of the Serenity Affirmation:

"May my practice give me the serenity to accept the things I cannot change,
The courage to change the things I can, and the wisdom to know the difference.

May I live one day at a time,
Enjoy one moment at a time, and
Accept life’s hardships as a sign of impermanence.
May I live in the world as it is, not as I would have it,
Finding happiness wherever I am."

Adapted from other sources.

Comments? I’m @NSBum on Twitter.

I’m in awe of the decision by Popular Science to shut off the comments on its online articles. Suzanne LaBarre words their reasoning[1] so eloquently:

Suzanne LaBarre, Popular Science, “Why We’re Shutting Off Our Comments”

A politically motivated, decades-long war on expertise has eroded the popular consensus on a wide variety of scientifically validated topics. Everything, from evolution to the origins of climate change, is mistakenly up for grabs again. Scientific certainty is just another thing for two people to “debate” on television. And because comments sections tend to be a grotesque reflection of the media culture surrounding them, the cynical work of undermining bedrock scientific doctrine is now being done beneath our own stories, within a website devoted to championing science.

I think it’s time to declare an end to popular journalism. At the intersection of journalism and social media is a desire on the part of many to share their opinions; but anonymous commentary on subjects, like science, that dwell in the province of evidence really doesn’t work.


  1. http://www.popsci.com/science/article/2013-09/why-were-shutting-our-comments

Generally, I don’t like to use a lot of runtime trickery, swizzling and the like - but there are use cases where knowing how to do it can solve an immediate problem.

For my current project, I’ve temporarily incorporated a hidden feature that is brought up by a application-wide UIGestureRecognizer added to the main window. It allows me to
do things with the Core Data objects that I don’t necessarily want to expose to the user; but I’d like to be able to test quickly in real-world settings. For example, deleting
all of a particular group of managed objects so that I can test what empty table views look like. Or generating sample data so that I can see what really full table views look like.

One function that I needed to test in the field was a long-running timer. Not wanting to wait 15 or 30 minutes for an event to happen, I decided to create a developer-only functionality that would advance the timer to within 15 seconds of completion. Not something I want to expose to the end-user; but nice to have for testing. To do this, we need to manipulate an ivar _currentSeconds, resetting its value to 15. But let’s take a more general case with a class named Foo.

1
2
3
4
5
6
7
8
@interface Foo : NSObject

@property (nonatomic, readonly) NSInteger count;

@end

@implementation Foo
@end

Since the class interface only provides readonly access to the count property and its backing ivar _count, we can’t use the public interface to manipulate count. But the Objective-C runtime API will let us do so:

1
2
3
4
#import <objc/runtime.h>

// create the instance whose count property we'll change
Foo *myFoo = [[Foo alloc] init];

Now get a reference to the Ivar via the runtime:

1
2
Ivar ivar = class_getInstanceVariable(Foo.class, "_count");
assert(ivar);

Now the tricky part, since we’re changing a scalar, we can’t use object_setIvar because it takes an id. So we’re forced to set the ivar by using an offset into the class ivar layout. Something like this:

1
int *ivarPtr = (int *)((uint8_t *)myFoo + ivar_getOffset(ivar));

This is perfectly legal under reference counted memory management; but under ARC, it won’t compile because ARC doesn’t know how to manage the memory of the pointer we’ve created. The workaround is this:

1
2
CFTypeRef myFooRef = CFBridgingRetain(myFoo);
int *ivarPtr = (int *)((uint8_t *)myFooRef + ivar_getOffset(ivar));

Now all that’s left is to set our ivar and release the CFTypeRef

1
2
*ivarPtr = 15;
CFBridgingRelease(myFooRef);

Showing the whole thing:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
@interface Foo : NSObject
@property (nonatomic, readonly) NSInteger counter;
@end

@implementation Foo

@end

// Now we'll access the ivar from another class

#import <objc/runtime.h>

Foo *myFoo = [[Foo alloc] init];

Ivar ivar = class_getInstanceVariable(Foo.class, "_counter");
assert(ivar);
CFTypeRef myFooRef = CFBridgingRetain(myFoo);
int *ivarPtr = (int *)((uint8_t *)myFooRef + ivar_getOffset(ivar));
*ivarPtr = 15;
CFBridgingRelease(myFooRef);

See also:

Comments? I’m @NSBum

DRM, officially ‘digital rights management’[1] - but I’m calling it ‘digital restrictions management’ is a technology that lets copyright holders restrict the use of digital content after they sell it to you. With the rise of the internet, DRM has become ubiquitous, though philosophically flawed. I’ve bought thousands of dollars worth of DRM content over the years; but I’m done.

True story. One of my sons bought a new iPod to replace a broken model. Like many kids who live a mostly mobile lifestyle, he never backed up his iPod. No worry, we’ll just redownload the content (apps, music, etc.) onto the new device from the ‘cloud’. The problems began when Apple requires you to use multi-factor authentication to prove that the person using the new device is the same person who used the old device to purchase the content. It requires you to answer a series of questions whose answers may be long forgotten. “Who is your favorite teacher?” Hmmm. What grade was I in when I got this iPod. Don’t guess because you only have a limited number of tries before it locks up your account for 24 hours. Keep trying after that and it will lock you out forever. No matter, we’ll give a call to tech support and give them our story. After minutes of explaining and pleading about the plight of a 13 year-old kid, no joy. In the end, he lost all of the content that we had ever purchased. Thanks for making the world a safer, better place, Apple.

The fragility of DRM

For me that was the final blow to my waning enthusiasm for DRM-encumbered music. Let’s get one thing straight. On the whole I enjoy the convenience of digital music. It’s really exemplary of the massive conveniences that we enjoy in the 21st century. Take a moment to ponder just how amazing it is to access any book, image, piece of music instantaneously. Want to listen to the Górecki Third Symphony? Poof! Purchased and downloaded. But the convenience doesn’t come for free; and although you’ve purchased the right to own a copy of the recording, what you’ve really purchased is a copy of a recording containing a very detailed set of rules about who can play it, on what device, etc. Although restrictions on the use of copyrighted content is nothing unusual, DRM takes the concept to a new level, in which the enforcement of the restrictions is embedded in the medium. It’s also remarkably fragile, as the experience with my son points out.

The purchasing experience

iTunes Store clutter and spectacle I use iTunes to play music, largely because it's free and convenient, and because I've never taken the time to look for more suitable alternatives. Since version 4, iTunes has contained an embedded store from which you can purchase DRM-containing music. Over the years, the iTunes Store has become more an more florid. I'm not a music snob. _(Well, I'm sort of a music snob.)_ I have reasonably eclectic musical interests; but I'm a classically-trained musician. The spectacle and commercialism of popular music doesn't interest me. But this is front-and-center in the iTunes Music Store. You can't find music without having to wade through album covers from Drake, Kings of Leon, Icona Pop, Dream Theater, and (amusingly) Dog Blood. I'm sure all of these albums are fine for their genre; but no matter how often you put a cover of Dog Blood's _Middle Finger, Pt. 2_ in front on me, I'm not going to buy it. You can always navigate to the classical category; but it's not much better. The view is still dominated by album covers as if the picture on the virtual "front cover" is what's important. I appreciate knowing what's new, but just show me a list. In short, the purchasing experience is heavily tuned to music whose enjoyment is attended by spectacle. It's off-putting to purchase classical music in this way; and for now I'll just use iTunes as a way of reverse showrooming[^2].

The device limitation

Apple limits you five devices onto which you can load music you’ve purchased. They provide you with no way of actually identifying what those devices are. If you go over the 5 devices, you just need to find one them and deauthorize it. You can’t get a list of the currently authorized devices. As I said, I don’t shared music I’ve purchased in an illegal way. So the five device limit on my use of the music is an unnecessary encumbrance on my freedom.

Album notes

Album notes

Many serious artists go to great length to write or commission extensive, well-researched, authoritative commentary on the works they’ve recorded. These are all but completely missing on iTunes. I suspect the same is true of other sources of DRM-encumbered music. I realize that actually reading printed material has become unfashionable; but this is a serious omission. My CD case of Glenn Gould’s recording of Bach’s The Well-Tempered Clavier contains detailed notes about the experience of recording the eccentric artist. It lends a sense of humanity to the humming Gould. I miss this too much. For me, the enjoyment of music, whether on my instruments or while listening to recordings is an experience that works on both sides of the brain. It’s an intellectual, as much as emotional, exercise. The album notes are an important part of the latter; and their loss in electronic content is lamentable.

Resources and waste

I would be remiss if I didn’t raise the issue of resources. Physical CD’s represent only a small amount of material; but it’s not neglible. The case is larger, has more plastic mass and is more expensive to produce. The incremental cost and resource expenditure for distributing music electronically is almost infinitely small. All other things being equal (which they are not) electronically-distributed music would be preferable from the perspective of natural resource conservation. However, purchasing used CD’s is one way to avoid incurring additional production costs.

Intangibility, value, and je ne sais quoi

There is something about physical, tangible objects that makes us value them more. Perhaps it’s because we evolved in, and inhabit a physical world. Music is so incredibly important to me that it’s hard to dissociate from something physical - whether it’s a printed score, my instruments, or a recording on physical media. I wonder whether music is trivialized not only by associating it with the visual intensity of modern performance but by selling and distributing it in a way that’s completely ethereal and dissociated from physical world.

Now CD’s seem like old friends; and I’m happy to be reacquainted.

Comments? I’m @NSBum


  1. http://en.wikipedia.org/wiki/Digital_rights_management

The New York Times ran a Room for Debate column entitled Should Creationism Be Controversial? Several authors on both sides of the issue wrote responses. I found one response, “Science, Too, Calls for a Leap of Faith” by Trevin Wax, particularly problematic.

Here are his claims, dissected:

“Science neither proves nor disproves the existence of a creator”

This is true. But in both formal logic and in our daily lives, the burden of proof is on the claimant. As individuals, anything more than the most trivial of claims requires something objective to back it up. That’s why the car dealer won’t let me take home a shiny new car on the promise that I’ll send payment when the bill comes. No, first I have to backup my claim that I have enough cash flow to warrant their trust.

“Even non-creationists live as if the creation story is true”

I found this the most puzzling of the claims. Mr. Wax sees Christian religious faith as the only source of purpose and morality in life. Undoubtedly, many derive a sense of purpose from their faith. But that says nothing about the sense of purposefulness among the faith-less. People derive purpose from all sorts of sources; and if he were correct, you would expect atheists to run amok in society, given that they could not possibly have any moral foundations. But they don’t. They don’t commit more crimes. (Actually, they appear to commit fewer crimes.) They raise their children just as responsibly as anyone else. In short, humans are purpose- and meaning-seeking animals. We want to see patterns and significance in things that happen around us. If the creation narrative endows some people with a sense of meaning and belonging, then by all means they should hold onto it. But they shouldn’t use it as a club with which to beat those of us who don’t.

He goes on to explain why altruistic behavior observed in humans does not fit with evolution by natural selection. After all, it seems to conflict with “survival of the fittest.” First, the common distillation of Darwinian evolution as “survival of the fittest” is problematic in this, and most contexts. More accurately stated, the genes for an adaptive trait become more frequent in a population because of differential rates of survival. There is nothing about altruistic behavior among humans that is maladaptive. Humans are social primates that have a strong need for altruistic patterns of behavior. The survival of the species is closely linked to the cohesion of the group.

Natural selection doesn’t work on a conscious level anyway. It is a feature of the way DNA changes through random mutation and recombination.

How does science prove itself?

The argument Mr. Wax puts forward here is that there is no scientific evidence to prove that science is the only reliable way to discover truth. I would absolutely agree. But his error is in the conclusion that because science cannot prove itself as the sole source of truth, that the creation story must be true. This is an enormous logical leap. Perhaps science is not the sole source of truth and the creation story is false. My response to his challenge to the reliability of science is pragmatic. {“Science works.”} It predicts certain phenomena in the observable world, is repeatable, and can be harnessed to solve problems. And its process inherently helps it approach the truth through peer review, criticism, openness, and self-correction.

Revisiting Gould

Stephen Jay Gould famously characterized science and religion as “non-overlapping magesteria” - disciplines that answered completely separate questions. But an existence claim is a scientific claim and as a practical matter the magesteria overlap more than some would like. Nonetheless, we can’t have it both ways. Religious adherents should have the right to believe what they like, gather, and worship in the way they see fit. But they can’t claim that their faith answers a different set of questions than those answered by science but then demand to teach those answers in a science class. It’s no different than a demand by academic scientists to teach evolution in worship services.

Comments? I’m on Twitter @NSBum.

The Intergovernmental Panel on Climate Change just released a draft summary of a report to the UN. Unsurprisingly, the panel concluded both that the Earth’s warming is unequivocal but now expressed near certainty that human activity is the cause of the observed and predicted climate shifts.

Given the near universality of scientific opinion on climate change, I’ve begun to wonder what motivates climate change deniers. After all, on most topics, reasonable people who are inexpert in a discipline look to the opinions of experts to gain a better understanding. So what’s behind the extreme rejection of scientific consensus among climate change deniers.

Denialism

Climate change deniers are a particular type of denialist. Denialists form fixed, unshakable beliefs about a subject and are unmoved by contradictory findings. Instead, denialists adopt one of several approaches to undermining the contradictory claims. In the case of climate change, for example, denialists point out that the Earth has not substantially warmed for about a decade and a half. (That’s true, but 16 years in geologic time is short indeed; the long timescale of geologic time, makes short-term leveling of trends basically just noise in the data.)

Climate change denial and the free market

A recent study published in Psychological Science shed light on two important viewpoints strongly held by climate change deniers. In this study Full text PDF, led by Professor Stephan Lewandowsky from the University of Western Australia, researchers examined over 1000 responses to a questionnaire posted on a blog dedicated to the discussion of climate change. Among the findings in this study was a striking correlation between the rejection of climate science and the endorsement of a laissez-faire conception of free-market economics. Certain responses to questions about free-market economics were even more strikingly correlated with reject of climate science. For example, the correlation between agreement with the statement “The free market system is likely to promote unsustainable consumption.” and reject of the accepted theory of anthropogenic climate change was 0.892. Thus, persons who have a strong opinion in the rightness of unrestrained capital markets are very likely to reject the science behind anthropogenic climate change.

Conspiracy theories

The study also found that persons who reject climate science endorse a number of conspiracy theories. For example, the correlation coefficient between agreement with the statement “Area 51 in Nevada is a secretive military base that contains hidden alien spacecraft and or alien bodies.” and the rejection of climate science was 0.891. Numerous other conspiracy theories were examined in the study and showed high rates of correlation with the rejection of climate science.

A theory of climate science rejection

The striking correlation between endorsement of widely varying conspiracy theories suggests a deep psychological condition or style of relating to the world that generates suspicion. As Viren Swami, professor of psychology at the University of Westminster, notes: {“The best predictor of belief in a conspiracy is belief in other conspiracy theories.”} Other studies have shown that conspiracy theorists have high levels of cynicism about the world in general and about politics, specifically. They have lower ratings of self-worth than non-conspiracy theorists; and they appear to be reacting to a loss of agency in the world.

I believe that a high level of distrust and low level of self-esteem leave persons vulnerable to irrational theories that give them a sense of agency in a confusing world. They are ripe for messaging from groups financed by billionaire industrialists such as the Koch brothers who stand to lose if we were to take real action on climate change. Furthermore, the Filter Bubble effect is likely to amplify the opinions of such individuals and create a highly polarized - though errant - viewpoint about climate change.

The climate is unequivocally changing. There is near certainty (~95%) that human activities are the cause.

Comments? Find me on Twitter: @NSBum

As mentioned before I’m planning on launching a high-altitude balloon later this year. Most of the sensor technology is already finished; but we were stalled on the telemetry. Mainly you must be able to find the payload in order to get the sensor data, the pictures, and the hardware.

To reduce the complexity somewhat, I settled on using APRS for this first flight. Later I might try some more interesting possibilities like an HF beacon that uses CW to broadcast its position.

For the APRS tracker, we’re going to use the Argent Data Systems tracker version OpenTracker+ SMT which looks to be a nice compact solution for the HAB payload. Equally compact is the VHF transmitter SRB MX145 which is capable of putting out between 350 and 500 mW.

While reading about the SRB MX145 in its manual I noticed a comment about the modulation deviation:

“Most trackers have high impedance outputs and the resulting signal level at the modulation input of the SRB-MX14 will not give sufficient deviation. In addition they usually have significant harmonic content which will lead to an unwanted broad spectrum of the transmitted signal” Therefore, they suggest the addition of an impedance converter combined with a low pass filter with a ~2.7kHz cutoff frequency."

Page 7 of the manual provides a schematic for the filter/impedance converter circuit.

I’ve been planning a high-altitude balloon launch for a long time. Initially I was planning to launch it with an AVR-based flight computer. But when the Raspberry Pi came out I decided to switch my development efforts, like this guy and this guy. I spend my days mostly developing at a fairly high level of abstraction so I feel most confident working at that level. Being able to program the RPi in Python is huge for me.

Figure 1

The plans for the payload are still in evolution, but here’s what I have so far:

  • Raspberry Pi will be the main flight computer
  • We will get barometric pressure (and therefore altitude) data from a BMP085
  • 3-axis acceleration data will come from an ADXL335 analog accelerometer connected to an ATtiny261 chip which will connect to the RPi via the I2C bus as described here. (The diagram shows an 861. I think the memory footprint needed is much lower than that.)
  • Humidity data from inside the payload and outside will come from two analog humidity monitors also connected to the AVR ADC-I2C bridge.
  • We will get real-time clock data from a DS1307 on the I2C bus.
  • Imagery will come from a Canon PowerShot G6 connected to the RPi by USB. We’ll use gphoto to capture images.
  • Flight data will be dumped to a USB-connected giveaway flash drive that I got from a conference.

There are still design decisions to be made, mainly how to command a cutdown, and how we’ll transmit the telemetry data. As an amateur radio license holder (KD0RXD), I have a number of options but I need to sort through them systematically.

Questions? Comments? I’m on Twitter @NSBum.

TIL how to use anchors in Markdown documents. I needed to use this in a long blog post in my Octopress blog and was stymied.

As usual, I found the answer on Stack Overflow.

1
2
3
Beam me [up](#enterprise), Scotty

<a id="enterprise"></a>

It’s a great way to move around in longer content.

2014-03-03: I no longer publish using Octopress; but this should work in most cases where Markdown is used. Bitbucket is a notable exception. For Github wiki, you’ll need something like:

1
# <a name="heading1" /> Heading 1 #

and for the link to that anchor:

1
[link to heading1](#heading1)