David Kitchen

Avatar

Just another SharePoint developer blogging

Project Server Interface - ReadProjectStatus

Contrary to the current MSDN documentation here: http://msdn2.microsoft.com/en-us/library/websvcproject.project.readprojectstatus.aspx The ReadProjectStatus web method requires two sets of permission to return Projects for a given user: ViewProjectCenter OpenProject

HowTo: Get IE6 and IE7 to run side by side

1) Install IE7, say bye bye to IE6. 2) Reboot. 3) Make a new folder: C:\Program Files\Internet Explorer 6\ 4) Visit Evolt.org: http://browsers.evolt.org/?ie/32bit/standalone 5) Download ie6eolas_nt.zip: http://browsers.evolt.org/download.php?/ie/32bit/standalone/ie6eolas_nt.zip 6) Extract the Zip file you download in #5 into the folder you created in #3. 7) Create a shortcut to the executable you extracted in #6 8) Get beer 9) Drink beer You are done, you now have both IE6 and IE7 working on your PC.

Impersonating a user in C#

A random tech post, I just know I'm going to need this again sometime and this is my web notepad. This is some code, to impersonate another user using calls to unmanaged code, and then to loop some Sharepoint lists as the impersonated user and then go back to the user of the process. using System; using System.Runtime.InteropServices; using System.Security.Principal; using System.Text; using Microsoft.SharePoint; using Microsoft.SharePoint.Utilities; namespace ConsoleApplication1 { class Class1 { ...

On the value of mod_security

Over on plastic bag, Tom has a problem. The problem in one word is spam. He actually had two problems (a mass download of his site via a "wget recursively" style script, and the mass spamming of his blog via a "post continuously" script), but both have the same answer: the Apache module named mod_security. I investigated and installed mod_security on my server in the winter of 2004 when a PHP ...

HTTP Referer headers, choosing not to send them

I wrote a huge article yesterday on team riding dynamics, and then lost it as I'd set Firefox to not send referer's and Wordpress uses referer's during it's publishing process. Grrr! I disable sending referers in Firefox so that I am able to follow links from my stats software without notifying other sites that I am doing so. It also helps view images in threads on Bowlie as some sites ...

Office 13?

Microsoft have been using internal numbers for their major Office release for some time: Office 9 = Microsoft Office 2000 Office 10 = Microsoft Office XP Office 11 = Microsoft Office 2003 And right now they are in pre-beta with Office 12... yet to be assigned a product name (or yet to be announced depending on whether you believe what you hear). A curiosity though, I've just been conversing with a product manager ...

Firefox userContent.css

This is a rather good file, and you can find it on your Windows system by browsing to: %appdata%\Mozilla\Firefox\Profiles\profilename\chrome By default there is an example file name userContent-example.css that contains commented out examples: /* * example: turn off "blink" element blinking * * blink { text-decoration: none ! important; } * */ Effectively this is a global Cascading Style Sheet file that will be applied to every site that you visit. Initially it's hard to see the point ...

Remote Desktop Guide

I'm a terrible blogger, however that isn't going to deter me from making random out of the blue posts... public note taking effectively :) Today's note is on how to configure and setup Remote Desktop Connection so that I can access my home PC (in London) when I'm on a business trip (in Redmond). To complete this guide, you will need: 1) Web space with an ftp account to upload to. 2) ...

XSLT Version of SQL SELECT MAX() and SELECT MIN()

I've frequently encountered the need to produce titles for XSLT produced tables. For example, given the following XML: <events> <event date="2004-11-30 14:00:00" /> <event date="2004-11-30 14:00:00" /> <event date="2003-11-30 14:00:00" /> <event date="2002-11-30 14:00:00" /> </events> To extract the values "2002" and "2004" to format a title such as "Events (2002 > 2004)". To do this effectively requires us to extract both the MAX and MIN values, for which we need an XSLT equivalent to the SQL ...

When Web Parts break Web Part Pages

One of the most frustrating things with WSS is the feeling that you're not in control. You work hard to develop a web part, have it deployed, and feel a surge of pride when it's being used... but the day it breaks is the day you're called on at the 11th, against the clock, to fix it. This is just when you don't want to be staring at a ...