This blog has, IMO, some great resources. Unfortunately, some of those resources are becoming less relevant. I'm still blogging, learning tech and helping others...please find me at my new home on http://www.jameschambers.com/.

Monday, September 14, 2009

Have to admit…

…I’m getting tired of seeing this five times a day:

image

Looks like it’s time for the Windows 7 upgrade.  I’ll start that tonight after work.

This is totally related to me forcing 32bit drivers on a 64bit OS, so, in that I’m not changing hardware, I’ll likely install Win7 32bit.

The biggest part of my day is spent in Visual Studio, for which there is no 64bit version (yet) so I’ll just hang back in the world of 32bittedness for the time being.

Wednesday, August 26, 2009

Reboots are Boring…

IMAGE_003

If my computer goes to sleep while I have my USB VGA adapter plugged in it often blue screens and I’m stuck waiting for a reboot. This is the third time I forgot to disconnect before walking away from my computer.

DARN YOU, 64 bit OSes!

From what I understand the adapter sails fine on 32 bit operating systems.  No matter…I’ve been running my laptop on Windows 7 now for over two weeks and plan to upgrade my workstation when I get back from Cyclebetes.

The adapter is a Diamond BVU-160.  It does not play nicely with Vista 64bit.

My Algorithm for the Next 12 Days

int distancePerDay = 140;
for (int i = 0; i < 13; i++)
{
RideBike(distancePerDay);
}



I will be travelling with the Cyclebetes National Team for over 4,000 kms as I take part in the Biggest Bike Relay in the World.



You can check out Cyclebetes web site here.



If you’d like to help fund a cure for Juvenile Diabetes, please donate and sponsor me online here.



You can also follow me on my cycling blog: Cyclebetes - Canadian James.

Monday, August 24, 2009

Crash Course in ASP.Net MVC Programming

This is the first chapter of the ASP.Net MVC book co-authored by a number of deep-trench programmers, managers and community voices.

http://aspnetmvcbook.s3.amazonaws.com/aspnetmvc-nerdinner_v1.pdf

The first chapter is free online. If you’ve done anything interesting in MVC using ASP.Net, there won’t be too much new for you there, but it’s a great start if you’ve taken the dive and found yourself asking things about URL routing (also called URL rewriting) and wondering how it works in ASP.Net.

It’s no short chapter, weighing in at nearly 200 pages, and it walks through most of the basics in getting a ‘NerdDinner’ site up and running.  Bing it.

Seriously?  Did I just say “Bing it?”

Can you ever have too much video display real estate?

No, sir, you cannot.

HPIM0401 Stitch

Things of note:

  • Mandatory Skynet coffee mug
  • 63,000,000 pixels of desktop space
  • Two operating systems
  • Two mice
  • Two cell phones
  • Picture of two kids
  • Picture of my wife and I when we were still ‘kids’
  • GPS reader in USB dongle format.  Woot!Thanks Mike!
  • Chocolate cupcake with heart-killing frosting.  Mmm. Thanks Cheryl!

Visual Studio 2010 Toolbox

I’ve been flipping through Visual Studio 2010 for the last little while and I think I’ve come across something that would be really useful.  This isn’t an original idea, by far, but one that would bring a more modern take to the good old toolbox.

Here’s what you might see when you start up a new project in 2010:

toolbox selections in Visual Studio 2010

Pay no mind to the drawing errors on those expanders; I think this is a display bug in Visual Studio 2010 when you’re using a bigger font in your visual settings in Windows 7.

Beyond the stretchy plus sign, there is a fairly good categorical breakdown of all the controls types in Visual Studio.

What’s missing?  Search. Check out what they’ve been doing in Adobe After Effects for eons. 

With the contains filter up at the top, you are easily able to narrow down to effects (in this window), project items or elements on a composition timeline.

Take that one step further, now: what if I could type in “panel”, and any control that had “panel” in the name or the description tags would appear.  This would certainly helpful, especially if there was a “related items” filtered list as well.  So, I search for panel and see FlowLayoutPanel and Panel, but I would also see – under ‘related items’ – SplitContainer, TabControl etc.

Friday, August 21, 2009

Where did .Add go?

I decided to make the very powerful shift from Linq to SQL to the Entity Framework for a spike solution I am working on.  I had been exploring it for some time but hadn’t really gotten into a nuts-and-bolts project with it.

Everything is an entity.  If you’ve worked with ORMs before you’ll get this concept easily.  A collection of entities is called an entity set.

Some entities are related to other entities; as in, each order has a customer related to it, and each customer has zero or more orders related to it.

You create an instance of your data context and then you have access to all your entity sets.

I had expected, because of other familiar frameworks that I would be able to do context.Orders.Add(newOrder), but this is not the case.

Multiple entity sets can be created with the same base entity type.  So, if you have an order entity, you can have an entity set for ActiveOrders and one for ClosedOrders (etc.). 

I haven’t had a chance to dig too far into the full reasons, but this did result in a change to some of the context naming, positioning and structure of the base classes.

So, where did the Add method go?  It’s still there, it just doesn’t live in the context entity sets.  The context now has strongly typed methods (which are also strongly named) that allow you to add that one base entity to whichever entity set you need.  The new name is context.AddToEntitySetName.

Also, if you have related entities you can still do the old customer.Orders.Add(order) call.

I realize there are complications but, and again, without having gotten too far into it, I would like to know why the entity set – which is strongly typed – can’t have it’s own add method too?