Getting the Central Admin URL for a Farm in SharePoint

Toy CarI recently needed to get the Url of the CA for a SharePoint farm, after a bit of hunting in the API it was tracked down under the SPAdministrationWebApplication object.

C#

[code lang=“csharp”] SPAdministrationWebApplication caWebApp = Microsoft.SharePoint.Administration.SPAdministrationWebApplication.Local; var url = caWebApp.Sites[0].Url; [/code]

PowerShell

[code lang=“ps”] $caWebApp = [Microsoft.SharePoint.Administration.SPAdministrationWebApplication]::Local $caWebApp.Sites[0].Url [/code]

New Toy! Eee PC T101MT

Tablet PC Icon Photo by ichibodI finally got me one of those new fangled netbooks with touch! I have been looking for a small form tablet PC for a while. So far it has been working as expected, the IO seems a little slow but I am uninstall a heap o apps and will defrag the poor thing shortly. The touch seems ok so far but I cannot wait to get OneNote 2010 on it to see how it rolls. It seems to come with a bit of bloatware and has office 2007 pre-installed. So farm I have removed:

Continue Reading »

New Toy! Eee PC T101MT

Tablet PC Icon Photo by ichibodI finally got me one of those new fangled netbooks with touch! I have been looking for a small form tablet PC for a while. So far it has been working as expected, the IO seems a little slow but I am uninstall a heap o apps and will defrag the poor thing shortly. The touch seems ok so far but I cannot wait to get OneNote 2010 on it to see how it rolls. It seems to come with a bit of bloatware and has office 2007 pre-installed. So farm I have removed:

Continue Reading »

Deleting Content Types in SharePoint

I found this peice of SQL on the web a while ago, I have no idea where it came from but it did come in handy the other day when a client needed to delete a content type but kept on getting the message it was in use. When deleting content types you need to ensure:

To help track down where the content type is in use the following query will help.

Continue Reading »

When is true not true?

When you look at true stored in the .Net framework. While playing with Pex I found out a interesting fact that the bool is a byte in the MSIL. Which means that a bool could be euqal to anything on the byte range… Now this would require you to go out of your way and create unsafe code blocks to do this. Why you would do this… No ideas :) Its marked as a no-fix which is not supprising as I would not fix it either becase as they say, if you know about this and you use it then you are on your own.. https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=455553&wa=wsignin1.0 http://blog.dotnetwiki.org/2009/05/29/TamingThePexBeastWellbehavedEnumsMultidimensionalArraysAndBooleans.aspx

Continue Reading »

Toodledo DF - Update

Information can be found on: http://blog.sytone.dev/toodledo-distraction-free/

ToodleDo DF Update

Made a few fixes, I am also working on a simple API after dusting off some old work I had. This will allow interaction from the desktop and eventually a cached mode. V 0.20.1005.2301 - Created link in options to edit css styles. - Fixed issue where focus mode would not take window out of topmost mode.

Updated Toodledo Distration Free

You can get the update here: http://blog.sytone.dev/toodledo-distraction-free/ Changes:

Enabling the query builder for outlook views

 You can use an undocumented Registry key to display a Query Builder tab on the Filter dialog box associated with the View Summary dialog box. After you use the Query Builder to construct your query, you can then copy the Filter syntax displayed on the SQL page and paste it into your code. Do not attempt to add the Query Builder page Registry setting unless you are familiar with the Windows Registry Editor.

Continue Reading »

Why Procmon is a great tool!

Procmon is created by sysinternals and should be deployed to any server in your enterprise (and desktop) it allows you to see what file, registry, network and processed & thread activity is happening on your system. I just used to to work out why VS 2010 was not installing, it turns out it iterates through all the drives on your system including your mapped drives. As I had just been playing with WebDav I had a mapped WebDav drive which was very slow to access. Looking at proc mon I could see straight away what the issue was and I disconnected the drive. Problem sovled!

Continue Reading »