Posts

Docker - Network commands

 List out all networks that are running with Docker docker network ls View details info of a network docker network inspect network_name (or id) ex: docker network inspect network bridge We can check Container :{} to view all containers are connecting via this network Check container info docker inspect container_Name (or id) Create a new network docker network create --driver bridge networkName Remove a network docker network rm networkName Run Docker with Specific Network docker run -it --name DockerName --network networkName imageName Attach Container that is running with a network docker network connect networkName containerName

Enable CDN in your Office 365 tenant

https://support.office.com/en-us/article/use-the-office-365-content-delivery-network-with-sharepoint-online-bebb285f-1d54-4f79-90a5-94985afc6af8 Connect-SPOService -Url https:// contoso-admin .sharepoint.com Get-SPOTenantCdnEnabled -CdnType Public Get-SPOTenantCdnOrigins -CdnType Public Get-SPOTenantCdnPolicies -CdnType Public Set CDN Public Set-SPOTenantCdnEnabled -CdnType Public Get-SPOTenantCdnOrigins -CdnType Public Set CDN Private Set-SPOTenantCdnEnabled -CdnType Private Get-SPOTenantCdnOrigins -CdnType Private Set both CND Private and Public Set-SPOTenantCdnEnabled -CdnType Both -Enable $true To change the list of file types to include in the Office 365 CDN Get-SPOTenantCdnPolicies -CdnType <Public | Private> Set-SPOTenantCdnPolicy -CdnType <Public | Private> -PolicyType IncludeFileExtensions -PolicyValue "< Comma-separated list of file types >" To add an origin for your assets Add-SPOTenantCdnOrigin -CdnType ...

Provision a new Publishing Site: The site is not valid. The 'Pages' document library is missing.

  http://blogs.technet.com/b/stefan_gossner/archive/2011/09/15/common-error-the-site-is-not-valid-the-pages-document-library-is-missing-error.aspx Fix: Waiting for the Publishing Feature at Web is completed and provides the ["__PublishingFeatureActivated"] and ["__PagesListId"]: Because, the PublishingWeb will get the PageList via ["__PagesListId"]. property.    while (!(subweb.AllProperties["__PublishingFeatureActivated"].ToString().Equals("True",StringComparison.InvariantCultureIgnoreCase)) ||                                         !(subweb.AllProperties["__PagesListId"].ToString().Equals(PublishingWeb.GetPagesListId(subweb).ToString(),StringComparison.InvariantCultureIgnoreCase)))             {    ...

A duplicate field name ‘X’ was found.

  When adding a custom Content Type that contains a metadata field to SPList/Library, you can get the error message: A duplicate field name ‘X’ was found. ( X can be the Name or ID (GUID) of metadata field). Our custom Content Type is provided via a feature. The problem comes from the order of Metadata fields in Content Type, the Note field should be after the Metadata field. <FieldRef ID="{F88D530B-705F-488A-9069-FAF5C79B61F7}" Name="RegionalOffice"/> <FieldRef ID="{9EDAB26E-CC44-4027-AB05-CB44EA3A6F72}" Name="RegionalOfficeTaxHTField0"/> If the .order of Note field is above the Metadata field like below, you can get the error. <FieldRef ID="{9EDAB26E-CC44-4027-AB05-CB44EA3A6F72}" Name="RegionalOfficeTaxHTField0"/> <FieldRef ID="{F88D530B-705F-488A-9069-FAF5C79B61F7}" Name="RegionalOffice"/>

Checking browser types

Image
  In SharePoint 2010, we have an object in JavaScript ( browseris ) from init.js that supports to detect the current browser that user is using. In SharePoint 2013 this object has some more new browser types like ipad, msTouch,win8AppHost…. This object very useful in SharePoint 2013 when almost operations in SharePoint can do via JavaScript.

IE F12 - Debug JavaScript in MVC - Partial View

Image
Refer this topic to use IE F12 Debugger: http://msdn.microsoft.com/en-us/library/ie/gg699336(v=vs.85).aspx But with JavaScript code that includes in MVC Partial Views, it's not easy to debug. There is a away to debug the JavaScript by adding the debugger on JavaScript source code. Make sure the F12 of IE is active.

Configure Excel Services data access by using external data connection

Image
  Configure data access account - Log on to AD server, and create an account to access data source. Example: ExcelODCAccess Grant Read access to data source Set the Db_datareader to data source Configure Secure Store Services In the Secure Store target application, we will map a specific AD Group to the ExcelODCAccess account, Excel Services will use this account on their behalf to refresh data-connected workbooks. - Create an AD Group on AD Server, example: ExcelODCAccessGroup - Add accounts to this AD Group: User1, User2 Create a target Application on Secure Store Services - Open SharePoint 2010 Central Administration –> Application Management –> Manage Service Applications - Open Secure Store Service - New - Configure New Secure Store Service Target Application - Next Associate the account (ExcelODCAccess) use to access data source to Target Application - Set Credentials Create and publish an ODC file - Open Excel 2010 from a client PC and create a connection to ...