When running SharePoint locally it is a good idea to control the memory usage of SQL. To do this use the SQL query below.
sp_configure ‘max server memory’, 1024 RECONFIGURE GO
A good article that goes through some of the areas you need to look at in relationship to memory is located [...]
I 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# SPAdministrationWebApplication caWebApp = Microsoft.SharePoint.Administration.SPAdministrationWebApplication.Local; var url = caWebApp.Sites.Url; PowerShell $caWebApp = [Microsoft.SharePoint.Administration.SPAdministrationWebApplication]::Local [...]