Welcome to MSDN Blogs Sign in | Join | Help

May 2008 - Posts

Cell phone assault

Last two weeks my cell phone got assaulted thrice. First it was someone sending me a virus over bluetooth (a sis file actually). This happened when I was taking a photograph of my daughter with the cell phone camera in a restaurant (Aromas of China, City

Stylecop has been released

Microsoft released the internal tool StyleCop to public under the fancy yet boring name of Microsoft Source Analysis for C# . Even though the name is boring the product is not. You'll love this tool when it imposes consistent coding style across your
Posted by abhinaba | 1 Comments
Filed under: ,

Building Scriptable Applications by hosting JScript

If you have played around with large applications, I'm sure you have been intrigued how they have been build to be extendable. The are multiple options Develop your own extension mechanism where you pick up extension binaries and execute them. One managed
Posted by abhinaba | 3 Comments
Filed under: ,

Model, View, Controller

These days the whole world is abuzz with the Model, View, Controller (MVC) architecture. This is not something new and is known by computer scientists for close to 30 years. I guess the new found popularity is due to the fact that this has heavy application
Posted by abhinaba | 1 Comments
Filed under: ,

You need to be careful about how you use count in for-loops

Lets consider the following code MyCollection myCol = new MyCollection(); myCol.AddRange(new int[] { 1, 2, 3, 4, 5, }); for (int i = 0; i < myCol.Count ; ++i) { Console.WriteLine("{0}", i); } What most people forgets to consider is the condition
Posted by abhinaba | 3 Comments

Alternatives to XML

Though not as much as the Jeff Atwood I don't like overuse of XML as well. In our last project we used XML in a bunch of places where it made sense and also planned to use it in bunch of other places where it didn't. For some strange reason some folks
Posted by abhinaba | 0 Comments
Filed under: ,

What is the similarity between Windows and Textile Industry

...they both use threads and fibers :) Most people are aware of processes and threads. Windows offers an even finer granularity over execution. This is called Fiber . To quote MSDN A fiber is a unit of execution that must be manually scheduled by the
Posted by abhinaba | 0 Comments
Filed under: ,

My workstation layout

Our team just moved to a new building in Microsoft India campus. A lot of people were going around checking out other people's office. I got asked couple of times about my workstation layout and thought I'll do a quick post on that. Like most people in
Posted by abhinaba | 3 Comments
Filed under: , ,

Struggling with email overload

It literally rains email at Microsoft (if you've been to Seattle/Redmond you know why :) ) I've always struggled to keep up with the email in Microsoft. When I joined I was stunned with the downpour. The number of email I got on the first day was more
Posted by abhinaba | 3 Comments
Filed under: ,

Moving blogs to http://geekgyan.blogspot.com/

  It's been a drag maintaining two blogs for some time now. So going forward I'll shift to posting only on my personal blog. I'll be cross posting for some more time and then stop this blog. The new address is: http://geekgyan.blogspot.com/ Point
Posted by abhinaba | 0 Comments
Filed under:

Forcing a Garbage Collection is not a good idea

  Someone asked on a DL about when to force a GC using GC.Collect. This has been answered by many experts before, but I wanted to re-iterate. The simple answer is "extremely rarely from production code and if used ensure you have consulted the
Posted by abhinaba | 3 Comments

Ensuring only one instance of an application can be run and then breaking that approach

A question posted on a DL was as follows " I have an application that allows only one instance on the desktop, how do I force it to open multiple instance for some testing purposes ". Disclaimer : Note that this is kinda hacky and only relevant if you
Posted by abhinaba | 1 Comments
Filed under: ,
 
Page view tracker