Thursday, November 9, 2017

Cross-origin resource sharing [CORS]

Cross-origin resource sharing (CORS) is a mechanism that allows restricted resources (e.g. fonts) on a web page to be requested from another domain outside the domain from which the first resource was served. A web page may freely embed cross-origin images, stylesheets, scripts, iframes, and videos. Certain "cross-domain" requests, notably Ajax requests, however, are forbidden by default by the same-origin security policy.

References:
1.) https://msdn.microsoft.com/en-us/magazine/dn532203.aspx

2.)https://en.wikipedia.org/wiki/Cross-origin_resource_sharing#How_CORS_works


Thursday, March 23, 2017

Copy files from folders and sub folders to destination folder

Command to copy all files with an extension from folders and sub-folders to a single destination folders

Example: copy all pdf files in folders and sub folders of source folder to destination folder

for /R D:\SourceFolder %f in (*.pdf) do copy "%f" D:\DestinationFolder\

Wednesday, March 22, 2017

What is Visual Studio Code

"Visual Studio Code" A lightweight & powerful source code editor which runs on desktop and is available for Windows, mac OS and Linux.

It comes with built-in support for JavaScript, TypeScript and Node.js and has a rich ecosystem of extensions for other languages like C++, C#, Python, PHP, Go) and runtimes

Download it from here 

https://code.visualstudio.com/docs?dv=win&wt.mc_id=DX_841432&utm_source=vscom&utm_medium=ms%20web&utm_campaign=VSCOM%20Home&sku=codewin

For more details https://code.visualstudio.com/docs/?dv=win

What's new for VC++ in Visual Studio 2017

What's New for Visual C++ in Visual Studio 2017
---------------------------------------------------------------------
https://docs.microsoft.com/en-gb/cpp/what-s-new-for-visual-cpp-in-visual-studio


Community Edition Download link
https://www.visualstudio.com/thank-you-downloading-visual-studio/?sku=Community&rel=15