Archive | Articles RSS feed for this section

Groupon – A Tech Company With Zero Research and Development

This Post was originally published at Core Earnings.com In its offering prospectus Groupon billed itself as a ‘local e-commerce’ company which brings ‘the brick and mortar world of local commerce onto the internet’ which clearly defines it as an online tech business. It is therefore nothing less than astonishing to see no Research & Development […]

Read more

Compressing in Memory using MemoryStream

Sometimes you need to compress entirely in memory. Here’s how to use a MemoryStream for this purpose: byte[] data = new byte[1000]; // We would expect a good compression ratio from an empty array! var msObj = new MemoryStream(); using (Stream ds = new DeflateStream (msObj, CompressionMode.Compress)) ds.Write (data, 0, data.Length); byte[] compressed = msObj.ToArray(); Console.WriteLine (compressed.Length); […]

Read more

Compression Using DeflateStream and GZipStream

The .NET System.IO.Compression namespace provides two general purpose compressions streams –  DeflateStream and GZipStream. Both these compressions streams use popular compression algorithm which is similar to that used by the ZIP format. The difference is that GZipStream writes an additional protocol at the start and at the end which includes a CRC to detect  errors. The GZipStream also […]

Read more

Using the Parallel Class in C# – Run Tasks in Parallel on Multiple Processors or Cores

The Parallel Class can be used to split up the tasks which work on the data. For example if you have iterative code that looks like the below code: //6 parts of the book string[] inputTextFiles = { “part1.txt”, “part2.txt”, “part3.txt”, “part4.txt”, “part5.txt”, “part6.txt” }; foreach (string file in inputTextFiles) { string contentStr = File.ReadAllText(file); CountCharacters(contentStr); […]

Read more

Using the Parallel Class in C# – Processing Data in Parallel across Multiple Processors or Cores

The new Task Parallel Library introduced with .NET 4, allows you to easily split code execution onto multiple processors without using threads or locks. For a task which is easily split into independent sub-tasks, or data that can be partitioned and computed separately you can use the Parallel class in System.Threading to assign tasks to […]

Read more

Using Azure CDN (Content Delivery Network) In Your App

The Windows Azure CDN is a convenient way for application developers to minimize latency that geographically dispersed application users will experience. As of as of February 2010, the Azure CDN is currently in CTP and incurring no charges.

Read more

Add Azure Storage to an Azure Application

We previously looked at Creating an Azure App in Visual Studio and then Deploying the App on Azure . The application we built was a very simple one requiring no storage, we now turn our attention to extending the demo application to include Azure Storage. For this example we will use the blob storage in […]

Read more