• Deploy sharepoint solution command line

    //1. add a solution stsadm -o addsolution -filename “C:\chapter04.wsp”

  • WSS solution package

    Essentially, four different things can be deployed using WSS solution packages.

  • Site Collection Design

    In may cases, the entire site structure can be contained in a single site collection, andn indeed this is convenient because the built-in navigation is based on the sites and page within the collection. In addition, content queries, content type, storage quotas, and numorous other sharepoint capacitites are scoped at a site collection, so there is a tendency to design large site collections to make them work over a large set of content. a site collection is alwyas stored in a single sharepoint content dtabase, although a content database con contain many site collections. Many sharepoint administrators limit site collections to 50-200g , and place large connections in their own, dedicated content database.

    sharepoint's build-in groups are scoped at site-collection level, so if seperate sets of groups are desired for administrative control, separate site collections will be necessary.

    Some sharepoint features are scoped at the site collection level, if these features are desired in some areas but not others, then the areas need to be in different site collections.

    Anonymous access is coped at the site collection level, so if part of a web site is to be open to anonymous users, where another forces a login, these sections should be in separate site collections.

    a common pitfall is to build a solution with one giant site collections and find out months or years after that the datbase has become too large to restore from backup within the service=level agreement. If a site contain large items such as video, then consider putting them in a separate site collections and linking to them to divide the storage.

  • Regex-Directed(NFA) Versus Text-Directed (DFA)

    You can easily find out whether the regex flavor you intend to use has a text-directed or regex-directed engine. If backreferences and/or lazy quantifiers are available, you can be certain the engine is regex-directed. You can do the test by applying the regex regex|regex not to the string regex not. If the resulting match is only regex, the engine is regex-directed. If the result is regex not, then it is text-directed. The reason behind this is that the regex-directed engine is eager.

  • regular expression notes

    Greediness

            <p>
            With the question mark, I have introduced the first metacharacter that is greedy. The question mark gives the regex engine two choices: try to match the part the question mark applies to, or do not try to match it. The engine will always try to match that part. Only if this causes the entire regular expression to fail, will the engine try ignoring the part the question mark applies to.
            </p><p>
            The effect is that if you apply the regex Feb 23(rd)? to the string Today is Feb 23rd, 2003, the match will always be Feb 23rd and not Feb 23. You can make the question mark lazy (i.e. turn off the greediness) by putting a second question mark after the first. * greedy, *? lazy, ? greedy, ?? lazy, + greedy, +? lazy.
            </p>