My Continued Employment Endangers Air Travel

Five years ago, on the day of my five-year employment anniversary luncheon, Cory Lidle fatally crashed his plane into the side of an apartment building on the Upper East Side.

Today is my ten-year luncheon. Yesterday, a helicopter crashed into the East River around 34th St.

Coincidence? Yes.

Leave a Comment

Filed under Uncategorized

Improv Promotional Sonnet III: An Strange Encounter With Del Close

This is the third in a series of sonnets for the purpose of promoting my improv shows at the PIT. In case the sonnet isn’t clear on the details, come see “Technicolor” every Monday at 9 PM in the PIT Underground.

Last night I tossed and turned in fevered dreams
In which I saw the ghost of sainted Del.
And from his gut erupted painful screams,
“What mortal dares to claim he improvs well!?”
“Tis I,” squeaked I. “And who are you?” he growled,
“To strut about, my artform to defile?”
He called his improv henchmen and he scowled,
“Another improviser for the pile.”
“Tis I!” I screamed, “And and in me is enough,
A lifetime’s slings and arrows in my soul!”
The ghost he grinned, and vanished in a puff,
And whispered thus: “You’re ready for your role.”
What other apparitions will I see?
Find out at nine, before The Faculty.

Leave a Comment

Filed under improv, Improv Sonnets

Sharepoint: Updating Workflow Task Causes NullReferenceException (a fix)

Hi there, ordinary blog readers! Unless you’re a SharePoint developer, this entry isn’t for you. I’m putting this up to save future developers the head-against-wall-banging that I encountered while trying to fix this problem.

So, I’m kind of new to SharePoint, so naturally, the first thing I should be doing is writing a crazy insane workflow, right?

I’ve got a workflow where a project manager approves a project (that’s one kind of task), or can send it out for technical review (another kind of task), or can request more information from the user (yet another task). Each of these tasks have their own Content Type, and their own custom task edit form in ASP.NET. (Because I hate InfoPath with a burning white hot hate.)

Whenever someone uses one of these custom edit forms, however, I get a NullReferenceException. The stack trace always puts it in the non-public SPListItem.PrepeareItemForUpdate method. It doesn’t matter how I change the task list item. Using SPWorkflowTask.AlterTask, or just SPContext.Current.ListItem followed by Update all threw the NullReferenceException.

To Google I go! However, most of the results said that it had to do with not having a <FieldRefs> definition in the Content Types. That wasn’t my problem, however, since not only did my Content Types have FieldRef’s, but they were very much full.

At my wits end, I broke out the .NET Reflector and decompiled the Microsoft.SharePoint assembly. Here’s what I found:

As you can see (well, kind of see… click on it to see more clearly), this would only happen in a WorkflowTask. If the list item’s “Completed” field is null, the cast to bool throws a NullReferenceException. This is probably the kind of thing that can’t happen in SharePoint Designer, but only would occur when someone is mucking about in Visual Studio.

To fix it, make sure you set the “Completed” field. I do this:


private void SetTaskStatus(string status, bool taskIsComplete) {
      SPListItem taskItem = SPContext.Current.ListItem;

      Hashtable taskData = new Hashtable();
      taskData[SPBuiltInFieldId.TaskStatus] = status;
      taskData[SPBuiltInFieldId.Completed] = taskIsComplete;
      if (taskIsComplete) {
        taskData[SPBuiltInFieldId.PercentComplete] = 1;
      }

      SPWorkflowTask.AlterTask(taskItem, taskData, true);
    }

Or, if you work for Microsoft, you could do us a favor and make sure that you null check that line and default to false. (It’s entirely possible that this has been fixed by SP1, but my production server doesn’t run that yet, so I can’t either.)

1 Comment

Filed under Programming

Benjamin Meets Alton Brown

Benjamin meets Alton Brown of FoodTV’s “Good Eats” and “Iron Chef America.”

Benjamin and Alton Brown

Leave a Comment

Filed under food

Benjamin’s Drawing of the Day: Alice in Wonderland

I scanned this drawing last week, with the intention of posting it here. At the time, Benjamin explained to me what it was, and I thought it was terribly cute. Looking at it now, I’ve forgotten what he said and can’t quite fathom why he calls it, “Alice In Wonderland.” I therefore present it without further comment:

Leave a Comment

Filed under Benjamin's Drawing of the Day

Benjamin’s Drawing of the Day: Music

Recently, Benjamin’s made kind of a quantum leap in his development. Before, he wouldn’t pick up a pen or pencil for anything. Now, he absolutely loves to write and draw. His drawings have quickly evolved from random scribbles, to actual discernable shapes, to recognizable themes and extreme cuteness.

With that in mind, I now designate this blog as my virtual refrigerator. Behold! The art of Benjamin Specland!

This one he calls, “Music.” The lowercase b things are musical notes. (I guess he’s fond of the half-note.)

The person in the middle is Benjamin, playing the piano. At the bottom is me playing guitar, and Paula playing the tambourine.

Leave a Comment

Filed under Benjamin's Drawing of the Day

Awesome Things My Friends (and Wife) are Doing: Icky House Club Show

Over the past year, I’ve made a lot of new friends. However, many of these new friends don’t know how incredibly awesome and talented my wife is. Sure, they hear second-hand accounts from me, but nothing beats seeing the awesomeness live. That’s why all of you (and I do mean all of you) should go see The Icky House Club this Saturday night!

(A video of the Icky House Club performing appears below. If you’re seeing this somewhere where that video doesn’t appear, just follow the links to the original source. You won’t regret it. Well, maybe you will if your significant other sees how sexy the members of this band are and abandons you immediately to become a groupie.)


Live 104 Presents
the Icky House Club Live!
9PM Saturday, Feb. 19th.
Cin-M-Art Space43 (43 Murray Street between West Broadway & Church Street)
21+ only

Leave a Comment

Filed under Awesome Things my Friends are Doing

Why I Dress

On two separate occasions recently, people have asked me why I dress the way I do. On both occasions, I was onstage or about to go onstage, so I answered, “The answer is complicated, and I can’t talk about it right this very moment. If you really want to know, ask me later.” Unsurprisingly, neither followed up. So, in the tradition of answering questions for which nobody really cares about the answers and serve only to stroke the ego, I present the answer.

Those of you who know me but haven’t seen me in a while may be wondering what the hell I’m talking about. While I haven’t been a tee-shirts-and-jeans guy since I stopped working for dot-coms, until recently I generally wore what I affectionately called “the Khackiverse.” Perfectly normal and acceptable for a not-formal-but-not-a-startup computer-guy job. Lately though, I’ve been “upping my game” as they say, by generally wearing at least a sportcoat and often a tie all the time. In fact, right now I’m wearing a suit and I’m not even going out for an interview.

Why? Several reasons.

First, it just looks nice. Every girl’s crazy for a sharp-dressed man. (Especially my wife.) And if there’s anyone I trust for guidance with style, it’s ZZ Top. Okay, so I don’t actually trust them about style, but I do trust them to write quotable lyrics about style.

Second, for the same reason I generally don’t wear tee-shirts with logos and funny sayings on them anymore. I’m a man with a job and a family, not a boy. Several years ago I did a massive tee-shirt purge and felt better for it. This is just a natural continuation.

Third, because I appreciate the theatricality of dress. So much so, that I’ve been trying to dress as nicely as possible when performing. Improv naturally has no costumes, and people perform in whatever they wear on the street. Which considering society at large, is tee-shirts and jeans. But I’ve always appreciated people who recognize that performing is presentational. I’ve always loved bands who wear suits, for example. It says, “I’m doing a show. It is an occasion.” I felt this way even before I took Ali Farahnakian’s Level 5 class at the PIT, but Ali kind of cemented for me. He advised always to dress one step nicer than your audience. “If they’re wearing tee-shirts and jeans, you wear a jacket and tie. If they’re wearing jackets and ties, you wear a tuxedo. If they’re wearing tuxedos, you wear a white tuxedo,” he said, my paraphrasing memory not withstanding.

And so, when I perform at the PIT this evening, I’ll be wearing a beige suit with faint pink and black checks, a light blue shirt with thin olive stripe, a blue wool tie with a black and white plaid pattern, and a pair of buckle loafers that I got cheap on eBay. And also, a bright-red PIT bar napkin that I’ll use as a pocket square. Just ’cause.

2 Comments

Filed under clothes

Watson! Come Here! I Want You!

Your attention, please. The improv team formerly known as “Team Green” is now known as “Watson.” That is all.

Leave a Comment

Filed under improv, The PIT

Awesome Things my Friends (and Mentors) are Doing: Sandy Kenyon Reviews the World

Everyone at the PIT already knows about this. But for my non-PIT friends, if you’ve ever rode in a New York City taxi and didn’t bother to hit the “turn off this damn video” button, this is for you:

This project is being done by Scott Eckert, a teacher, mentor, and friend of mine from the PIT. Also, if you ever have an opportunity to see him perform improv, that is an opportunity of which you should avail yourself.

Leave a Comment

Filed under Awesome Things my Friends are Doing, funny, The PIT