Back-at-you Google Maps Streetview

So I was driving to work when I notice a car with some strange apparatus mounted to the roof.  I was headed north on I-15 between Farmington and Layton.  So I catch up with this car... 

Unfortunately, the camera on my cell phone didn't pick up the bumper stickers from the glare but they say Google Maps.  The dot about 3 feet above the roof is the 360 degree camera used for Google Maps Streetview.  So keep your eyes open on I-15 on Google maps and you might just catch a glimpse of me. 
7. May 2008 22:54 by duners88 | Comments (0) | Permalink

AutoEventWireup and asp:Repeater

So for the last few days I have been scouring through lines and lines of code trying to figure out why the ASP Repeater control <asp:repeater ...> control was not working. 

I checked everything from the record set to the data binding to make sure I had covered all the bases.  Everything checked out but when I loaded the page the data was not displayed.

So in an attempt to troubleshoot the situation I created a new C# web form in VS 2005.  Keeping it simple I added just the one repeater control and data bound it to a single table.  Nothing fancy.  Loaded this page and it worked.

Over the next two days I methodically altered the non-functional page to be almost exactly like the functional page.  I was still having problems.  I even linked in the Master Page, CSS, and other supporting doc's to the functional page to see if it was something in one of them that was causing the problem.  I even altered the Page tag to point at the same CodeFile and still no Luck.

So then I paid a little more attention to this line... 

<%@ Page MasterPageFile="~/StandardLayout.master" Language="C#" AutoEventWireup="false" CodeFile="Default.aspx.cs" Inherits="Default" %>

It is at the top of every page, and I generally don't have reason to mess with it

Then I noticed that in the functional page the AutoEventWireup="true" and this attribute was missing from the non-functional page.

I added this attribute to the non-functional page and reloaded.  IT WORKS!!

So, what is AutoEventWireup and what does it do...

There is an excellent post at

http://odetocode.com/Blogs/scott/archive/2006/02/16/2914.aspx

Scott Allen gives you all the information you need as well as ways to deal with the different behaviors.

Basically my issue boiled down to the fact that the Page_Load event was not firing and so the data binding never occurred.

For performance reasons and not to break other pages I have set the AutoEventWireup to false and used Scott's work around.

Thank you Scott!!!

6. February 2008 11:54 by duners88 | Comments (0) | Permalink

Wii want to play 3-D

 You must watch the video from Johnny Lee in which he demonstrates the effects that are possible with the Wii remote and using it for head tracking.  It can be found at http://www.youtube.com/watch?v=Jd3-eiid-Uw

 Now that you have seen what is possible with his demonstration, imagine for a moment a first person shooter where you can look around the corner by moving your head, or a motorcycle / snowmobile / or ATV racing game where you have to lean as you corner while traveling through a 3-D world, or skiing / snowboarding down your favorite run in Snowbird, Alta, Park City or Lake Tahoe.  Wii tennis where the ball flies at you in 3-D.  Network 2 Wii’s together and have a very real boxing match.

 I second Johnny’s challenge to all Wii developers, I want to see some cool games.

Johnny Lee’s official website: http://johnnylee.net
Wiimote Project website: http://www.wiimoteproject.com

30. January 2008 23:35 by duners88 | Comments (0) | Permalink

"What was I thinking?"

So let me explain the reasoning behind the sub-title of my web-log.  “What was I thinking?”
Not trying to be clever I intended this blog to be a repository of things that run through my brain from time to time; relaying personal opinions, remarking on various technical subjects, and serving as a brain dump of sorts.
With my family moving to China it will also serve as a way for me to communicate my day-to-day experiences.  Mostly, this is so that the Grandparents can keep up-to-date with my son.  At this time he is the first and only grandchild on my wife’s side of the family.
My wife immediately caught on to the hidden meaning that not all who read this will understand.  Committing to write an entry on this blog monthly, let alone daily, is not something that is within my modus operandi.
So bear with me as I get into the swing of taking time each day to post something.
29. January 2008 16:25 by duners88 | Comments (0) | Permalink

Hello World

Every programming language I have ever learned has always started with the "Hello World" program.  So I think that it is only fitting that my first blog entry should follow in this tradition.

“Hello World, I am Duane Koford”

I hope that this blog will become somewhat useful and entertaining for those fortunate enough to find it.

Keeping with the tradition of “Hello World” this first entry is short.

23. January 2008 01:42 by duners88 | Comments (1) | Permalink