Xerratus
Happily stressed out, since 1974


 
Thursday, May 25, 2006

My wife went out and got another chihuahua, Prada, and she's adorable. 





Sunday, May 21, 2006

me: "The thing that concerns me about buying that house, putting a new coat of paint on it, then selling it again is; it's been on the market for so long, why hasn't it sold?"
wife: "Because it's fucking ugly!"
Tuesday, May 16, 2006

(Source: Google Notebook Launches: Ho-Hum)
I also wonder about Google’s dedication to its own projects. For example, what will be the fate of Google Bookmarks now that Google Notepad has launched? Google Labs is littered with half baked and half finished products. I see little or no product vision coming out of Google, sitting fat and arrogant on it its Adsense revenues.

Monday, May 15, 2006

Happy Birthday Honey!

I hope you have a fabulous day to match your fabulous life.
Wednesday, May 10, 2006

Scary Movie 4 (2006)
Henry Hale: I fear the presence of the outsiders will attract those of whom we do not speak.
Female Elder #2: But if you talk about those of whom we do not speak, have you not spoken of that about which we do not talk.
Henry Hale: Do not speak of that of about which we talk of not speaking...about.
Tuesday, May 09, 2006

This morning we ran into a slight problem displaying data concerning null-able dates.  Let's say we have a table called "Foo" and Foo has 3 dates, 1 that can be null.  When we retrieve the data we call a routine that will retrieve the type of data we're expecting back.  For example, we know that "created", "modified", and "processed" are all date values so we know we can call GetDateValue(col) which will return a DateTime value.  In this routine, we basically use Convert.ToDateTime() to return the data.  Problem is that if variable col (the input parameter) is null the method returns "" because DateTime cannot be null.  This posed a problem viewing the data.

What I needed/wanted was a way to check the data to see if it was null but in a centralized place.  In no way, shape or form did I want 2 different programmers checking for a null date 2 different ways.  Problems arise that way because neither programmer knows how the other programmer is checking for null.  So I created a very quick, simple static function that I put in a generic class to check for a null date; IsDateNull(DateTime d) returns a boolean.
public static bool IsDateNull(DateTime d)
{
return d.Equals(Convert.ToDateTime(null));
}
Basically, we know that d was created using the Convert.ToDateTime() method and we know that when a null from the database is returned it calls Convert.ToDateTime(null).  So if we just simply compare the 2 we know if the date is null or not.  Also, if we returned new DateTime() instead of using the Convert.ToDateTime() method, "1/1/0001 12:00:00 AM" is still the default value returned.  So it will work for either scenario.  This minimizes the headache that I'd get if I was thumbing thru our code and saw something like this:
// On RowDataBound event
// Get control from data bound grid
Label l = (Label)e.FindControl("processedDateLabel");

if(l.Text == "1/1/0001 12:00:00 AM")
l.Text = "";
This would just aggravate me to no end.

Used properly and with a custom entity we can solve this problem via a property:
private DateTime _processedDate;
public string ProcessedDateDisplay
{
get
{
if(General.IsDateNull(_processedDate))
return "";
else return _processedDate.ToString();
}
}
When this entity is bound to a grid, processed date will display an empty column and NOT "1/1/0001 12:00:00 AM".

Monday, May 08, 2006

Airplane! (1980)
Male announcer: The white zone is for immediate loading and unloading of passengers only. There is no stopping in a red zone.
Female announcer: The white zone is for immediate loading and unloading of passengers only. There is no stopping in a red zone.
Male announcer: The red zone is for immediate loading and unloading of passengers only. There is no stopping in a white zone.
Female announcer: No, the white zone is for loading. Now, there is no stopping in a RED zone.
Male announcer: The red zone has always been for loading.
Female announcer: Don't you tell me which zone is for loading, and which zone is for unloading.
Male announcer: Look Betty, don't start up with your white zone shit again. There's just no stopping in a white zone.
Female announcer: Oh really, Vernon? Why pretend, we both know perfectly well what this is about. You want me to have an abortion.
Male announcer: It's really the only sensible thing to do, if its done safely. Therapeutically there's no danger involved.

Friday, May 05, 2006

OK, I usually don't do this but I just can't resist.  Today, a search term that was referred to this site from Google was this:

    why do chinese people eat chinese food (source: www.google.co.uk)

The page they navigated to was my entry concerning a conversation I heard while in college living in Boulder, CO.  The entry was comical and was not to be taken seriously.  Since then, I get all kinds of searches for people wanting to know "what Chinese people eat for breakfast" but this is the first time anybody has asked the question "why".

Let me see if I can take a stab at a true honest answer:

Chinese people eat Chinese food because...

China is a country.  This country has many people.  These people are citizens of China, hence they are Chinese citizens.  The citizens of China do, in fact, eat food.  Now this is the tricky part, since they are Chinese and they eat food, one could deduce that Chinese people eat Chinese food.

Did I hit the nail on the head here or am I way off base?

Also, feel free to plug any country into the above explanation to see why citizens of other countries eat indigenous foods.  Example, did you know that French people eat French food?  Or that Mexican people eat Mexican food?  I bet you didn’t.  But now you do!
Thursday, May 04, 2006

It finally happened.  Yesterday the new Barnes & Noble in the Clackamas Town Center opened and my wife and I were there to take it all in.  

<tangent>
For the record, our favorite book store in Portland, hands down, is the downtown Powell’s; they have everything and the kitchen sink.  Unfortunately though, we live out in the suburbs and can’t always trek into town to go to Powell’s.  This is why the new Barnes & Noble opening is so great, it’s right in our backyard and it takes us just minutes to get to.

The Clackamas Town Center is currently going thru and extensive remodel with Barnes & Noble being the first of many new additions.  Like Washington Square Mall, it’s increasing in size and introducing an outdoor/indoor shopping experience.  The artist’s representations they have plastered about the mall of the new look tease us to no end.  One of these additions is going to be a new movie theater which my wife and I are also looking forward to opening and will no doubt be there opening day as well.
</tangent>

But I digress.  Barnes & Noble was everything we had hoped for and better.  The Starbucks inside, which is a short jaunt to the malls Starbucks –always odd how that works, was very nice and offered cheesecake from the Cheese Cake Factory.  Mmmmmmmmmmmmmm.  So we got a piece along with our coffee (iced tea for me).  The store itself was a bit overwhelming for the both of us because we didn’t know the layout.  We basically wandered around going into almost every section saving (rather finding) the fiction section for last.  There we each found a new book:

Paris Hangover” by Kirsten Lobe for my wife



and

Running with Scissors: A Memoir” by Augusten Burroughs for myself.  



After our find and sitting down to read a few pages we decided to leave knowing full well that we’ll not only be back but that it may just turn into our “home” away from home.


A question arose in our office this morning concerning Social Security Numbers.  Do the numbers ever get reassigned or re-used?  My understanding was that they did not.  A colleague said that they did but 50 years after their death and only if there were no descendents.  This seemed odd to me and, being righteous almost to a fault, I decided to do a quick search. 

Within a few minutes, I found my way to the Social Security’s official web site and searched for “do social security numbers get re-assigned” and found the answer; “No. We do not reassign a Social Security number (SSN) after the number holder's death.”  In fact, not only have they not run out but, according to them, they have “enough new numbers for several generations into the future with no changes in the numbering system.”

Well there you have it, straight from the horse’s mouth.
Tuesday, May 02, 2006

Well it's that time of the month again.  No, I'm not bleeding -Dumbass!  Dooce changed her mast head.

She does this the first of every month, give or take a week, and they usually make me laugh.  One problem I've noticed in the past is that my browser cache's the mast heads so I have to crtl+F5 refresh it to see the new image and I usually read in one of her entries that it's changed to prompt me to do just that.  Today however I went to her site and saw the following:



Apparently her mast heads are split up but one of the images was in my cache while the other was not.  This hybrid mast head seems to say "Go dooce y'alls".  What that means I have no idea. 

Anywho, I thought I'd share.
Monday, May 01, 2006

Wow!  Fuckin' wow! 

Today I shot my first nail gun.  Today I leave behind the archaic hammer and nails.  Today I entered the world of high-powered projectile shooting of tiny nails.  Today I AM A MAN!  Look out Bob Villa... I'm coming!

All kidding aside, I must say that I love our new pneumatic nailer.  I used it a little while ago to add support to one of our work tables in the third garage (yes, we have 3).  The legs were too far apart for the particle board top so the middle sagged.  Enter two 6 foot 2x4's and the air gun and viola, it's straight and sturdy.  All in less than an hour.

I've been wanting one of these for years (I bet you're tired of me saying that) and I couldn't be happier.  I must admit, my adrenaline was pumping for the first few and I was a little scared but after a few shots I was wielding that thing like I've been nailing things for years (mind out of the gutter please).

Now, I have to think of things to build.  My wife suggested a dog house, hopefully not for me when we "discuss" things, but I'm not sure yet.  Perhaps a bird house, a small shelving unit or an addition to the house.  What ever the case, I have my trusty Red Rider, er um I mean, Porter Cable compressor and nailer at my side to help me do the job.