MSFT Switched ON – LightSwitch and Azure around AU

Microsoft Switched On

Throughout October and November cities around Australia will host the Switched On LightSwitch and Azure events.

The 1-day events are split into three sessions and you can choose to attend either individually or all three.

Excellent timing i say with LightSwitch having been released not that long ago.

Take a look at the agenda on Andrew Coates’ blog where you’ll also find the registration links.

http://blogs.msdn.com/b/acoat/archive/2011/10/07/lightswitch-and-azure-around-australia-in-october-and-november.aspx?ocid=soc-n-apac-mba

I’ll definitely be there for the Perth event on November 2nd.

SharePoint 2010 FBA Powershell Warmup Script [quick and dirty]

I was browsing around for for a quick and dirty SharePoint 2010 warmup script for Powershell the other day, and found quite a few – however, all would fail for me.

See, the environment i’m running is a FBA (or rather AD + ADFS, multiple domains, no trust) environment and the scripts i found would all throw a 403 Forbidden error.

Figured quickly that this was of course caused by the WebClient call that most scripts utilised, so to overcome this obstacle i changed the WebClient call out with a WebRequest call and added the all-important UserAgent (this is the reason you’d get the 403 Forbidden error btw).

So, quick and dirty solution…still some stuff to do on it, such as ensure that the timeout error can be handled – but that’s for another day.

if (( Get-PSSnapin -Name “Microsoft.SharePoint.Powershell” -ErrorAction SilentlyContinue) -eq $null) {
Add-PSSnapin Microsoft.SharePoint.Powershell
}

function WarmupSite() {
param([System.Net.NetworkCredential]$NetworkCred,[Microsoft.SharePoint.SPWeb]$Web)

start-sleep 1

$request = [System.Net.WebRequest]::Create($Web.Url)
$request.AllowAutoRedirect = $false
$request.proxy = [System.Net.WebRequest]::DefaultWebProxy

$request.Credentials = $NetworkCred
$request.ContentType = “application/x-www-form-urlencoded”

$request.Method=”GET”
$request.UserAgent = “Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)”

return $request.GetResponse().StatusCode

}

function RecurseSite() {
param([Microsoft.SharePoint.SPWeb]$SiteIdentity)
write-output (“Site: $($SiteIdentity.Url) – $($SiteIdentity.Title)” | format-list)
$cred = [System.Net.CredentialCache]::DefaultNetworkCredentials

if ($SiteIdentity.Webs.Count -gt 0) {
foreach  ($subweb in $SiteIdentity.Webs) {
$output = WarmupSite -NetworkCred $cred -Web $subweb
$output | Out-file -FilePath “C:\isd\output\$($subweb.Title).txt”
RecurseSite -SiteIdenitity $subweb
}
$SiteIdentity.Dispose()
}
else {
$output = WarmupSite -NetworkCred $cred -Web $SiteIdentity
$output | Out-file -FilePath “path to local network folder\$($SiteIdentity.Title).txt”
$SiteIdentity.Dispose()
}
}

$webappservices = (Get-SPFarm).services | ? {$_.typename -eq “Microsoft SharePoint Foundation Web Application” }

foreach ($webapp in $webappservices.WebApplications) {
foreach ($sitecollection in $webapp.Sites) {
write-output “Site collection: $($sitecollection.Url)”
RecurseSite -SiteIdentity $($sitecollection.RootWeb)
}
}

I also added a “start-sleep 1” as SharePoint 2010 would go crazy if i just let it run without it (too many SP objects).

Disclaimer – this code is provided “AS IS”..should be no danger in running it, however, clean it up as it’s a subset of my own code here (doing other things too) and is a cut n’ paste n’ edit.

Celebrate your geek – #auteched is kicking off in less than a week

I probably look forward to this time of year more than any other. It’s time for Microsoft Tech.Ed Australia 2011 (30th of August – 2nd of September) and this year we’re really going to celebrate being a Geek.

If nothing else, i’m a Geek (with a capital G that is)…No, not the circus freak type (ok, that’s debatable i agree).

geek [giːk]

n Slang

1. a boring and unattractive social misfit
2. a person who is preoccupied with or very
knowledgeable about computing

3.a degenerate

[probably variant of Scottish geck fool, from Middle
Low German geck]
geeky  adj//

Collins
English Dictionary – Complete and Unabridged
© HarperCollins Publishers

1991, 1994, 1998, 2000, 2003

Yes, i’m socially boring and unattractive. tick!
Yes, i’m preoccupied with computing. tick!
Yes, i’m a degenerate. tick!

So, back to Tech.Ed – this year we’re celebrating Geeks and the Chief Geek is hosting the keynote – that’s right, Adam Spencer (co-host of ABC’s Sleek Geeks) is hosting the keynote! Sweet!

And it’s not stopping there either! Jarod Green (yes, THAT Jarod Green, creator of Beached Az) is going to be at the keynote too!

You can find a lot more details on the official site – http://australia.msteched.com/kickoff

Hillarious – Microsoft Kinect demo in a sumo suit

Boy did i have fun – last night we had a location meeting at work and I was presenting the Technology Update from the FMSC.

Since one of the technologies that’s just been released was the Windows Kinect SDK it was suitable to demo the Kinect in front of the audience.

With Fujitsu’s 76th Anniversary happening on the same day, the theme was Japanese, and I couldn’t forego the opportunity to have a bit of a laugh – so the result was a Microsoft Kinect demo whilst wearing a sumo suit.

Needless to say it was hot in that suit and with nearly 120 people in attendance it didn’t get any cooler as the night wore on – so afterwards it was time for a beer.

LIDNUG: ASP.Net MVC by David Haney recording available

We had a blast last week when David Haney took us through the ins and outs of ASP.Net MVC.

This was David’s first presentation (but hopefully not the last) for LIDNUG and we look forward to many more contributions by David.

David a software engineer who’s been using ASP.Net MVC commercial for quite a while and by request he took up the mantle and presented on one of the most requested topics we have at LIDNUG – Namely ASP.Net MVC.

The presentation recording is now available for download in our presentation archives.

Click here to browse the archives.