Ok, so here is my attempt at weekly post that will contain a whole lot of random fixes and tweaks that I’ve done or learned throughout the week.  This may or may not have to do with virtualization or even technology for that matter. It’s basically just an assortment of random thoughts, fixes, and links  that really don’t warrant a full blog post yet I still would like to share with the world 🙂

So here we go…

Validating hidden form elements in asp.net

I’ve been playing with .net for the past few weeks and ran into a situation where I wanted to have a hidden form element but still use asp’s field validation with it.  I thought I could just do the following and set the visible property to false

<asp:TextBox ID="MyHiddenField" visibile="false" minlength="1" runat="server"></asp:TextBox>

However this seems to cause the <asp:requiredFieldValidator> to not process the textbox at all.  So in order to get this to work you need to use the old school css way to hide it like follows…

<asp:TextBox ID="MyHiddenField" style="display:none;"  minlength="1" runat="server"></asp:TextBox>

Your validation should now work as expected 🙂

iOS 6 – I got in at 1:03

So the new Apple iOS 6 was released on Wednesday at roughly 1pm.  At about 1:15 I had it on my iPad.  Honestly, I don’t see much of a difference but I’m not a heavy iPad user anyways…As well, I only have an iPad 2 so no SIRI for me 🙁 – In hindsight it’s probably for the best as those people that sit on buses and trains talking into their iPhone/iPad look a tad bit crazy IMO.  Siri, make me a sandwich!

Some really annoying PowerShell

Arggghh!  All I want to do is create an OU and specify turn off the Protect from accidental deletion flag.  Guess what?  There’s no -ProtectFromAccidentalDeletion option on the New-ADOrgranizationalUnit cmdlet, only on the Set-ADOrganizationalUnit cmdlet.  I know you could | and do crazy PowerShell Guruness like type things to get it one line but it’s still annoying!  Why can’t I just do it all with the New cmdlet?  Oh well, this will have to do…

New-ADOrganizationalUnit -Name "OU_Name" -Path "Path_to_parent OU"
Set-ADOrganizationalUnit -Identity "OU=Full_Path_To_OU" -ProtectedFromAccidentalDeletion $false

Looks like no NHL season – for now!

So the day that everyone knew would come has came and went and the NHL players have been locked out!  Although I understand that professional sports leagues need to be run like a business and it’s always dicey when money is involved it sucks that the two sides just can’t come to an agreement or tentatively use the previous one – for the sake of the game and the fans.  Speaking of fans – if the league is indeed a business then the fans would most certainly be their customers – and if the store is no longer there, customers will go somewhere else.  Here’s hoping the NHL can get there $%@! together and get on the ice!

My son started hockey for the first time.

Speaking of hockey, my son Hayden went to hockey for the first time this year and in his life!  He was pretty pumped to go (as was I) and did great!  He was in a skating program last year which really helped, but it is certainly a different kind of beast when you attach a ton of equipment to such a little body and throw them on the ice!  I’m glad I was able to join him out there as I think it really helped.  Anyways, he goes twice a week so there is lots of time to improve.

Hey Montreal – Sign Subban already!

 I said in my about page that you may see the odd rant about the habs and it may have taken a year but I’m ready to do that now!  PK Subban is perhaps one of the most electric, fan pleasing players to hold the blue line position inside the Bell Centre in a long time.  He’s young, strong, and exciting to watch.  The fans love him, the rivals hate him – Why is this guy not signed yet.  I understand that the lockout certainly causes complications but what I don’t understand is why the Montreal Canadiens organization seem to devalue these types of players, players that could stay and be a fan favourite for a long time.  They have already inked their young goaltender Carey Price and are ensuring that he will stay around for at least 6 years.  Why not just complete the bromance?   Just sign him already before he goes somewhere else and lights it up.