WordPress 2.7 xmlrpc.php Monkey Patches

I’ve been fighting with WordPress 2.7’s xmlrpc.php file for a few days now, and I’ve made 2 modifications that may be useful to you.

If you’re writing new posts via metaWeblog.newPost and the angle brackets from your HTML formatting are being stripped out (as described in this official WordPress bug report) and you’d rather not rebuild PHP on your server (who does?), open up xmlrpc.php and replace:

$post_content = apply_filters( 'content_save_pre', $content_struct['description'] );

with

$post_content = apply_filters( 'content_save_pre', $content_struct['description'] );
$post_content = str_replace('lt;', '< ', $post_content); $post_content = str_replace('gt;', '>', $post_content);

This should replace the stripped angle brackets with actual, functioning angle brackets.

Secondly, if you’re having trouble uploading files via metaWeblog.newMediaObject, try this fix (big thanks to Keith Garner). In xmlrpc.php replace:
$bits = $data['bits'];
with

$bits = $data['bits'];
$bits = base64_decode($bits);

WordPress has given me quite a roller coaster ride these past couple years. While 2.7 is a huge improvement over the last couple releases, if I wasn’t so committed, I’d be looking for something much leaner.

Update 30 Dec 2008
Big thanks to Daniel Jalkut for commenting that the reason I needed $bits = base64_decode($bits); was probably due to my bits not being properly encoded. Correct he was. So, rather than a bug in WordPress, this is a bug in Applescript (what isn’t) and in Ruby’s XMLRPC/client for failing the Principle of Least Surprise (if the spec says the tag is <base64>, the tag should be <base64> not <string>).

To get the <base64> tags in Ruby, you need to encode with XMLRPC::Base64.new(the_file) not simply Base64.encode(the_file)

Why Does NORAD Follow Santa?

(I’m posting this more for my reference than anything else)

It all started back in 1955, when an advertisement for Sears Roebuck & Co. urged children to call Santa Claus, but misprinted the telephone number and accidentally listed the hotline for the commander in chief of the Continental Air Defense Command’ (CONAD), NORAD’s predecessor. Colonel Harry Shoup, who was the director of operations at the time, decided to play along and enlisted his staff to participate in the monitoring of Santa’s whereabouts via “radar.” – Julia Angwin, Lead Editor of Wall Street Journal’s Digits

The New Apple Product Dilemma

Apple’s been great about keeping their product offerings simple and straight forward. Historically, the biggest question when deciding on which Apple computer to purchase was:

Do I want the power & storage of a desktop or the portability of a laptop?

Even today, the prices between a 2.4GHz iMac and a similarly spec’d 2.0GHz Mac Book differ by only $125 ($1274 vs $1399 respectively).

At that price difference portability easily wins over processor speed.

Today, the same dilemma exists between the iPhone and the iPod Touch.

Do I want the power & storage of the iPod Touch or the persistent connection of the iPhone?

16GB iPhone: $1979.751
16GB iPod Touch: $299

Wow. I didn’t expect that.

Since I’m not excited about being an AT&T customer again and am good with WiFi as my network – I guess it’s not really a dilemma. Huh.

🙂

1. $299 + (($30 AT&T iPhone data plan + $39.99 AT&T 450 min/mn voice plan) * 24 month contract).

First Crack 113. Tim Coyne on How Hollywood Works

I was interested in how Hollywood actors promote themselves, find work, and generally build a career. So, I called up Tim Coyne of The Hollywood Podcast for the break down.

We cover auditions, agents, reels, and the side jobs that keep the bills paid.

[40 min].

The Roastery and Kopplin’s Offering Coffee Subscriptions

If you’re still looking for something delicious to give the fanatic coffee drinker in your life – I’m super excited to share that both Jeremy Raths, of The Roastery, and Andrew Kopplin, of Kopplin’s Coffee, are offering coffee subscriptions.

The Roastery Regulars subscription, is $144, delivers 1 pound of coffee to your door every other week for 26 weeks (yes, 2 lbs /mn for 6 months + a bonus pound).

Kopplin’s Coffee of the Month Club subscription ($180) offers 1/2 lb. per month for 12 months of some of the most amazing coffees you’ve (I’ve) ever tasted. I’ve been ‘beta tasting’ Kopplin’s subscription this year and I’ve been blown away month after month (I’ve even recorded a few of my tastings). The only downside – it’s only a 1/2 lb. per month. 🙂

In both cases, I’d recommend picking up a good press pot or a Chemex, your regular drip coffee maker probably isn’t up to the task.

Adpaper Subscriptions Hold Steady

This morning, staring at the messed up stack of folded broadsheets, I felt bold and broached the subject.

“Honey, I’d like to rethink our subscription to the Sunday paper.”

After an expectedly tense moment, she replies.

“What’s the problem with me perusing a few weekly ads maybe reading the comics. It’s not an extravagant expense.”

Well, she’s got me there.

Pownce, Exit Here.

While, I wasn’t kind to Pownce a year ago, twice even. There are many unfortunate things about the shuttering of Pownce.

Halfway down the list is making the mistaken assumption that the same shuttering couldn’t happen to Twitter (or any other centralized, free, web service). Remember Evan sold Blogger to Google 6 years ago – before Blogger had a sustained, cash flow positive, revenue model.

Something about leopards and spots.

If Pownce was a publicly traded company that just closed up shop – the price of Twitter, Facebook, and Friendfeed would have just tanked (then again, I’ve been shorting ‘social networks’ for a year).

Perhaps Pownce’s greatest success was simply all the press and publicity it got. For a service around for maaaaayyybe 24 months – much enk was spilled.

So congrats to Leah – on a successful exit.

Oh, and Leah, perhaps you could join us for a MinneDemo or MinneBar?

Garrick Last Minute Addition to IDSAmn’s ‘Design Your Career’ Event

This Thursday night, Dec 4th, I’ll be giving a brief talk on using online communities & publications – weblogs, Twitter, etc – to position yourself professionally.

Word is, I’ll be on after the panel and before the beer.

Wait, that can’t be right.

More info here: IDSAmn’s Design Your Career IDSAmn + PDMA Co-Panel Event

Update: Dec 4.
Well, that didn’t work out. My apologies to all.