Public musings, often on software development RSS 2.0
# Wednesday, April 08, 2009

One of Tim Huckaby’s favorite sayings when out mountain biking can be paraphrased; ‘If you are really pushing you’ll leave a little blood on the mountain’.  The idea being that since really pushing it on a mountain bike tends to involve taking some risks and occasionally crashing… if you’ve gone all out somebody managed to crash.

Pictured below is my knee after a recent ride, the question though with any such injury is how did I manage to get these gouges in my leg?

scratched leg

Well at this point you are probably assuming that I was on my mountain bike, after all I haven’t laid down my road bike since I was like 13… well until Sunday that was.  Yes this is the visible portion of the painful results of a road bike crash.  I was training for the Tour de Cure.  As part of my training every year I head out to Sleeping Indian road (in Oceanside, CA) and ride my bike up the rather brutal climb on that road.  To get there my route takes me out College Ave to Old River Road and then it intersects with Sleeping Indian road. Near this intersection the Old River Road narrows briefly and a curb is added, just prior to where I need to make a left.

On Sunday I was rolling along at around 18mph as I approached and needed to check behind me before moving out into the lane of traffic.  As I did this I realized I had a car literally right behind me, and he caught me by surprise – at the same time my slight reaction put me into some sand on the side of the road.  At that point my first thought was ‘ turn into the road to regain control’ – to which my second thought was ‘no there is a car there’.

I’d like to put in a quick aside here for those who drive cars.  Many times cars will stay behind us for a while.  I realize sometimes its hard to find a good time to pass, but in all honesty I would rather have you get past me sooner than stay behind me so you can ‘see me’.  The problem being that once you are past me  you are no longer a threat to me and I can be out of your thoughts… with you behind me how I react to a sudden road hazard changes – because with a choice between hitting the ground or risking getting hit by a car – well the ground looks mighty inviting.

At any rate I again corrected toward the edge of the road knowing that there was a large open dirt space on my right – but forgetting about that annoying curb.  This took me from bad to worse – because the edge of my front tire contacted this rounded ‘curb’ made from blacktop.  Which brought my next thought – TURN LEFT go into the road, followed as you might guess by the thought “NO!”.  Which was entirely appropriate since this was just about the point that my tire finally caught hard enough to trigger the chain reaction that resulted in me separating from the bike and getting the first hand experience of just how ‘inviting’ that dirt patch on the side of the road really was.

After  jumping back up from being on my back with my head toward the road, and my bike remaining (not sure how I managed it) sitting on the side of the road, I faced the cards which had now stopped.  Make no mistake it must have been an awesome crash to watch because no less than the first 3 cars in back of me asked me if I was OK… to which I answered yes – even though I wasn’t quite sure yet at that point.    Note I ALWAYS keep my cell phone with me when I ride alone so I had been less than OK or had my bike been inoperable, I would have called home/help as required.

So as with any wreck the first minute or so is just collecting the name of the ‘bus’ which just hit you and really deciding if you are OK.  Then you begin the real processing of how is my bike?  When I wrecked I was 11 miles into a planned 45 mile ride, and could have either turned back and headed home goal unfulfilled or pushed on to get in my climb and long ride. So I did a quick look over of my bike and sure enough within about 5 minutes I was pretty sure I was actually OK. I was amazed in some ways – my bike appeared pretty much undamaged. I did a more thorough check as I remounted and made a quick spin as I was deciding what to do.

Now aside from the obvious damage  - most of my impact had been on my back.  One of the tricks I learned mountain biking is that when landing “Use the camel pack.”  By which I mean, even on my road bike I show my slavery to ‘style’ by wearing a big ugly mountain bike camel pack to carry my water and stuff instead of a water bottle and the pockets in my jersey.  The advantage appeared again, because unlike my leg which has some significant scratches the only scratches above the waist are a few minor ones on my right arm.  Which is impressive because at first I wondered if I had broken my collar bone and over time it’s my right shoulder and my neck which have hurt the worst.  (Another note my helmet didn’t hit the ground – another untouched item)   The camel pack took most of the impact, that and I vaguely remember trying to get my right leg onto that curb – a memory driven in part my the pain in my right heel.

At any rate given my experience mountain biking as I got started and things appeared to be good I decided to press onward.  So I started up Sleeping Indian road.  As I was climbing Sleeping Indian I noticed that my front tire seemed a bit deformed.  I had tested with my brakes and didn’t seem to have a problem with the wheel at slow speeds… but on I pedaled noticing as my front wheel spun in front of me that it just didn’t look right.  It kept seeming like there was an odd little bump on the left hand side of my tire – which was odd since the curb was on the right when I wrecked, below is a still picture looking down on my front wheel (taken after the ride… notice the deformation). 

Bill 002

While the wheel was spinning of course there was the question of what is that ‘blip’ that keeps spinning past… but the good news was I passed my test for the ride. I made it up Sleeping Indian without stopping on the climb.  This is my test because back in 2003 when I bought my bike and started getting ready for my first Tour de Cure I set out on a ride that included this hill without knowing what I was getting into.  I stopped about 1/3 of the way up the hill and again at about 2/3’s and of course at the top.  Today like every year since I’ve climbed the hill – non-stop and as in Sunday kept on going without stopping after reaching the stop.  This is a good sign for me being read for the Tour de Cure on the 18th.

My next warning came on the resulting down hill.  Now at speed when I pressed the front brakes to slow down I got a clicking… both a sound a a feeling.  That clicking is something I’d felt before.  I had it when I managed to bend a rim on my road bike.  Not a subtle bend like you correct by adjusting spoke tension but a dent in the side of your wheel that is causing the brakes to hit an uneven surface.  Cursing mentally because I’m picturing a need to purchase a new wheel, not a cheap fix.  It also meant I had to be careful using the front brakes since they could in theory catch and send me flying (again). 

Once I got to the end of Sleeping Indian I pulled off for a quick break and to figure out just how bad the damage was and that deformation well it was caused by what would be some significant sidewall damage to my tire,

Bill 001

You’ll also note there is a small amount of what I later determined to be negligible damage to the wheel itself, but as you can see from the next photo the tire damage wasn’t in just one spot it was pretty much the entire right side of the tire.

Bill 004

So at this point, you’re probably thinking – hmm failing side wall, bleeding, shoulders and neck starting to hurt – Bill headed back.  However, you just aren’t considering just how stubborn I can be.  I was still only around 15 miles into the ride, so I continued on.  I made some checks at 20 miles and was careful to avoid my front brakes – after all – the clicking I head wasn’t the rim, it was the deformed sidewall hitting the front brakes.  Thus each time I heard that I was risking a sidewall failure as the sidewall collided with the braking mechanism.

Things went well till about mile 40 when I pretty much bonked. The fact that I couldn’t really breathe deeply combined with the general soreness of my right shoulder and neck made the last 5 miles – painful.  However, I survived and yesterday I put a new tire on my bike.  It rained this morning so I’m waiting until Thursday to head out for another ride.

Wednesday, April 08, 2009 10:46:39 AM (Pacific Daylight Time, UTC-07:00)  #    Comments [0] -
Cycling | Diabetes
# Friday, April 03, 2009

I’ve been a tea drinker since back in my days in the Navy (which is a lifetime ago for some of you.)  Literally I still have a couple tins of loose tea from my time in the far east (Japan, Hong Kong, Singapore, etc).

However, according to this Wired magazine report apparently the rest of the technology world is starting to catch up… http://blog.wired.com/business/2009/04/tech-millionair.html

Proving what a trendy, stylish guy I am…

(The preceding line is a joke; for those who don’t really know me.)

In fact I'm sitting hear with a plastic cup full of a lemon infused green tea brewed from loose tea leaves in my iced tea pot... guess I'm not quite in the same class as those rich snobs talking about having a $40-$150 thimble 'full' of tea.  I don't see me ever getting into the +$10 per swallow tea drinking club... similar to my wine tastes (or lack thereof)

Friday, April 03, 2009 10:48:04 AM (Pacific Standard Time, UTC-08:00)  #    Comments [0] -
About the Nerd | Musings
# Thursday, March 26, 2009

I am riding in this years San Diego Tour de Cure to help in the fight against diabetes.  This years tour is on April 18th 2009 and includes a 100 mile (century) ride which I’m hoping to complete.   If  you have a road bike and are interested or are just plain interested in the ride you can get more information from the official site at: http://tour.diabetes.org/site/TR/TourdeCure/TDC551018030?pg=entry&fr_id=5632

Since this is a ride to benefit charity you can also help out by sponsoring me.  You can send an offline donation for those uncomfortable using the online methods using the address in the link above:

Offline donations can be sent to:
American Diabetes Association
Attention: Tour de Cure
225 Broadway, Ste. 1530
San Diego, CA 92101
*Please include a note that states which rider the funds should be credited to.

 

or you can make an online donation through my personal event page is at: http://main.diabetes.org/site/TR/TourdeCure/TDC551018030?px=1001265&pg=personal&fr_id=5632

Diabetes is a nasty disease and when you consider it’s linked the leading cause of blindness and amputation in the United States, is associated with increased risk of Alzheimer's, associated with increased risk of Stroke not to mention that just having diabetes is not only an increased risk of heart attack, but means you are treated as if you’ve already had your first heart attack, you hopefully can see why I support this cause.

Thursday, March 26, 2009 3:03:39 PM (Pacific Standard Time, UTC-08:00)  #    Comments [0] -
About the Nerd | Cycling | Diabetes

In addition to doing Silverlight the other set of updates I’m focusing in on relate to the Sales OBA project up on CodePlex: http://obasales.codeplex.com/

I just made some minor updates to the source code for the custom Excel Spreadsheet on the site – mainly cleaning up the code and  adding some comments.  My goal is to start replicating some of the current C# projects with VB versions… of course the Excel spreadsheet is already in VB, so once I get the VB versions of the other projects I’ll loop back around and be updating the Excel spreadsheet with C# and the other C# projects for Visual Studio 2010…  I’m leveraging a tool that I like for this process and I’m going to talk about it tomorrow.

This isn’t going to be a quick process but it does mean you’ll continue to see some new sample materials related to the Professional OBA book (http://www.amazon.com/Professional-Office-Business-Application-Development/dp/0470377313/ref=sr_1_1?ie=UTF8&s=books&qid=1238107346&sr=8-1)  My target is once I’ve completed my Silverlight project – discussed in my preceding post, I’ll move to the generation of Word Documents using the XML structure created for the OBA Sales project… rest assured I’ll post something when I make a new upload.

Thursday, March 26, 2009 2:44:26 PM (Pacific Standard Time, UTC-08:00)  #    Comments [0] -
.NET | Technology | Visual Basic

So yesterday I posted on the newly arrived guidance examples for Prism 2.0, the Patterns and Practices guidance (announced here: http://blogs.msdn.com/blaine/archive/2009/03/25/vb-quickstarts-and-how-to-s-now-available-for-prism.aspx and her: http://blogs.msdn.com/bobbrum/archive/2009/03/24/composite-application-guidance-for-wpf-and-silverlight-now-in-vb-flavor.aspx)

The 2.0 version of Prism was an update which made changes to take the original WPF framework and provide best practices support for Silverlight. That guidance of course is associated with the Prism 2.0 which has an associated CodePlex site here: http://www.codeplex.com/CompositeWPF/ The site not only provides valuable links associated with Prism but a forum for discussing specific issues.  

In addition to these new VB examples there is an update to the Silverlight Toolkit, the March 2009 release is enhanced with Visual Basic source code for both Silverlight 2 and Silverlight 3. The Toolkit is a collection of controls, components and utilities made available outside the normal Silverlight release cycle.

It includes full source code, unit tests, samples and documentation for 18 new controls covering charting, styling, layout, and user input, in addition to 11 professional themes. I’ve been assured that the team loves feedback so join the forums on Silverlight .NET and submit suggestions to their CodePlex site. 

Me I’m off to do a Silverlight addition to this site to demonstrate I can do some VB Silverlight… hopefully I’ll have it up and running in a few days.

Thursday, March 26, 2009 2:33:47 PM (Pacific Standard Time, UTC-08:00)  #    Comments [0] -
.NET | Technology | Visual Basic
# Wednesday, March 25, 2009

For those considering Silverlight, the Microsoft Patterns and Practices Team has a set of recommendations with sample code.  Originally released in C#, Version 2.0 is adding sample support (the guidance is essentially the same for both languages) for Visual Basic.  A copy of the updated guidance with VB specific examples is available at:

Visual Basic QuickStarts and How-to Topics for the Composite Application Guidance for WPF and Silverlight

Download a copy - I am.

Wednesday, March 25, 2009 8:13:11 AM (Pacific Standard Time, UTC-08:00)  #    Comments [0] -
.NET | Architecture | Technology | Visual Basic
# Wednesday, March 18, 2009

A while back I blogged that if you were buying a new PC you should purchase a 64-bit machine.  "The rise and fall of 32 bit computing"  I stand by that but as part of that post I quickly mentioned that I also felt that if you were purchasing a new machine you should also get it pre-installed with Vista and not Windows XP.  In fact my personal view is that those computer manufacturers who are allowing people to continue to purchase machines with Windows XP instead of Vista are in the long run hurting their customers.

Let me explain, Microsoft is working on the next version of Windows which will be known as Windows 7.  In fact the Beta for this version of Windows is already available and I've installed it on a machine at my home.  It works great and is definitely a few steps ahead of what's in Vista in many ways.  In terms of features Windows 7 will be an evolution not a revolution.

What I mean by that is that unlike Vista which was a major departure from the Windows XP architecture, Windows 7 will maintain the core Vista architecture.  This is important because it really draws out the fact that Vista isn't something that's 'going away'.  Windows 7 is the next generation of Vista - not XP - and this is important.  Part of the core of what changed between Windows XP and Windows Vista was the device driver model.

Unfortunately when Vista released, it wasn't advertised, that because of the low level changes in the driver architecture and since there were only a limited number of drivers - that upgrading from XP to Vista had a huge risk in terms of driver compatibility.  The result was that in addition to the standard acceptance issues that any new UI experiences Vista had hardware issues - Big issues.  Fact is the combination of these issues resulted in the need for Microsoft to allow computer manufacturers to continue to ship XP.

That was probably overkill - but when you make a mistake as big as the one Microsoft made in not advertising the limitations of Vista upgrades you pay a penalty.  Microsoft paid theirs now the goal is to avoid getting caught up in that issue.  With its service packs the fact is that Vista is both stable and in my honest opinion a really good operating system.  I still won't ever go back to one of my old XP machines and attempt to upgrade from XP to Vista - but I also know I'm not going back to any of those machines and upgrading them to Windows 7 either.  Those machines were designed for XP and they work well with it and that's how they'll retire.

On the other hand when I bought my new laptop I got it preinstalled with Vista.  This means I got all of the Vista compatible drivers pre-installed by Dell.  Dell supports those drivers and I know everything is compatible.  For what it's worth, yes I got a 64 bit laptop (6 GB of RAM), and it's the Studio XPS 16 and it rocks.

The key is when Windows 7 arrives I'll go ahead and upgrade from Vista to Windows 7 and I don't expect to have any major issues.  Windows 7 adds new features and enhancements to my operating system but it isn't going to require a different set of drivers or any other major configuration changes.  Having installed the Beta of Windows 7 on my test machine from the Vista install timeframe I found the experience to be greatly improved.  The original Vista on that machine choked - plain and simple I lost sound drivers, all kinds of stuff just wasn't quite right.  Not only that but the network card didn't work... so when I got the Beta 7 bits I installed it.  I still didn't have a network card, but I had some free time so I went out and found the driver for the network card and installed it.  Windows 7 installed it no problem and suddenly I was off.  Windows 7 recognized the sound card and connected online to download the necessary driver, not just that driver but many other drivers.

So back to the question - should you get XP or Vista on that new PC?  Get Vista, because when Windows 7 comes out it's building on a Vista baseline.  You'll be able to take that Vista machine and upgrade it with minimal risk to Windows 7.  On the other hand if you have XP, well that isn't currently a supported upgrade.  What I've seen on the web is that you'll need to get rid of your windows XP environment and then install Windows 7 from scratch.  That alone should make you think twice about what you are going to have installed on your new computer - get Vista, regardless of what you heard about the initial release - it's a solid operating system at this point and is the basis of Windows 7 and future operating systems from Microsoft.

UPDATE: OK before Ileave any misconceptions,  in the last paragraph I said "supported upgrade".  That phrase has a specific meaning to Microsoft and that's NOT what I meant.  I meant that instead of installing Windows 7 on top of an existing Windows XP installation you would be starting the installation from ground zero - the upgrade is 'supported' just not what most of us would think of as an 'upgrade' as compared to a 'new install'.

Wednesday, March 18, 2009 7:03:04 PM (Pacific Standard Time, UTC-08:00)  #    Comments [0] -
Musings | Technology
# Sunday, March 01, 2009

I'm in Seattle, WA this week at the Microsoft MVP Global Summit.  Tonight was the kick-off and it was a great opportunity to catch up with many of the other MVPs I've met over the years.  My thanks again to Serge of VB City who provided an excellent event tonight at Rock Bottom.  Serge and I are looking to meet again later this week to discuss one of his products "Code It Right" so that I can put together a review of this Visual Studio Add-In.

I know I mentioned a month back that I felt it was time for those looking to get a new computer to be certain to get Vista and not XP.  I'll quickly add that when I wrote that post I had already ordered my new laptop with the 64-bit version of Vista, and it works great.  There's more to the story, however as part of the MVP Summit we'll be hearing some information related to the next version of Windows, Windows 7.  As a result I'm going to hold off on my discussion of Vista for a few days - I won't be reiterating what I'll hear at the Summit since much of that information is covered by Non-Disclosure Agreement (NDA), but I want to be certain to include any announcements - that might be public - are included.

Sunday, March 01, 2009 10:41:21 PM (Pacific Standard Time, UTC-08:00)  #    Comments [0] -
Musings | Technology

So in the process of setting up my demonstration virtual machine for VSLive I pulled down the materials from the CodePlex site for OBA Sales.  What I realized in the process was that the custom database wasn't included in the materials.  Fortunately as I noted in my earlier post a copy of the database was available from the Wrox site.

I was able this morning to get a new copy of the AdventureworksVSTO database uploaded.  It's a .bak backup file that you will need to restore and it was zipped before uploading.  The download is now significantly larger.

Next updating the current XML web service to be a full on WCF service to generate the documents.  I'll let you know when it's ready.

Sunday, March 01, 2009 10:24:11 PM (Pacific Standard Time, UTC-08:00)  #    Comments [0] -
.NET | Technology | VSTO
# Thursday, February 26, 2009

Beth Massi posted a quick update on some of what was happening at VS Live this year.  Unfortunately she linked to my historical blog site at InterKnowlogy, but she had some great insight into VS Live.

Thursday, February 26, 2009 6:14:39 AM (Pacific Standard Time, UTC-08:00)  #    Comments [0] -
Technology
Archive
<April 2009>
SunMonTueWedThuFriSat
2930311234
567891011
12131415161718
19202122232425
262728293012
3456789
About the author/Disclaimer

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2012
Bill Sheldon
Sign In
All Content © 2012, Bill Sheldon