"All we have to decide is what to do with the time that is given to us." -- J. R. R. Tolkien
Sunday, November 23, 2014
Kamikaze Turkey
Wednesday, November 12, 2008
They moved onto the acreage behind us probably two years ago and honestly, we don’t know them all that well. We see each other in passing and they are very nice Christian people, but they have this gift of always stopping by when I’m at my worst. You know how it is, right? They stop by to visit and the house is a wreck, or they walk past the yard when you’re running out to get the paper with “bed hair”...
Well in order to understand today’s humiliation, you must first know a little background. We have two beautiful and energetic golden retrievers. Recently I saw an ad on TV for a new training system called, THE PERFECT DOG. It promised great results quickly and like a sucker I bought it! Now, I’m actually very happy with it and am eagerly going out to work with my dogs each day, imagining in my minds eye these well behaved dogs from the commercials. My dogs however don’t tend to react just like the dogs on TV, so although we are seeing some success we also have our moments of frustration. One of the new techniques we are practicing is for the dog to come up to an open door, but not to cross the threshold until you have given them permission. If they do you pull them back to the “line” they crossed and give them a firm wack on the chest while telling them to wait. So I’m in my garage practicing with them to not come in from their pen without my permission, (now in my defense....I was outnumbered two to one and I’d just hit my head on the garage door)!
One more small piece of information that you need to know, our doorbell doesn’t work!
Here enters the neighbor lady, their phones aren’t working and she has come over to ask if she can use mine. Knock, knock, knock on the door.....followed by a voice from the garage....”wait”..........knock, knock, knock.....(a little louder voice from the garage)”WAIT”.................knock, knock, knock........(much louder voice,)”WAIT!!!!”
Do you get the picture here?????
She’s probably like, “Ok, I’m waiting” and meanwhile I’m in the garage and can’t even hear her knocking!
Eventually I come into the house and hear a gentle knock, she gets to use the phone and I’m “the crazy neighbor” again!
SIGH!!!
Wednesday, September 24, 2008
A Parent's Influence
I took special pride in my older kids today. Their actions re-assured me that my place of influence as a parent is not dead. Without any prompting from me, they held their own “See you at the pole” day at their small middle-school. My son and daughter walked past the open door to stop and pray for their school and community before class.
As a parent I often fear the challenges facing my children in modern society. My knee-jerk reaction is to want to protect them. Just by shear number of minutes I fear I will lose the battle to influence my kids. As they grow older I try to teach by influence rather than control, to discuss rather than command. A philosophy of gradual independence, the more they mature, the more freedom they earn and the less we command. Today they showed me they can make good, even noble choices. I am proud of them.
Thursday, July 17, 2008
Best Phrase of the Day
Every politician from both parties in city government to our country's top leadership (and those running for it) are affirming the man-made global warming threat. Just as they jump on the band-wagon of global warming the scientific dissent is beginning to take hold.
(http://www.climatescienceinternational.org/index.php?option=com_content&task=view&id=37&Itemid=1)
Monday, April 14, 2008
Finally, Spring!
The kids enjoyed the day as well. They took large sticks to attack the various piles of snow about the yard calling themselves "The army of spring." Their plan seems to be working as the scattered piles were the first to disappear this weekend. The last little joy of spring was driving by the ice-free little lake near our house. Its finally time to buy my fishing license.
Wednesday, March 12, 2008
The Impostor
So, what choice do we have but to continue to let her live our her little charade. We'll let her warm herself by our fire, purr in our laps, intimidate our dog and beat up Pollie. However, I've lost a little faith in our vet who has taken this long to figure out he was a she.
Friday, December 28, 2007
SQL Search Script
In our data warehouse environment we have over 10 terabytes of data (staging and production reportable), comprised of over 5000 tables populated by over 500 SQL Agent jobs. So, when I get a question about a particular table I don't always know the answer from memory. I refer often to my SQL Search Script. This lets me know which tables, views, stored procedures and jobs relate to a particular search string. The only thing missing is SQL embedded in DTS.
DECLARE @SQL varchar (500)
DECLARE @Search varchar (200)
--Enter your search key-word or table name
SET @Search = 'SearchString'
DECLARE @DBName varchar (30)
DECLARE Databases CURSOR FAST_FORWARD FOR
IF OBJECT_ID('tempdb.dbo.#FindObjects') IS NOT NULL DROP TABLE #FindObjects
CREATE TABLE #FindObjects
(
Database_Name varchar(128) Null,
Obj_Name varchar(128) Null,
dbType char(1) Null
)
OPEN Databases
FETCH Databases INTO @DBName
WHILE @@FETCH_STATUS = 0
BEGIN
SET @SQL = 'INSERT INTO #FindObjects '
SET @SQL = @SQL + 'SELECT DISTINCT ''' + @DBName + ''', [Name], a.Type '
SET @SQL = @SQL + 'FROM ' + @DBName + '.dbo.sysobjects a '
SET @SQL = @SQL + 'LEFT JOIN ' + @DBName + '.dbo.syscomments b ON a.ID = b.ID '
SET @SQL = @SQL + 'WHERE a.Type IN (''P'',''U'',''V'')'
SET @SQL = @SQL + 'AND (b.Text LIKE ' + '''' + '%' + @Search + '%' + ''''
SET @SQL = @SQL + 'OR a.Name LIKE ' + '''' + '%' + @Search + '%' + ''')'
EXEC(@SQL)
FETCH Databases INTO @DBName
END
CLOSE Databases
DEALLOCATE Databases
-- Objects Results
SELECT * FROM #FindObjects order by Database_Name, dbType, Obj_Name
-- Check Jobs
SELECT Job_Name = b.name, a.step_id, a.Step_Name, a.subSystem, a.command, a.database_name, a.output_file_name
FROM msdb.dbo.sysJobsteps a
Join msdb.dbo.sysjobs b on a.Job_id = b.Job_id
Where Step_name like '%' + @Search + '%'
or a.command like '%' + @Search + '%'
Monday, December 03, 2007
Dimensional Modeling
So, to keep the vision alive, I created the following power-point (Dimensional Modeling Powerpoint). I've used it a few times over the past year with BI staff and managers who missed the training and with new-hires. Maybe someone looking for a refresher course may find it useful as well.
Tuesday, November 20, 2007
Dribbles
Yesterday we were visiting with Mrs. Barbara, my youngest son's preschool teacher. She was telling us that over the years of working with lots of little boys at the preschool/daycare they have learned to ask the boys to “clean up your dribbles” after a trip to the bathroom. So last week during preschool as a little boy came out of the bathroom she asked him if he’d checked his dribbles and he pops up with, “My brother, has a dribble!” Mrs. Barbara was a bit surprised, but she is used to this kind of “announcement” so she made some comment like: “Well, I’m sure he takes care of it” and started to go on with class when my son says, “Yep, he keeps it in his room and feeds it and his name is Matthias.” Mrs Barbara, was a little stunned until she realized he was talking about the GERBIL!! Mrs. Barbara thought it was hilarious!!!
Thursday, October 25, 2007
The Crying and the Moaning and the Screaming...
If you have small kids then you have to watch this one.
Wednesday, October 10, 2007
Custom SSIS Slowly Changing Dimension Type 2
Unfortunately when you use the SCD wizard to create a type 2 slowly changing dimension you have to choose between using a current indicator or a valid date range technique. You can not have both, at least through the wizard. To add both you will have to edit the package after the wizard is complete.
Complete the Slowly Changing Dimension wizard. I prefer choosing the Single Column / Current Flag option for Historic Attribute Changes during the wizard.
Modify the components in the SDC update branch
- Add a new derived column with an expression like (DT_DBTIMESTAMP) GETDATE()
- Modify the OLEDB Command Update statement, i.e.:UPDATE [dbo].[tbl_Cost_Center_Dim] SET [Current_Flag] = ? ,Row_End_Date = ?WHERE [Cost_Center_Code] = ? AND [Current_Flag] = '1'
- Modify the OLEDB Command, Column Mapping tab, to reflect the re-alignment the new parameter(s) added.
Modify the components in the SDC Insert path. These are the components after the Union All component.
- Add new derived columns for begin and end effective dates. The end effective date should be a conformed standard future date such as 6/6/2079.
- Add the new columns to the mapping of the OLEDB Insert Destination component.
In addition to using this process for Row Effective dates it is also useful for using Row Created and Row Updated dates.
Brain Ache
Friday, August 03, 2007
SQL Round To Quarter
Next time I won't spend 15 minutes trying to recall the rounding formula. I'll just look it up here.
DECLARE @target smallmoney
SET @target = 597.80
--round to quarter hour
SELECT ROUND( @Target/25.0, 2) * 25
-- Result = 597.75
Friday, July 20, 2007
Broadband?
Tuesday, July 17, 2007
Real Life
Humans are apt to treat God the way the first type of sports fan treats their favorite team. We expect that if we give our allegiance to God that He will be good to us. But that is not the sort of relationship that God wants with us. He doesn't need our allegiance. He is not an insecure demagogue trying to rally support. He calls us to worship Him not because He needs our worship, but because He knows there could be nothing better for us than to get caught up in his glory. --Betsy Childs
To be successful is temporary, to be devoted is ethereal and eternal. To get that promotion I've been bucking for only satisfies for a time. Then I will want more. To make that the center and measure of my life will always leave me wanting more. Jesus said "Whoever wants to save his life will lose it, but whoever loses his life for me will find it" (Matthew 16:25). And in another place John say of Jesus "In him was life, and that life was the light of men" (John 1:4). Real life is not found in the measure of our possessions, title or popularity but in knowing and being know by the creator.
Friday, June 15, 2007
A Great Morning
I love being outside. Now that the sun lights up the morning at 5:30 AM, I'll get up most days and do something outside. Since I live on five acres with a large-ish garden I'll usually be out in it pretending that everything will grow better if I tweak this or that.
Today, instead of the garden, I was in the front yard planting trees. A neighbor gifted us some Larch and Ponderosa tree seedlings. Being a person who can't let "good" things die irresponsibly, I felt guilted into planting my seedlings somewhere. With Larch being "more good" then Ponderosa, I planted those first and in the best places. I was able to plant one of the Ponderosa before my internal clock told me I was going to be late for work. The others will have to wait until tomorrow. That was my first good treat of the morning. I planted something that will (hopefully) grow and bring pleasure later in life.
I finished getting ready for work and made my usually latte, flavored with vanilla. I capped off my cup, ready for the morning commute, hmmm, that tastes excellent. The second treat of the morning.
Grabbing my laptop bag and with coffee in hand I approach the truck and see that I left the seedlings on the hood. I've got to put those someplace safe before I leave, back to the house. On the way back out of the house I pass the strawberry patch by our front door. The patch is doing great this year, it is bursting with red berries. It is such a good morning, I stop and pick a generous handful. Back in the house for my third trip, I wash the strawberries, divvy some out to my hungry four-year-old, and finally leave the house. All the way to the highway I'm thinking how great it is to eat fresh berries and drink good coffee on a beautiful June morning.
Thank you God for such a good morning!
Friday, March 23, 2007
Karma vs. Grace - Bono's View
“You see, at the center of all religions is the idea of Karma. You know, what you put out comes back to you: an eye for an eye, a tooth for a tooth, or in physics—in physical laws—every action is met by an equal or an opposite one. It’s clear to me that Karma is at the very heart of the Universe. I’m absolutely sure of it. And yet, along comes this idea called Grace to upend all that ‘As you reap, so will you sow’ stuff. Grace defies reason and logic. Love interrupts, if you like, the consequences of your actions, which in my case is very good news indeed, because I’ve done a lot of stupid stuff. . . . I’d be in big trouble if Karma was going to finally be my judge. It doesn’t excuse my mistakes, but I’m holding out for Grace. I’m holding out that Jesus took my sins onto the Cross, because I know who I am, and I hope I don’t have to depend on my own religiosity.”
Read the whole article Rock Star as Theologian at Breakpoint.
Friday, March 16, 2007
Some (more) Inconvenient Truths
I see in nature and the environment a deeply intricate design of God which man has only understood a fraction of its complexity. Because my Worldview is so oriented I am skeptical of the broad "scientific" claims made in the name of global warming. The truth probably lies somewhere in the middle. Here are some quotes that I appreciated in a recent article I read.
"From the technical perspective, if anthropogenic [man-made] warming is real, then why is Earth’s closest neighbor warming? According to recent studies, the Martian climate is not only undergoing a dramatic change, its caps are melting “at an alarming rate.” Could it be the naysayers who claim that sun spot cycles and solar winds are major drivers in this phenomenon are onto something?"
"It’s also important to realize that every group has its special interests, be they financial, political, or spiritual. Mr. Gore noted, "You can't make somebody understand something if their salary depends upon them not understanding it." That’s well said; but it applies equally to him and his camp as it does to his critics."
"Having said all this, let me add that I agree with many of the recommendations in An Inconvenient Truth. Recycling more, driving less, adjusting our thermostats, reducing consumables, planting trees, and the like, are the right things to do. All are in keeping with biblical stewardship, regardless of global warming. "
Read the entire article Some Inconvenient Truths by Regis Nicoll at Breakpoint.
Thursday, March 15, 2007
Find SQL Objects
-- Search Criteria
DECLARE @Search varchar (200)
SET @Search = 'seach_keyword'
-- Variables
DECLARE @SQL varchar (500)
DECLARE @DBName varchar (30)
DECLARE Databases CURSOR FAST_FORWARD FOR
SELECT name
FROM master.dbo.sysdatabases
-- Temp table for clean presentation
IF OBJECT_ID('tempdb.dbo.#FindObjects') IS NOT NULL DROP TABLE #FindObjects
CREATE TABLE #FindObjects
(
Database_Name varchar(128) Null,
Obj_Name varchar(128) Null,
dbType char(1) Null
)
-- Find SQL Objects
OPEN Databases
FETCH Databases INTO @DBName
WHILE @@FETCH_STATUS = 0
BEGIN
SET @SQL = 'INSERT INTO #FindObjects '
SET @SQL = @SQL + 'SELECT DISTINCT ''' + @DBName + ''', [Name], a.Type '
SET @SQL = @SQL + 'FROM ' + @DBName + '.dbo.sysobjects a '
SET @SQL = @SQL + 'LEFT JOIN ' + @DBName + '.dbo.syscomments b ON a.ID = b.ID '
SET @SQL = @SQL + 'WHERE a.Type IN (''P'',''U'',''V'')'
SET @SQL = @SQL + 'AND (b.Text LIKE ' + '''' + '%' + @Search + '%' + ''''
SET @SQL = @SQL + 'OR a.Name LIKE ' + '''' + '%' + @Search + '%' + ''')'
EXEC(@SQL)
FETCH Databases INTO @DBName
END
CLOSE Databases
DEALLOCATE Databases
-- Objects Results
SELECT * FROM #FindObjects order by Database_Name, dbType, Obj_Name
-- Find SQL Agent Jobs
SELECT Job_Name = b.name, a.step_id, a.Step_Name, a.subSystem, a.command, a.database_name, a.output_file_name
FROM msdb.dbo.sysJobsteps a
Join msdb.dbo.sysjobs b on a.Job_id = b.Job_id
Where Step_name like '%' + @Search + '%'
or a.command like '%' + @Search + '%'
ORDER BY b.name, a.step_id
Saturday, February 24, 2007
Chew, Chew, Breath
It was in this circumstance it stuck me as funny that I was having difficulty with dinner. I had been looking forward to dinner in a "comfort food" kind-of-way. As I sat down and started eating I noticed that I couldn't really taste the great meal my wife had cooked*. On top of that, I was surprised how often I had to stop chewing and breath. It was literally "Chew, chew and breath." What do you do when you can't eat and breath at the same time? You end up chewing faster then you're used to and trying to swallow before you are ready. It is a wonder I didn't choke on a large piece of chicken. So much for "comfort-food."
*Legal disclaimer: Taste and smell are linked therefore my perception of the savoriness of the meal was a result of my illness and not the cook’s ability.

