I know the answer (it's 42)
A blog on coding, .NET, .NET Compact Framework and life in general....
One of the most interesting machine which I've ever seen - II
Last year I had posted about a a drum playing machine I had seen. This time I got a full video of it...
Author: Abhinaba Basu [MSFT] Date: 10/20/2007
Mutable objects and hashcode
Mutable objects can lead to situation wherein it can be put into a hash but never retrieved from it...
Author: Abhinaba Basu [MSFT] Date: 10/18/2007
World Teacher's day
Today is world teacher's day, a day dedicated to some of the most important people in our lives. For...
Author: Abhinaba Basu [MSFT] Date: 10/04/2007
Non-virtual calls to virtual methods
C# compiler is known to emit virtual calls for non-virtual methods (callvirt instead of call IL...
Author: Abhinaba Basu [MSFT] Date: 09/27/2007
Unions in C#
Usage of unions in the native world is pretty common. However, the same is not true for the .NET...
Author: Abhinaba Basu [MSFT] Date: 09/25/2007
Cool new C# syntactic sugar
Just the other day I ranted about all the explicit get; set; implementation and I found this out...
Author: Abhinaba Basu [MSFT] Date: 09/21/2007
Coding conventions
<rant> Most of the coding convention I've seen being used by SW houses seems to promote...
Author: Abhinaba Basu [MSFT] Date: 09/11/2007
Geek talk - Soul searching
Author: Abhinaba Basu [MSFT] Date: 09/03/2007
Sharing enums across C# and C++
On an internal DL someone asked a question about how folks share enums between C++ and C# code when...
Author: Abhinaba Basu [MSFT] Date: 08/27/2007
Interesting Linked-List problem
Here's another problem which was given to me by Amit. I had lots of fun solving this :) Consider two...
Author: Abhinaba Basu [MSFT] Date: 08/16/2007
Dark UI Background
I have always been a fan of dark UI-backgrounds, especially for code-editors. I used dark schemes...
Author: Abhinaba Basu [MSFT] Date: 08/06/2007
First Rosario CTP is out
If you follow other VSTS blogs, I'm sure you are already aware of the first ever CTP of Microsoft®...
Author: Abhinaba Basu [MSFT] Date: 08/04/2007
Reverse string
A friend of mine forwarded me this nice little problem he got asked in some interview. Write code to...
Author: Abhinaba Basu [MSFT] Date: 08/02/2007
Tail recursion on .NET
What's tail recursion If you know its nothing to do with any of your pet's tail then get onto the...
Author: Abhinaba Basu [MSFT] Date: 07/27/2007
Easy way to modify IL code
Sometimes I try to write a little bit of IL code or modify bits and pieces here and there (specially...
Author: Abhinaba Basu [MSFT] Date: 07/26/2007
Type cast to generic type
The following question got posted to one of the internal DLs. Why does the following fail to...
Author: Abhinaba Basu [MSFT] Date: 07/10/2007
Difference in conversion of anonymous method and lambda expression
Consider the following classdelegate void Moo(int a, int b, int c); class A { public event Moo moo;...
Author: Abhinaba Basu [MSFT] Date: 07/09/2007
Writing in reverse
As a kid, like most other kids I used to spend time learning to do weird things like write in...
Author: Abhinaba Basu [MSFT] Date: 07/02/2007
VSTS Source Control Annotation
One of the coolest feature of the upcoming Orcas release is the Source-Control file Annotation...
Author: Abhinaba Basu [MSFT] Date: 06/26/2007
Using Trace-Points in Visual Studio
Even though everyone knows about break-points, trace points seem to have been used way less....
Author: Abhinaba Basu [MSFT] Date: 06/21/2007
It's Link
I saw the same thing in TechMela which Dinesh reported. Many attendees was pronouncing LINQ as "link...
Author: Abhinaba Basu [MSFT] Date: 06/21/2007
The difference between is and as and dealing with FxCop Warning CA1800: variable is cast multiple times
I had the following codepublic static void f1(object ob) { if (ob is Foo && ((Foo)ob).m ==...
Author: Abhinaba Basu [MSFT] Date: 06/21/2007
Which font do you use for your resume
I had asked this before, but this time the question is "which font do you use for your resume?". The...
Author: Abhinaba Basu [MSFT] Date: 06/19/2007
Static method calls in generics
I go this question from a blog reader. "The following code should be possible public class Class1 {...
Author: Abhinaba Basu [MSFT] Date: 06/19/2007
The Microsoft Sourcer is here
I had never heard of this position before either , but in case you are looking for working with...
Author: Abhinaba Basu [MSFT] Date: 06/18/2007
I'll be going to TechMela 2007
Like TechEd, here in India we are having TechMela this year. This time the venue is Mumbai and I'll...
Author: Abhinaba Basu [MSFT] Date: 06/11/2007
Interviewing with Microsoft India
"What to expect in the interview" I've had this question from candidates that I have referred or...
Author: Abhinaba Basu [MSFT] Date: 06/11/2007
Adding Trace to a .NET application and listening to it
Just yesterday I was chatting with a friend and he was telling me how they are writing a thread-safe...
Author: Abhinaba Basu [MSFT] Date: 06/07/2007
SPAM is served
When I was deleting spam from the spam folder of one of my personal email accounts, the...
Author: Abhinaba Basu [MSFT] Date: 06/04/2007
Microsoft Surface
I'm sure you have heard about this a 1000 times by now. But this time you get to hear about...
Author: Abhinaba Basu [MSFT] Date: 05/30/2007
Pop-fly rocks
Pop-fly is one of the most amazing piece of coolness that Microsoft shipped. From the domain name to...
Author: Abhinaba Basu [MSFT] Date: 05/22/2007
Remember me on this computer.
That is what a popular site said when I visited it's login page. But hey, I was using a cell phone...
Author: Abhinaba Basu [MSFT] Date: 05/22/2007
What is work
"What is work? Work is of two kinds: first, altering the position of matter at or near the earth's...
Author: Abhinaba Basu [MSFT] Date: 05/22/2007
Bring your child to work
Today a gang of kids raided Microsoft India as we celebrated "Bring your child to work" day. The...
Author: Abhinaba Basu [MSFT] Date: 05/17/2007
C# out parameter assignment trivia
I have the following code static void foo(out int i) { try { /.../ i = 5; } catch (Exception) {...
Author: Abhinaba Basu [MSFT] Date: 05/10/2007
What are the different algorithms in Java? Can someone list me each and its uses?
That is the question someone posted on the Java forum...
Author: Abhinaba Basu [MSFT] Date: 05/10/2007
Return to the native land
I have heard about and experienced myself the fun/pain of transitioning into managed code from...
Author: Abhinaba Basu [MSFT] Date: 04/13/2007
What can enums derive from
I thought I knew the answer but a discussion in the internal alias proved me wrong :)enum e1 : int {...
Author: Abhinaba Basu [MSFT] Date: 04/13/2007
Build 24 - The 24 hour non-stop coding competition
Last week at Microsoft India we had a 24 hour non-stop coding competition named Build 24. It was one...
Author: Abhinaba Basu [MSFT] Date: 03/26/2007
Which font do you use
I was reading Sriram's posts about his fling with fonts which reminded me that I have a peculiar...
Author: Abhinaba Basu [MSFT] Date: 03/26/2007
Microsoft ships the most secure OS
Symantec reports that MSFT fared better than apple and other copetitors (including Red Hat) in...
Author: Abhinaba Basu [MSFT] Date: 03/23/2007
Weird lambda usage
I had posted previously that I don't like lamda in C#. The reason is that C# had a different nature...
Author: Abhinaba Basu [MSFT] Date: 02/23/2007
International mother language day
Today is the International mother language day. I'm sure a lot of people will not get to figure this...
Author: Abhinaba Basu [MSFT] Date: 02/21/2007
Sharing static fields among generic class instances
Someone posted on an internal DL on how he can share static fields for all instances of the generic...
Author: Abhinaba Basu [MSFT] Date: 02/21/2007
Linq Everywhere: Kill processes
For some test code I needed to write a small utility that kills all processes running that matches a...
Author: Abhinaba Basu [MSFT] Date: 02/16/2007