Helpful tools

Extend SharePoint trial:

https://www.365admin.com.au/2017/02/how-to-get-180-day-trial-tenant-in.html

https://robertgabos.wordpress.com/2018/05/31/office-365-dev-program-1-year-free-and-extra-microsoft-fasttrack-sandbox-tenant/

JsonViewer for Notepad++https://github.com/kapilratnani/JSON-Viewer/releases

Make a cab file using definition: http://blogbaris.blogspot.com/2012/05/copy-sharepoint-lists-between-sites.html

  • Create a new file in the folder that you want to make a cab file and rename it to “definition.ddf”
  •  Open the .ddf file and paste the fallowing code inside:
; DIAMOND Directive File (.ddf)
.OPTION EXPLICIT
; Generate errors on variable typos
.Set CabinetNameTemplate=mylist.stp
.Set Cabinet=on
.Set Compress=on

;The files specified below are stored, compressed, in the cabinet file
30000000.000
manifest.xml
  • Open the DOS command promp and go to the mylists folder. Type the following command:Open the DOS command promp and go to the mylists folder. Type the following command:
makecab /f definition.ddf
  • The result should end in a mylist.stp file within a subfolder.

Run Hyper-V and VMware virtual machines on Windows 10https://weblogs.asp.net/dixin/run-hyper-v-and-vmware-virtual-machines-on-windows-10

How to run Hyper-V nested in VMware Workstation: https://4sysops.com/archives/how-to-run-hyper-v-under-vmware-workstation/

SharePoint Permission Report: Check Access Rights for a Specific User:
http://www.sharepointdiary.com/2013/01/permission-report-for-specific-user.html

Weather widget: https://codepen.io/weatherwidget/pen/OjXqyp

<a class=”weatherwidget-io” href=”https://forecast7.com/da/56d269d50/denmark/&#8221; data-label_1=”DENMARK” data-label_2=”WEATHER” data-font=”Open Sans” data-icons=”Climacons Animated” data-theme=”gray” >DENMARK WEATHER</a>

$(document).ready(function () {

console.log(‘ready’);
weatherWidget(document,’script’,’weatherwidget-io-js’);

});

function weatherWidget(d,s,id){
console.log(‘running’);
var js,fjs=d.getElementsByTagName(s)[0];
if(true){js=d.createElement(s);
js.id=id;js.src=’https://weatherwidget.io/js/widget.min.js&#8217;;
fjs.parentNode.insertBefore(js,fjs);
}
}

Switch user in Visual Studio: https://kennekro.net/2017/07/switch-user-in-visual-studio/

To be Continue …

SharePoint online – Tips

Vietnamese for SharePoint Online

  1. Go to https://eur.delve.office.com/
  2. Edit Profile
  3. Edit region and language
  4. Select Vietnamese

Custom action – inject the js files to the site

http://johnliu.net/blog/2015/12/the-safest-future-proof-way-to-brand-your-sharepoint-and-sharepoint-online

https://sharepoint.stackexchange.com/questions/192126/adding-jslink-through-javascript/192132

Datetime problem:

https://stackoverflow.com/questions/2292334/difference-between-utc-and-gmt-standard-time-in-net

 

Add O365 account as a member of Visual Studio Online project

For testing purpose, follow this article to create a free 30-day trial of Office 365 Developer account.

When everything are ready, you should have an account and all the related apps like this:

7

In my case, my account is: admin@testingtableau.onmicrosoft.com

And, if you want to add this account to your Visual Studio Online project. Go to “Members” and add new user:

8.PNG

In the popup, type the account there, but unlucky, you see something like “No identities found”:

9

Don’t worries, just go ahead and click on “Save changes”.

Then, use another browser (or another user on same browser) and access to your project link, my case: https://mysub.visualstudio.com/myproject

The login form will display for you to enter your account, but ops! What the hell is this?

10

Most of us will give-up at this time, but why? Why don’t you just go ahead and create a Microsoft account similar with O365 account and use it for both?

11

Then, go with some other steps and you are ready to use that account for your Visual Studio Online project.

Annoying, because they are still 2 difference users. So you still need to select a correct type when you want to access to any of them.