December 1, 2012
.NET, All, CodeSnippets, Community, DevLabs, Help Links, Microsoft, Microsoft Press, MSDN, Must-Have, Recommends, VisualStudio, VS2012, Windows, Windows 8, Windows Server 2012, Windows Store
December 1, 2012
- MCSD: Web Applications
- MCSD: Windows Store Apps using HTML5
FREE TRAINING RESOURCES FOR 70-480! & HOW TO PREPARE FOR THIS EXAM
- Attend the training session https://www.microsoftvirtualacademy.com/tracks/developing-html5-apps-jump-start
- Complete the training session. Now you will have enough knowledge to write the exam. But remember to practice what you have learnt.
- Additionally Prepare for your certification exams and boost your dev skills with:
You can download the eBook in PDF format here: http://go.microsoft.com/FWLink/?Linkid=270056 (17.9 MB)
EPUB format is here: http://go.microsoft.com/FWLink/?Linkid=272592 (37.3 MB)
MOBI format is here: http://go.microsoft.com/FWLink/?Linkid=272591 (69.5 MB)
Download the Updated Companion Content Set for the Book (source code samples) (59MB)
FREE EXAM VOUCHER FOR 70-480!
- Just use this voucher code when scheduling your exam: HTMLJMP (voucher code available through 3/31/2013 or while supplies last.)
HOW TO TAKE THE EXAM
- Use the voucher code HTMLJMP to get the free exam.
That’s it you are an HTML5 Programmer or a beginner and you want to prove your HTML5 development skills – then this is the right time. You will have the time till 03/31/2013 and till stocks last. Happy Programming.. Remember sharing is caring, so share with your friends.
Courtesy: Microsoft Learning & Microsoft Virtual Academy
November 28, 2012
.NET, .NET Framework, All, Community, DevLabs, KnowledgeBase, Microsoft, Microsoft SDKs, MSDN, VisualStudio, VS2012, Windows, Windows Phone, Windows Phone 7.0, Windows Phone 7.1 SDK, Windows Phone 7.5, Windows Phone 7.8, Windows Phone 8, Windows Phone Development, Windows Phone SDK
Hands on Labs for the Windows Phone 8 Developer Platform.
The hands on labs in this package immerse you in Windows Phone 8 development, by walking you building a set of applications that demonstrate many of the most compelling new features for developers in Windows Phone 8
DOWNLOAD: Windows Phone 8 Training Kit
October 22, 2012
.NET, .NET Framework, .NET Framework 4.5, All, Back-2-Bascis, BCL(Base Class Library), C#.NET, Codes, CodeSnippets, DevLabs, Foundations, Help Articles, KnowledgeBase, Microsoft, Updates, VB.NET, VisualStudio, VS2012, Windows
In my previous post I shared some information on API’s/Classes included as part of System.IO.Compression namespace in .NET Framework 4.5, and given on overview of ZipArchive class. Once such class I would be sharing some insight with post today would be ‘ZipFile‘ class. The ZipFile class provides convenient static methods for working with zip archives:
- CreateFromDirectory (3 overloads) – Creates a zip archive that contains the files and directories from the specified directory, uses the specified compression level and character encoding for entry names, and optionally includes the base directory.
- ExtractToDirectory ( 3 overloads) – Extracts all the files in the specified zip archive to a directory on the file system and uses the specified character encoding for entry names.
- Open (2 overloads) – Opens a zip archive at the specified path, in the specified mode, and by using the specified character encoding for entry names.
- OpenRead – Opens a zip archive for reading at the specified path.
To use these methods, you must reference the System.IO.Compression.FileSystem assembly in your project.
- The System.IO.Compression.FileSystem assembly is not available for Windows Store apps. Therefore, the ZipFile class and ZipFileExtensions class (which is also in the System.IO.Compression.FileSystem assembly) are not available in Windows Store apps.
- In Windows Store apps, you work with compressed files by using the methods in the ZipArchive, ZipArchiveEntry, DeflateStream, and GZipStream classes.
Now the time for creating some sample application.
For the purpose of explaining how to use the above methods – I followed the below steps :
- Created a console application in visual studio.
- Added Reference to System.IO.Compression and System.IO.Compression.FileSystem assemblies which is part of .NET Framework 4.5.
- Created a folder called “Files” and created some plain text files(.txt extension) , this would be out source folder to zip. And created two additional folder for storing zip files(Output) and ExtractLocation folder to extract the zip files.
- and the below sample code snippet is the implementation/usage.
<code><p>Sample code snippet:</p> <div> <pre class="brush: c#;">
static void Main(string args)
// AppDomain.CurrentDomain.BaseDirectory refers to the
//folder in which the executable or binaries are executing.
// E.g. ConsoleApp02ConsoleApp02binDebug
string startPath = AppDomain.CurrentDomain.BaseDirectory + "\Files";
string zipPath = AppDomain.CurrentDomain.BaseDirectory + "\Output";
string zipFilePath = zipPath + "\" + System.Guid.NewGuid().ToString() + ".zip";
<code> string extractPath = AppDomain.CurrentDomain.BaseDirectory + &quot;\ExtractLocation&quot;;
//just a fail-safe to create folders if not exists.
//Creating a zipFile from folder
//Unzipping a zipFile to a folder
Console.WriteLine(&quot;Press Any key to exit...&quot;);
Hope this post is informative. Please keep share this post and give your comments/feedback. Happy coding!
Watch the keynote from the Build developer conference and check out technical sessions from the Windows engineering team.