Got this error trying to update a field in a mongodb collection. Turns out I was previously using the same field to store object Ids. Now that I’m trying to repurpose the field to store a different datatype, mongo throws an error. Solution was to remove the old field completely from all documents within the [...]
tags: Development author: richard comments: No Comments
Things change quickly in the world of node development, you’re usually working with a lot of different modules within your projects. Fortunately there’s a great package manager that most node developers used called NPM. It makes installing and updating dependencies in your environment fairly simple. At anytime you can see a list of installed packages [...]
tags: Development author: richard comments: No Comments
The docs on MongooseJS can be really unclear at times, here are some pointers on validation that may help (note this is valid as of MongooseJS 1.3.3)
Making a field unique:
var User = new Schema({
email: { index: {unique: true} }
});
Note: If your collection exists in Mongo, you need to drop the collection before schema changes kick [...]
tags: Development author: richard comments: 1 Comment
Need to deploy a WSP to a new SharePoint 2007 server but don’t have an archive of it? The following utility allows you to extract a specific or all WSPs packages installed on a SharePoint farm and save them to disk where you can redeploy it to another server. Very useful -
http://code.msdn.microsoft.com/SPSolutionExtractor
Be wary though – [...]
tags: Development, SharePoint author: richard comments: No Comments
If you’re doing SharePoint development then you’ve no doubt heard of the GAC, or Global Assembly Cache (c:\windows\assembly) where compiled assemblies are deployed. In a SharePoint farm with several front-ends, you may occasionally find a server with a missing DLL or the wrong version of the assembly.
The following tool makes quick work of trying to [...]
tags: Development, SharePoint author: richard comments: No Comments
If you noticed your website is running slow, probably one of the first things you do is log into your web server, open Task Manager and check what’s going on. Usually you will see a process called w3wp.exe (or several instances of it) running and using high cpu utilization.
W3wp.exe is the worker process that Internet [...]
tags: Development, IIS author: richard comments: No Comments
In my last post, I mentioned the Internet Information Services (IIS) Manager feature called Worker Processes, and explained how you can use it to glean information into high cpu utilization for the w3wp.exe process(es) running on your server. If you followed the steps and got the following error: “There was an error while performing this [...]
tags: Development, IIS author: richard comments: 3 Comments
We had several users reporting an error when deleting a SharePoint team site. The error appears as a “File Not Found.” on the WebDeleted.aspx layout page along with a stack trace. It appears that the problem stems from our custom master page. For our implementation we use a custom HttpModule that redirects incoming requests for [...]
tags: Development, SharePoint author: richard comments: 3 Comments
For the past two SharePoint implementations that I’ve worked with, it was a common business requirement to query from a list to retrieve items that should be displayed on a “scheduled” basis. Think along the lines of an alert or announcement. Typically what I end doing is create a custom list and add the following [...]
tags: Development, SharePoint author: richard comments: 1 Comment
So you have an instance of a SPListItem and want to know whether this item belongs to a Document Library or if it came from a list (such as an Event Calender, Survey, or Custom List). A quick way to distinguish a document library item is to access the ParentList property of the SPListItem class and examine [...]
tags: Development, SharePoint author: richard comments: No Comments