Welcome to MSDN Blogs
Sign in
|
Join
|
Help
A blog on coding, .NET and life in general....
I know the answer (it's 42)
This Blog
About
Email
Syndication
RSS 2.0
Atom 1.0
Search
Go
Tags
Amazing India
C# / .NET / Coding
Everything else
Fun
Ruby
Software
Team System
Tech
Technology
User interface
News
WhoAmI
Who links to my blog
Web Site
Archives
December 2008 (1)
November 2008 (1)
October 2008 (6)
September 2008 (5)
August 2008 (3)
July 2008 (7)
June 2008 (2)
May 2008 (12)
April 2008 (4)
March 2008 (1)
February 2008 (3)
January 2008 (4)
December 2007 (4)
November 2007 (9)
October 2007 (3)
September 2007 (6)
August 2007 (5)
July 2007 (7)
June 2007 (12)
May 2007 (7)
April 2007 (2)
March 2007 (3)
February 2007 (8)
January 2007 (7)
December 2006 (11)
November 2006 (7)
October 2006 (4)
September 2006 (1)
August 2006 (11)
July 2006 (7)
June 2006 (5)
May 2006 (5)
April 2006 (7)
March 2006 (7)
February 2006 (11)
January 2006 (18)
December 2005 (15)
November 2005 (14)
October 2005 (15)
September 2005 (13)
August 2005 (10)
July 2005 (1)
June 2005 (3)
May 2005 (1)
April 2005 (1)
March 2005 (1)
January 2005 (2)
December 2004 (2)
November 2004 (2)
C# / .NET
Don Box
JFo's coding
Rico Mariani
Mike Stall
Way Ward
Jomo
Eric Lippert
Brad Abrams
Dan Fernandez
Everything else
Larry Osterman
Raymond Chen
Scoble
Joel
Flowstate
Team System
Rob Caron
Brian Harry
buck hodges
James Manning
Browse by Tags
All Tags
»
C# / .NET / Cod...
»
Software
(RSS)
Fun
Tech
Technology
User interface
Friday, November 14, 2008 10:42 AM
Is interlocked increment followed by comparison thread safe?
Sorry about the blog title, my imagination failed me :(. In our internal alias someone asked the question "Is the following thread safe" if(Interlocked.Increment(ref someInt) == CONSTANT_VAL) { doSomeStuff(); } My instant reaction was no because
Posted by
abhinaba
|
7 Comments
Filed under:
C# / .NET / Coding
,
.NET CF
,
Software
,
Technology
Monday, October 27, 2008 10:42 AM
C/C++ Compile Time Asserts
The Problem Run time asserts are fairly commonly used in C++. As the MSDN documentation for assert states " (assert) Evaluates an expression and, when the result is false, prints a diagnostic message and aborts the program. " There is another
Posted by
abhinaba
|
3 Comments
Filed under:
C# / .NET / Coding
,
Tech
,
Software
,
Technology
Wednesday, October 22, 2008 10:42 AM
Silverlight on Nokia S60 devices
In many of my blog posts (e.g. here and here ) I refer to .NET Compact Framework and Symbian OS (S60) and obviously folks keep asking me via comments (or assume) that we are porting .NETCF on S60 devices. So I thought it's time to clarify :) The short
Posted by
abhinaba
|
1 Comments
Filed under:
C# / .NET / Coding
,
Tech
,
.NET CF
,
Software
,
Technology
Monday, October 20, 2008 12:54 PM
Who halted the code
Today a bed time story involving un-initialized variable access and a weird coincidence. Couple of weeks back I was kind of baffled with a weird issue I was facing with the .NET Compact Framework Jitter. We were making the Jitter work for Symbian OS (S60)
Posted by
abhinaba
|
3 Comments
Filed under:
C# / .NET / Coding
,
.NET CF
,
Software
Thursday, October 16, 2008 10:42 AM
Back To Basics: Finding your stack usage
Handling stack overflow is a critical requirement for most Virtual Machines. For .NET Compact framework (NETCF) it is more important because it runs on embedded devices with very little memory and hence little stack space. The .NETCF Execution Engine
Posted by
abhinaba
|
2 Comments
Filed under:
C# / .NET / Coding
,
.NET CF
,
Software
Wednesday, September 17, 2008 10:42 AM
A* Pathfinding algorithm animation screen saver
I'm trying to learn WPF and IMO it is not a simple task. Previously whenever I upgraded my UI technology knowledge it had been easy as it build on a lot of pre-existing concepts. However, WPF is more of a disruptive change. I decided to write some simple
Posted by
abhinaba
|
1 Comments
Filed under:
C# / .NET / Coding
,
Software
,
Technology
Monday, September 15, 2008 10:42 AM
How Many Types are loaded for Hello World
<Updated> Consider the following super simple C# code namespace SmartDeviceProject1 { class Program { static void Main(string[] args) { System.Console.WriteLine("Hello"); } } } Can you guess how many managed Type gets loaded to run this? I was doing
Posted by
abhinaba
|
11 Comments
Filed under:
C# / .NET / Coding
,
.NET CF
,
Software
Thursday, September 11, 2008 4:22 PM
Designer for my path finding boards
I'm writing a small application (or rather a screen saver) that animates and demonstrates A* search algorithm . The idea is simple. On screen you see a start and end point and some random obstacles in between them. Then you see animation on how A* algorithm
Posted by
abhinaba
|
1 Comments
Filed under:
C# / .NET / Coding
,
User interface
,
Fun
,
Software
Monday, July 21, 2008 10:46 AM
String equality
akutz has one of the most detailed post on string interning and equality comparison performance metrics I have ever seen. Head over to the post here I loved his conclusion which is the crux of the whole story. " In conclusion, the String class’s
Posted by
abhinaba
|
1 Comments
Filed under:
C# / .NET / Coding
,
Software
Thursday, July 10, 2008 10:42 AM
Writing exception handlers as separate methods may prove to be a good idea
Let us consider a scenario where you catch some exception and in the exception handler do some costly operation. You can write that code in either of the following ways Method-1 : Separate method call public class Program { public static void Main(string[]
Posted by
abhinaba
|
4 Comments
Filed under:
C# / .NET / Coding
,
.NET CF
,
Software
Tuesday, July 08, 2008 10:42 AM
Do namespace using directives affect Assembly Loading?
The simple answer is no, the inquisitive reader can read on :) Close to 2 year back I had posted about the two styles of coding using directives as follows Style 1 namespace MyNameSpace { using System; using System.Collections.Generic; using System.Text;
Posted by
abhinaba
|
0 Comments
Filed under:
C# / .NET / Coding
,
Tech
,
.NET CF
,
Software
,
Technology