Hartford Code Camp 3 Session Materials

I had the pleasure (as well as a scenic country drive) to participate as a speaker at the 3rd Hartford Code Camp this past Saturday, just outside HFD in Bloomfield, CT. Unfortunately I could not stay past my session (9a – 10:15a), but, it was fun for the short time I was able to be there! From what I saw, both Bob and SB put together a great Code Camp, at a great location. Kudos to you both!

Thanks to those that dropped into my session, I had a feeling I would be attending another session as 9am struck on the clock, but then I had a healthy dose of attendees drop in, and we soon got underway.

I presented a session on “What’s New for Developers in SharePoint 2010”, slightly modified from the last time I had presented the material a few months ago, at the Western MA Microsoft Technology Users Group.

Below is the slide deck for all those interested, as well as the code samples that would have been used in the PowerShell segment, if we had the time…

Thanks again for attending!

Below are the PowerShell commands that I would have used, in the PowerShell section of the presentation, if we had the time to do it 🙂

Code Samples

PowerShell commands to enable the Developer Dashboard

   1: [Microsoft.SharePoint.Administration.SPWebService]::ContentService.DeveloperDashboardSettings.DisplayLevel='OnDemand';
   2: [Microsoft.SharePoint.Administration.SPWebService]::ContentService.DeveloperDashboardSettings.Update();


PowerShell command to get a listing of the URL, Author, and Title of a Web

   1: Get-SPweb -site http://whatsnewin2010.dev.grace-hunt.com | ft Url, Title, Author

PowerShell command to get the Title of all of the lists within a Web

   1: Get-SPweb -site http://whatsnewin2010.dev.grace-hunt.com | foreach { $_.Lists | ft $_.Url, Title }

PowerShell command to get the listing of all of the Resource settings for the User Code service (Sandbox Solutions)

   1: [Microsoft.SharePoint.Administration.SPUserCodeService]::Local.ResourceMeasures

PowerShell commands to enable the User Code service to run on a Domain Controller (local image development for Sandbox Solutions)

   1: $acl = Get-Acl HKLM:\System\CurrentControlSet\Control\ComputerName
   2: $person = [System.Security.Principal.NTAccount]"Users"
   3: $access = [System.Security.AccessControl.RegistryRights]::FullControl
   4: $inheritance = [System.Security.AccessControl.InheritanceFlags]"ContainerInherit, ObjectInherit"
   5: $propagation = [System.Security.AccessControl.PropagationFlags]::None
   6: $type = [System.Security.AccessControl.AccessControlType]::Allow
   7: $rule = New-Object System.Security.AccessControl.RegistryAccessRule($person, $access, $inheritance, $propagation, $type)
   8: $acl.AddAccessRule($rule)
   9: Set-Acl HKLM:\System\CurrentControlSet\Control\ComputerName $acl

PowerShell commands to view the Property Bag of a Web

   1: $web = get-spweb -site http://whatsnewin2010.dev.grace-hunt.com
   2: $web.AllProperties | ft

 

Speaking at the Hartford Code Camp 3 on June 19th, 2010

After speaking at the New England Code Camp 13 last month, I am excited that I will be speaking at another local code camp so soon. I submitted and will be presenting two sessions at the 3rd Hartford Code Camp, taking place on June 19th, 2010, at the New Horizons Hartford Learning Center in Bloomfield, CT.

The event is put on by the Connecticut .NET Developers Group. For more information, click here: http://ctdotnet.org/CodeCamp3.aspx

The two sessions I will be presenting on will be…

What’s New for Developers in SharePoint 2010
SharePoint 2010 offers developers a unique and well deserved set of tools to aid in the development of SharePoint 2010 solutions. In this session we’ll cover improvements in the UI and the toolsets themselves, from PowerShell as a powerful scripting interface to the API, the Developer Dashboard, the SharePoint Toolkit in Visual Studio 2010, and more.

Creating Custom Actions within SharePoint
Custom Actions control features in SharePoint such as the Edit Control Block, the Site Actions menu, toolbars, and the links within the Site Settings page. Learn how to leverage Custom Actions to extend the SharePoint User Interface. This session will describe the basics of Custom Actions, a demonstration to build one or more and apply them to a site in SharePoint, as well as provide resources for additional information.

See you there!

 

New England Code Camp 13 Slide Decks and Code Samples

Code Camp 13 Logo - Courtesy Grey Wolf Design

The 13th New England Code Camp was a great event, and I am glad I had the chance to participate. This was my first code camp that I had the opportunity to present. It was definitely a different experience than the SharePoint Saturday events that I am usually presenting at and organizing, but a worthwhile experience. I cannot wait for the next one to come along!

Chris Bowen and Chris Piels did an excellent job organizing the event. Thanks to you both! And thank you to all who expressed interest in the Boston Area SharePoint Users Group, as well as attending my two sessions.

I presented two sessions back-to-back, first being What’s New For Developers in SharePoint 2010, and the second being Creating Custom Actions within SharePoint. Below, you will find my slide decks and code samples from each session.

What’s New For Developers in SharePoint 2010
Abstract: SharePoint 2010 offers developers a unique and well deserved set of tools to aid in the development of SharePoint 2010 solutions. In this session we’ll cover improvements in the UI and the toolsets themselves, from PowerShell as a powerful scripting interface to the API, the Developer Dashboard, the SharePoint Toolkit in Visual Studio 2010, and more.

Code Samples

PowerShell commands to enable the Developer Dashboard

   1: [Microsoft.SharePoint.Administration.SPWebService]::ContentService.DeveloperDashboardSettings.DisplayLevel='OnDemand';
   2: [Microsoft.SharePoint.Administration.SPWebService]::ContentService.DeveloperDashboardSettings.Update();
   3:  
   4:  

PowerShell command to get a listing of the URL, Author, and Title of a Web

   1: Get-SPweb -site http://whatsnewin2010.dev.grace-hunt.com | ft Url, Title, Author
   2:  
   3:  


PowerShell command to get the Title of all of the lists within a Web

   1: Get-SPweb -site http://whatsnewin2010.dev.grace-hunt.com | foreach { $_.Lists | ft $_.Url, Title }
   2:  
   3:  


PowerShell command to get the listing of all of the Resource settings for the User Code service (Sandbox Solutions)

   1: [Microsoft.SharePoint.Administration.SPUserCodeService]::Local.ResourceMeasures
   2:  
   3:  

PowerShell commands to enable the User Code service to run on a Domain Controller (local image development for Sandbox Solutions)

   1: $acl = Get-Acl HKLM:\System\CurrentControlSet\Control\ComputerName
   2: $person = [System.Security.Principal.NTAccount]"Users"
   3: $access = [System.Security.AccessControl.RegistryRights]::FullControl
   4: $inheritance = [System.Security.AccessControl.InheritanceFlags]"ContainerInherit, ObjectInherit"
   5: $propagation = [System.Security.AccessControl.PropagationFlags]::None
   6: $type = [System.Security.AccessControl.AccessControlType]::Allow
   7: $rule = New-Object System.Security.AccessControl.RegistryAccessRule($person, $access, $inheritance, $propagation, $type)
   8: $acl.AddAccessRule($rule)
   9: Set-Acl HKLM:\System\CurrentControlSet\Control\ComputerName $acl
  10:  
  11:  


PowerShell commands to view the Property Bag of a Web

   1: $web = get-spweb -site http://whatsnewin2010.dev.grace-hunt.com
   2: $web.AllProperties | ft
   3:  
   4:  

Also, more information on SharePoint Server 2010 can be seen on my blog under the categories of SharePoint 2010 Beta 2, SharePoint Designer 2010, and SharePoint 2010.

 

Creating Custom Actions within SharePoint
Abstract: Custom Actions control features in SharePoint such as the Edit Control Block, the Site Actions menu, toolbars, and the links within the Site Settings page. Learn how to leverage Custom Actions to extend the SharePoint User Interface. This session will describe the basics of Custom Actions, a demonstration to build one or more and apply them to a site in SharePoint, as well as provide resources for additional information.

Code Samples

  • Demo #1 – Creating a Simple Custom Action

  • SPS.SiteRecycleBin

    • This was the second deployment I quickly ran through, which added a Site Recycle Bin link to the Site Actions page under the Site Administration Custom Action Group

    • Download: SPS.SiteRecycleBin.zip

  • SPSDC.SiteActionsRecycleBin

    • This is the solution that I walked through during the first demonstration. This will add links to both the current site recycle bin, as well as the site collection recycle bin to the Site Actions menu.

    • Download: SPSDC.SiteActionsRecycleBin.zip

  • Demo #2 – Creating a Slightly More Complex Custom Action

    • Screencast: http://www.vimeo.com/9728320

    • SPS.CompleteTask

      • This is the solution from the second demonstration. This solution will add Complete Task links to the Tasks and Gantt Tasks (Project Tasks) lists shown in the Edit Control Block. This will allow you to set the task Status field to Completed, and the Percent Complete field to 100% for the given task.

      • Download: SPS.CompleteTask.zip

    • Demo #3 – Hiding Custom Actions

        • Demo #4 – Custom Action Groups

        •  

          New England Code Camp 13 Schedule Posted!

          Code Camp 13 Logo - Courtesy Grey Wolf Design

          Just a quick update regarding this upcoming weekend’s New England Code Camp 13…. the schedule has been posted, and registration is STILL open as well! Join myself, and 27 other speakers for 40 sessions in 6 rooms at the Microsoft Office in Waltham – for free. For more information, to view the schedule, and to register, follow this link: http://blogs.msdn.com/cbowen/archive/2010/03/20/new-england-code-camp-13-the-schedule.aspx

          I will be delivering my sessions on What’s New for Developers in SharePoint 2010 at 1:30PM in the MPR C room, followed up directly at 2:50PM, with Creating Custom Actions within SharePoint in the EBC room.

          I hope to see some of you there!

           

          Speaking at New England Code Camp 13 : Spring Back Into Code

          Code Camp 13

          I am pleased to announce that I will be speaking at the New England Code Camp 13 – Spring Back Into Code event, taking place on March 27th, 2010, at the Microsoft Office in Waltham, 201 Jones Road, 6th Floor, Waltham, MA.

          The event takes place from 8:30am to 6:30pm. I will be presenting on Creating Custom Actions within SharePoint, and, What’s New for Developers in SharePoint 2010.

          About the event – “Submit an abstract to share your knowledge with your peers or join us to learn and network with fellow developers. Anyone can submit an abstract (no review process) using this site (register as a speaker first) and you are in! There are both large and small rooms so if you are new or want a more intimate discussion let us know to schedule a conference room for your presentation/discussion. Any technology related topic is fair game, e.g, Visual Studio, SQL Server, JavaScript, Ruby-on-Rails, HTML/CSS, jQuery, etc.”

          A lot of great names are attached to this event – if you are a developer in New England, you should be here, and I hope to see some of you there!

          Click to Register for this event.

          More information on this event can be found in Chris Bowen’s blog post on the subject here: http://blogs.msdn.com/cbowen/archive/2010/02/04/announcing-new-england-code-camp-13.aspx

           

          %d bloggers like this: