This morning I cut Desmond’s hair out on the patio. He did fairly well while I tried to entertain him with things outside of his normal toy repertoire. (The floss lasted the longest.) After we were done he was running around with his shirt off carrying the stick we use to bar the patio door. Such a good boy picture. I love it!
Daddy’s boy carries a more powerful weapon. The force is strong with our little one!
So, the other day I was trying to pivot some SQL data that was basically in this format...
RecNumber
ColNumber
FieldName
FieldValue
1
1
FirstName
Davin
1
2
LastName
Studer
2
1
FirstName
Melissa
2
2
LastName
Studer
I wanted to see it like this ...
RecNumber
FirstName
LastName
1
Davin
Studer
2
Melissa
Studer
It took me a while to figure out the syntax for this, but here it is. It uses the SQL pivot keyword.
This first portion dynamically creates the column names to be used in the pivot.
declare @cols varchar(max)
select @cols = stuff (
(
select '], [' + FieldName
from table
group by FieldName
order by min(ColNumber)
for
xml path('')
)
, 1, 2, ''
) + ']'
This next part creates a query within a string that we will run with the SQL exec command.
declare @query varchar(max)
set @query = '
select RecNumber, ' + @cols + '
from (
select RecNumber, FieldName, FieldValue
from table
) dta
pivot
(
min(FieldValue)
for FieldName in (' + @cols + ')
) pvt'
All that is left to do is to execute the query that was created. I ended up putting this into a stored procedure.
We enjoyed a family hike with fellow Baby Boot Campers to the top of Multnomah Falls at the end of August. It was a good hike and an even a better work out carrying Desmond.
Desmond walking around the zoo. We forgot the stroller and he LOVED his freedom! Des and I visit the zoo often with our friends Gina and Addison. The kiddos really enjoy playing together.
The strange rash Desmond broke out with after eating hummus – which he’s had before with no reaction. He also broke out like this after eating a cinnamon sugar pretzel. Hmmm.
Fun at the state fair! Desmond’s favorite part was the corn bin. He did NOT want to get out.
Playing at home: This week I pulled out my little table and chairs from when I was a kid. Desmond thinks it’s so cool. He also loves carrying around the new Twistables crayons. He doesn’t color much yet, but at least he can’t eat them now.
Sunday morning we joined with the Lees (and about 20,000 other bicyclists) for the annual Portland Bridge Pedal. Since we had the kiddos with us we only did the 14 mile 6-bridge ride rather than our usual 38 mile 11-bridge ride. It took us an hour and a half. Desmond snoozed the first half of the ride and then rode with Addison for the second half. We look forward to doing it again next year!
Sunday was also Davin’s birthday so we celebrated with cheesecake and root beer floats. His mom and brother are also up from California to join in the festivities. It’s been great having them here, and Desmond has really enjoyed his Grandma Linda and Uncle Shane.
On Saturday we went to the Scan One company picnic at Oaks Park. They gave us a few tickets to use and since we couldn’t go on any of the rides as a family, we decided to play a midway game and see if we could win something fun. Davin triumphed and won a big prize for Desmond and he’s been nearly inseparable from his “Beh” ever since.
I decided to make a beach ball cake for Desmond since he LOVES his beach ball… or any ball for that matter. When he woke up the day of the party he pointed to the cake and said, “Ball!” Yay, he likes it! His party was themed around beach balls including the plates and favors for the younger guests.
The highlight of the party was Desmond eating his first cake and ice cream. (Okay, we actually gave him his first taste of ice cream on his actual birthday, but his first taste of cake was right here.) At first he didn’t know if he should touch it. Then he picked up a piece and took a bite. Then he wanted more! We ended up giving him seconds on both the cake and ice cream.
He received lots of presents although he didn’t really know what to do with them. The older kids were more excited than he was, but he’s loving playing and using all his new things at home.
So, I was looking at Google's homepage in IE8 today and I noticed something funny. I was curious, so I decided to open up Google in the other major browsers to see if the funniness followed. Nope! Only in IE. Below are screenshots of the major browsers (save Google Chrome of course). See if you can spot the difference. I realize that Google can do whatever it wants with its one home page(even though Microsoft can't do what it wants with its OS, but don't get me started) and granted IE has its faults, but this seems a bit mean to me ... especially since I was using IE8, which is the most standards compliant IE to date(meaning the features that they have implemented conform to industry standards). What do you think, is it "evil" to sinlge out one competing browser in this way?
So, this year was Melissa and my fifth wedding anniversary. It has been a really good five years. I am so blessed to have her for a wife. So, this year I decided to make her something. The traditional gift for a fifth anniversary is wood (not sure who made that up). Anyway, so I was trying to think up what I could make her. After much contemplation I thought it might be cool to make her a headboard. We’ve never had one and have wanted one for a long time. I also thought it might be nice to have a matching footboard. Well, then I figured if I make a headboard and a footboard I might as well add two side rails and complete the whole frame … see how these things get out of hand really quick. :)
I talked with my martial arts instructor, Dr. Kutz, because I knew that he is really good with wood. I asked him for some help and he agreed. I told Melissa that Dr. Kutz agreed to give me some one on one help. She thought it was for my black belt test, but really it was for the bed. So, on Saturdays I would go for two hours to work-out at Multnomah … or rather work out at Multnomah, where I was keeping the materials. I also took three days off of work, but Melissa thought I just went in to work those days. I even had to get dressed up in to work close before I came home so she wouldn’t suspect. I also had the 3rd of July off of work as a vacation day, but Melissa didn’t know that. :) Anyway, I worked a lot on it here and there.
Anyway, this is the fruit of my labor. It’s the first time I have attempted something of this size. I think it turned out well considering that. Melissa likes it very much … I’m glad. It took me about 50-60 hours to build and about two months. I’m sneaky! I do have to give credit to Dr. Kutz for helping me do the cuts and giving me lots of great advice, LeRoy Lee for helping stain and setting it up, Don Willert for helping stain and lacquer, and Shon TenKley for letting me keep the materials and tools at the Wilcox House.
Below is video of Melissa’s reaction and a slide show of me working on it and some pictures of it set up in our bedroom.