Radio Liberali

Early today (as I’m writing), Air America Radio launched. Apparently, it was a day of mixed results, as I caught Jeanine Garafalo and Al Franken harping a bit on how cool they are to be starting this liberal network.

I’ll tell you in a nutshell why I think it won’t be very successful. But it may not be the reason you suspect!

Conservative radio is extremely popular. I was a devoted “Dittohead”, listening to Rush Limbaugh on a daily basis for years (whenever I could). Recently, I’ve enjoyed disagreeing with Michael Savage on my evening ride home. But I think liberal radio is going to run into a roadblock.

Early today (as I’m writing), Air America Radio launched. Apparently, it was a day of mixed results, as I caught Jeanine Garafalo and Al Franken harping a bit on how cool they are to be starting this liberal network.

I’ll tell you in a nutshell why I think it won’t be very successful. But it may not be the reason you suspect!

Conservative radio is extremely popular. I was a devoted “Dittohead”, listening to Rush Limbaugh on a daily basis for years (whenever I could). Recently, I’ve enjoyed disagreeing with Michael Savage on my evening ride home. But I think liberal radio is going to run into a roadblock.

You see, conservatism is about upholding tradition, and traditional values. Conservatives wisely believe that tradition deserves respect because it is an established method of pursuing human discourse that has been proven to work. Perhaps, not work well, but work. Without compelling evidence, it’s unwise to alter tradition. And compelling evidence is hard to come by when trying something untested. We’re often forced into the position of conducting experiments on live populations, much to our detriment later.

But sometimes, these liberal experiments improve quality of life. The successes are few, but dramatic: Equal rights for women. Equal rights regardless of race. Abolition of slavery in the U.S. Establishment of the United Nations, rather than every nation for itself. Mostly good things, with some occasional difficult ramifications.

The problem with “liberal radio”, is that people tune into the radio to be entertained. They also tune in to talk radio for affirmation and information. Although liberal talk radio may be helpful in the information department, what about affirmation? The view of progressive liberals are all over the map. There are generally few “traditional values” to defend when you are liberal; instead, individual positions must be decided based on their merits and rationality. Of course, in reality there are many sheeple who just want their opinions handed to them; I’ve been one of them before, and it’s a hard habit to avoid.

Demagoguery is the part and parcel of conservative radio: appeal to the emotions of your listeners. Get them mad enough about something, and maybe they’ll do something they usually wouldn’t, like call into your show to complain.

So my question is: Can liberal radio be demagogic enough to be entertaining and retain listeners? Based on the little I heard today (due to technical problems with Real Audio that were largely corrected by the time I was able to tune in again tonight — it’s not syndicated in Utah. Duh.), it sure doesn’t seem that way. Instead of emotional tirades against progressive opionion, I heard interviews with popular figures and self-congratulatory chatting about how weird and fun it is to have a radio show. I didn’t hear any stirring monologues, but instead felt like I was listening to a radio version of a daytime television talk show. Yes, people got on one another’s cases, but about things irrelevant to me.

Obviously, there are going to be some growing pains, and I’m eager to see what happens once they’ve outgrown them. Conservative commentators are entrenched in the airspace, though, and I suspect that misunderstanding the medium will be a repeated theme throughout the next year.

I’m eager to hear more tomorrow to see if they shake off the newness a bit, get past the “let’s interview people to fill time” phase, and start working on being entertaining themselves. Since the network is syndicated over Real Audio as well as radio, unlike any conservative talk show I’ve seen, I can stream over the Internet and be able to listen at work. But I’m not entirely enthusiastic about the prospects of liberal talk radio. It just seems to be too little, too late for a medium dominated by conservatives disappointed with the liberal slant of other major media.

Note: this is not an April Fool’s joke. Someone else needs to cook one up 🙂

Evolution under fire

The principle of Evolution has had a long and conflicted history since Darwin’s day. To those who understand it well, Darwin’s basic theories have long since been scrapped for better understanding of Macro and Micro-evolution, artificial vs. natural selection, and more.

To scientists, biological evolution, particularly Mendelian Inheritance is no theory, but fact. It is what shapes our environment every day. We can see it at work as bacteria evolve into ever-more resistant strains; the children of earlier bacteria which survived our strongest antibiotics are, in turn, similarly resistant to those strong antibiotics. We see genetics at work in population distribution, and in the traits passed from one generation to the next. I, personally, am interested in knowing what effect “neutral drift”, or changes that are totally neutral in nature as far as survival, will have on our population. Too bad I can only observe, at most, a generation or three before I pass away.

The principle of Evolution has had a long and conflicted history since Darwin’s day. To those who understand it well, Darwin’s basic theories have long since been scrapped for better understanding of Macro and Micro-evolution, artificial vs. natural selection, and more.

To scientists, biological evolution, particularly Mendelian Inheritance is no theory, but fact. It is what shapes our environment every day. We can see it at work as bacteria evolve into ever-more resistant strains; the children of earlier bacteria which survived our strongest antibiotics are, in turn, similarly resistant to those strong antibiotics. We see genetics at work in population distribution, and in the traits passed from one generation to the next. I, personally, am interested in knowing what effect “neutral drift”, or changes that are totally neutral in nature as far as survival, will have on our population. Too bad I can only observe, at most, a generation or three before I pass away.

Yet Evolution is under fire in our schools. Despite the simple fact that evolutionary principles are responsible for daily changes all around us, the related concept of abiogenesis, or life deriving from non-life, is unnerving to many. Indeed, even in the scientific community, the question of the exact origin of life is largely unknown (though frequently theorized about and debated). If mankind, in fact, abiogenerated from some primordial soup, the fact is that simple molecular structures and bacteria tend to leave very poor, if any, fossil record. Therefore, we may never know the exact origin of life on this planet, outside the realm of faith, or unsubstantiated theory.

That said, however, what is known is that inheritance, natural selection, and artificial selection are at work every day, slightly modifying the food we eat, the plants we grow, the animals we call pets, and the bacteria we ingest and attempt to fight off. It’s a bit of an ever-escalating war, particularly against microbes, and it’s vital we be well-informed so that we can make smart decisions as short-lived bacteria and virusses gain ground against slower-evolving humans.

It’s curious to me that, due to the religious furor aroused by mere mention of the word “evolution” in a school’s curriculum, Georgia is preparing to ban the use of the word “evolution” in school textbooks and supplementary materials. I have to wonder about the long-term ramifications of refusing to use a word because its mere mention is controversial. We’ve long done this with “objectionable” words, such as George Carlin’s Seven Dirty Words, yet this is the first I’ve heard of official state objection to the use of a scientific term in reference works.

Proponents of science have long tussled over the use of words such as “natural” or “logical”, particularly when confronted by anti-scientists. To the scientist, it is vital that supernatural causes cannot be considered in attempting to understand natural phenomena. This is for a very simple reason: it’s cheating. It’s not that scientists are necessarily anti-religion, it is that faith in supernatural things is out-of-bounds for scientific explanation. Resorting to a supernatural explanation for a natural phenomena is a bit like playing Monopoly and cutting out one’s own card that says “EVERYTHING” on it, claiming that this card represents all other properties on the board, and therefore declaring victory. To do so renders the game pointless, and shenanigans such as these, generally pulled by the losing side, ended many a game prematurely when I was a child.

In scientific endeavors, we simply cannot resort to an explanation that a given thing is unexplainable. To do so is to give up and give in. To resort to supernatural explanations of biology is also disrespectful to those who worship Deity, by relegating such a being to becoming a “God of the Gaps”, a personage or force that can only operate in those areas of the darkness where science has failed to provide illumination. The act of giving birth, for instance, is no less beautiful or meaningful for the fact that we understand the process in excruciating detail. And, similarly, the faith of a devoted Christian is no less for understanding and accepting that the Biblical account of Creation is more allegorical and spiritual than factual.

Instead, by requiring evidence, much as a court of law does, science progresses little by little towards understanding how things work. I don’t think science is much closer to explaining why they work, though; such an explanation as to why the order of the universe exists still lies in the realm of the metaphysical, I think.

But anyway, the point of my post is that Berkeley University put up a resource for teachers who wish to teach evolution correctly, and to have answers for common questions. It’s available at evolution.berkeley.edu, and I found it a fascinating trip tonight. I’ve learned much about the evolution of evolutionary thought itself! I recently read “Darwin’s Black Box”, by Michael Behe, and it’s interesting to note that the problems of irreducible complexity or simple anatomic similarity have already been solved in the late twentieth century, and that today some of Darwin’s core concepts seem as antiquated as the hand-cranked phonograph. Yet we respect his place in history as a scientist who, using deduction and observation, came up with a powerful idea that serves, with great modification, as the basis of modern biology and genetics.

The nice thing about science is that, when it’s wrong, it can be proven so. And, barring such disproof, though many may dislike the ramifications of scientific progress, a hypothesis will progress to being a good working model, and that good working model will eventually become law, as much as we can understand it. Yet even those scientific “laws”, such as Kepler’s laws, will come to be understood in time as useful constructs to attempt to figure something out in rough form, but actually inaccurate in the real-life universe. And being able to change one’s mind is a really, really good thing.

A little Comic Relief….

For those with no children – this is totally hysterical!
For those who already have children past this age – this is hilarious.
For those who have children this age – this is not funny.
For those who have children nearing this age – this is a warning.
For those who have not yet had children – this is birth control!
—————————————-

The following came from an anonymous mother in Austin, Texas:

Things I’ve learned from my children (honest – no kidding):

1. A king size waterbed holds enough water to fill a 2000 sq. ft. house
4 inches deep.

2. If you spray hair spray on dust bunnies and run over them with roller

For those with no children – this is totally hysterical! For those who already have children past this age – this is hilarious. For those who have children this age – this is not funny. For those who have children nearing this age – this is a warning. For those who have not yet had children – this is birth control! —————————————-

The following came from an anonymous mother in Austin, Texas:

Things I’ve learned from my children (honest – no kidding):

1. A king size waterbed holds enough water to fill a 2000 sq. ft. house 4 inches deep.

2. If you spray hair spray on dust bunnies and run over them with roller blades, they can ignite.

3. A 3-year old’s voice is louder than 200 adults in a crowded restaurant.

4. If you hook a dog leash over a ceiling fan, the motor is not strong enough to rotate a 42 pound boy wearing Batman underwear and a Superman cape. It is strong enough, however, if tied to a paint can, to spread paint on all four walls of a 20×20 ft. room.

5. You should not throw baseballs up when the ceiling fan is on. When using a ceiling fan as a bat, you have to throw the ball up a few times before you get a hit. A ceiling fan can hit a baseball a long way.

6. The glass in windows (even double-pane) doesn’t stop a baseball hit by a ceiling fan.

7. When you hear the toilet flush and the words “uh oh,” it’s already too late.

8. Brake fluid mixed with Clorox makes smoke, and lots of it.

9. A 6-year old can start a fire with a flint rock even though a 36-year old man says they can only do it in the movies.

10. Certain Lego’s will pass through the digestive tract of a 4-year old.

11. Play dough and microwave should not be used in the same sentence.

12. Super glue is forever.

13. No matter how much Jell-O you put in a swimming pool you still can’t walk on water.

14. Pool filters do not like Jell-O.

15. VCR’s do not eject PB&J sandwiches even though TV commercials show they do.

16. Garbage bags do not make good parachutes.

17. Marbles in gas tanks make lots of noise when driving.

18. You probably do not want to know what that odour is.

19. Always look in the oven before you turn it on. Plastic toys do not like ovens.

20. The fire department in Austin, TX has a 5-minute response time.

21. The spin cycle on the washing machine does not make earthworms dizzy.

22. It will, however, make cats dizzy.

23. Cats throw up twice their body weight when dizzy.

24. The mind of a 6 year old is wonderful.

First grade…true story: One day the first grade teacher was reading the story of the Three Little Pigs to her class. She came to the part of the story where the first pig was trying to accumulate the building materials for his home. She read,” …and so the pig went up to the man with the wheelbarrow full of straw and said, “Pardon me sir, but may I have some of that straw to build my house?'”

The teacher paused then asked the class, “And what do you think that man said?”

One little boy raised his hand and said, “I think he said…’Holy crap! A talking pig!'” The teacher was unable to teach for the next 10 minutes.

25. 60% of men who read this will try mixing the Clorox and brake fluid.

I Need Tinted Windows

If anybody out there plays the stock market, I would start shifting your 401(K) into companies that manufacture tinted glass for cars. Because we all know how many people are out there driving around while watching pornagraphy.

This is so hilarious.

Apparently, a growing number of motorists are outfitting their cars with DVD players and are driving around while watching porn. “Dirty Driving” is already getting outlawed in several states. This became a big issue when a woman saw another car playing porn in the in-car movie system. Here’s an actual quote from her…

“I was very shocked and surprised,” says Holden, 41, of Olive Branch, Miss., who still has a difficult time talking about what she saw about 18 months ago. “I just could not believe that people had the audacity to do that.”

If anybody out there plays the stock market, I would start shifting your 401(K) into companies that manufacture tinted glass for cars. Because we all know how many people are out there driving around while watching pornagraphy.

This is so hilarious.

Apparently, a growing number of motorists are outfitting their cars with DVD players and are driving around while watching porn. “Dirty Driving” is already getting outlawed in several states. This became a big issue when a woman saw another car playing porn in the in-car movie system. Here’s an actual quote from her…

“I was very shocked and surprised,” says Holden, 41, of Olive Branch, Miss., who still has a difficult time talking about what she saw about 18 months ago. “I just could not believe that people had the audacity to do that.”

Still having a difficult time after 18 months?!?! Baby, you need more than a law, you need something battery-operated and a week alone.

Anyway, a bunch of states are now enacting laws that prevent people from displaying obscene films, even though 38 states already outlawed in-car projectors that are visible to the drivers.

Who are these people playing dirty movies for? The kids in the backseat? And who the heck is looking into other cars, watching neighboring screens, as they’re going 60+MPH down the road?

At this time I would like to state, for the record, that I have never been featured in a pornagraphic movie that was released for commercial distribution.

OKAY.. MOVIE TALK RETURNS

Alright, Barnsonians, after “going around the bend” a bit with the Supreme Court issue, I thought I’d return to what I do best.. Movie lists.

This week, we beg the question..
What are your favorite big screen adaptations of Television Programs??

As you may know, Scooby Doo 2 opened this week to big numbers, and it got me thinking.. there have been a LOT of TV shows in the movies these days.. so here it is.. my top 5!

5. The Brady Bunch Movie. Perfect mix of camp tribute to the original show and sarcastic criticism.

4. Transformers: the Movie. Sure, they destroyed my childhood by killing half of my favorite people in the first 5 minutes.. but I liked it.. guilty pleasure.. but I still watch it today.

Alright, Barnsonians, after “going around the bend” a bit with the Supreme Court issue, I thought I’d return to what I do best.. Movie lists.

This week, we beg the question.. What are your favorite big screen adaptations of Television Programs??

As you may know, Scooby Doo 2 opened this week to big numbers, and it got me thinking.. there have been a LOT of TV shows in the movies these days.. so here it is.. my top 5!

5. The Brady Bunch Movie. Perfect mix of camp tribute to the original show and sarcastic criticism.

4. Transformers: the Movie. Sure, they destroyed my childhood by killing half of my favorite people in the first 5 minutes.. but I liked it.. guilty pleasure.. but I still watch it today.

3. Star Trek First Contact. Brought the big TV villians, the Borg to the big screen.. and it rocked out.

2. The Fugitive. Actually managed to be quite a bit better than the series that inspired it, with an academy award winning performance, and just a taut thriller of a tale.

1. Monty python and the Holy Grail. This sketch comedy show turned into a movie just was awesome in every way. And somehow.. while not so funny on first viewing, gets better and better each time I see it.

Just to jar your memories, here are more TV adaptations.. any of them tickle your fancy? Any I forgot. Any you really really hated?

Charlie’s Angels, Starsky and Hutch, Space Jam, the ENTIRE Star Trek series, the Monty Python Movies, Highlander: Endgame, Scooby Doo, X-Files, Mission Impossible, Rugrats, pokemon, Superstar, Wayne’s World, The Naked gun, The Avengers, South Park.. tons more..

I was just joking, now we’re moving!

Last Oct. my best friend moved from our neighborhood after five fun years of great friendship and parties. So you grin and bear it and keep in touch the best you can and find a new best friend to hang out with. But my two other best friends were both threatening to move as well. Emily and Steve were a bit more persistant. One fine day I told Emily, “If another one of my best friends moves, I am out of here.” Within a week, they put money down on a lot to build a new home. But, they chose to stay in the neighborhood to be near their many close friends here. Well, I told her fine, I’m moving too. I want a forclosed home so that I can get it for a great deal and we have to move now since interest rates just dropped.

Last Oct. my best friend moved from our neighborhood after five fun years of great friendship and parties. So you grin and bear it and keep in touch the best you can and find a new best friend to hang out with. But my two other best friends were both threatening to move as well. Emily and Steve were a bit more persistant. One fine day I told Emily, “If another one of my best friends moves, I am out of here.” Within a week, they put money down on a lot to build a new home. But, they chose to stay in the neighborhood to be near their many close friends here. Well, I told her fine, I’m moving too. I want a forclosed home so that I can get it for a great deal and we have to move now since interest rates just dropped.

So my friends and I went for a walk through a neighboring community that we all consider a nice place to live. I walked with my palm pilot, taking notes on homes that had forclosed. Once we were tired of walking, we got back into my van and drove around a few more streets.

Later that day, we took an evening drive with the family to look at these forclosed homes. After looking at those homes, Matt drove around for awhile longer and found THE HOUSE. We took down the information and went home laughing about the whole thing.

We’re very happy with our current home and had no interest in moving until we saw that house. The house is in a planned community with CC&R’s so the neighborhood is beatiful, with the exception of the few forclosed homes that haven’t had the yard cleaned up this spring. The park is a block away, the church is a block away, and the Elementary School is a block away. The house is easily accessible to the main road out of the neighborhood, but out of the way of much traffic. The house sits on almost a quarter of an acre and is nicely landscaped and has 2/3rds of the yard already fenced.

The entry of the house is nice. It looks up into the second floor. The front room is a very open common room with the dining room and the kitchen. The kitchen is huge. A two car garage off the back of the kitchen is wonderful. (We don’t have to see all garage on the front of the house!) The main bathroom, coat closet and master bedroom are on the other side of the main level. The master bedroom has a large walk in closet and a large bathroom with a garden tub and two sinks.

Downstairs is the laundry room, a completely unfinished basement, and a few spiders. This is where the fun begins for Matt because he has exciting plans for a sound proof room and a recording studio attached. Unfortunately for him, that room will be shared with me as a craft room. (We’ll draw a line down the middle I think!)On the other side of the basement we’ll build a guest room and a living room/kitchenette.

Upstairs is a large family room that overlooks the entry and the back of the house. On the right side are two bedrooms and two linen closets. On the left are two more bedrooms, with walk in closets and a good sized bathroom.

The children have already claimed which bedroom they want from the decorations left by the previous owners.

So in one month we’ll be painting the house and moving in. All because I followed through on a joke. Oddly enough, our friends Steve and Emily, are no longer moving.

Why are we buying this house? Because we’re getting it for $31K less than two identical homes have recently sold for in the neighborhood. We’re walking into a good deal of equity. Our mortgage will increase only by PMI and the differenc in taxes and insurance, and we’ll have growing room!

And when you come to visit, there’s a nearby golf course as well. In the meantime, we’re frantically preparing this home for sale and getting rid of all the clutter we possibly can! We hope to see you all soon!

Pick your nose

From Ananova:

Top doc backs picking your nose and eating it

Picking your nose and eating it is one of the best ways to stay healthy, according to a top Austrian doctor.

From Ananova:

Top doc backs picking your nose and eating it

Picking your nose and eating it is one of the best ways to stay healthy, according to a top Austrian doctor.

Innsbruck-based lung specialist Prof Dr Friedrich Bischinger said people who pick their noses with their fingers were healthy, happier and probably better in tune with their bodies.

He says society should adopt a new approach to nose-picking and encourage children to take it up.

Dr Bischinger said: “With the finger you can get to places you just can’t reach with a handkerchief, keeping your nose far cleaner.

“And eating the dry remains of what you pull out is a great way of strengthening the body’s immune system.

“Medically it makes great sense and is a perfectly natural thing to do. In terms of the immune system the nose is a filter in which a great deal of bacteria are collected, and when this mixture arrives in the intestines it works just like a medicine.

“Modern medicine is constantly trying to do the same thing through far more complicated methods, people who pick their nose and eat it get a natural boost to their immune system for free.”

He pointed out that children happily pick their noses, yet by the time they have become adults they have stopped under pressure from a society that has branded it disgusting and anti social.

He said: “I would recommend a new approach where children are encouraged to pick their nose. It is a completely natural response and medically a good idea as well.”

And he pointed out that if anyone was really worried about what their neighbour was thinking, they could still enjoy picking their nose in private if they still wanted to get the benefits it offered.

12:55 Friday 26th March 2004

Silly little rhymes

Here’s a little lightness and levity admist some of the turmoil of the board recently.

When I was young, my sister and brother-in-law used to challenge ourselves to come up with silly rhymes in this format:

Here’s a little lightness and levity admist some of the turmoil of the board recently.

When I was young, my sister and brother-in-law used to challenge ourselves to come up with silly rhymes in this format:

I love you, I love you I love you so well If I had a peanut I’d give you the shell

-Or-

I love you, I love you My love for you so real If I had a banana I’d give you the peel

Silly little things, but we used to have so much fun coming up with them

As a fun aside, what can you come up with? Is doesn’t necessarily have to be food related, but the twist about loving so much to give something people don’t like, that was the kicker.

One more to get you started:

I love you, I love you My love for you runs deep If I had a chance I’d give you the creeps

My $.02 Weed

Tutorial Request

I’m the dork that likes knowing how to use all the latest and greatest tech toys.

Matt, I notice the “Allowed HTML tags” at the bottom of the blog entry box. I’m assuming this gives us the ability to manipulate font, hyperlink, etc. Can you put a tutorial somewhere on barnson.org to teach us how to use this as well as other blog features? List it under the Resources area perhaps.

Thanks amigo!

I’m the dork that likes knowing how to use all the latest and greatest tech toys.

Matt, I notice the “Allowed HTML tags” at the bottom of the blog entry box. I’m assuming this gives us the ability to manipulate font, hyperlink, etc. Can you put a tutorial somewhere on barnson.org to teach us how to use this as well as other blog features? List it under the Resources area perhaps.

Thanks amigo!

Ultimate MS Outlook Editor

At my work, I’m required to use Microsoft Outlook for exchanging email with my co-workers. At home, I use Mutt on FreeBSD, and have grown to really love the lightning-fast responsiveness, immunity to virusses, and easy scriptability of this tiny text-based mail reader.


At my work, I’m required to use Microsoft Outlook for exchanging email with my co-workers. At home, I use Mutt on FreeBSD, and have grown to really love the lightning-fast responsiveness, immunity to virusses, and easy scriptability of this tiny text-based mail reader.

I’m going to tell you one solution, just so I can tell you another one 🙂

It’s possible to use Mutt with Microsoft Exchange:

  • Set up IMAP on your Exchange server. This was already done here.
  • Install a copy of Cygwin, including Python.
  • Either set up Mutt to access IMAP on Exchange directly, or do what I prefer to do: download and set up offlineimap. This IMAP-to-Maildir synchronization utility is excellent.
    1. First, you need to run the “rebaseall” utility so that Python doesn’t dump with traceback when you try to run offlineimap. You can’t rebaseall if you’re trying to do it from an rxvt window — you need to be using the cmd-based Cygwin shell for it to finish without an error.
    2. Then you need make sure your .offlineimaprc file specifies “Curses.Blinkenlights” as the first available interface — the TK interface, on Win32, just hangs.
  • You can’t use offlineimap on a non-managed Cygwin mount. The reason is that the Maildir specification uses the “:” character, which is a big no-no in Windows-land. The solution is to use this command:
     $ mount -f -s -b -o managed "d:/tmp/mail" "/home/of/mail" 

    substituting the windows-path directory you wish to use for mail for the “d:/tmp/mail” above, and the mount point you wish to put it on instead of “/home/of/mail”.

  • Once you have IMAP-to-Maildir synchronization going to your local PC, then you’re good to go with offline IMAP stuff and Mutt. Follow the usual directions for configuring Mutt to use the Maildir you’ve set up, paying particular attention to choice of outbound mailer (probably ssmtp).

Obviously, though I’m a big fan of Mutt, that seemed like a lot of work. Lucky me, I chanced across a script that, with minor modifications, gave me the primary thing I loved about using Mutt: being able to use vim as my text editor. I’m just much faster using that than any other editor, and it’s ubiquitous on UNIX systems, either in a more-primitive incarnation of “vi”, or in some version.

So I installed Python and the Win32 extensions for Python, then linked this script on my quickbar in Windows, conveniently right next to Outlook:

 #!/bin/env python ''' outlook.pyw (OutLook editor launcher) -- allows one to edit an open e-mail  mesg from Outlook using Emacs or *Vi* rather than "Notepad--". :-)  NOTE: requires Python 1.6 and newer (use of string methods)

created by John Klassa (klassa at employees.org) on 2001 May 29 updated by Wesley Chun (cyberweb at rocketmail.com) on 2002 Feb 28

$Id: outlook.pyw,v 0.2 2002/08/28 18:04:06 wesc Exp wesc $ '''

from os import spawnv, P_WAIT, unlink from tempfile import mktemp from Tkinter import Tk, Button, Frame, Label from Tkconstants import * from win32com.client import Dispatch

def launch(): '''launch() spawns your favorite editor to edit the Outlook compose   window (either new or reply), then returns that data to Outlook...  change the 'ed' variable to switch editors.'''

# Get a handle to Outlook. o = Dispatch("Outlook.Application")

# Work our way down to the reply (a "MailItem"). insp = o.ActiveInspector() if insp == None: return item = insp.CurrentItem if item == None: return

# Grab the message body in the reply. body = item.Body

# Write the body... need to "encode" the string because Outlook uses # Unicode with bunch of unprintables (ASCII chars > 128). Also, since # we are going from DOS2UNIX2DOS, we have the \r\n vs \n issue, re- # sulting in those fabulous ^M characters. A persistent, bound-to-a- # key Emacs macro takes care of that nicely, but the solution imple- # mented here is to just wipe the '\r's now, then add them back when # we reread this file back before returning the body to Outlook. tmp = mktemp() # generate a unique tmp filename fh = open(tmp, "w") fh.write(body.encode('ascii', 'ignore').replace('\r\n', '\n')) fh.close()

# Launch editor to edit the file (should make this configurable). #ed = r"d:\emacs-20.7\bin\emacs" # emacs editor binary ed = r"c:\vim\vim62\gvim.exe" # *vi* editor binary spawnv(P_WAIT, ed, [ed, tmp])

# Read edited file back into memory, restore '\r's, and kill tmp file. fh = open(tmp) body = fh.read().replace('\n', '\r\n') fh.close() unlink(tmp)

# Store it as the body of the reply. Note that we are merely # sending this data back to Outlook -- it does not prevent MS from # mucking with your message. For example, it may add your signature # again, or it may remove newlines. MS software... what can you do? item.Body = body

# Create the Tk(inter) GUI app with the appropriate label and buttons. if __name__=='__main__': tk = Tk() f = Frame(tk, relief=RIDGE, borderwidth=2).pack() Label(f, text="Outlook Edit Launcher v0.2").pack() Button(f, text="Edit", fg='blue', command=launch).pack(fill=BOTH) Button(f, text="Quit", fg='red', command=tk.quit).pack(fill=BOTH) tk.mainloop()

I now click Outlook, then click my outlook.py script. I minimize the annoying black cmd window that comes up (anybody know how to get rid of this?), and I now have a little Python/TK window with a convenient “edit” button on it. When I compose a message in LookOut, I click this “edit” button, and up pops gvim 6.2, ready for me to type the message. When I’m done typing it, I just write-quit out of gvim, and the text pops up in my Outlook compose window.

Convenient! Well, for a UNIX-geek at least.

Anyway, I’m still torn. Do I really need to use Outlook here? Realistically, I have maybe one meeting a week that I need to keep track of, and that’s easily done in my Palm. Maybe I should just use Mutt in Cygwin on a managed mount? Who knows, but both are valid choices. And in a world where MS wants you to only use MS products, and those products are funkily generic and slow, it’s nice to have choices.