29

Aug

Palin - Another Qualye?

Topic: Politics
Tags: ,

The story just broke that McCain has chosen Sarah Palin - the governor of Alaska - as his running mate. Check out her Wikipedia page to get a reasonably unbiased sense of her background (I’m impressed with her Wikipedia editors - they added information about her as the VP pick within minutes of it hitting the news). It’s hard to overstate what a huge gamble McCain is taking here. I believe he choose her because:

  1. Unlike the others he was considering for VP, she has an unusual combination of characteristics that give her the potential to appeal to both the GOP base and independents: social conservative, female, young, pretty, and - like McCain - she has a mavericky, anti-corruption reputation.
  2. He hopes it’ll give him a chance to improve on the GOP numbers among women, who consistently go for Democrats more than men (and he hopes to pick up on any resentment that might still remain among Clinton supporters).
  3. She has a scorecard that parallels Obama’s in certain respects. In the microcosm of Alaska politics, this young, relatively unknown, ambitious outsider took on and beat the GOP party establishment.

She got some good press from PBS’ Now a few weeks ago, when they aired a story on corruption in Alaska:

The former beauty queen, small town mayor and mother of five is a conservative Republican who ran for office in 2006 and won, promising to clean up corruption—in her own party.

Before the elections, Palin was considered a long shot. But her plain spoken style and willingness to be tough on the oil industry has made her wildly popular here. With the VECO case constantly in the headlines Palin has already forced sweeping ethics reforms on the legislature in Juneau.

So at first glance she seems like a good choice. But I think McCain has skated into Dan Quayle territory by choosing her. After Quayle was chosen as GHW Bush’s VP and made repeated gaffes, he quickly became the butt of endless jokes. What isn’t as well known, however, is that - prior to being chosen as VP - Quayle was well regarded within the party as a junior Senator with a bright future ahead of him. But as Bush quickly learned, he was too green for a rapid transition to the big leagues. Palin has 1 year and 7 months experience as governor, and prior to that she was mayor of a very small town. She makes Obama’s resume look long (and Obama had the benefit of ramping up his campaign skills in his long primary battle with Clinton). Also, the cloistered, oil-soaked world of Alaskan politics is probably not the best place for a brief training before hitting the national scene. It seems to me McCain made the same calculation Bush did when choosing Quayle (and Mondale did when picking Ferraro) - he considered only her polling-related characteristics (her cross over demographic appeal, her personal story, etc.). Neither he nor anyone else has any idea how she will hold up under the withering fire and intense scrutiny of a Presidential campaign. In particular, it’s quite a gamble pitting her toe-to-toe against Biden in the VP debate.

GHW Bush was fortunate that the political fallout of his VP choice wasn’t severe. Bush wasn’t as old as McCain, and didn’t go through four bouts of skin cancer. McCain’s VP choice will (or at least - should) be held to a higher standard given that McCain just turned 72. If he wins, he’ll be the oldest newly inaugurated President in our history. The odds of him having health problems that will require the VP to step in are much higher than previous newly elected Presidents. Choosing Palin fundamentally undermines McCain’s central argument against Obama - that’s he too inexperienced to be President. Palin has even less experience, and would be more likely than previous VPs to suddenly inherit the Presidency. Also, if McCain wins, there’s a good chance he won’t (or at least - shouldn’t) run for a 2nd term, due to his age, which means the mantle of party leader may be passed to his VP in the not too distant future. He’s forcing the entire GOP - and possibly the entire country - to make a very big investment in someone who was completely unknown to 99% of Americans until 30 minutes ago.

Update: a comment from top McCain adviser Charlie Black: “She’s going to learn national security at the foot of the master for the next four years, and most doctors think that he’ll be around at least that long.” Apparently he meant the last part of that sentence as a joke, but it’s not exactly a reassuring one.

Sean’s summary of the situation at fivethirtyeight.com nails it:

And that gets back to the heart of the gamble this pick represents. If McCain and Obama each consolidate their bases at the same percentages, Obama wins. There are now numerically more Democrats, and independents favor Obama. Before the conventions, McCain had moved past Obama, mostly because many women in Hillary Clinton’s coalition had failed to warm to the Democratic nominee. Obama was stuck at 83% of his base and McCain had moved from a tie into 87% consolidation. Had this week’s Denver convention not been as successful from a unity standpoint, McCain might not have needed as much to go for broke. If Obama secures his base, wins indies (as he’s easily doing) and dominates in the ground game, game over for McCain. Demographically, the mountain is too steep to climb.

So what does McCain do? He picks a woman specifically to aim a wedge at the Obama base. It’s a demographic pick - all about gaming the vote and little about governing. This is not the resume of a male candidate that would be acceptable…

It’s probably not going to work, but we’ll see some number soon. I think it’s a gamble that McCain will lose. But I do respect the gamble. He looked into the numbers, saw the need to freeze Obama’s base or be swamped on the numbers alone, and he took a big risk. Will a pro-life candidate sell those reluctant Democratic women? Again, unlikely. But kick in a few sexist dismissals - particularly any by Joe Sinatra Biden - and the outrage machine might get itself going.

23

Aug

Shashin 2.2 - Slideshows and Built-In Video Display

Topic: WordPress and Web Programming
Tags: ,

Shashin was overdue for an upgrade. The new version incorporates the latest version of Highslide, which means the big new feature is slideshows (scroll to the bottom of my Shinjuku Gyoen post to see a slideshow in action). I made the addition of the slideshow buttons automatic, which means if you’re already a Shashin user, you don’t need to do anything to enable slideshows in posts you’ve already written.

The other major new feature is that Shashin can now play Picasa videos locally in a Highslide window. This is also automatic. If you already have video thumbnails in your posts, and you’ve selected Highslide for viewing full size images in the Shashin Settings menu, then the videos will now play locally in a Highslide window. Here’s an example.

A word of caution if you put a video within a slideshow of other images: the video will load up and start playing, but if the length of the video exceeds the length of time that’s set for displaying each image, the video will stop and the next image will be loaded. There’s no way around that.

Other new features include:

  • New options in the Settings menu for autoplaying Highslide slideshows, how long to display each slideshow image, and the dimensions for displaying videos.
  • Checks for shashin.css and highslide.css in your active theme directory - this allows you to customize the stylesheets without worrying about losing your customizations the next time you upgrade Shashin.
  • No longer necessary to update image paths in highslide.css if you have WordPress installed in a subdirectory on your site (unless you choose to put a custom version of highslide.css in your theme directory - then you need to update the image paths to point to their location in the plugins directory).
  • For the caption in Shashin’s tags, in addition to “y” or “n” you can now use “c”, which means all pictures will get the caption “Click picture to enlarge” and all videos will get the caption “Click picture to play video.” The actual caption will be displayed in the Highslide window.
  • Option to make thumbnails not clickable, if you don’t want to display a larger version.

You can download Shashin 2.2 at wordpress.org.

Important note to upgraders: Deactivate your old installation, upload the new version, and then reactivate. This is necessary for required updates to the Shashin tables. Also, you need to sync all your albums - click the “Sync All” button (under the “Manage” tab).

9

Aug

Deko Boko 1.1 - Compatible with IE 7 and the New WP-reCAPTCHA

Topic: WordPress and Web Programming
Tags: , , ,

A report of CSS trouble with IE7 in Deko Boko 1.0 has led me to release a fairly major upgrade - Deko Boko 1.1 is available for download at wordpress.org:

  • I’ve completely rewritten the XHTML and the CSS for the contact form. If you’re upgrading, and you’ve customized your contact form, you’ll need to migrate your changes. The reason is that the widely used CSS “clearfix” code that I had in Deko Boko breaks in IE7 (I know, I’m late in catching this - I’ve switched to Ubuntu on my laptop and I wasn’t keeping up with the latest Microsoft nonsense). For reasons explained in my rant below, this pushed me to do a full rewrite, which simplifies both the markup and the CSS.
  • One of the features of Deko Boko is that is it plays nicely with WP-reCAPTCHA (the official reCAPTCHA plugin for handling spam in comments). The latest version of WP-reCAPTCHA changed the name of the WordPress option variable where it stores its API key, so Deko Boko now looks for it under the new name and the old name.
  • I added a language selector to the Deko Boko settings menu, so you can choose a language other than English for the reCAPTCHA widget.

<rant>The challenge with writing a plugin like this is keeping both the XHTML and the CSS at a level where you don’t need to be a coding guru to make changes yourself. I want the Deko Boko contact form to be customizable by people with beginner-to-intermediate level coding skills. But there are a multitude of variations in how CSS is implemented in different browsers, not to mention the things that are just plain broken. Nowhere is this problem worse than forms. So developers are often forced to choose between doing semantically “incorrect” things in their markup (like using br tags to force certain layout effects), or writing hundreds of lines of complicated CSS, often with filters to deal with incompatibilities between browsers.

Unfortunately the solution for the IE7 “clearfix” problem I mentioned above breaks clearfix for IE6 (requiring an IE6 filter to then fix that). IMHO clearfix is a hack to begin with, needed to deal with an oversight in the CSS model. And in any event, the code needed to fix the problem for definition lists was way too fragile for a plugin like this, which is meant to be flexible and extensible. So I dropped the definition list in favor of an ordered list, following the techniques described in Cameron Adam’s excellent article on form layout. His approach to form layout is the best I’ve seen, with some clever yet simple approaches to the markup (the right word is “elegant” - as it’s semantically correct too) to get around some of the most common problems with form layout. It’s also such a well written and highly detailed article, that I can simply refer you to it if you want to extend the layout of the Deko Boko contact form to suit your own needs ;-) .</rant>

5

Aug

Deko Boko 1.0 Now Available - A WordPress Contact Form Using reCAPTCHA

Topic: WordPress and Web Programming
Tags: ,

My thanks to everyone who tried out the beta release of Deko Boko. I received a lot of useful feedback, which led to some of the features and fixes in the 1.0 release of Deko Boko, now available for download at wordpress.org. I’ve added:

  • A selector for using different reCAPTCHA widget themes, as well as support for custom CSS for the reCAPTCHA widget.
  • Support for multiple, custom contact forms.
  • “CC Me” option for users to receive a copy of the message they submit to you.
  • Protection from cross-site scripting attacks.

See the Deko Boko page for further details.

Important note to upgraders: you will need to deactivate and then reactivate Deko Boko after you upload the new files.