Wednesday, June 27, 2012

ListTemplateType ID's (SP2007)

Specifies the type of a list definition or a list template and assigns each an underlying Int32 value that corresponds to the list type’s ID number.


List Id List Description
100 Generic list
101 Document library
102 Survey
103 Links list
104 Announcements list
105 Contacts list
106 Events list
107 Tasks list
108 Discussion board
109 Picture library
110 Data sources
111 Site template gallery
112 User Information list
113 Web Part gallery
114 List template gallery
115 XML Form library
116 Master pages gallery
117 No-Code Workflows
118 Custom Workflow Process
119 Wiki Page library
120 Custom grid for a list
130 Data Connection library
140 Workflow History
150 Gantt Tasks list
200 Meeting Series list
201 Meeting Agenda list
202 Meeting Attendees list
204 Meeting Decisions list
207 Meeting Objectives list
210 Meeting text box
211 Meeting Things To Bring list
212 Meeting Workspace Pages list
301 Blog Posts list
302 Blog Comments list
303 Blog Categories list
1100 Issue tracking
1200 Administrator tasks list


MSDN - SPListTemplateType Enumeration
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splisttemplatetype.aspx

Sunday, June 17, 2012

Problem Steps Recorder

Having trouble explaining a specific issue to Contoso helpdesk, or just afraid of forgetting steps when doing that important documentation for your boss? Problem Steps Recorder is the answers, it’s a build in tool provide out of the box with Windows7.

PSR can be used to automatically capture the steps you take on a computer. Including a text description of where you clicked and along with a screen shot of the action.
Once captured, these steps can save as a single file.

Note: When you record steps on your computer, anything you type will not be recorded. If what you type is an important part of recreating the problem you're trying to solve, use the comment feature described below to highlight where the problem is occurring. - Microsoft win7, How-to-use-PSR


To record and save steps on your computer:
1. Click the Start button
2. Type 'psr' in the search area.
3. Select either 'psr' or 'Record steps to reproduce a problem' out of the list of results.


4. Click Start Record.
Note: You can pause the recording at any time, and then resume it later.

5. Click Stop Record.
6. In the Save As dialog box, type a name for the file, and then click Save.
Note: The .mht file is zipped and saved.

To view the record of the steps you recorded, open the .zip file you just saved, and then double-click the file. The document will open in your browser.

Thursday, June 7, 2012

SOLID Principles


In computer programming, SOLID (Single responsibility, Open-closed, Liskov substitution, Interface segregation and Dependency inversion) is a mnemonic acronym introduced by Robert C. Martin in the early 2000s that stands for five basic principles of object-oriented programming and design. The principles when applied together intend to make it more likely that a programmer will create a system that is easy to maintain and extend over time. The principles of SOLID are guidelines that can be applied while working on software to remove code smells by causing the programmer to refactor the software's source code until it is both legible and extensible. It is typically used with test-driven development, and is part of an overall strategy of agile and adaptive programming. - wikipedia

S:
Single responsibility principle an object should have only a single responsibility.


O:
Open/closed principle "software entities... should be open for extension, but closed for modification".


L:
Liskov substitution principle "objects in a program should be replaceable with instances of their subtypes without altering the correctness of that program".


I:
Interface segregation principle "many client specific interfaces are better than one general purpose interface."


D:
Dependency inversion principle one should "Depend upon Abstractions. Do not depend upon concretions." Dependency injection is one method of following this principle.



Images from http://lostechies.com/derickbailey/2009/02/11/solid-development-principles-in-motivational-pictures/ blog.