URI Decomposer

At work, we build our client websites upon a framework uses a lot of GET parameters. It makes for some URIs that average, oh, about three feet in length. Examining some of those monsters can make your eyes cross if you ever need to verify some parameter values in the query string, so I decided it was time for a little tool that would break up the URI into its constituent parts for me, instead of wading wearily though the whole URI myself. Google has a JavaScript URI object that does most of the heavy lifting already. I just had to add code to break up the query string into the individual key-value pairs.

Hence the URI Decomposer was born. You’ll find it among the items on the Tools page (few as they are as of this writing).

Audacity Crudity

I’m starting to do some rudimentary audio editing on the Mac. Not impressed with Audacity version 1.2.5 for the Mac. The most glaring oddity is when exporting a file. As I type the file name, Audacity starts playing the audio. Evidently Audacity does not disable its keyboard shortcuts (not related to the Save dialog, that is). Awfully flaky.

That’s not to mention the rough-around-the-edges UI that makes a Mac user cringe. Guess I’m just spoiled.

Don’t Let A Spec Pick Your Button Type

Ever need to create a <button> of type button when you’re doing a little DOM scripting? Easy enough, right? It should go something like this:

var okButton = document.createElement('button');
okButton.type = 'button';

Nevertheless when you run this code in IE6, you get the super-informative “Communication error” message. It turns out that IE6 (for once) is following the standard. I don’t know what the W3C were thinking, but so sayeth the ECMAScript Language Binding (9 January 2003) spec about the type property of the HTMLButtonElement:

type
This read-only property is a String.

So, the common way to set the property of an HTML element is, according to the standard, right out? I mean, it’s not inconceivable that I would want to create a <button> on the fly with a type that is not the default.

Alas there is a workaround. Ironically, it employs the standard method of setting DOM Node‘s attribute value:

var okButton = document.createElement('button');
okButton.setAttribute('type', 'button');

Works like a charm! Even in IE6.

(I should note that Firefox 3 allows for writing to the button’s type property using the button.type notation. I didn’t test with other browsers to see whether they balk at the button.type notation, but Firefox 2/3, Opera 9.6, and Safari 3, along with IE6/7, are more than amenable to the setAttribute method.)

It’s Good To Be Back

What have I been doing, lo, these many months to keep me away from the blog?  Two new redesigned websites.  Allow me to elaborate.

Pepper Road Church of Christ

I worship with the Pepper Road church of Christ in Athens, AL, and for years now, I’ve been responsible for the church website.  I have fulfilled that responsibility with varying degrees of effort, attention, and responsiveness—lacking in all more often than not.  I finally have gotten around to building the site within a content management system, namely Joomla!.  Now, instead of my being the sole soul who can edit the website, our elders, deacons, and minister can author content themselves, and I have a couple of backup administrators, too. 

A screenshot thumbnail of the Pepper Road church of Christ website

Pepper Road Church of Christ Website

We have information about the church and articles on Bible topics.  Soon we should have sermon audio back online, and after that, we hope to have an introductory Bible correspondence course online.

I’m pleased but not content with look.  In the interest of getting the new site out the door quickly, I have used a free template from Joomla Shack.  It’s fine; it’s just not custom.  I hope to get around to designing something that says “church” a little more than this borrowed template.  When I do, this space will certainly reflect it.  

Of course, at the time of this writing, I’m still using the default WordPress theme on this site.  One of these days …

Conney Safety Products

Not quite a year ago, I took a job with USinternetworking (to which a friend had sold his small business specializing in e-commerce website development in IBM’s WebSphere Commerce).  The first site to go live that I’ve had a hand in is Conney Safety Products.

A screenshot of the Conney Safety Products website

Conney Safety Products Website

Conney is a safety product wholesaler.  The website offers a quick order feature, shopping lists that can be shared among all of the buyers in your company, and a live chat with Conney support personnel.  There are a few post-go-live features that we are finishing up, such as an improved search utility.  Look for that in the next few days.

If you sell safety supplies, drop by conney.com.

So: The New Now?

So, as I listen to podcasts, participate in conference calls, and even talk to people face to face, I find that it is becoming more and more common for people to begin sentences with “so.” For no apparent reason.

So, the form is not something like, “This happened, and then this. So, I did this.” At least in this case, there is a causal relationship to what he/she just said.  

No, people are beginning podcasts with, “So, I’m talking to Herb Plumdiggy from Whack-A-Mole, Inc.” Managers are beginning meetings with, “So, we want to talk about the problems with our automated cotton candy spinner.” When an interviewer asks, “How can earthquakes be prevented with sheep’s bladder?” the interviewee answers, “So, this is a very interesting application. …” People are beginning stories with, “So, you guys have to hear what Gigi’s dog can do with a tricycle and a Slinky.”

So, why are people sticking this word to the fronts of their sentences? It serves absolutely no purpose.  Is “so” the next “y’know” or “like”?

So, all this got me thinking about whether we use any other words like this “so.” It occurs to me that we use “now” in a similar way:

  • Now Jason decided that red licorice just would not do for an industrial application.
  • Kids, you’re gonna regret playing with the cat with those toothpicks, now.

So, the first example is a little different from this totally useless employment of “so.” In the first example, “now” is something of a transitional word from the previous sentence. People tend not to begin a story with “now,” only continue it. You could argue that it serves no grammatical purpose; it is merely aesthetic. In the second example, on the other hand, “now” really is utterly pointless. “Meaningless!” as Orson Welles might say.

So, maybe “so” is the new “now,” but for the beginning of the sentence.

Whatever the reason, it is really annoying.

Saigon Kick

I had lunch with some coworkers at a local Vietnamese restaurant called Saigon.  Accompanying my pho tai were some fresh jalapeno slices, and I dropped one in my bowl.  When I finally came across that jalapeno as I was eating, it burned my throat and made me cough.  I said, “Be careful with those jalapenos, guys.  It’s like eating napalm!”

What?  Too soon?

[Thanks for the punchline, Will.]

Evolution Vacillation

I have to thank my buddy Kevan Moore for sparking this thought.  We were at the Atlanta Zoo.   (By the way, seeing a real, live panda in person is even cooler than you think it would be.  But I digress.)

While we were looking at one of the endangered species exhibits (I forget now which), Kevan piped up, asking why, if we subscribe to the theory of evolution, are we concerned when any animal becomes “endangered?”  Isn’t that just evolution at work, weeding out the inferior species?

I responded sarcastically, “Oh no!  You must understand that these species are only endangered because we—mankind—have hunted them down in our arrogance to make them trophies, or we have disturbed their habitats in our recklessness so that they can no longer flourish.  For nature to kill off her own species is fine, but for us to do it is abomination!”

Then it occurred to me.  Evolution theory says that mankind—uh, humankind (sorry) is simply nature’s most evolved species.  In other words, we’re not outside of nature; we’re very much a part of it.  So what’s the harm if our behavior causes other species to fall out of existence—species less capable, less fit, less able to adapt?  Such is the binding arbitration of evolution.

So is mankind—uh, humankind part of nature or not?  Can we just make up our minds already?

Pro-Life Cruelty

The candidates for Alabama’s 5th seat in the U.S. House of Representatives participated in a debate on May 22.  In the debate’s so-called lightning round, candidates were asked their positions on abortion.  In his response, Dr. David Maker said, “I oppose abortion, except in very special cases.  If you demand that a woman not have an abortion under every circumstance, I believe you’re being cruel.”  Unfortunately, given the fifteen-second time limit in which candidates were allowed to answer in the lightning round, Maker did not go into details.  I suspect nonetheless, because they are caveats that politicians and political candidates commonly support, that Maker is speaking of rape, incest, or the life of the mother.

First, let me deal with the idea of cruelty.  The cruelty in such a situation is on the part of the rapist. It is on the part of the father who abuses his daughter.  It is on the part of the near kin who do not think about the consequences of their creepy, consensual relationship.

Second, how do the circumstances of conception change the fact that a fertilized embryo is a life?  A distinct human life!  That is all it is about: Is it life?  Life is all it must be about because as soon as we start making exceptions for what we think are extenuating circumstances, it becomes far too easy make exceptions for simple convenience.

If we all agree that A, B, and C are extenuating (and cruel) circumstances and worthy of exception, some situation D will come along that is almost, but not quite the same as A, B, or C.  Still though, D is basically the same as A, B, or C, so surely we can allow an exception for it.  Then later case E arises, which bears a lot of resemblance to case D.  Yes, it’s a little different, but if we allow for D, no one can argue that E is not also an exceptional case.  Before long, the list of things we make exception for is longer than the list we hold the line on.

What about the life of the mother?  I mean, the mother’s mental health is one thing, but we’re talking about her physical health, her life here!  I could perhaps be persuaded in theory that abortion is the lesser of two evils if a mother would lose her life in delivery.  Why bring a child into the world without a mother?  Wouldn’t it be better to try again?  Perhaps the next pregnancy will go better, and the family unit will be intact.

The problem is that no one can say with any degree of certainty that a woman will, in fact, lose her life if she attempts to deliver a child in situation X.  There are odds based on the research we have on the matter, but they are only odds.  How many times have doctors given someone no chance of living only to watch the person pull through in the end?  For that matter, it sometimes works the other way around: a seemingly routine pregnancy and delivery end up with complications that result in the mother’s death.  We just cannot know.  It is therefore unjust to choose to terminate a life in favor of another when we are not sure that either life is truly in danger.

Isn’t it just beyond the pale, though, to ask a woman to rear up the child of her attacker?  How can a woman look every day into the face of her child, a child begotten by her own father?  The answer, of course, is adoption.  If seeing that child every day would be too grim a reminder of how the child came to be, the mother need not see the child again after giving birth.  There are would-be parents who are not concerned with how a child was conceived.  They simply long for a child.

There is no cruelty in preserving life.  Still, that is not to say that there would be no difficulties.  The emotional trauma would be grueling.  The medical expenses could be crippling.  Doing the right thing sometimes demands a heavy sacrifice, especially when one suffers the consequences of someone else’s misdeeds.  In the end, the truly cruel thing would be to end a life that has come about by no fault of its own.

Best Family Ever

My condolences go out to all of our competitors.  I’m sure there were several in the running, but I’m afraid the contest is closed.  In fact, I didn’t even know there was a contest until my three-year-old daughter proclaimed to my wife and me, “We’re the best family ever!”

I’d like to thank the Academy, Mom & Dad, my wife, …