May 30, 2010

New Look

It took me only 5 minutes to make complete change of my blog's look and feel. Blogger has cool feature "Pick Template" which makes our life easier.

Thanks for the blogger and guys who creating templates.

Mar 31, 2010

Skinput - Turns your body into an interface

Microsoft and Carnegie Mellon University, doing research for Skinput and showing how it can turn your body into an interface.   This product is still only POC. Check this video.



Sources:
http://www.bcs.org/server.php?show=conWebDoc.34927
http://www.msnbc.msn.com/id/35708587

Inside Microsoft Chicago data center

Microsoft opened its Chicago Data Center late last year. In its first phase, the ground floor of the facility is designed to hold up to 56 containers, each filled with anywhere from 1,800 to 2,500 servers.

Further said , building the data center required 2,400 tons of copper, 3,400 tons of steel, 26,000 cubic yards of concrete, and 190 miles of conduit.


More...

Mar 4, 2010

Calculating Elapsed Time Accurately (C#)

To calculate elapsed time in our code, we normally do ,

DateTime stTime = DateTime.Now;
.....
// Do some work here
....
DateTime etTime = DateTime.Now;
TimeSpan ts = etTime – stTime;
But, this method won’t always give accurate value. I found Stopwatch class in System.Diagnostics namespace to calculate accurate elapsed time. Should look into it.

using System;
using System.Diagnostics;
using System.Threading;
class Program
{
    static void Main(string[] args)
    {
        Stopwatch stopWatch = new Stopwatch();
        stopWatch.Start();
        Thread.Sleep(10000);
        stopWatch.Stop();
        // Get the elapsed time as a TimeSpan value.
        TimeSpan ts = stopWatch.Elapsed;

        // Format and display the TimeSpan value.
        string elapsedTime = String.Format("{0:00}:{1:00}:{2:00}.{3:00}",
            ts.Hours, ts.Minutes, ts.Seconds,
            ts.Milliseconds / 10);
        Console.WriteLine(elapsedTime, "RunTime");
    }
}

Above example directly taken from MSDN. For more information check this link, http://msdn.microsoft.com/en-us/library/system.diagnostics.stopwatch.aspx

Feb 14, 2010

Feb 10, 2010

Challenge your world: Day Final

The sessions that I attended today, I can categorized into three.
  1. Technical (Most of the time)
  2. ASP.net 4.0 by Seok Chern.
    • He has showed us new features of ASP.net. Like background task, async file uploading, email verification etc.
    • AppFabric- without setting up webfarms we can distribute load across multiple servers. 
    • CSS Sprites- If you have 4 images to show in the page, typically asp.net will call 4 server request to get those image files from the folder. But using Sprites technique asp.net runtime will get those 4 images as 1 image from the folder and show it in the page.  
    • SmartyRoute – eg: we can omit file extension in the browser address bar but still load the resource. You can type http://www.foo.com/category instead of http://www.foo.com/category.aspx .
      SmatyRoute enables load dynamic pages based on the parameters given in the URL.
  3. Promotional
    • Microsoft Dynamics introduction were held by Krishnan Muralidharan.
    • Lisa Tay showed us xRM as a rapid application development freamwork with some case studies.
  4. Tactical
    • Madhusudan Kohil & Rahul Pahwa delivered a practical topic these days Green IT. We also learnt that we still have opportunities to save Green in terms of IT. They showed us how Microsoft has adopt this strategy and how far success them.
    • Freddy Tan, security advisor for Microsoft Asia, has delivered yet another good session to the gathering about IT security risks.
Today is the final day of Tech Ed 2010 Sri Lanka. I am truly thanks full to all the speakers and Microsoft with other sponsors to make this happen in Sri Lanka.

Feb 9, 2010

Challenge your world: Day Two

Bruce Schneier, The security guru – The Economist , delivered a speech under topic Re conceptualizing Security. In that one hour session, he convince us that he is a real security guru. And he discussed what security models passed down with our generations and how it think in that way to apply security concepts in IT. Though it is not technical session but quite interesting one which change the way thinking of security.


Its took my attention what he explained about Feelings, Model and Reality in terms of security.

In the next session, Prasanna Amirthalingam has presented Tips & Tricks with WCF 4.0. Some of the interesting things are,
  • Missing address discovery using UDPDiscoveryService
  • Service request routing
  • Validating inputs (Parameter Inspectors) in WCF pipeline which will enable to plug or unplug without modifying the current WCF service.
  • Caching
  • Implementing REST principle
Pinal Dave showed us the other side of SQL Server index which we already know but use it wrong way. It is also interesting session that attracted everyone’s’ attention. He proved us worst cases when using index without knowing it. The conclusion of this session is,
  1. Drop unused indexes
  2. Always have clustered index
  3. Use filtered index( new to Ms-SQL 2008)
  4. Use User Defined Functions(UDF) wisely.

I have learnt lot of things today and as a totally I’m happy for the day with tech ed.

MEC: How to Set Message Counter for EDI Message

When you sending/creating EDI messages it is necessary to include unique message interchange number. This is to ensure each message that we ...