MediaSuite.NET

20 בנובמבר 2012

Overview: MediaSuite.NET is the independent Multimedia Framework for Microsoft .NET. Providing unmatched performance and flexibility for all your Multimedia needs. Self contained and independent of other frameworks such as Directshow, Media Foundation or FFmpeg, MediaSuite.NET features all aspects usually only provided through native frameworks and functionality sold by multiple vendors. With MediaSuite, everything is in the box. Ready for use commercially. ttp://www.streamcoders.com/ Sample Code: RTP Reception, H.263 decoding and display CamCapture.NET, WaveInput & WaveOutput Audio Encoder/Decoder setup and feedback loop Using AVIWriter.NET...
תגיות: , , , , , ,
5 תגובות

Patterns for Parallel Programming Document

19 בדצמבר 2010

Understanding and Applying Parallel Patterns with the .NET Framework 4 Overview: This document provides a detailed and in-depth tour of support in the Microsoft® .NET Framework 4 for parallel programming. This includes an examination of common parallel patterns and how they’re implemented without and with this new support in the .NET Framework, as well as covering best practices for developing parallel components utilizing parallel patterns. Stephen ToubParallel Computing Platform Download: http://www.microsoft.com/downloads/en/details.aspx?FamilyID=86B3D32B-AD26-4BB8-A3AE-C1637026C3EE
תגיות: , , , ,
10 תגובות

Running ADPlus on a Windows Server 2008

16 בדצמבר 2010

What does ADPlus do?ADPlus is console-based Microsoft Visual Basic script. It automates the Microsoft CDB debugger to produce memory dumps and log files that contain debug output from one or more processes. The following are the three steps to run ADPlus command: 1. Open a command prompt as an administrator. Note: The reason I wrote this post is because without running the command as an administrator you can’t create a dump file. It took me some time to figure out why I could not create a dump file. I want to believe this post will save some time...
תגיות: , , , ,
10 תגובות

How To Create Forms Authentication Cookies

31 במאי 2009

What is Forms Authentication Cookies: Forms authentication cookie is the container for forms authentication ticket. The ticket is passed as the value of the forms authentication cookie with each request and is used by forms authentication, on the server, to identify an authenticated user. IIS Authentication: ASP.NET authentication is a two-step process. First, Internet Information Services (IIS) authenticates the user and creates a Windows token to represent the user. IIS determines the authentication mode that it should use for a particular application by looking at IIS metabase settings. If IIS is configured to use anonymous authentication, a token for the IUSR_MACHINE...
28 תגובות

How to measure elapsed time in C# with Stopwatch class

1 באפריל 2009

In this post I will discuss how to measure elapsed time in C# with Stopwatch class. What is a Stopwatch: Stopwatch class provides a set of methods and properties that you can use to accurately measure elapsed time. In a simple scenario we call the Start method, then eventually call the Stop method, and then you check elapsed time using the Elapsed property. Stopwatch class depends on the hardware available in your computer and implements the high-resolution performance counter API functions of Windows. Example: The following example shows how to create Stopwatch object, call the Start method,  call the Stop method, call the Reset...
תגיות: , ,
1,819 תגובות

How to Get Data from Resource Files in ASP.NET 2.0

29 במרץ 2009

In this post I will present how to access data from resource files in an ASP.NET 2.0 web application. Example: The following code creates ResourceManager object and loads data from a resource file. ResourceManager myResourceManager; ResourceSet rs; Assembly vResAssembly = Assembly.Load(new AssemblyName(AssemblyName)); myResourceManager = new ResourceManager(baseName, vResAssembly); rs = myResourceManager.GetResourceSet(CultureInfo.CurrentCulture, true, true);   The following code shows how to convert ResourceManager object to list of items. rs = DataAccesss.GetResourceData(resourceName); Dictionary<object, object> dict = new Dictionary<object, object>(); /* populate dictionary */ IDictionaryEnumerator en = rs.GetEnumerator(); while (en.MoveNext()) { dict.Add(en.Key, en.Value); } List<KeyValuePair<object, object>> summaryList = new List<KeyValuePair<object, object>>(); summaryList.AddRange(dict); The following code shows a DropDownList bound to a list of items. <asp:DropDownList ID="ddlCountry" runat="server"...
35 תגובות

Cross Browser Copy To the Clipboard with JavaScript and Flash

26 במרץ 2009

When we want to copy text to the clipboard in the browser Internet Explorer, then the copyToClipboard function uses the window.clipboardData.setData function to set the clipboard data. Otherwise, the browser creates an embedded flash object, and adds the data to flash using a parameter.  Example: The following code present easy way to copy text from textarea to the clipboard using JavaScript and Flash object. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Cross Browser Copy To Clipboard</title> <script type="text/javascript" language="javascript"> 1:  2: ...
54 תגובות

How to Compress and Decompress using GzipStream object in C#

24 במרץ 2009

Below is the implementation of the compress and decompress methods using GzipStream class. Example: The method shows how to compress a text. public static string Compress(string text){ byte buffer = Encoding.UTF8.GetBytes(text); MemoryStream ms = new MemoryStream(); using (GZipStream zip = new GZipStream(ms, CompressionMode.Compress, true)) { zip.Write(buffer, 0, buffer.Length); } ms.Position = 0; MemoryStream outStream = new MemoryStream(); byte compressed = new byte; ms.Read(compressed, 0, compressed.Length);...
68 תגובות

How to Encoding and Decoding Base64 strings in C#

22 במרץ 2009

In this post I’ll show how to encodes and decodes Base64 strings. Example: The method shows how to create a Base64 encoded string from a plain text. /// <summary> /// The method create a Base64 encoded string from a normal string. /// </summary> /// <param name="toEncode">The String containing the characters to encode.</param> /// <returns>The Base64 encoded string.</returns> public static string EncodeTo64(string toEncode) { byte toEncodeAsBytes = System.Text.Encoding.Unicode.GetBytes(toEncode); string returnValue = System.Convert.ToBase64String(toEncodeAsBytes); return returnValue; } The method shows how to decode a...
תגיות: , , ,
114 תגובות

How to create Web Request from .NET applications.

19 במרץ 2009

Sometimes we need to access external resources on the Web from our applications.One way to do it is to create WebRequest instances through the WebRequest.Create method.   Example:   The following example demonstrates how to create web request and retrieve the results .   // Create a request for the URL. WebRequest request = WebRequest.Create(url); // If required by the server, set the credentials. request.Credentials = CredentialCache.DefaultCredentials; // Get the response. HttpWebResponse response = (HttpWebResponse)request.GetResponse(); // Get the stream containing content returned by the server. Stream dataStream = response.GetResponseStream(); // Open the stream using a StreamReader for easy access. StreamReader reader = new StreamReader(dataStream); //...
תגיות: , , ,
37 תגובות