Friday, May 20, 2011

Baffling the Lactation Consultants

DSC_0001Feeding Kaylynn has been my life this week.  I figured out I spent at least 12 hours solely focused on feeding and pumping the other day.  We’ve been trying to get her to breastfeed again like she did at first.  She’ll only feed at the breast if there’s a tube pumping it in.  Otherwise she fights me and gets very angry.  She wants to latch on and opens wide, but then once on she’ll pull away.  If she does manage to calm down, she’ll do small sucks and fall asleep.  I’ve been to two one-on-one lactation consultations and a lactation support group and so far none of the experts can figure out why she’s not nursing.  I have the supply as evidenced by my 24 oz of pumped milk per day.  Kaylynn just won’t work to get it out, but she used to and that’s why my milk came in so fast. 

At today’s one-on-one the consultant wondered if she’s getting conditioned to scream on my breast so I want to do my best to get her comfortable and calm there.  We’ll keep trying.  I only had three hours of sleep last night so today has been a bit difficult in staying calm with her fighting me.  We both end up crying.  Davin also returned to work yesterday so I’ve got to do this on my own which is very difficult with the tube feeding.  I have another lactation appointment on Tuesday with the expert in the office to see if we can figure this out.

Kaylynn had her first bottle yesterday and though I feel like it’s a cop out it also felt so good to just simply feed and enjoy her as her deep blue eyes stared at me over the bottle.

Tuesday, May 17, 2011

From Hospital to Home

I have a few minutes before I need to feed Kaylynn so I’m raising my head out of the "I have a new baby and a 2-year old” abyss to record our first week.

DSC_0073DSC_0118

DSC_0104DSC_0152

Kaylynn Hope Eliana Studer was born on May 9, 2011 at 8:41 pm.  She weighed 8 lbs 4.5 oz and was 20.5 inches long.  I won’t go into the full birth story, but Kaylynn and I are both doing well.  There are a few major differences between this and my first birth experience.  For one thing I started off feeling very well rested since it was a repeat cesarean.  Also Kaylynn knew just what to do for breastfeeding.  She helped me out a lot and though she got down to 7 lbs 10.8 oz, she was back up to 7 lbs 12 oz before we left the hospital. 

It was hard being away from Desmond and Kaylynn reminded me of him so much!  Desmond came to visit on Tuesday morning and didn’t quite know what to think.  He immediately came over to look at her and got a huge smile, but then she started crying and he teared up and wanted me to put her back in her bed.  We gave him some big brother gifts from Kaylynn and he played with his new battery operated Percy train the rest of the visit.  The next day he was more interested in her and wanted to hold her and give her kisses.  He’s going to be a good big brother!

DSC_0174DSC_0015

DSC_0008DSC_0055

On Thursday afternoon we came home.  My parents and Aunt Marcia were staying at our place while we were in the hospital, but they returned home Thursday evening.  Friday all of Davin’s parents arrived and stayed through the weekend.  It was fun having them here, but having all the company has also created quite the whirlwind as we adjust to our new addition.  Cheryl is thankfully staying for two weeks to help me adjust to Davin’s return to work in two days.

My recovery is going just as well as it did with Desmond.  I took some pain medication at first, but the last few days I haven’t needed any.  The main downside is I have no abdominal strength and can’t pick Desmond up or get out of bed very easily for that matter.  It is getting better, though.

DSC_0059

And here we go again!  Kaylynn fed like a champ for the first five days bringing in my milk in just over two days (which impressed all the nurses).  Then Sunday she became really lazy with her sucking and wanted to nurse almost non-stop.  I don’t know what changed, but at our first mother/baby appointment yesterday the lactation consultant confirmed that she’s not getting enough and is a lazy feeder.  She falls asleep almost as soon as she’s on.  So here’s my new regimen: breastfeed, feed her extra breast milk with the aid of a tube, pump, and repeat every 3 hours.  Sigh!  I was so hoping we had this thing down and I didn’t need all this paraphernalia!  I can’t do the tube feeding on my own yet (if only I had three hands) and this whole process usually takes just over an hour to complete which means I can’t tend to Desmond for quite a stretch. 

Yesterday was my hardest day after breezing through the first several days.  I get frustrated with the new feeding process, but if pumping for 11 months with Desmond is any indication, we can make this thing work!  I just have to find my new rhythm.  My goal with Desmond was to get him off formula and I did.  So far we haven’t needed formula with Kaylynn so my goal with her is to get her back to proper nursing so we don’t need the tube.

Sunday, May 01, 2011

Easter Weekend

DSC_0065DSC_0071

The Saturday before Easter we went to Esther Short Park downtown and joined in an Easter egg hunt.  There were tons of eggs in a sectioned off piece of lawn for the four and under crowd.  Once they said, “Go” it was over in about 15 seconds.  This was Desmond’s first hunt so he didn’t really know what to do, and all the people kind of intimidated him, but he managed to get six eggs and then enjoyed eating the candy inside.

DSC_0087DSC_0098

DSC_0105DSC_0109

DSC_0116

Easter day we had my family over for a big meal, and the rain stopped long enough for Desmond to do another egg hunt in our yard.  He was very cute to watch.

The games are fun, but what a gift to remember that Jesus conquered death for us that we may live forever with Him!

Sunday, April 24, 2011

New Craft Project

DSC_0047

Thanks to a birthday gift card to JoAnn, I’ve been working on a new craft project.  I’ve had my eye on this one for awhile.  It’s kind of what I imagine our daughter will look like as a little girl.  I work on it in the evenings when Desmond is in bed.

As I was thinking about it I realized this is the first cross-stitch I’ve done in about six years!  I go in spurts.  I’ll really get into one project for awhile then it will get old so I’ll move on to something else.  I’ve been a bit knit crazy the past year so it’s time to switch.  It’s been really fun going back to cross-stitch.

Thursday, April 07, 2011

Convert CSV data into a SQL table


Recently I have been working with some report data that is stored statically in a database in CSV format. I had a need to have that CSV data displayed in a tabular format. I searched around and couldn't find anything written to do this in SQL, so I decided to write a stored procedure to do this very thing. It will take a CSV and parse it out into a SQL table. For instance if I have report data that looks like this...

"FirstName","LastName","DOB","Children"
"John","Smith","1/5/1980","Bob,Sally,Joe,Chris"
"Jane","Smith","2/25/1982","Bob,Sally,Joe,Chris"
"Bruce","Wayne","5/13/1975",""
"Peter","Parker","5/23/1970",""
"","","",""

It would be transformed into this ...

FirstNameLastNameDOBChildren
John Smith 1/5/1980 Bob,Sally,Joe,Chris
Jane Smith 2/25/1982 Bob,Sally,Joe,Chris
Bruce Wayne 5/13/1975
Peter Parker 5/23/1970

Note that in the last column the commas are preserved because they are within the quotation mark text qualifiers. Below is the stored procedure that does this. Feel free to use it, and leave a comment if you found it useful.

-- ==========================================================================================
-- Author:  Davin Studer
-- Create date: 4/5/2011
-- Description: This will take a CSV input
-- and transform it into a table
--
-- Params:
-- @string          - The CSV string
-- @textQualifier   - Character that denotes a string within the CSV
-- @columnDelimiter - Character that denotes different columns ... doesn't have to be a comma
-- @rowOneIsHeader  - Does the first row contain column names?
-- ==========================================================================================
create procedure [dbo].[CSVToTable]
    @string nvarchar(max) = '',
    @textQualifier varchar(1) = '',
    @columnDelimiter varchar(1) = ',',
    @rowOneIsHeader bit = 0
as
begin
    -- set nocount on added to prevent extra result sets from
    -- interfering with select statements.
    set nocount on;

    -- We need and input string
    if isnull(@string, '') = ''
    begin
        raiserror ('Please supply an CSV string', 15, 1)
        return
    end
 
    -- We need and column delimiter
    if isnull(@columnDelimiter, '') = ''
    begin
        raiserror ('Please supply a column delimiter.', 15, 1)
        return
    end
  
    -- Make sue the user doesn't pass null as a value
    if isnull(@textQualifier, '') = ''
    begin
        set @textQualifier = ''
    end

    -- Make sue the user doesn't pass null as a value
    if isnull(@rowOneIsHeader, '') = ''
    begin
        set @rowOneIsHeader = 0
    end

    declare
        @columns int = 1,
        @columnNames nvarchar(max) = '',
        @stop bit = 0,
        @position int = 0,
        @temp nvarchar(1) = '',
        @dataStart int = 0,
        @sql nvarchar(max) = '',
        @qualifierToggle bit = 0,
        @tempString nvarchar(max) = '',
        @delimiterReplacementUTFNumber int = 2603

    -- Get rid of the ##tempCSVSplitToTable table if it exists
    if object_id('tempdb..##tempCSVSplitToTable') is not null
    begin
        drop table ##tempCSVSplitToTable
    end

    -- Get rid of white space
    set @string = rtrim(ltrim(@string))

    -- Set the EOL to char(13)
    set @string = replace(@string, char(13) + char(10), char(13))
    set @string = replace(@string, char(10), char(13))

    -- Deal with the delimiter character within the text qualifier characters
    if @textQualifier <> ''
    begin
        while @position <> len(@string)
        begin
            set @temp = substring(@string, @position, 1)
            if @temp = @textQualifier
            begin
                if @qualifierToggle = 0
                begin
                    set @qualifierToggle = 1
                end
                else
                begin
                    set @qualifierToggle = 0
                end
            end
            if @temp = @columnDelimiter and @qualifierToggle = 1
            begin
                set @tempString = @tempString + nchar(@delimiterReplacementUTFNumber) -- replace with UTF delimiter replacement character
            end
            else
            begin
                set @tempString = @tempString + @temp
            end
            set @position = @position + 1
        end

        set @string = @tempString
    end

    -- Get rid of text qualifier ... we don't need it now
    if @textQualifier <> ''
    begin
        set @string = replace(@string, @textQualifier, '')
    end

    -- Get column names
    set @position = 1
    while @stop = 0
    begin
        set @temp = substring(@string, @position, 1)
        if @temp = @columnDelimiter
        begin
            set @columns = @columns + 1
            set @columnNames = @columnNames + ','
        end
        else if @temp = char(13)
        begin
            set @stop = 1
        end
        else
        begin
            set @columnNames = @columnNames + @temp
        end
        set @position = @position + 1
    end

    set @dataStart = @position

    if @rowOneIsHeader = 0
    begin
        set @dataStart = 1
        set @position = 1
        set @columnNames = ''
        while @position - 1 < @columns
        begin
            set @columnNames = @columnNames + ',Column' + cast(@position as varchar(1))
            set @position = @position + 1
        end
        set @columnNames = substring(@columnNames, 2, len(@columnNames))
    end

    -- Build ##tempCSVSplitToTable table
    set @sql = @sql + 'create table ##tempCSVSplitToTable (' + char(13) + '['
    set @stop = 0
    set @position = 1
    while @stop = 0
    begin
        set @temp = substring(@columnNames, @position, 1)
        if @temp <> ','
        begin
            set @sql = @sql + @temp
        end
        else
        begin
            set @sql = @sql + '] nvarchar(max),' + char(13) + '['
        end
   
        set @position = @position + 1

        if @position - 1 = len(@columnNames)
        begin
            set @sql = @sql + '] nvarchar(max)'
            set @stop = 1
        end
    end
    set @sql = @sql + ')' + char(13)
    exec (@sql)

    -- insert values into ##tempCSVSplitToTable table
    set @position = @dataStart
    while @position - 1 < len(@string)
    begin
        set @stop = 0
        set @sql = 'insert into ##tempCSVSplitToTable ([' + replace(@columnNames, ',', '],[') + ']) values ('''
        while @stop = 0
        begin
            set @temp = substring(@string, @position, 1)

            -- end of column
            if @temp = @columnDelimiter
            begin
                set @sql = @sql + ''','''
            end
            -- EOL
            else if @temp = char(13) or datalength(@temp) = 0
            begin
                set @stop = 1
            end
            -- deal with apostrophe in data
            else if @temp = ''''
            begin
                set @sql = @sql + ''''''
            end
            -- column data that isn't an apostrophe
            else
            begin
                set @sql = @sql + @temp
            end

            set @position = @position + 1
        end 
        set @sql = @sql + ''')'

        -- Get rid of any UTF delimiter replacements that were put in to take the place of the delimiter character within the text qualifier
        if @textQualifier <> ''
        begin
            set @sql = replace(@sql, nchar(@delimiterReplacementUTFNumber), @columnDelimiter)
        end

        exec(@sql)
    end

    select * from ##tempCSVSplitToTable

    -- destroy ##tempCSVSplitToTable table
    if object_id('tempdb..##tempCSVSplitToTable') is not null
    begin
        drop table ##tempCSVSplitToTable
    end
end

Saturday, April 02, 2011

Getting Ready for Baby

IMG_2935IMG_2941

Last weekend my parents came up and helped me paint the nursery.  It’s now a pretty lilac color and I’ve had fun sewing curtains and decorating it.  Desmond has been helping me along the way, and he likes all the baby things that are coming out of boxes.  Speaking of boxes – I emptied one and made it into a house for him.  It’s been a huge hit.

IMG_2946

Today is our last free, unscheduled day before baby arrives.  Weird!  April weekends are full of Tae Soo Do events (Davin’s black belt ceremony and a tournament) and family birthdays.  There are so many things I could do today… or I might just relax.

For more baby news and health updates check out my pregnancy blog.

Thursday, March 24, 2011

Little Boy Blue

Desmond has officially moved back into his bedroom!  We moved him out of the “burgundy room” fairly early because it reeked of cat pee.  I started painting it in September, and then it sat untouched for awhile through early pregnancy discomforts and a-fib episodes.  I worked on it here and there, ripping out trim, sanding, retexturing, pulling out carpet, and sealing the subfloor.  Last week we finally got our new carpet installed and Davin put in the trim (we just have the closet and IMG_2918window trim left to do).  Today I finished up touch ups, and Desmond helped me move in the furniture.  He was so excited!  I was, too.

With this transition back into the “blue room” we are struck with how big Desmond is getting.  He’s such a little boy and no longer a baby.  Getting a new baby in a few weeks will change so much in our family dynamics.  We’re phasing out the things baby will use such as the gliding rocker that will go in the nursery, but it was sad not to rock Desmond tonight.  Our little boy is growing up!  What a mix of sadness and joy all at once.

Saturday, March 12, 2011

Cute Sayings

Desmond hiding behind the curtain: "I'm a Jertain!" While reviewing our phone number with Desmond, Davin says it and Desmond replys, "Good job, Daddy." The next time Davin says it Desmond says, "Good job, Daddy, again." The third time Davin prompts him to repeat it, Desmond says, "Good job, Daddy, again and again." At Sweet Tomatoes Desmond was playing around rather than eating. Davin was trying to get him to finish his dinner and rather than saying it verbally again, he simply pointed to Desmond's food. Desmond then turned with a smile and pointed to Davin's food. We got a good laugh at his imitation. While making dinner Desmond was helping me roll out the dough and he said, "Dough. Doe a deer!" He's always making new associations. I'm not sure where he picked up this word because it's not like we're saying it all the time but in the car Desmond all of a sudden blurts out, "Husband." I told him that Daddy was my husband so he repeated, "Daddy is my husband." Later at dinner I was telling Davin about it and Desmond said again, "Daddy is my husband." We corrected him and told him that Davin was not his husband but his daddy and he was only my husband. Desmond was about to cry because he wanted Daddy to be his husband. We kept explaining about family relationships: daddy, mommy, son, husband, wife, brother, sister. Desmond just ended up confused but at least we avoided tears.

Wednesday, March 09, 2011

Our Not-So-Little Desmond

It’s hard to believe that very soon we will have two children!  I am looking forward to lightening my load and getting this body back in shape again.  Desmond likes to give baby sister kisses.  I think she’ll need to get used to getting lots of love. 

IMG_2914IMG_2915

I’ve been struck with how big Desmond is getting lately.  Not only has he grown half an inch in the last 6 weeks (making him 38.5 inches tall), but he continues to surprise me with the things he says and his growing skills.  He can dress and undress himself, count to 29, and recognizes numbers 0-10 which is handy when we tell him he can’t get up until his clock says 7.  He knows all his letters including some letter sounds and can spell his name.  He also just learned our phone number. 

Recently a car honked it’s horn and Desmond said, “Somebody pushed the trumpet button.”  He also reminds me to take smaller bites and made a joke the other day by saying “cheese” instead of “please.”  He makes us laugh on a regular basis.  I should be better at writing these things down because I forget most of it.

IMG_2900Last weekend we went down to Albany to celebrate the Boydston March birthdays: Dad – March 1, Grandpa – March 4, Daniel – March 6, and me – March 15.  We had gifts and dinner at the Sizzler.  Here’s Desmond giving Nana an eskimo kiss.  He has a routine: hug, kiss, eskimo kiss, high five, knuckles, thumbs up.  We’re getting everyone trained in that.

Thursday, February 10, 2011

My Little Puzzler

Desmond takes after me in his love for puzzles.  Yesterday we had fun putting together every jigsaw puzzle he has.  We have long since left the wooden peg puzzles in favor of jigsaw puzzles.  A few months ago I did a 1000-piece puzzle and while I was sorting Desmond put together the first three pieces on his own.  He can do 48 piece puzzles all by himself now, so I’m thinking of getting even bigger ones for him. 

It was Desmond’s idea to not wear clothes so that’s why he’s only in a diaper and socks.  And yes, he’s back in diapers.  Our last potty training session lasted eight weeks, but he was still having lots of major accidents, and I can only remember about four times where he told us he needed to go potty.  My hospital stay totally derailed everything so it is back to diapers for now.

IMG_2863IMG_2868

IMG_2864IMG_2873