September 6, 2011 at 9:50 AM
—
Mark Rønn
63c929c0-8ccd-4227-ae37-546a119a90b6|0|.0
Posted in: SharePoint
Tags:
August 28, 2011 at 10:04 PM
—
Mark 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" />
August 21, 2011 at 9:14 PM
—
Mark Rønn
August 2, 2011 at 4:15 PM
—
Mark 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

16626219-bba8-4dc7-bad1-4c8158a929cb|0|.0
Posted in:
Tags:
July 16, 2011 at 9:55 PM
—
Mark 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
0c6f237c-a17d-4102-85e9-a821f90571dd|0|.0
Posted in: SharePoint
Tags:
October 28, 2010 at 3:18 PM
—
Mark Rønn
The developer center for cloud based service, SharePoint Online, can be found here:
http://msdn.microsoft.com/en-us/sharepoint/gg153540.aspx

b0584887-edbd-4206-93cf-b0b31449e46f|0|.0
Posted in: SharePoint
Tags:
October 28, 2010 at 3:15 PM
—
Mark 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/

cc90fe39-6458-4fd2-a4a9-228873465065|0|.0
Posted in: SharePoint
Tags:
October 25, 2010 at 10:22 AM
—
Mark Rønn
March 26, 2010 at 7:47 AM
—
Mark 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
December 12, 2009 at 7:23 PM
—
Mark 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
55828160-c016-47c7-abd1-2cd3bd997e06|0|.0
Posted in: SharePoint
Tags: tdd