Debugging techniques for SharePoint Online

September 6, 2011 at 9:50 AMMark Rønn

Posted in: SharePoint

Tags:

IntelliSense for the Dialog Framework

August 28, 2011 at 10:04 PMMark Rønn

When writing javascript code for targeting the Dialog framework, add the following line to your javascript to get Visual Studio IntelliSense:

/// <reference path="C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\SP.UI.Dialog.debug.js" />

Posted in: SharePoint | Client Object Model

Tags: ,

SharePoint and Windows Azure

August 21, 2011 at 9:14 PMMark Rønn

These are indeed exciting times! There's a lot going on in the SharePoint + Azure space at the moment: New book, Channel 9 training course and sessions. 

Channel 9 - Paul Stubb Training course

SharePoint 2010 and Windows Azure Training Course

New book by Steve Fox
Developing Microsoft SharePoint Applications Using Windows Azure

Sessions at the European SharePoint Conference 2011
Using BCS to Integrate Azure Services with SharePoint 2010

Integrating Office 365 and Windows Azure

SharePoint + Azure = Better Together

Mega Mergers – Integrating SharePoint and Azure

Posted in: SharePoint | Windows Azure

Tags:

Setup a favicon for a SharePoint site

August 2, 2011 at 4:15 PMMark Rønn

In case you're wondering, a favicon.ico is a 16x16 pixels bitmap containing an icon or logo, sitting in the addressbar. It's quite small but adds a great deal to the look of the site. 


Setting up a favicon for your site is quite easy and in the following you'll see how it's done. 

Deploying the favicon to the Style Library

Add a File element in the Elements.xml file and deploy to the Style Library. In SharePoint 2007 only publishing sites would have a Style Library as it got created by the publishing feature.
Now every sitecollection gets a Style Library in SharePoint 2010 and this makes it's a great location for deployment of the favicon.

 

Locate the SPShortcutIcon control in the <Head> section of the masterpage and change the IconUrl to the url of the favicon.ico
 

 

If the site is located at a url like this: http;//www.mirkwood.com/sites/necromancer you can get into problems with SPShortcutIcon control as it expects a path relative to root webapplication (read more at Ted Pattison's blog)

A solution can be to replace the SPShortcutIcon control with a <Link> tag.

Replace SPShortcutIcon control with <Link> tag

Locate the SPShortcutIcon control in the <Head> area of the masterpage and replace the control with a <Link> tag. Configure the href attribute to point to $SPUrl:~SiteCollection/Style Library/Branding/Images/favicon.ico

 

 

Posted in:

Tags:

SharePoint 2010 Service Pack 1

July 16, 2011 at 9:55 PMMark Rønn

The SP2010 Service pack are released and contains some interesting new updates.

Get the SP1 white paper

Get the SharePoint Foundation 2010 SP1

Get the SharePoint 2010 Server SP1

In which order to install the service packs and other details - go to the Office Sustained Engineering and Release Team's blog

Posted in: SharePoint

Tags:

SharePoint Online Developer Resource Center

October 28, 2010 at 3:18 PMMark Rønn

The developer center for cloud based service, SharePoint Online, can be found here: 

http://msdn.microsoft.com/en-us/sharepoint/gg153540.aspx

 

Posted in: SharePoint

Tags:

SharePoint in Pictures

October 28, 2010 at 3:15 PMMark Rønn

'A blog dedicated to visualizing SharePoint as a development platform. Pictures will include object model, architecture, and  administrative diagrams'

http://blogs.msdn.com/b/sharepointpictures/

 

Posted in: SharePoint

Tags:

Visual Studio 2010 keyboard shortcuts

October 25, 2010 at 10:22 AMMark Rønn

Posted in: SharePoint

Tags: ,

Et strejf af humør på TechNet?

March 26, 2010 at 7:47 AMMark Rønn

Microsofts documentation plejer at være forholdsvis neutralt i deres sprogbrug, men da jeg søgte information om Get-Service cmdlet’en var tonen behagelig anderledes:

Listing Service Information
This will probably shock you, but - just in case - you better sit down: the Get-Service cmdlet is designed to retrieve information about the services installed on your computer. (And to think that some people say Windows PowerShell is too complicated)
http://technet.microsoft.com/en-us/library/ee176858.aspx

Posted in: Powershell

Tags: ,

Unit testing a sequence with Enumerable.SequenceEqual

December 12, 2009 at 7:23 PMMark Rønn
How do we test a sequence returned by Enumerable.Range?
One way of doing it is by using the extension method Enumerable.SequenceEqual, which determines if two sequences are equal.

The method under test returns the follwing sequence: 0, 1, 4, 9, 16, 25, 36, 49, 64, 81 ,100

public List<int> GetSequence()
{
 List<int> sequence = Enumerable.Range(0, 11).Select(n => n * n).ToList();
 return sequence;
}



In our unit test we use the SequenceEqual method.

[Test]
public void GetSequence_ValidSequence_ReturnsTrue()
{
 // Arrange
 Utilities sut = new Utilities();
 List<int> resultSequence;
 List<int> expectedSequence = new List<int> {0, 1, 4, 9, 16, 25, 36, 49, 64, 81 ,100};

 // Act
 resultSequence = sut.GetSequence();

 // Assert
 Assert.IsTrue(expectedSequence.SequenceEqual(resultSequence), "Sequences should be equal.");
}



Futher reading:

Enumerable.SequenceEqual<(Of <(TSource>)>) Method (IEnumerable<(Of <(TSource>)>), IEnumerable<(Of <(TSource>)>))

Naming Direct Output Variables

xUnit Patterns - Direct Output

Posted in: SharePoint

Tags: