Monday, May 6, 2013

US election spending

@EzraKlein and statistics god Nate Silver (@FiveThirtyEight on Twitter) were tweeting about SuperPACs and how much impact they had on the last (2012) election cycle in the U.S.
I chimed in, but with five twitter handles on the thread, I soon ran out of space for deep comments, even given my past training in headline writing 8-) So I'm posting here with some more detail and I'll tweet a link to this.
Things that might not occur to an average American reader: many other countries have grappled with the challenge of implementing democracy in practice, and specifically with how to keep big piles of money from distorting the task of choosing representatives in line with public opinion. Wherever you go, there are powerful interests with lots of money who would like to have policies tailored to their own aims, which may not always align with the public interest. This can include very wealthy individuals, corporations, and other groupings including unions, professional associations, advocacy groups and even religious organizations (being non-profit does not always preclude being able to marshall large sums of money for ad campaigns.)
So a basic challenge in implementing fair voting for public office is to make each citizen's vote count while preventing anyone from using wads of cash to "buy" public office - even if we deter outright bribery, there's a feeling that one individual making huge campaign contributions could reap undue influence on the recipient, as well as that unequal election spending, including ad buys by third parties, could skew election results away from an unbiased sampling of public sentiment.
One course I especially enjoyed in my long-ago B.A. was "comparative politics." Here's one example of that approach applied to campaign finance limits (sorry, paywalled): Susan E. Scarrow, "Campaign Finance in Comparative Perspective"
I want to get this post done so I haven't digested the whole paper - just pointing out that this is something you can fruitfully compare across countries. Also that one has 77 footnotes so this is not a sparse area of study 8-)
Anyway, most democracies including the U.S. have had campaign finance laws that seek to address these concerns. Here in Canada, an individual may donate no more than $1200 to a political party or candidate. Third party ad spending in favor of a party or candidate is capped at ~$4000 per electoral district (per 3rd party - not sure how we limit sock-puppetry here?)
The U.S. has seen attempts to cap political spending, though with much less success. One group that's been pursuing this ever since I was a lad is Common Cause (@commoncause on Twitter). When "campaign finance reform" made some strides in the 70's, those wanting to spend more came up with any number of creative ways to comply with the letter of those laws while trampling on their spirit: PACs, astroturf groups, and more recently SuperPACs and Citizens United.
Canada's last federal election in 2011 cost just over $CAD 300 million in operating costs by Elections Canada; the three major parties were limited to $CAD 21 million each in campaign spending. By contrast, the total cost of choosing who gets to be "the most powerful man in the world" has now passed the seven billion dollar mark (and more for Congress). Less than half of the spending, around $3.2 billion, was spent by the candidates. (The cost of counting the vote is not easy to measure in the U.S. as it is decentralized among the 50 states.) The population of Canada is about 1/10th that of the US. In our respective latest federal elections, Americans spent 15 times as much per person choosing their national leadership in terms of candidate/party spending; the U.S. expended as much again through third-party ad buys that have no counterpart in Canadian politics.
But also the American public sometimes expresses campaign fatigue, and members of the House admit they take office and must start fundraising for their next run during the first week.
American election campaigns drag on over almost two years, counting the primary races. Canada's federal elections last six weeks. (We don't run primaries - each party gets to pick its leader through a party convention as need arises).
We thus spend much less time enduring TV attack ads (aside from those that pop up on Canadian TV sets tuned to US stations, both over the air and on cable or satellite.) One consolation: we did get to watch a lot of good send-ups of this spectacle on The Daily Show and The Colbert Report.


Wednesday, January 9, 2013

Watching others work (or play)

My spouse is watching the British home-hunting show "Location, Location" - one of an ever-expanding genre. This got me to thinking just how much TV programming these days involves our watching other people doing various jobs: police detectives, lawyers, and now realtors. Both scripted dramas and 'reality' programming tend this way. Now there are 'reality' series about 'Dirtiest Jobs,' and 'Undercover Boss' where a CEO poses as an entry-level job seeker, both to see how front line workers are treated by supervisors, and to get a feel for the demands of such jobs. In that particular case, we're watching someone do someone else's job for a while.

There's also the burgeoning array of home renovation shows where we can watch people choose backsplash tiles, wield sledgehammers (cue Mike Holmes: "This is all going to have to come out!"), and make everything better with power tools.

So after putting in a day's work at our own job, somehow our great escape is to tune in

Besides watching other people work, of course, we also avidly watch other people play: football, baseball, basketball, golf, tennis, but also poker. It's been a while since I've seen TV bowling, though I here that's still out there.


Friday, December 21, 2012

Fun with dictionaries

Last night I saw a tweet from @acoyne Andrew Coyne, asking what letter is first in the most english words, and what pair and triplet of letters. That kind of question really grabs me, and as a linux geek I'm also in a position to give a definitive answer with just a few lines of code. I saw the tweet late last night and wished I could bang out the solution right there, but I was on an iPad so opening a terminal emulator to log in to a linux system, then using the virtual keyboard to type the code seemed more trouble than I could justify.

So as soon as I found myself with a free moment today, I logged in and tackled this. I'll recount the steps I took for those who want to know how to do this sort of thing. Answers are toward the end of the post for those who don't care how it was done.

Step 1: get a text file containing a list of english words. That's easy, as the linux operating system has long had such files for use in its spell-check utilities:
% dpkg -l ispell

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
ii  ispell         3.1.20.0-7     International Ispell (an interactive spelling


There's a whole post lurking in the decision of which dictionary to choose, but to keep this brief, I chose the Canadian english list already installed on a system we run in our department at UofT. A brief look at the file told me it includes proper nouns (the first batch of words all start with a capital letter.) I decided to skip these, on the basis that (a) they aren't legal in Scrabble(TM), and (b) it just felt right:

% ls -l /usr/share/dict/words

total 1832
-rw-r--r-- 1 root root    199 Jan 12  2011 README.select-wordlist
-rw-r--r-- 1 root root 931708 Mar 30  2009 american-english
-rw-r--r-- 1 root root 929744 Mar 30  2009 canadian-english 
[ ... ]

So I chose the Canadian-english dictionary, and filtered out words starting with a capital, as well as those with apostrophe-s at the end (included as useful to the spellchecker, but not distinct words for our purpose here):

% cd ~
% mkdir word-stuff
% cd  word-stuff
% egrep "^[a-z]" /usr/share/dict/canadian-english | grep -v "'" > words
% wc words
 63879  63879 594410 words

So that leaves us with 63,879 distinct Canadian english words that aren't proper nouns or acronyms.

Now the payoff:
% for L1 in {a..z}; do echo -n $L1 " "; grep -c "^$L1" words; done > counts-firstletter
% cat counts-firstletter

a  3591
b  3689
c  6213
d  4087
e  2583
f  2819
g  2065
h  2294
i  2659
j  568
k  459
l  1946
m  3325
n  1167
o  1565
p  5136
q  320
r  3770
s  7689
t  3262
u  1627
v  977
w  1762
x  11
y  190
z  105

So the first-letter winner is letter s with 7689 distinct words starting with s in this dictionary; second place goes to letter c with 6213, then d with 4087. Letters that start over 3000 words include a, b, m, r and t. Last place goes to x with just eleven.


Mr. Coyne's follow-up questions take us beyond what I can comfortably do on a single line at the command prompt. No worries though, as a few lines of shell script will cover this:

% vim coyne.sh
#!/bin/bash

> first-letter-counts
> two-letter-counts
for L1 in {a..z}
do
        C1=`grep -c "^$L1" words`
        echo "$C1       $L1" >> first-letter-counts
        for L2 in {a..z}
        do
                C2=`grep -c "^$L1$L2" words`
                echo "$C2       $L1$L2" >> two-letter-counts
        done
done


I'm stopping at counts for pairs of letters. The run times will show why:

% chmod +x coyne.sh
% time ./coyne.sh

real    0m13.652s
user    0m1.956s
sys     0m1.240s

Just under 14 seconds. That was less time than it took to type in the script, but still longer than it could have been. This code is reading through all 63,879 words in the dictionary for each of the 676 combinations of two letters. How many steps is that?

% dc
63879
676
*
p
43182204
q

So the two-letter test used over 43 million tests for "does this line start with these two letters"?
Running the three-letter test would have taken 26 times as long - over 5 minutes to run. As the great Bill Wasserstom said through Calvin, "Six minutes to microwave this!! Who's got that kind of time?"

Clearly we can do this with far fewer steps, but to do so neatly in /bin/bash will be daunting. So, time to switch into perl (others may prefer python - let's all just try to get along.)

% vim coyne.pl
#!/usr/bin/perl

open(WORDS, "<words");
WORD: while() {
        chomp();
        $first=substr($_,0,1);
        $one{$first}++;
        if ($one{$first} > $max_one) {
                $L1_max=$first;
                $max_one=$one{$first};
                }
        next WORD if (length($_) < 2);
        $firsttwo=substr($_,0,2);
        $two{$firsttwo}++;
        if ($two{$firsttwo}> $max_two) {
                $L2_max=$firsttwo;
                $max_two=$two{$firsttwo};
                }
        next WORD if (length($_) < 3);
        $firstthree=substr($_,0,3);
        $three{$firstthree}++;
        if ($three{$firstthree}> $max_three) {
                $L3_max=$firstthree;
                $max_three=$three{$firstthree};
                }
        }
close(WORDS);
printf "Letter %s starts %d words\n", $L1_max, $one{$L1_max};
printf "Letters %s start %d words\n", $L2_max, $two{$L2_max};
printf "Letters %s start %d words\n", $L3_max, $three{$L3_max};


% time ./coyne.pl
Letter s starts 7689 words
Letters co start 2535 words
Letters con start 969 words

real    0m0.171s
user    0m0.160s
sys     0m0.012s

So by reading through the word list just once, and storing stats on the first 1, 2 and 3 letters of that word into counters indexed by those strings of letters (using perl's amazing 'hash' feature), this script ran in just 171 ms.

Anyway, there are your results, Mr. Coyne: 's', 'co,' and 'con.' 

You can see why 'co' would be so prevalent, as it's a very useful prefix in its own right, giving us coexist, cooperate, cohabitate, etc., besides all the simple words it contributes to (cob, cobble, corn, cow, coy, etc.) On top of that, this digraph also gains by starting off both the winning trigraph 'con' - itself an important prefix for conceive, conserve, conservative, conservation, etc., as well as another important prefix 'com' (commerce, compromise, command, commit, complex, etc.)

Another few lines added to coyne.pl will allow me to show the runners up in each category. I imagine that 'com' may place in the top ten initial trigraphs, just from thinking of examples for the previous paragraph. I'll wrap up here for now, but I may post again with more wordplay stemming from this great little question.

- Jim Prall
Toronto, Canada




Sunday, December 9, 2012

Saving energy

Saving energy by shaving some watts


I recently received a handy interactive, whole-house power usage display. It's the PowerCost Monitor(TM) by Blueline Innovations of St. John's Newfoundland, and it was provided free of charge by my local electric utility, Toronto Hydro, as part of their "PeakSaver Plus" demand-reduction program.

They installed a sender over top of my existing time-of-use "smart meter;" the indoor portion is a wireless LCD display, powered by two AA batteries (provided) and including a small backup battery to retain settings when replacing the AAs. There is a fair amount of info already programmed in (which I wouldn't want to have to re-enter with the overloaded few-button interface): times of day for the peak, shoulder and off-peak rates on weekdays (weekends are all off-peak rate), as well as the current price per kWh at each of the three rates. It also knows and displays the current time and day of the week, and the outside air temperature (hey, they were already setting up one outdoor sensor, so why not toss in one more?) It also averages your recent usage to predict your expected monthly usage total. It's tracking that pretty well, I'd say. (I don't know if it's programmed to know your billing date, or if it's just projecting thirty days worth of your recent usage.)

Thanks to all this preloaded info, the unit knows which rate is in effect at the moment, and how much that is (if the utility revises the rates or the timetable, someone will need to reprogram the display - it's not a web-enabled kiosk.) If I want, I can set it to show exactly how many cents per hour we are consuming from electricity usage. But I know the rates and times, and prefer to keep the display set to kilowatts, as that's the 'comparable' I want to focus on in isolating which devices in our home are the power hogs. By watching the kW display change as I turn items on or off, I can isolate that item's draw (barring any confounding factors like the fridge or furnace motor cycling on or off automatically - I just listen for their motors first.) The read-out is "near" real-time - there is a lag in the response of up to ten seconds or so - I guess it is gathering data from something that blinks or rotates past its optical sensor, and it needs some time to detect the change in rate.

The display shows kW with one decimal place, so its resolution is 100W increments. That's a lower level of resolution than offered by the Kill-A-Watt from P3, but it gives info on the whole house including built-ins (light fixtures, ceiling pot lights, oven and dishwasher) and the 220V dryer that can't be fed through a one-outlet 110V meter like Kill-A-Watt. (You could use a clamping AC ammeter, which I own, but you'd need access to a single-phase wire for that outlet - too scary!)

I had already tested several items one-by-one on the Kill-A-Watt, noting e.g. that my small Samsung b&w laser printer draws 550W during warm-up, 45W while printing, and 10W on standby. Finding that has prompted me to keep it powered off when not in use, given that I print with it less than once a week on average. Powering it up looks to equate to around 20 minutes of standby time.

With the whole-house display, I can now develop a much clearer and more inclusive sense of where to focus to cut our energy use, whether by switching off high-demand items we don't need right now (back porch light, kitchen ceiling lights) or by working out if there are places I could save by replacing/upgrading bulbs, and perhaps one day appliances (though nothing is due for replacement for a while, happily.)

The eye-catching particulars:
  • our 220V electric dryer consumes some 5 to 6 kW while running
  • The dishwasher comes in around 1 kW - I haven't isolated it exactly, plus it cycles and the draw likely varies depending on what it's doing
  • The eight halogen pot-lights and one incandescent in the kitchen ceiling together draw nearly 500W - ouch! I hadn't thought that through, but halogens are not really much more efficient than incandescents. There are more in our upstairs hall and bathroom. For now I'm focusing on these rooms to keep the lights off when unoccupied.
    These fixtures take GU10 bulbs, with two fat round notched pins. None of the halogens has burned out in the 10+ years since the reno when they were installed. About a year ago I found a compact fluorescent bulb in GU10 form-factor, but the light is dimmer and far toward the blue-purple; also I expect this CF is not dimmable, and we have dimmers on both the kitchen and bathroom switch. (Add a dimmer in your bathroom - it's great when you have to pee at 4 am and just want to avoid banging into the sink without wrecking your night vision/waking yourself up more than you have to!) Anyway we didn't make a big switch to GU10 CFs. I looked up prices for GU10 LED bulbs - these run over $25 each at the local Home Depot (ouch), but ordering from China off eBay (free shipping by post, 15 to 25 business days for delivery) they're going for as little as $6.50. I may order a few to try them out. They claim to use CREE LEDs (real or imitation? Anyone's guess.)
  • base demand in our house, with everything turned off that can be, is 0.2 kW, i.e. ~200W, when the fridge is not running (the fridge doesn't show up as a big draw, I was happy to discover.) Items I know are contributing to the base load (the first four 'comms' items should probably go on a UPS battery back up, in case Rogers can keep service going during a local power outage - something not that uncommon in our neighbourhood):
    • cable modem plus wifi router, left on 24/7 because (a) we use VOIP for our main tel. #, and (b) we may want internet access at any hour of the day or night (iPad 1, iPad mini, Macbook, iPod Touch; there's even a wifi NIC in my new stereo for streaming radio.)
    • the NetTalk Duo VOIP SIP, so our phone can ring on incoming calls, and
    • Panasonic base unit for our cordless phones
    • charging bases for the additional phone handsets (I connected one through the Kill-A-Watt, but didn't register even 1W since the phone is displaying "fully charged" - so I listened to dialtone for a minute then tried again - the charging light came on briefly but still only drew 1W. This is just a pair of AAA NiMH batteries, so charging won't draw much even from deep discharge. Using the 'VA' mode on the Kill-A-Watt I see that topping up the charge draws 3 to 5VA, and the base unit draws 1VA of 'ghost load' even when the phone is not cradled. That's the benefit of having the VA mode - it reveals these small ghost loads where wattage is at or near zero.
    • Scientific Atlanta PVR, always on to be able to record shows at random times of day or night
    • AppleTV
    • the 'standby' power on electronics:
      • AppleTV
      • 1 LCD and 1 LED TV set
      • stereo & subwoofer
    • clock displays on:
      • stove
      • microwave
      • 2 clock radios
    • indicator lights on humidifier
    • timer thermostat for the furnace (LCD display and clock - whatever constant load these impose is more than paid back in energy savings from not heating while we're asleep or at work)
    • and of course a raft of little wall-wart device chargers (these should be on a switched power bar or just unplugged when not in use, to avoid 'ghost loads'):
      • iPad (always charging when not on the move)
      • iPad mini
      • iPod (needs charging once or twice a week)
      • Samsung cellphone (charges in minutes, twice a week)
      • portable iPod speakers (kept charged for indoor use - not travelling with them yet as it's -1C outside tonight, with freezing rain)
  • Over and above the ca. 200W base load I can't eliminate, there are some cycling loads that turn on and off intermittently on their own if they're in use:
    • furnace - natural gas fired hot water, with circulating pumps feeding the radiators
      • electronic ignition (avoiding gas-powered pilot light) may be 1kW for ca. 10 sec. each cycle - I haven't confirmed this yet, but I was watching the meter and it jumped up 1kW briefly just now, and that would fit with the furnace cycling on. It's a cold night.
      • The circulating pumps are also thermostatically controlled, but I don't know either their power draw nor their cycling pattern. I could in theory take the display down to the basement, and wait for the heat to cycle on to see what the meter does...
    • Items with a plug and/or power switch that run intermittently:
      • fridge - maybe 200W? Again, I'd need to sit with the display and listen for it to start/stop to know. It's nearly built-in, so the plug is not accessible; it's heavy and far too much trouble to pull out to read directly with the Kill-A-Watt. (Maybe the draw could be listed in the online specs?)
      • de-humidifier (used in summer in the basement) - not in use now
      • humidifier - hot water radiator heating is great, but the house gets achingly dry unless I use the humidifier. It has a large diameter fan over a tank with two evaporative pad inserts - beautifully quiet on the lowest setting. I hooked this up to the Kill-A-Watt just now, and got these VA readings:
        • speed 4: 55 VA (noisy)
        • speed 3: 27 VA
        • speed 2: 15 VA (audible, but barely)
        • speed 1: 13 VA (virtually silent)
        • speed 0: 17 VA (fan off - but the indicator panel still lit!)
So why does "off" draw more than "low"? Hunch: speed zero turns on six segments of the 7-segment green LED digit on the display, while speed 1 uses only the two segments on the right side. Whatever small draw the fan uses at speed 1 may be outdone by the ~ 1W per segment for the 7-segment LED. (To verifty this I'd have to take the unit apart, but I can't risk breaking this essential piece of winter kit!)

Update!

I fiddled with the controls on the humidifier while watching the readout on the Kill-A-Watt, and determined that simply powering off the fan pushes the draw from 13 up to 17 VA; it's not the seven-segment LED that's doing this, because this time I started and stopped the fan by altering the set-point of the humidistat control, rather than the power setting. The humidistat also uses short green light segments (LED? EL?) to show the 'bar graph' of the desired and current humidity levels; so I was altering the number of illuminated segments this way as well, but those changes showed no effect on the VA readout. The only time I saw the jump from 13 to 17 VA was the moment the fan powered off.
I'm thinking the controller circuit drives a relay that switches the current to the fan. Perhaps the relay incurs some power cost being in the off position? At work I have an office full of electrical engineering professors and grads whom I can quiz this week to see if that hunch is plausible, or if they have a better explanation.

Sunday, November 25, 2012

New frontier: 1st foray into public library DRM

Along with being a lifelong bookworm, I've also become a devoted fan of spoken-word audio in all its forms: radio dramas, interview shows and comedy-variety shows; podcasts, course lecture recordings, and audiobooks of every sort. I started collecting audiobooks back when they came on cassettes (or more like when the cassette editions went on clearance as consumers migrated to CD.) I did buy a few in CD format, but these tended to be full priced and cost more than the original book. I don't see this as that unreasonable, as recording a full-length book is quite labor-intensive and I believe content providers deserve to be paid for that kind of labor.

Recently I found a whole new source of full-length audiobooks at no charge, made possible by a combination of older titles now out of copyright, plus a large network of dedicated volunteer readers. as they say at the start of each recording, "All librivox recordings are in the public domain. For more information, or to volunteer, visit librivox.org " It's a great resource. I occasionally volunteer taking blind people out sailing; I always mention this site to them, and those not already plugged into it are generally quite excited to try it out.

So far I've completed the librivox audiobooks of Robinson Crusoe, The Adventures of Huckleberry Finn, and most of Moby Dick. I've also started The Buccaneers of the Caribbean, and I think I've got another title downloaded and waiting. Spoken-word audio files need less space than comparable amounts of music - you can get them in lower bit-rate and still get the full clarity of the reader's voices. 

I've also been dipping my toes into the world of ebooks (of which I have a daunting backlog already..) I started out on my iPad with the Kindle app and the Kobo app from Chapters Indigo (Canada's largest brick-and-mortar chain bookstore, with a growing presence in both online ordering of dead-tree materials and their own ebook line, complete with an 6" eInk e-reader named Kobo.)

Lately I've worked out how to check out ebooks from the Toronto Public Library, and I'm about 2/3 the way through my first checked-out library ebook, Kim Stanley Robinson's Sixty Days and Counting (which I wish I could love as much as I did his Mars trilogy... but that's another post.)

While noodling around the library website's e-stuff section, I found they also have some audiobook titles that are suitably DRM'ed for online e-lending. I found the book for September's book club meeting was in their collection, though all the virtual copies were checked out. So I placed a hold. Yesterday I got an email from them that my choice was back in and on hold for me; they gave me four days to get my act together and download it.

Last night was out as we had race night at the sailing club (24 kts wind and short-handed with just five of our normal crew of seven, so it was a real workout!) So tonight I made a point to settle in and discover how to "check out" a DRM'ed audiobook on hold for me at the library.

Whew, what an exercise! They do post detailed instructions, which seem fine and suitably user-friendly. The thing is that I wanted to put the files on an iPod for portability (getting them on the iPad would likely have been a bit easier, but I don't want to lug the iPad for listening to this.)

So here's what I had to do, in brief:
a) borrow my wife's iPod Touch, as it can run apps; the DRM requires this so it can expire the audio files when your libary loan is up ( and (a2) recharge this iPod)
On the Windows PC:
b) visit the TPL site and log in with my library card # and pin
c) go to the eBooks section, and repeat the login (they don't quite achieve single-sign-on)
d) find the tab for Holds in the My Account page; yay, there's the audiobook I requested
e) place this item in my 'cart', then 'proceed to checkout'
f) download the DRM'ed content, formatted for Overdrive Media thingie
g) Open that download in Overdrive, and tell it to download the content - seven files
h) hook the iPod to the PC
i) close all the alerts from iTunes triggered by this (no, don't download yet another iTunes update; no, don't update the iOS on this iPod...
j) tell Overdrive to transfer the 7 files onto the iPod (no, not onto the SD card of photos that I left mounted; okay, I'll tell iTunes to "manually manage music on this player"; okay, I'll lower the bitrate iTunes uses for converting to AAC to save time)
k) go off and do my back exercises while Overdrive and iTunes collaborate on the big transfer

... I've just come back and found I left this as a 'draft' and never clicked on 'publish.' Now I'm unsure if there were more steps left to be done after step 'k' above, or not. I can report that the audiobook worked fine on my iPod, but that sailing and life in general conspired to keep me from finishing the audiobook. I ended up buying the eBook so I could finish this title in time for book club. (The library did have copies of the eBook for borrowing as well, but they were all checked out; the DRM requires they limit patrons to the number of e-copies they've paid for.)




Blogging to-do list

I have been lax about keeping up my blogging lately, and I need to get 'BTK' - back to the keyboard.

Here I'll start off with a laundry list of topics I want to cover in the next little while. I can turn these into links as I add entries for them.


  • The new Canon Powershot SX-50 HS which is probably the best all-around camera I've ever owned. The  huge super-zoom goes from 24mm equivalent, great for indoors and for landscapes, to an eye-popping 1200mm equivalent zoom at the long end, with remarkably good image stabilization. This is a 50 times zoom ratio, and they've made it work. Oh and 1080p HD video tossed in. I'm looking forward to some better bird photos in my future.
  • The Raspberry Pi - I placed my order for qty. 10 back in July and they just arrived at the start of the week. So far I've been tracking down require cables etc. I set one up with Raspbian on a 4gb SD card and so far it looks quite neat. I've been reading up on its thrifty power draw (~400mA@5V == ~2W) and what you need to set it up off-grid to run from battery.
  • FLL == First Lego League, where I just did my first turn as an event judge this weekend.
  • Stuff about birds and birding on the web
  • My new real-time household power meter display and its uses (also Kill-a-Watt)
  • games we're finding such as Timeline, etc.

Wednesday, April 4, 2012

Rick Santorum vs. the Facts, round N

Headline:

Rick Santorum Falsely Claims California Schools Don't Teach American History


So Rick Santorum gave a speech saying "I was reading last night" -- somewhere, though he doesn't mention where -- that "seven or eight" of the campuses of the University of California offer no courses at all on American history:

article on SFGate (website of the San Francisco Chronicle)


Now, that's a simple claim to fact-check, and several people under the sway of reality's well-known liberal bias have already done so:

Politifact gives Santorum a "false" on this claim and trace the likely source that he garbled: a Peter Berkowitz editorial in the WSJ lamenting that many U.S. universities no longer require undergrads to take a course in American history, or a survey course on Western Civilization. If that were so, it would indeed be a disturbing development. But that's not what Rick Santorum remembered from the WSJ (or whatever he 'was reading last night') He said US universities no longer teach basic American history at all, and pointed to the UC system as the case in point.

Well ... oops!

Rachel Maddow took Santorum's silly extrapolation apart on her show, which was picked up by many news outlets:

http://www.miamiherald.com/2012/04/04/2730900/rachel-maddow-debunks-santorums.html
http://www.sacbee.com/2012/04/04/4389109/maddow-uses-uc-davis-course-catalog.html

Of course Stephen Colbert could hardly pass up this one ...
http://www.colbertnation.com/the-colbert-report-videos/411675/april-03-2012/rick-santorum-speaks-from-his-heart---california-colleges

Santorum mutated "no longer require" from the WSJ op-ed into a claim that seven UofC campuses "don’t even teach an American history course" If that  a crazy claim that should have prompted someone in his campaign to google " 'American history'' University of California' " - which prior to yesterday would have placed this obvious corrective in the top 10 (now the Santorum story hogs the front page of results...)

http://www.universityofcalifornia.edu/admissions/counselors/graduation-requirements/history/index.html

This policy statement rebuts even the weaker claim of the WSJ editorial that UofC has stopped requiring that undergrads take American history, let alone Santorum's whopper that they've all ceased teaching this subject to anyone at all.

Santorum clearly must have lapped up unquestioningly the invective in the WSJ editorial, fitting it into his preset frame of "America's Colleges are Hotbeds of Liberal Bias and Anti-Americanism!" so that it evidently morphed in his narrow mind into something such as "See? They've cancelled all their American history courses, they hate America so much!"

First, think about what it says about America that the Republican Party can only muster presidential primary candidates of this calibre - and this is one of the long-standing contenders, not Herman Cain. Surely the world of corporate leaders should have any number of normal, rational individuals of a conservative bent, and possessed of some life experience, intelligence and judgment? I would assume a rise to prominence in the corporate world would usually weed out fools, rubes and the terminally hasty-minded; but perhaps none of these rational CEOs is willing to dive into the mud pit of the presidential primary?

How to be your own fact checker

I like going online to check something I've heard to see if I find the real story. I especially enjoy doing this for anything university-related. I work at a university, I take university courses in my spare time, I read academic journals in my spare time and like to notice which universities show up as leaders in a particular area of inquiry.

So asking just how wrong Santorum got this one tickled my google-bone. As a mental exercise, I first tried to see how many of the UC campuses I could name from memory without resorting to the Google. This reminded me of the family fun game of 'categories,' and its assorted variants ('list as many instances of these as you can think of: breeds of cattle! Bogart films! Australian celebrities! and so on...)

With no hesitation I came up with six off the top of my head: UCLA, UCBerkeley, UC San Diego, UC Santa Barbara, UC Davis and UC Santa Cruz; I had to fall back on the web to remind me of UC Merced, UC Irvine and UC Riverside, and rounding out the set of ten is UC San Francisco, which I'd heard very little about at all. It turns out UCSF is the system's medical school - more on that in a minute.

This page gives the official list of UC's ten main campuses, with some nice photos:
http://www.universityofcalifornia.edu/campuses/welcome.
(Note to past self: should have applied to UC, could have gotten a lot more sun that I did at CWRU)

So I took their list, looked up the history department of each campus (starting out by just trying "history.ucwhatever.edu" as the URL, which works for most of them) and then finding their list of Spring 2012 courses on offer. Here are the history department pages for the nine UC liberal arts campuses, with notes on what American history courses they list running right now, Spring term of 2012. I've listed only conventional US history courses, skipping all the sorts that Santorum would surely dismiss as unAmerican, such as "Women in America", "Asian immigrants American experience", "Race in American history" and so on.

UC BERKELEY

History department: http://history.berkeley.edu/
I quickly found these two American history courses running at UCB this term:
7A: The United States from Settlement to Civil War (T,Th 9:30-11)
7B: The United States from Civil War to Present (M,W,Th 9:30-noon)

UC DAVIS

History department:  http://history.ucdavis.edu/
"The Undergraduate program at UC Davis has 33 faculty members offering courses in five broad fields of concentration—Africa, Asia/Middle East, Europe, Latin America, and the United States" (implying at least six or so full time professors of American history)


Spring 2012 UCD offerings include:

History 17A – History of the United States                 Professor Smolenksi
This course covers American history from the Euro-American Encounter in 1492 through the Reconstruction period following the Civil War

History 17B – History of the United StatesProfessor Rauchway
The experience of the American people from the Civil War to the War on Terror
History 170B – The American Revolution, 1763-1790    Professor Smolenski
History 174A – The Gilded Age and Progressive Era    Professor Rauchway
"Between the Civil War and the First World War, the US became the nation we know today: the world's preeminent economic powerhouse, with enviable military capacity..."


History 174B – War, Proesperity, and Depression, 1917-1945  Professor Olmsted
This course will explore the history of the United States during one of its most dynamic periods...


 History 174D – Selected Themes in 20th Century American History  Instructor Voyles


UC IRVINE

This is the first campus whose history department URL is other than "history.uc{campus}.edu":
History department: http://www.hnet.uci.edu/history/


History 40C:  THE FORMATION OF AMERICAN SOCIETY: THE TWENTIETH CENTURY  ROSENBERG, E.
"This class surveys U.S. history in the twentieth century..."


History 100W:  HISTORY OF THE AMERICAN WEST  IGLER, D.
"This undergraduate writing course focuses thematically on the history of the American West during the nineteenth and twentieth centuries..."

History 172G: ASIA-PACIFIC WAR   -  RAGSDALE, K
"... the Pacific War, from both Japanese and Allied perspectives, particularly military strategy, the conduct of battles and the experiences of P.O.W.s"

History 190: US IN THE 1950'S  -   Weiner, J
"This course will explore the social, cultural and political history of that decade. Issues include McCarthyism, cold war foreign policy, gender roles, and popular culture..."

History 190  WAR AND MEMORY, 20TH CENTURY US   - ROSENBERG, E
"This class deals with America’s 20th and 21st century wars in public memory—how they are represented in public culture (popular press, government propaganda, museum exhibits, literature, film, and television) and memorialized."

UCLA

History department: http://www.history.ucla.edu/

HIST 139B Waugh, Joan U.S., 1875 to 1900
HIST 141B Yeager, Mary A. American Economic History, 1910 to Present
HIST 142A Meranze, Michael Intellectual History of U.S.
HIST 142B Corey, Mary Intellectual History of U.S.

HIST 191D Gómez-Quiñones, Juan Capstone Seminar: History -- U.S.
HIST 191D-2 Matsumoto, Valerie Capstone Seminar: History -- U.S.
HIST 191D-3 Mukherji, S. Ani Capstone Seminar: History -- U.S.
HIST 191D-4 Corey, Mary Capstone Seminar: History -- U.S.
HIST 191D-5 Higbie, Frank Tobias Capstone Seminar: History -- U.S.
HIST 191D-6 Yeager, Mary A. Capstone Seminar: History -- U.S.

HIST 201H Gómez-Quiñones, Juan Topics in History: U.S.
HIST 201H-2 Higbie, Frank Tobias Topics in History: U.S.
HIST 201H-3 Matsumoto, Valerie Topics in History: U.S.
HIST 201H-4 Dubois, Ellen C. Topics in History: U.S.
HIST 201H-5 Kelley, Robin D. G. Topics in History: U.S.

UC MERCED

History department:  http://history.ucmerced.edu/
HIST 016: Forging of the United States, 1607-1877 [4]
The history of the U.S. from colonial roots through the Civil War and Reconstruction. Major topics include the coming of the Revolution, the impact of slavery on the development of the United States, westward expansion, and the creation of a distinctively American culture.
Discussion included.
HIST 017: The Modern United States, 1877-Present [4]
The history of the United States from the Gilded Age through the early 21st century. Major topics include the impact of the Industrial Revolution on American life, the rise of the U.S. to a world power, the changing role of the federal government, and the ongoing struggle for civil rights.
Discussion included.
HIST 020: History of the American West 1500 - 1849 [4]
An exploration of the idea of the west as it developed in the United States from Columbus to the advent of Gold Rush California. Emphasis will be upon the age of exploration and discovery, the notion of the frontier, and the impact of westward expansion upon the colonizer as well as the indigenous people of the west.
Discussion included.
HIST 021: History of the American West, 1850-2000 [4]
The history of the idea of the west in the United States from the aftermath of the California Gold Rush to the rise of the Silicon Valley. Emphasis is upon the various roles that technology and the modern notion of the frontier played in the settlement and exploitation of the west before and after the Civil War.
Prerequisite: HIST 020. Discussion included.
HIST 128: The United States and the Vietnam War [4]
Examines the roots and conduct of the war from the initial American involvement after World War II through the withdrawal of American troops in 1973. Additionally, students explore the way in which the war both reflected and amplified divisions within American society during this period.
Prerequisite: HIST 016 or HIST 017 or consent of instructor.
HIST 130: The Cold War, 1941-1991 [4]
The political, cultural, and intellectual history of America’s confrontation with Communist at home and abroad, from U.S. entry into the Second World War to the collapse of the Soviet Union and its aftermath.
Prerequisite: HIST 016 and HIST 017 or consent of instructor.
HIST 131: Topics in National History: "Manifest Destiny:" The United States and the World, 1840s-Present [4] 
Beginning with the Mexican-American war and the conquest of the West, this seminar examines the way in which the U.S. has aggressively expanded its role on the world stage. Major themes include the impact of economics and religion and ongoing debates over globalization and imperialism.
Prerequisite: (HIST 010 and HIST 011) or (HIST 016 and HIST 017) and HIST 100 or consent of instructor. HIST 100 may be taken concurrently. May be repeated for credit.
HIST 132: Intelligence and National Security, 1945-2000 [4]
Focuses upon the roles that intelligence and espionage have played in U.S. national security since 1945. A particular emphasis lies in those historical instances where technical intelligence had a part in resolving, or avoiding, major Cold War crises.
Prerequisite: HIST 016 and HIST 017 or consent of instructor.
HIST 134: History and Literature of the Great Depression [4]
Focusing on the turbulent decade of the 1930s, we use the lens of history and literature to explore how events from 1929 - 1941 helped shape modern America. Particular attention is paid to the impact of these years upon California and the West.
Prerequisite: Junior standing and LIT 020, LIT 021, HIST 016 or HIST 017. Letter grade only.
HIST 135: History and Literature of the 1960s [4]
Examines American politics, culture, and society in the 1960s. Topics include civil rights, feminism, the Vietnam War, the Beat and other counterculture movements, and the sexual revolution.
Prerequisite: LIT 030, LIT 031, HIST 016 or HIST 017. Letter grade only.

US RIVERSIDE

History department: http://history.ucr.edu/
Here is a PDF of UCR's catalog of American history courses, which includes among others:
HISA 110A. Colonial America (4)
HISA 110B. Revolutionary America (4)
HISA 110C. The Early Republic: The United States, 1789-1848 (4)
HISA 113. Slavery and the Old South (4)
HISA 114. The American Civil War (4)
HISA 115. Reconstruction (4)
HISA 116. The United States, 1877-1914 (4)
HISA 117A. United States, 1914 to 1945 (4)
HISA 117B. United States, 1945 to the Present (4)
HISA 118. American Thought in the Twentieth Century (4)
HISA 120A. The Supreme Court and the Constitution (4)
HISA 120B. The Supreme Court and the Constitution II (4)
HISA 137. Frontier History of the United States (4)
HISA 164A. The United States and Latin America to 1930 (4)
HISA 164B. The United States and Latin America since 1930 (4)

UC SAN DIEGO

History department: http://history.ucsd.edu/
History course list for 2011-12 PDF, which lists among others:
HILD 2A – United States History  - M. Hanna
HILD 2B – United States History  - R. Klein
HILD 2C – United States History - M. Hendrickson
HIUS 141/ECON 159 - Economic History of the U.S. II  - M. Hendrickson
HIUS 145 - From New Era to New Deal - M. Hendrickson
HIUS 150 - American Legal History to 1865 (+)  - M. Parrish
HIUS 169/269 - Topics/American Leagn & Const. Hist. - M. Parrish ['legislation / Constitutional history']
HIUS 178/278 - The Atlantic World 1400-1800 (+) - M. Parrish
HIGR 265C - Historical Scholarship/American History - R. Plant
HIGR 267B - Research Seminar/U.S. History II - N. Shah
HITO 133 - War & Society/Second World War - F. Biess
HITO 168/268 - The U.S. and Germany 1890s-1960s - F. Biess & R. Plant

UC SANTA BARBARA

History department: http://www.history.ucsb.edu/ 

17C The American People (World War I to the Present) MW 12:00- 1:15 Dineen-Wimberly
17C The American People (World War I to the Present) TR 2:00-3:15 Yaqub
164IB American Immigration MW 12:30-1:45 Devoy
166B United States in the Twentieth Century (1930 to 1959) TR 9:30-10:45 Kalman
175A American Cultural History TR 2:00-3:15 HSSB 4020 Jacobson
201AM Advanced Historical Literature: America W 5:00-7:50pm Hämäläinen
292C Foundations of U.S. History, 1917 to Present W 1:00-3:50 O'Connor

UC SANTA CRUZ

History department: http://history.ucsc.edu/
HIS 10B - 01 Us Hist 1877-1977 TuTh 02:00PM - 03:45PM  Lasar, M  - enrolled: 170 avail. seats: 0
HIS 110B - 01 US Revolu:1740-1815  TuTh 04:00PM - 05:45PM  O'Malley, G. enrolled: 117 avail.seats: 0
HIS 80Y - 01 WWII Mem U.S. Japan MWF 11:00AM - 12:10PM Yang-Murray,A.S.;Christy,A.S. enrolled: 285 avail. seats: 0
HIS 194Y - 01 Memory WWII US/Japan TuTh 12:00PM - 01:45PM  Christy, A.S.  enrolled: 24 avail. seats: 0

Okay, so all nine liberal arts campuses of UofC offer multiple courses on U.S. history every term. We can even see that at least at UCSC, these courses are all full this term.
Scorecard: 
Reality: 9
Santorum: 0

Final reflection: even the med school, UCSF, has a History of Medicine department. Wonder if they teach history of American medicine? Yup. No surprise there, as the US has led the world in medical research for more than a century, and it is a U.S. university running the course, after all.

US SAN FRANCISCO (School of Medicine)


History of medicine program website: http://www.dahsm.medschool.ucsf.edu/history/courses.aspx
including:

HHS 219 Twentieth Century American Medicine (Bartz) (S)
HHS 297 Directed Reading : Individual Tutorials (W, S) --History of American Medicine

So. There you have it - ten for ten.