rxJs

March 25, 2017 11:06 am Leave a comment

const myObservable =(observer)=>{
int i=0;
const id=setInterval(()=>{
observer.next(i++);
if(i === 10) observer.complete();},200);
}

observe for some action and perform some action and when action is done notify the completion of action by calling a callback
Monitor ==> action occured ==> perform action  ==> trigger completion functon

hi my name is Sriya Kollipara and I am the angel of the family.

Categories: Uncategorized

lodash-fp 2

March 9, 2017 5:41 pm Leave a comment
reduce array/collection   Reduces collection to a value which is the accumulated result of running each element in collection thru iteratee, where each successive invocation is supplied the return value of the previous. If accumulator is not given, the first element of collection is used as the initial value.
       

 

import reduce from ‘lodash/fp/reduce’

const noCapReduce=reduce.convert({ ‘cap’: false })

const red = noCapReduce((result,value,key)=>{

    ((result[value])||(result[value]=[])).push(key)

return result;

},{})

console.log(red({ jey11: 1, jey23: 3, jey223: 3 }))

Categories: Javascript Tags:

lodash fp -1

March 9, 2017 5:38 pm Leave a comment
dropRightWhile array dropElements in array at the end based on predicate Take the last array element and apply the predicate, if that returns false return entire array else drop from end and continue till predicate becomes false from end of array and return remaining array
dropWhile array dropElements in array at the begining based on predicate Take the first array element and apply the predicate, if that returns false return entire array else drop from begining and continue till predicate becomes false from begin of array and return remaining array
every array return true if predicate returns true for all elements of array else return false Checks if predicate returns truthy for all elements of collection. Iteration is stopped once predicate returns falsey
filter array return all array elements for which predicate returns true Iterates over elements of collection, returning an array of all elements predicate returns truthy for.
find array return first element and whole element that matches the predicate Iterates over elements of collection, returning the first element predicate returns truthy for. undefined if not found
findIndex array return first element index that matches the predicate returns the index of the first element predicate returns truthy for instead of the element itself.-1 if not found, index is zero based
findKey object on dictionary with key, name value pairs returns first key whose value matches returns the key of the first element predicate returns truthy for instead of the element itself
findLast array return last element and whole element that matches the predicate Iterates over elements of collection, returning the last element predicate returns truthy for. undefined if not found
findLastIndex array return last element index that matches the predicate returns the index of the last element predicate returns truthy for instead of the element itself.-1 if not found, index is zero based
findLastKey object on dictionary with key, name value pairs returns last key whose value matches returns the key of the last element predicate returns truthy for instead of the element itself
flatMap array return a new array after applying the function on all elements on the array Creates a flattened array of values by running each element in collection thru iteratee and flattening the mapped results.
flatMapDeep array recursively apply flatMap to each array that exists in the main array
const usersArray = [[{ ‘user’: ‘pebbles’, ‘active’: true },

{ ‘user’: ‘barney’,  ‘active’: true }],

[{ ‘user’: ‘fred’,    ‘active’: false }]

];

recursively flattens the mapped results
[ [ { user: ‘pebbles’, active: true },
{ user: ‘barney’, active: true } ],
[ { user: ‘pebbles’, active: true },
{ user: ‘barney’, active: true } ],
[ { user: ‘fred’, active: false } ],
[ { user: ‘fred’, active: false } ] ]
[ { user: ‘pebbles’, active: true },
{ user: ‘barney’, active: true },
{ user: ‘pebbles’, active: true },
{ user: ‘barney’, active: true },
{ user: ‘fred’, active: false },
{ user: ‘fred’, active: false } ]
flatMapDepth array same as flatMapDeep except depth specification recursively flattens the mapped results up to depth times.
forEach array/collection perform a function on each element of array or collection Iterates over elements of collection and invokes iteratee for each element.
forEachRight array/collection perform a function on each element of array or collection from right to left iterates over elements of collection from right to left.
forIn object perform a function on each key that you inherit from object or directly defined on the object Iterates over own and inherited enumerable string keyed properties of an object and invokes iteratee for each property
forInRight object perform a function on each key that you inherit from object or directly defined on the object from Right to left Iterates over own and inherited enumerable string keyed properties of an object and invokes iteratee for each property from right to left
forOwn object perform a function on each key that are directly defined on the object Iterates over own string keyed properties of an object and invokes iteratee for each property
forOwnRight object perform a function on each key that are directly defined on the object from right to left Iterates over own string keyed properties of an object and invokes iteratee for each property from right to left
map array/collection returns a new array by applying function to each element of the array Creates an array of values by running each element in collection thru iteratee.
mapKeys object returns keys associated with the object this method creates an object with the same values as object and keys generated by running each own enumerable string keyed property of object thru iteratee.
mapValues object turns values associated with the object Creates an object with the same keys as object and values generated by running each own enumerable string keyed property of object thru iteratee.
partition array/collection returns true array and false array from collection Creates an array of elements split into two groups, the first of which contains elements predicate returns truthy for, the second of which contains elements predicate returns falsey for
reject array/collection returns elements that returns false for predicate` this method returns the elements of collection that predicate does not return truthy for
remove array/collection removes array elements and returns remaining elements, original array is modified Removes all elements from array that predicate returns truthy for and returns an array of the elements remaining
some array/collection return true if any element in collection passes predicate Checks if predicate returns truthy for any element of collection. Iteration is stopped once predicate returns truthy
takeRightWhile
array/collection return an array from the end while predicate returns true Creates a slice of array with elements taken from the end. Elements are taken until predicate returns falsey
takeWhile array/collection return an array from beginging while predicate returns true Creates a slice of array with elements taken from the begining. Elements are taken until predicate returns falsey
times utility return an array as a result of application of iteratee n times Invokes the iteratee n times, returning an array of the results of each invocation

 

 

Categories: Javascript Tags:

Compile es6 js test file seperately

March 8, 2017 11:40 am Leave a comment

npm install babel-cli –save-dev

node node_modules/babel-cli/bin/babel-node.js your.js

Categories: Javascript

Currying and lodash/fp

March 8, 2017 10:18 am Leave a comment

Briefly, currying is a way of constructing functions that allows partial application of a function’s arguments. What this means is that you can pass all of the arguments a function is expecting and get the result, or pass a subset of those arguments and get a function back that’s waiting for the rest of the arguments.

Argument Order

One thing that’s important to keep in mind when currying is the order of the arguments. Using the approach we’ve described, you obviously want the argument that you’re most likely to replace from one variation to the next to be the last argument passed to the original function.

Thinking ahead about argument order will make it easier to plan for currying, and apply it to your work. And considering the order of your arguments in terms of least to most likely to change is not a bad habit to get into anyway when designing functions.

Here is how the lodash/fp documentation describes itself:

The lodash/fp module promotes a more functional programming (FP) friendly style by exporting an instance of lodash with its methods wrapped to produce immutable auto-curried iteratee-first data-last methods.

Compose yourself

The idea of composing functions (or flow in lodash) is to build a larger function out of many smaller ones. The data goes in one end and flows (ah ha!) through each function until it comes out the other side. Each function in the chain passes its return value to the next.

Let’s see an example using lodash/fp:

const flow = require('lodash/fp/flow');
const escape = require('lodash/fp/escape');
const trim = require('lodash/fp/trim');

const sanitise = flow(escape, trim);

sanitise('    <html>    '); // <html>

You can see that we’ve created a sanitise function from escape and trim and when the HTML string is passed in it flows through these two functions before being returned as expected. Again, we’re just being implicit and declaring what we want to happen, not how.

How does currying help?

lodash/fp functions are auto-curried, so when given fewer arguments than expected they give back a function. This works really well with flow:

const flow = require('lodash/fp/flow');
const get = require('lodash/fp/get');
const isEqual = require('lodash/fp/isEqual');

const data = {
  items: 45
};

const hasAllItems = flow(get('items'), isEqual(45));

hasAllItems(data) // true

Here we’re configuring the get and isEqual functions with the arguments needed to get the result, and now they’re waiting for their final argument which is the data. Thanks to flow we can pass that in at one end and let it pass through each curried function until our expected value comes out at the end.

For composition to work each function should be unary (accept one argument) and return a single value for the next function to consume. It’s fine for the first function to be polyadic (takes multiple arguments) as long it returns a single value.

A note on point-free

You may have noticed that in the last two examples you can’t see any mention of data or itemsapart from when it is passed in as an argument. From the Wikipedia page:

Tacit programming, also called point-free style, is a programming paradigm in which function definitions do not identify the arguments (or “points”) on which they operate. Instead the definitions merely compose other functions, among which are combinators that manipulate the arguments.

Categories: Javascript Tags:

user information list

March 6, 2017 6:03 pm Leave a comment

What is User Information List?

As per the Name SharePoint User Information List stores information about a user by having some metadata set up for the user. Some examples are User Picture, Email, DisplayName, LoginName etc. For a complete list of fields, see further down this blogpost under “User Information List Fields”.

When a user get added in User Information List?

When we grant any user permissions to a user, they are added automatically to the hidden User Information list a new item will be created in the User Information List storing some information about the user.

Even though if we grant access to any active directory group the group gets added to the hidden User Information list as well but the user does not get added until they access the site. (As an example, I granted an AD group permissions to my site & only the AD group showed up in the hidden User Information list not the users

It has been changed little bit in SharePoint 2013. As it shows user in list as soon as I give them permission to site regardless of they logon or not

Where the User Information details are used in SharePoint

When a user add/create or edit an item, documents or pages SharePoint will display the Created By or Last modified by details for the users and these all comes from the SharePoint User Information List

URL for User Information List SP 2010 ?

http://siteurl/_catalogs/users/detail.aspx – If you want to see the detail view of only Users in the list.

http://siteurl/_catalogs/users/simple.aspx – The blow URL will show the simple view of only Users in the List
http://siteurl/_catalogs/users/allgroups.aspx – This will provide all the groups without users available in Site.

URL for User Information List SharePoint 2013?

http://siteurl/_catalogs/users/detail.aspx – If you want to see the detail view of only Users in the list.

http://siteurl/_catalogs/users/simple.aspx – The blow URL will show the simple view of only Users in the List
http://siteurl/_catalogs/users/allgroups.aspx – This will provide all the groups without users available in

http://siteurl/_layouts/15/people.aspx?MembershipGroupId=0

http://siteurl/_layouts/people.aspx?MembershipGroupId=0

URL for User Information List SharePoint online, O365

Or

http://siteurl/_layouts/15/people.aspx?MembershipGroupId=0

Note : /_catalogs folder is not mapped as virtual folder in IIS, like /_layouts, /settings.aspx or other application pages that we have in SharePoint site etc, i.e. it will work only on the root site.

Here the important thing is that these endless Users, AllUsers, SiteUsers, etc properties of SPWeb and SPSite, which may return different results depending on the context site, should not mislead you: users are created on site collection level.

User Information List is a special one but still is a list and is bound to the web scope. So it is stored only in the root web of each site collection and you wouldn’t find it in any subweb

In theory this list should be updated with user profile synchronization as well, but at first SharePoint may be used without user profiles, and second because of a lot of bugs in this process, on practice the most reliable way to force synchronization between user profiles and user information list is to delete user from the list explicitly and call SPWeb.EnsureUser(). We had similar situation and it was the only method which really worked (in our case it was more tricky: samAccountName of the user account in AD was changed, but as SID remained the same, Sharepoint still showed old account name).

If there is some users who’s details are showing differently in SharePoint than its AD value

You can try to sync the user profile with user Information List by below given Power shell script.

To fix the issue run the PowerShell as below. abcDomainName\pqrUserLoginId —> abc is the domain and pqr is the user login.

$web=Get-SPWeb …web URL…

$web|Set-SPUser -identity “abcDomainName\pqrUserLoginId” -SyncFromAD

The problem is the UserInformationList is stored in AllUserData table. This is not the UserInfo table. It is absolutely different portion of data. You can see its data by navigating to http:///_catalogs/users/detail.aspx. It is the site (Web scope) level data and the UserInformationList (hidden list) is created for the Root Web of each site collection. While UserInfo stores data of the site collection level. Information in UserInfo table can be different from UserInformationList. So if i get the user from PowerShel I get the right display name.

$web = Get-SPWeb -Identity ‘WebUrl’
$user = $web | Get-SPUser -Identity ‘login’
$user.DisplayName

If I Remove users from User Information List

We can remove a user from the User Information List (UIL) in a site collection from SharePoint 2010 and 2013. SharePoint stores user information in the UIL to extract data when this user is being searched by the people picker, the people picker extracts information from multiple locations:

– The User Information List
– Active Directory

The people picker does not extract information from the User Profile Service Application (UPSA). The UPSA syncs information from the AD and updates the UIL but it does not delete the user from it.

For example if I will delete myself from the Active Directory and navigate back to SharePoint to see what happened.

– I can no longer log on with “myLogInName”
– I can still find “myLogInName” with the people picker.

– The permissions are still visible

I want to delete myLogInName user from the Site Collection so this user won’t be found by the people picker and the permissions will be deleted.

Solution

I can’t just click on the user and delete him because I’ll be redirected to the My Site (the My Site will be scheduled for deletion in 14 days by the My Site Cleanup Timer Job).

You will have to add the following right behind the URL

SharePoint 2010

/_layouts/people.aspx?MembershipGroupId=0

and click on “Actions –> Delete Users from Site Collection

After that

I can now

– no longer log on with “myLogInName”
– no longer find him using the people picker
– no longer find his permissions because they have been deleted

Downside is that you’ll receive the following error while clicking on this user at documents

With the following information from the ULS Viewer

System.ArgumentException: User cannot be found.

at Microsoft.SharePoint.SPList.GetItemById(String strId, Int32 id, String strRootFolder, Boolean cacheRowsetAndId, String strViewFields, Boolean bDatesInUtc)

at Microsoft.SharePoint.SPContext.get_Item()

Deleting users from UIL’s in bulk and across Site Collections

Please read the following blog from Nico Martens if you would like to delete users in bulk with PowerShell.
http://sharepointrelated.com/2012/10/11/remove-bulk-users-from-user-information-list-people-picker/

Timer Job that is working behind the User Information List?

To synchronize the User Profile user Data with user Information List there are two timer jobs that are responsible
1.1. User Profile to SharePoint Quick Sync and
2.2. User Profile to SharePoint Full Sync,

Can I set Alert on SharePoint User information list? Or Can I Track changes to the SharePoint User Information list.

How do you track the changes in “User Information List” without using any custom code? One way is to enable auditing under site collection administration for “Editing users and permissions”. However this add an extra load to the database and may result in performance issues. Moreover his requirement was to track only when a user is added or removed from site collection.

Another approached is to setup alerts. However, the User Information List does not have any option to setup alerts or go to setting etc as normal lists. So how can we configure alerts on the list?

1. Our first requirement was to get the GUID. To get this we queried dbo.Lists table in the content database holding this site collection.

2. The query should be: Select tp_ID From Lists with(NoLock)where tp_Title = ‘User Information List’

3. Make a note of this ID, Now go to any other list in the top site in your site collection and click on Alert Me under Actions.

4. In the next page in URL remove the contents after ?List= and add the GUID noted in step 3.

5. Press enter and now you will find that the fields are populated with User Information List and you can create the alerts.

It is not possible to add event handlers to the user info list ?

No, we cannot attach any event handler to User Information List. Please check the MS details on that on this article (http://msdn.microsoft.com/en-us/library/aa979520.aspx), we know that “Lists:List events do not fire on the UserInfo list.”

Another asynchronous was discussed in this post below: we can think to create a service to monitor the change in UserInfo list, or get the modification logs from audit information is also a solid alternative.

Please see this following thread:

http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/81aae5ef-9621-48c5-ad52-706e5d6a0f05

How user Information list is linked with SharePoint User Profile Service?

To keep all the information in the user information lists up to data with User profile and user Information list is a task that is handled by the Profile Synchronization and the Quick Profile Synchronization timer jobs. By default the first job runs once every hour, the second one runs every couple of minutes and is incremental. The first time user data is replicated from the user profile to the user information list of a site a full update is needed. So the Profile Synchronization job needs to run in order to get the data replicated to the site and this may take up to an hour. If information about a user is already stored in the user information list and the information changes in the user profile it will be synchronized with the data in the site collection by the Quick Profile Synchronization job.

You can also kick off the profile synchronization jobs by running the stsadm sync command.

stsadm -o sync

If you believe that information is not synced between the user profiles and the user information lists in one or more sites you can request a list of content databases that have not been synchronized for x number of days by using the following stsadm sync command.

stsadm -o sync -listolddatabases

If one or more content databases show up in this list you can clean up the sync list so they can be added to the list again.

stsadm -o sync -deleteolddatabases

You can also use the sync command to change the schedule for the synchronization job.

For more information on the stsadm sync command have a look here http://technet.microsoft.com/en-us/library/cc263196.aspx.

To synchronize the User Profile user Data with user Information List there are two timer jobs that are responsible
1.3. User Profile to SharePoint Quick Sync and
2.4. User Profile to SharePoint Full Sync,

That synchronize the User Profile database information with the UIL. Sometimes this stops working (properly) and in that case you need to run:

stsadm -o sync -listolddatabases 0

stsadm -o sync -deleteolddatabases 0

The first command will list Content Databases that haven’t had the UPA -> UIL sync occur in 0 or more days. The second command will delete the records corresponding to those databases (it doesn’t delete databases/end user data).

If still the issue is there you can delete the user from user Information list and run the user profile sync again to fix the issue.

How to access User information list using Server Object model?

// Get the List Object for User Information List
SPList userInformationList = SPContext.Current.Web.SiteUserInfoList;
// Get the Object of current logged in user
SPUser user = SPContext.Current.Web.EnsureUser(@”web”);

// Here is actual User Information is within this SPListItem
SPListItem userItem = userInformationList.Items.GetItemById(user.ID);

The above code will give you the SPListItem object which links to the currently logged in user (the one executing the request) and you have almost all the details about the user you can play around it and user it further.

You can then work with the SPListItem object like normal to get or set the properties like this:

string userPictureURL = userItem[“Picture”].ToString();

How to access User Information list using Client object model?

Here is the example of to get current log in user Id and show user Information by fetching from user Information list.

var contextObj = new SP.ClientContext.get_current();

var webObj = contextObj.get_web();

var userInfoListObj = webObj.get_siteUserInfoList();

var camlQuery = new SP.CamlQuery();

camlQuery.set_viewXml(” +

” + userId + ” +

‘1’);

this.userInfoListObj= userInfoListObj.getItems(camlQuery);

contextObj.load(this.userListItem);

contextObj.executeQueryAsync(

Function.createDelegate(this, onSucceeded),

Function.createDelegate(this, onFailed));

The onSucceeded function is called when the query runs successfully, otherwise the onFailed function will be executed.

function onSuceeded(sender, eventArgs)

{

var item = this.userListItem.itemAt(0);

var name = item.get_item(‘Name’);

var userName = “Name”;

if (name) {

userName = name;

}

alert(userName);

}

We need to execute the code after SP.js is loaded SP.SOD.executeOrDelayUntilScriptLoaded(LoadUserInfo, ‘SP.js’);

How to access User information list for SharePoint online Site?

/_catalogs/users/detail.aspx is work in both Onpremise and SharePoint Online

How to access User Information list using powershell scripts.

You can write a PowerShell script(named ListWebUserInformationListItems.ps1) as following:

# Run with SharePoint 2010 Management Shell

$webUrl = Read-Host “Enter the web url”

$web = Get-SPWeb $webUrl

$list = $web.Lists[“User Information List”]

$query = New-Object Microsoft.SharePoint.SPQuery

$queryCamlString = ”

$query.Query = $queryCamlString

$userInformationListItems = $list.GetItems($query)

foreach($userInformationListItem in $userInformationListItems)

{

echo $userInformationListItem.Title

}

Categories: Uncategorized

content types

March 6, 2017 6:02 pm Leave a comment
CT Name CT ID Parent CTs CT Description CT Group
System 0x _Hidden
Common Indicator Columns 0x00A7470EADF4194E2E9ED1031B61DA0884 System _Hidden
Fixed Value based Status Indicator 0x00A7470EADF4194E2E9ED1031B61DA088401 System Create a new Status Indicator using manually entered information Business Intelligence
SharePoint List based Status Indicator 0x00A7470EADF4194E2E9ED1031B61DA088402 System Create a new Status Indicator using data from SharePoint Lists Business Intelligence
Excel based Status Indicator 0x00A7470EADF4194E2E9ED1031B61DA088403 System Create a new Status Indicator using data from Excel Services Business Intelligence
SQL Server Analysis Services based Status Indicator 0x00A7470EADF4194E2E9ED1031B61DA088404 System Create a new Status Indicator using data from SQL Server Analysis Services Business Intelligence
Item 0x01 System Create a new list item. List Content Types
Circulation 0x01000F389E14C9CE4CE486270B9D4713A5D6 Item Add a new Circulation. Group Work Content Types
New Word 0x010018F21907ED4E401CB4F14422ABC65304 Item Add a New Word to this list. Group Work Content Types
Category 0x010019ACC57FBA4146AFA4C822E719824BED Item (Category Content Type Description) Community Content Types
Site Membership 0x010027FC2137D8DE4B00A40E14346D070D52 Item Add a new member Community Content Types
Community Member 0x010027FC2137D8DE4B00A40E14346D070D5201 Item > Site Membership Add a new community member Community Content Types
WorkflowServiceDefinition 0x01002A2479FF33DD4BC3B1533A012B653717 Item WorkflowServiceDefinition _Hidden
Reusable HTML 0x01002CF74A4DAE39480396EEA7A4BA2BE5FB Item _Hidden
Health Analyzer Rule Definition 0x01003A8AA7A4F53046158C5ABD98036A01D5 Item Create a New Health Analyzer Rule _Hidden
Published Link 0x01004613D6562E4C41A7B9DADDAC1689E00D Item Create a New Published Link _Hidden
Resource 0x01004C9F4486FBF54864A7B0A33D02AD19B1 Item Add a new resource. Group Work Content Types
Reusable Text 0x01004D5A79BAFA4A4576B79C56FF3D0D662D Item _Hidden
Official Notice 0x01007CE30DD1206047728BAFD1C39A850120 Item Add a new Official Notice. Group Work Content Types
Phone Call Memo 0x0100807FBAC5EB8A4653B8D24775195B5463 Item Add a new Phone Call Memo. Group Work Content Types
Project Policy 0x010085EC78BE64F9478AAE3ED069093B9963 Item Container content type for Project Policy definitions _Hidden
Page Output Cache 0x010087D89D279834C94E98E5E1B4A913C67E Item Page Output Cache is a system content type template created by the Publishing Resources feature to define cache profiles. _Hidden
Device Channel 0x01009AF87C5C1DF34CA38277FEABCB5018F6 Item Create a channel to change this site’s appearance based on what devices visit the site. _Hidden
Holiday 0x01009BE2AB5291BF4C1A986910BD278E4F18 Item Add a new holiday. Group Work Content Types
What’s New Notification 0x0100A2CA87FF01B442AD93F37CD7DD0943EB Item Add a new What’s New notification. Group Work Content Types
WorkflowServiceSubscription 0x0100AA27A923036E459D9EF0D18BBD0B9587 Item WorkflowServiceSubscription _Hidden
Timecard 0x0100C30DDA8EDB2E434EA22D793D9EE42058 Item Add a new timecard data. Group Work Content Types
Resource Group 0x0100CA13F2F8D61541B180952DFB25E3E8E4 Item Add a new resource group. Group Work Content Types
Rule 0x0100DC2417D125A4489CA59DCC70E3F152B2 Item Create a rule that moves content submitted to this site to the correct library or folder. _Hidden
Health Analyzer Report 0x0100F95DB3A97E8046B58C6A54FB31F2BD46 Item A report from the health analyzer _Hidden
Users 0x0100FBEEE6F0C500489B99CDA6BB16C398F7 Item Add new users to this list. Group Work Content Types
Document 0x0101 Item Create a new document. Document Content Types
Translation Status 0x01010000DEC92EFE5D445789D9FE4A3225A381 Item > Document Translation State is a Content Type created to represent all the information that is tracked by the Translation Feature. _Hidden
System Page Layout 0x01010007FF3E057FA8AB4AA42FCB67B453FFC1 Item > Document System Page Layout is a system content type template created by the Publishing Resources feature, and it cannot be modified. To add columns to page layouts in the page layouts gallery and master page gallery, update the Page Layout content type template. _Hidden
Page Layout 0x01010007FF3E057FA8AB4AA42FCB67B453FFC100E214EEE741181F4E9F7ACC43278EE811 Item > Document > System Page Layout Page Layout is a system content type template created by the Publishing Resources feature. All page layouts will have the column templates from Page Layout added. Publishing Content Types
Html Page Layout 0x01010007FF3E057FA8AB4AA42FCB67B453FFC100E214EEE741181F4E9F7ACC43278EE8110003D357F861E29844953D5CAA1D4D8A3B Item > Document > System Page Layout > Page Layout Build a SharePoint page layout – a template for authored page data within a master page – using only HTML.   SharePoint will allow you to embed common components and will create and update a functional page layout automatically. Publishing Content Types
System Master Page 0x0101000F1C8B9E0EB4BE489F09807B2C53288F Item > Document System Master Page is a system content type template created by the Publishing Resources feature, and it cannot be modified. To add columns to master pages in the page layouts gallery and master page gallery, update the Master Page content type template. _Hidden
ASP NET Master Page 0x0101000F1C8B9E0EB4BE489F09807B2C53288F0054AD6EF48B9F7B45A142F8173F171BD1 Item > Document > System Master Page Master Page is a system content type template created by the Publishing Resources feature. All master pages will have the column templates from Master Page added. Publishing Content Types
Html Master Page 0x0101000F1C8B9E0EB4BE489F09807B2C53288F0054AD6EF48B9F7B45A142F8173F171BD10003D357F861E29844953D5CAA1D4D8A3A Item > Document > System Master Page > ASP NET Master Page Build a SharePoint master page – a frame shared by site pages holding a header, footer, CSS, and other elements – using only HTML. SharePoint will allow you to embed common components and will create and update a functional master page automatically. Publishing Content Types
Display Template 0x0101002039C03B61C64EC4A04F5361F3851066 Item > Document Base Content Type containing common Display Template columns. Use one of Control, Group, Item or Filter Display Template content types to create a display type. _Hidden
Control Display Template 0x0101002039C03B61C64EC4A04F5361F385106601 Item > Document > Display Template Control Display Templates control the organization of your results within the web part they are used in and the overall look of the web part. They are used in Content By Search, Search Results, Refinement web parts. Display Template Content Types
Group Display Template 0x0101002039C03B61C64EC4A04F5361F385106602 Item > Document > Display Template Group Display Templates are used to group together a number of Item Display Templates. They can appear in Control Display Templates. They are used in Search Results web part. Display Template Content Types
Item Display Template 0x0101002039C03B61C64EC4A04F5361F385106603 Item > Document > Display Template Item Display Templates allow you to specify what managed properties are used and how they appear for a result. They are used by Content By Search and Search Results web parts. Display Template Content Types
Filter Display Template 0x0101002039C03B61C64EC4A04F5361F385106604 Item > Document > Display Template Filter Display Templates allow you to create customized refinement controls that will appear in Refinement web part. Display Template Content Types
Display Template Code 0x0101002039C03B61C64EC4A04F5361F385106605 Item > Document > Display Template Display Template Code javascript that registers and executes Display Template rendering logic. _Hidden
JavaScript Display Template 0x0101002039C03B61C64EC4A04F5361F3851068 Item > Document Create a new custom CSR JavaScript Display Template. Display Template Content Types
Report 0x01010058DDEB47312E4967BFC1576B96E8C3D4 Item > Document Business Intelligence
Office Data Connection File 0x010100629D00608F814DD6AC8A86903AEE72AA Item > Document _Hidden
List View Style 0x010100734778F2B7DF462491FC91844AE431CF Item > Document Create a new List View Style Document Content Types
Rich Media Asset 0x0101009148F5A04DDD49CBA7127AADA5FB792B Item > Document Upload an asset. Digital Asset Content Types
Video Rendition 0x0101009148F5A04DDD49CBA7127AADA5FB792B00291D173ECE694D56B19D111489C4369D Item > Document > Rich Media Asset Upload a video file. Digital Asset Content Types
Audio 0x0101009148F5A04DDD49CBA7127AADA5FB792B006973ACD696DC4858A76371B2FB2F439A Item > Document > Rich Media Asset Upload an audio file. Digital Asset Content Types
Image 0x0101009148F5A04DDD49CBA7127AADA5FB792B00AADE34325A8B49CDA8BB4DB53328F214 Item > Document > Rich Media Asset Upload an image. Digital Asset Content Types
Web Part Page with Status List 0x010100A2E3C117A0C5482FAEE3D57C48CB042F Item > Document Create a page that displays Status Indicators and Excel workbooks. Business Intelligence
Universal Data Connection File 0x010100B4CBD48E029A4AD8B62CB0E41868F2B0 Item > Document Provide a standard place for applications, such as Microsoft InfoPath, to store data connection information. _Hidden
Design File 0x010100C5033D6CFB8447359FB795C8A73A2B19 Item > Document HTML, JavaScript, CSS, images, and other supporting files in the Master Page Gallery used by HTML Master Pages, HTML Page Layouts, and Display Templates. _Hidden
System Page 0x010100C568DB52D9D0A14D9B2FDCC96666E9F2 Item > Document System Page is a system content type template created by the Publishing Resources feature, and it cannot be modified. To add columns to the Pages library, update the Page content type template. _Hidden
Page 0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF39 Item > Document > System Page Page is a system content type template created by the Publishing Resources feature. The column templates from Page will be added to all Pages libraries created by the Publishing feature. Publishing Content Types
Article Page 0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF3900242457EFB8B24247815D688C526CD44D Item > Document > System Page > Page Article Page is a system content type template created by the Publishing Resources feature. It is the associated content type template for the default page layouts used to create article pages in sites that have the Publishing feature enabled. Page Layout Content Types
Enterprise Wiki Page 0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF39004C1F8B46085B4D22B1CDC3DE08CFFB9C Item > Document > System Page > Page Enterprise Wiki Page is the default content type for the Enterprise Wiki site template. Provides a basic content area as well as ratings and categories. Page Layout Content Types
Project Page 0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF39004C1F8B46085B4D22B1CDC3DE08CFFB9C0055EF50AAFF2E4BADA437E4BAE09A30F8 Item > Document > System Page > Page > Enterprise Wiki Page Project Page is a content type included with the Enterprise Wiki site template. Provides some basic information to describe a project including a project status and a contact name. Page Layout Content Types
Welcome Page 0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF390064DEA0F50FC8C147B0B6EA0636C4A7D4 Item > Document > System Page > Page Welcome Page is a system content type template created by the Publishing Resources feature. It is the associated content type template for the default page layout used to create welcome pages in sites that have the Publishing feature enabled. Page Layout Content Types
Error Page 0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF3900796F542FC5E446758C697981E370458C Item > Document > System Page > Page Error Page is a system content type template created by the Publishing Resources feature. It is the associated content type template for the default page layouts used to create error pages in sites that have the Publishing feature enabled. Page Layout Content Types
Catalog-Item Reuse 0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF3900B46186789C3140CC85BE610336E86BBB Item > Document > System Page > Page The Catalog Item Reuse content type is best if you want to create article pages that can be easily reused or republished across your site collections. Page Layout Content Types
Redirect Page 0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF3900FD0E870BA06948879DBD5F9813CD8799 Item > Document > System Page > Page Redirect Page is a system content type template created by the Publishing Resources feature. It is the associated content type template for the redirect page layout Page Layout Content Types
Translation Package 0x010100E8711F0F931646FA949751442A907B22 Item > Document Translation Package is a system content type template created by the Translation feature, and it cannot be modified. _Hidden
InfoPath Form Template 0x010100F8EF98760CBA4A94994F13BA881038FA Item > Document A Microsoft InfoPath Form Template. _Hidden
Device Channel Mappings 0x010100FDA260FD09A244B183A666F2AE2475A6 Item > Document Device Channel Mappings is a system content type template created by the Mobile and Alternate Device Targeting feature. This content type is used to define device channel mapping files. _Hidden
Form 0x010101 Item > Document Fill out this form. Document Content Types
Picture 0x010102 Item > Document Upload an image or a photograph. Document Content Types
Unknown Document Type 0x010104 Item > Document Allows users to upload documents of any content type to a library. Unknown documents will be treated as their original content type in client applications. Special Content Types
Master Page 0x010105 Item > Document Create a new master page. Document Content Types
Master Page Preview 0x010106 Item > Document Create a new master page preview. Document Content Types
User Workflow Document 0x010107 Item > Document Items for use in user defined workflows. _Hidden
Wiki Page 0x010108 Item > Document Create a new wiki page. Document Content Types
Basic Page 0x010109 Item > Document Create a new basic page. Document Content Types
Web Part Page 0x01010901 Item > Document > Basic Page Create a new Web Part page. Document Content Types
Link to a Document 0x01010A Item > Document Create a link to a document in a different location. Document Content Types
Dublin Core Columns 0x01010B Item > Document The Dublin Core metadata element set. Document Content Types
Event 0x0102 Item Create a new meeting, deadline or other event. List Content Types
Reservations 0x0102004F51EFDEA49C49668EF9C6744C8CF87D Item > Event Reserve resource. List Content Types
Schedule and Reservations 0x01020072BB2A38F0DB49C3A96CF4FA85529956 Item > Event Create a new appointment and reserve a resource. List Content Types
Schedule 0x0102007DBDC1392EAF4EBBBF99E41D8922B264 Item > Event Create new appointment. List Content Types
Issue 0x0103 Item Track an issue or problem. List Content Types
Announcement 0x0104 Item Create a new news item, status or other short piece of information. List Content Types
Link 0x0105 Item Create a new link to a Web page or other resource. List Content Types
Contact 0x0106 Item Store information about a business or personal contact. List Content Types
Message 0x0107 Item Create a new message. List Content Types
Task 0x0108 Item Track a work item that you or your team needs to complete. List Content Types
Workflow Task (SharePoint 2013) 0x0108003365C4474CAE8C42BCE396314E88E51F Item > Task Create a SharePoint 2013 Workflow Task List Content Types
Workflow Task 0x010801 Item > Task A work item created by a workflow that you or your team needs to complete. _Hidden
SharePoint Server Workflow Task 0x01080100C9C9515DE4E24001905074F980F93160 Item > Task > Workflow Task A work item created by a workflow that you or your team needs to complete. _Hidden
Administrative Task 0x010802 Item > Task An administrative work item that an administrator needs to complete. _Hidden
Workflow History 0x0109 Item The history of a workflow. _Hidden
Person 0x010A Item _Hidden
SharePointGroup 0x010B Item _Hidden
DomainGroup 0x010C Item _Hidden
Post 0x0110 Item Create a new blog post. List Content Types
Comment 0x0111 Item Create a new blog comment. List Content Types
East Asia Contact 0x0116 Item Store information about a business or personal contact. List Content Types
Folder 0x0120 Item Create a new folder. Folder Content Types
RootOfList 0x012001 Item > Folder _Hidden
Discussion 0x012002 Item > Folder Create a new discussion topic. Folder Content Types
Summary Task 0x012004 Item > Folder Group and describe related tasks that you or your team needs to complete. Folder Content Types
Document Collection Folder 0x0120D5 Item > Folder Create a new Document Collection Folder _Hidden
Document Set 0x0120D520 Item > Folder Create a document set when you want to manage multiple documents as a single work product. Document Set Content Types
System Media Collection 0x0120D520A8 Item > Folder > Document Set System type for a collection of rich media assets. _Hidden
Video 0x0120D520A808 Item > Folder > Document Set > System Media Collection Upload or link to a video. Digital Asset Content Types
Categories: Uncategorized

Install code . to work on Mac terminal

February 5, 2017 9:35 am Leave a comment

CMD-Shift-P and just pick “Install ‘code’ command in PATH”.

Categories: Uncategorized

Search Recent Content not working

October 18, 2016 10:38 am Leave a comment
If you are having issues with using Recently Changed Content or Popular Content web parts
please ensure you have the following features enabled
Name: SearchConfigContentType
Description : Search Config Data Content Types
Scope: Web
FeatureID: 48a243cb-7b16-4b5a-b1b5-07b809b43f47
Name: SearchConfigFields
Description: Search Config Data Site Columns
Scope Web
FeatureID: 41dfb393-9eb6-4fe4-af77-28e4afce8cdc
Or from UI
search-config-features
Categories: Uncategorized

Double negation Javascript

May 13, 2016 9:42 am Leave a comment

It casts to boolean. The first ! negates it once, converting values like so:

  • undefined to true
  • null to true
  • +0 to true
  • -0 to true
  • '' to true
  • NaN to true
  • false to true
  • All other expressions to false

Then the other ! negates it again. A concise cast to boolean, exactly equivalent to ToBoolean simply because ! is defined as its negation.

Categories: Uncategorized