Oddments of High Unimportance


Don't overthink it (Installment #247)

#

I volunteered to do a tedious job at work -- copy/paste about maybe 200-400 parameters scattered throughout a group of FORTRAN files. The parameters may be in one of maybe 3 different formats. Also, the parameters came with multiline comments (with each commented line starting with !), and sometimes just big wodges of comments on their own that serve as documentation. The goal was to transform these snippets into something our customer could scan using Excel.

I volunteered to do it because it made no sense for a highly paid developer to do such a menial job; also, I kind of like taking on little challenges like this, developing a new technique or learn some new tools, and seeing how quickly I can rip through them. Then it's just a matter of putting on the headphones, pressing a few keys repetitively so the computer does most of the work, and voila.

I realized that my initial solution for this would be overly complicated, as it always is, and that the exploration process as I groped my way toward simpledom would be haphazard, as it always is. I thought "How can I use Applescript to parse the text? Should I just copy the fragments into Word and use Word's formatting functions? Should I use a text editor with some text formatting Services?" (DevonThink makes a killer set of text-formatting services available to Mac users for free; DevonThink not required to use them.)

I spent about 5 hours over the weekend scarfing up text-formatting Applescript code, messing with text editors, messing with Automator, messing with some copied fragments that I was using as my test case, messing with Applescript in Word (which adds its own complications), and seeing possible workflows getting more complicated.

Sometime around Monday evening my brain settled down and I decided on my workflow:

  1. Copy each parameter and comment into a Word file.
  2. Fix the formatting of each snippet to remove the extra lines, excess ! marks, and insert tab marks judiciously to make importing into Excel easier.
  3. Transform the tab-delimited text into a table using Word's Table>Convert>Text to Table command.
  4. Copy and paste the tables into Excel and format accordingly.

The intent of this workflow brings in what I've mentioned before, about batching similar actions together. With this workflow, I could check each line off as done and move fully to the next set of operations. I could do each set of operations more quickly and efficiently than transitioning from 1 to 2 to 3 to 4 within each file.

#2 gave me the headache, of course, and is where I spent the bulk of my think time. I had on blinders as I was sure I could use some sort of Applescript in Word that would reformat everything in one go, without needing multiple passes. And because I thought it could be done, I thought I had to do it that way.

However, I had set myself a time limit for the R&D, and I had passed it. Time to drop that all-in-one solution. As I looked at the line fragments, I noticed that the bulk of the work would be done in the first line of each multi-line fragment. OK, let's start there.

That shift brought me back to the Agile programming maxim of, "Do the simplest thing that could possibly work." This is when I turned back to Keyboard Maestro; it's not as powerful as QuicKeys (or my beloved Macro Express in the Windows world), but it's quick, dependable, and does the job. In this case, I was using it as a robot typing the keyboard, but that keeps it simple.

That's when I cobbled together my workflow for #2:

Hm. Well, that still looks pretty complicated, doesn't it? But it's faster than me burning hours to get my head deep into Applescript territory, with delimiters, variables, if-thens, and so on.

The other advantage of this workflow is that this should cover about 80% of the code I'll have to reformat. I now have a base set of actions that I can clone and customize to handle the exceptions.

Anyway, the lesson as always: don't overthink it. Keep it simple.


#
The New Yorker has suffocated at times beneath a mask of wry gentility. For all its glossy reputation, the magazine still turns up its nose at stories and poems that make too many demands on the reader. It’s a middlebrow journal for people who would like to be highbrows — and perhaps for highbrows who love a little slumming. The cartoons, as Biele notes, provide an antiphonal chorus to the reckless consumerism of the ads. Just as the literature is for those who want to think themselves literary, the ads are for those who want to think themselves rich. (If you were old money, you’d already own Tiffany by the trunkload.) Bishop’s close association with the magazine, almost all her best poems appearing there after 1945, probably contributed to her struggle to be taken seriously. To be a New Yorker poet was sometimes a deal with the devil.
#
I went to a “mindfulness” group at the psychological clinic here. I don’t know much about the topic yet, but it struck me that one definition would be using your own mind to your benefit rather than to your detriment. In other words, don’t outthink yourself. Notice the thoughts and emotions you are having and allow them to pass through you without overstaying their welcome. I’ve always thought the best way of dealing with negative emotions is to pay no attention to them at all and hope they would go away, but I’m open to new approaches.

Writing in the library

#

I had an excellent ~6 hours of solid writing/wrestling with my master's paper one day last week. At this stage, I'm still drafting raw text and am not in the polish stage where I'm honing the thoughts in the sentences and paragraphs, and ensuring my themes and the story I'm telling are all working together, which is what I would call "the writing phase". Right now, I'm at the "vomit text" stage, if I may be forgiven for such a phrase.

Here's how I structured my time and my environment to encourage me to work:

I'm now at the point where i'm trying to generate text for the last part of the paper, the discussion and conclusion, and find myself somewhat lacking for words. I've started with random ideas and sentences i put under those headings as I worked on other sections of the paper and so this has provided me a starting point. But the section still feels anemic.

I think the solution here is, again, to trust the process. As my favorite book on writing says, use the words you have to attract the words you want. So, let the the sections feel thin for now and as I continue sweeping through and reading and re-reading, let any other words or ideas bubble up when they're ready.

I should say, this is also the time when it's helpful to have another pair of eyes look at the text, so I'm trying to get a draft finished for my advisor to review so she can tell me where I've gone too far or not far enough.


Little steps

#

In trying to implement some new behaviors, I'm finally listening to advice and looking at how to piggyback the new behaviors on existing behaviors. The best way to introduce a new habit being to start small and link the new behavior to an existing behavior. These are basically implementation intentions [1], as introduced to me by the Psychology Today blogger on procrastination, Dr. Timothy Pychyl [2] (who also has an extensive site devoted to his procrastination research, an affordable e-book on the topic, and scads of podcasts subscribable through iTunes).

An implementation intention basically says. "I will do behavior x when y happens so that I can achieve z." The objective is to have your environment deliver the cue for the behavior you want to encourage. In addition to supporting your goals, implementation intentions can support something called prospective memory, which I'll blog about someday (after putting it off for nearly a year!).

If a task I need or want to do is a one-off, or requires extra will-power to motivate myself to do it, then that's a task I'm not likely to do. Therefore, I need to plan how to make more routine the things that I that I think will be beneficial to me. So here are some behaviors I'm trying to implement now:

Now, will these intentions work every time? Maybe not. But by thinking about how to work around my natural resistance, I increase the chance that I'll do them more often. And more often is better than not at all.

Links [1] http://www.psychologytoday.com/blog/dont-delay/201001/implementation-intentions-facilitate-action-control [2] http://www.psychologytoday.com/blog/dont-delay

#
This may seem ironic, given that last point, but one of my favorite articles I’ve read this year: 10 Reasons You Should Never Get a Job by Steve Pavlina. A related tweet from Nassim Taleb: ‎”The three most harmful addictions are heroin, carbohydrates, and a monthly salary.”
#
I happened to like Paul Houser’s work in Abigail Norris and Jerry Rothwell’s The Work’s the Thing, and he said some interesting things to say, such as “The notion of artists being special people is a bit misleading. If anything, they’re less than special. It’s almost something you’re missing rather than something extra you’ve got.”
#

Libra Horoscope for week of December 30, 2010

In 2011, I believe you will have the chance to weave your fortunes together with an abundance of allies who are good for you. They will be your equals, they will share at least some of your most important values, and they will respect you for who you are. That’s excellent news, right? My only worry is that you might shy away from the demands that such invigorating collaborations will make on you. It would be less work, after all, to fall back into reliance on more prosaic relationships that don’t ask so much of you. Please don’t take the easy way out, Libra. Rise to the occasion!

#
I think of negative thoughts and emotions, rather, as signals telling you to make adjustments to your attitude, your work habits. In that sense, and that sense alone, they are valuable.

2010 leaving, 2011 rushing forward

#

2011 begins much better, in many ways, than did 2010. At this time last year, I was involved in helping to put on some events that scared me and my companions witless. My vacation time had been spent working on a paper so I could finish an incomplete. I had a full load of classes ahead of me and still no clear idea of what I was doing. January 2010 would finish with me at probably my lowest point of the entire year, wondering what had gone wrong.

The year evened out. I had the support and help of good friends and advisors and decided to leave the PhD program and finish my masters. I ticked off that earlier incomplete, staggered through the rest of the semester (which included a statistics class -- blearrrgghh) with only one incomplete, and helped execute a weeklong conference that, by all accounts, went very well.

I spent the summer finishing an incomplete from the spring (I wish I could have written that paper faster, but...). I spent the fall executing a hard-copy, hand-delivered questionnaire to my neighborhood and taking a Chekhov course that was a long, cool drink of water, and for which I wrote one of my best-ever papers.

I read, in the book Dirty Words of Wisdom, a good quote from Alanis Morrisette, that everyone has times when they go through s--- and that you always get through them. So don't worry about them. Nice thought, though it's hard to keep that perspective when reality bombards you with reasons not to get up in the morning. One of the things I learned this year were various tools to help me get through those times so that I can make it to the other side.

Other learnings:

I ended 2010 way more upbeat then when I started. I spent my Christmas break reading a wonderful book and not even checking my email. There is still, at the back of my head, that niggling puritanical whisper "but you aren't accomplishing anything." I begin 2011 less sure of my path -- say what you will about the academic experience, it's run by the calendar and the pace ensure you're productive. I certainly never wrote or created as much in a short period of time as I did while working full-time and going to school. (In fact, I see now that the academic expectations of research, teaching, publications, and service formally externalizes what employees are always told to do -- but rarely do -- in their careers: work hard, network, be active in your professional association, keep your resume updated.)

I am joining with a few other people in creating a mastermind group, admitting which in public makes me feel like I'm coming out of the closet as a Kenny G fan or Republican or something equally shunned by society as simple-brained and noxious. Still, 2010 taught me that my old ways of believing and living were not enough to cope with the stress of what I went through. I want to experiment with and play with new methods to express (and maybe form) new beliefs.

I've set myself a deadline of January 31 to have my masters paper drafted, with the data entered and crunched, and the literature updated. It's an aggressive schedule and it's the kind of spur I need to get things done. Even if I'm not finished, I'll have accomplished more than if I'd waited for the mood to strike me.

Other goals for the year include finding work, making some money, networking, raking the leaves, cleaning my office closets from 4 years of neglect, etc. As I look at my calendar book for January, and think about what I need/want to do, I want to see how much benevolent pressure I can put on myself such that I get done what I want without stressing out too much. Journey and destination.

Another tool I plan to use is Christine Kane's Word of the Year. I've not gone through her worksheet, but I want this year's word to be ACTION. As I look back over 2010, much of my distress was caused by my worrying over a problem, journaling about it, brooding, sitting and looking out the bus window while morosely spinning dark futures about it, when only a few minutes of action was enough to dispel about 90 percent of the gloom. Taking action -- even and especially -- when I don't feel like it, is what I want 2011 to be about. I want to look back on 2011 and marvel at all that I did, all the people I met, all the things I wrote, and wonder at how I did it all while feeling on top of things the whole time.

Of course, there may be a problem with FOCUS or CLARITY. If I take action on all things, large and small, won't that dissipate my effectiveness? Maybe, but that's a problem to deal with when I'm actioning all over the place (and it's something I hope the mastermind group would help me to rein in).

Today, for example, I have 5 things written down that I'd like to accomplish by the end of the day (writing a blog post is one of them), yet I see that the dishes need to be washed and the clothes need to be put away. Do I put them on my list? Do the other more important things first? Whoa, Sparky, slow down. Those are my thought processes running amuck again, and not serving me. The thing to do is simply to take action -- wash the dishes, put away the clothes, clean my desk, take a nap, even. Don't let my thinking get in the way of taking action.

Here's to 2011.