jump to navigation

NOTE: The spam filter is being unusually aggressive. If you comment does not immediately appear, it has simply been placed in moderation and I will approve it as quickly as possible. Thank you for your patience.

"Murphy was an optimist!"

Rubber and Rain September 8, 2010 7:18 am

Posted by Doug McCaughan in : Daily Life
, add a comment

Changing a tire in the rain. This ought to set the mood for the day. Actually the air feels great!

add a comment

jquery challenge of the day September 7, 2010 6:19 pm

Posted by Doug McCaughan in : CSS, Daily Life, JavaScript, jQuery, Programming, Technology
, 10comments

And now for something completely different…

Let’s say you have a table that could have infinite rows. The table has an id but none of the other elements (ie. we won’t be traversing by id). The column to the furthest right of the row has an anchor tag in the for of an <a href> There are no other anchors on that row. What I want to do is when the anchor tag is clicked, have the <a href> text in the row above the clicked on turn bold and only that <a href>. Sample table:

<table id="tbl">
   <thead>
      <tr>
         <th>col 1 label</th>
         <th>col 2 label</th>
      </tr>
   </thead>
   <tbody>
      <tr>
         <td>one</td>
         <td>sometext <a class="tt" href="#">link</a></td>
      </tr>
      <tr>
         <td>two</td>
         <td>moretext <a class="tt" href="#">link</a></td>
      </tr>
      <tr>
         <td>three</td>
         <td>differenttext <a class="tt" href="#">link</a></td>
      </tr>
      <tr>
         <td>four</td>
         <td>othertext <a class="tt" href="#">link</a></td>
      </tr>
   </tbody>
</table>

So, if I click the link in row three, I want the text "link" in row two to become bold. This is using jquery and traversing this is kicking me hard.

10comments

I have a crush on her September 7, 2010 10:11 am

Posted by Doug McCaughan in : Cathy, Love, Philosophy, Poetry
, add a comment

My love for Cathy is so large
That in trying to carry it
I find myself crushed.

add a comment

Stone me September 7, 2010 9:32 am

Posted by Doug McCaughan in : Philosophy, Poetry
, add a comment

I feel like I need medication
I need tranquilization.

add a comment

State of Me September 7, 2010 6:10 am

Posted by Doug McCaughan in : Daily Life, Health, Mental
, add a comment

I’m so stressed that I’ve maintained a headache for about two weeks. There needs to be some serious downtime in the near future.

I cannot get my inner voice to be silent. I wish I could turn off my brain.

add a comment

Best Wife in the World September 6, 2010 9:16 pm

Posted by Doug McCaughan in : Cathy, Daily Life, Family
, add a comment

Cathy really knows how to lift my spirits. I’m so fortunate to have her as my best friend and life long partner!

add a comment

Walking Dead September 6, 2010 3:11 pm

Posted by Doug McCaughan in : Philosophy, Poetry
, add a comment

Somewhere along the path
     I died
But did not know enough
     To stop walking.

add a comment

From the mouths of babes September 6, 2010 2:15 pm

Posted by Doug McCaughan in : Daily Life, Evan, Family, From the mouths of babes
, add a comment

Evan, 5 years old: "A rainbow is my favorite color."

add a comment

Today is Labor Day September 6, 2010 12:23 pm

Posted by Doug McCaughan in : Daily Life
, add a comment

Ergo, I labor.

add a comment

Of Grasshoppers September 6, 2010 10:54 am

Posted by Doug McCaughan in : Of Grasshoppers, Philosophy
, add a comment

Student: I am alone.
Master:  

add a comment

Living large September 5, 2010 10:17 am

Posted by Doug McCaughan in : Philosophy, Poetry
, add a comment

I will do everything big!
For no success should go unnoticed
No voice unheard
No risk taken without chance of harm
No conditional love
No joy mundane
And no mistake can ever be small.

add a comment

It’s a gorgeous day outside! September 5, 2010 9:10 am

Posted by Doug McCaughan in : Daily Life
, add a comment

So I think I’ll spend this holiday weekend Sunday in the dusty windowless basement writing code.

add a comment

Let’s talk SEO and domain names September 1, 2010 7:50 am

Posted by Doug McCaughan in : Technology
, 3comments

Say for more than half a decade (really its been a decade) Cathy has blogged as DomesticPsychology.com and she has. Let’s say on a whim she decides she would rather be blogging as CathyMcCaughan.com (in reality she hasn’t..this is simply a working example). Currently http://CathyMcCaughan.com forwards to http://domesticpsychology.com/. To complicate things, let’s say they are registered at 2 different registrars so DNS is handled by two different organizations.

Many options exist for moving a domain name. What is the best way to make http://cathymccaughan.com/ the primary url for Cathy’s website instead of http://domesticpsychology.com/ without losing the search engine rankings or readership and without creating broken links?

3comments