I know the answer (it's 42)

A blog on coding, .NET, .NET Compact Framework and life in general....

Browse by Tags

Tagged Content List
  • Blog Post: Fastest way to switch mouse to left handed

      I think I was born left handed, unfortunately I was brought up to be right handed. This was not uncommon in India 30 years back. Left hand usage was looked down upon. However, the good thing is I am still ambidextrous (equal handed) in some things like using the mouse. For ergonomic reason I keep...
  • Blog Post: Dad loves Surface

    I have given a surface to my daughter. A lot of my friends/family ask me how I like using Surface and whether my daughter likes it as well. I can tell you that the killer feature from dad’s point of view is Family Safety . I am not an iPad/Android user, so I do not know how they do in this area, but...
  • Blog Post: Arduino Fun – Door Entry Alarm

      Arduino UNO based door entry alarm Physical computing and “internet of things” is a super exciting area that is unfolding right now. Even decades back one could hook up sensors and remotely get those data and process it. What is special now is that powerful micro-controllers are dirt cheap and...
  • Blog Post: Moving to Outlook from Google Reader

    I am sure everyone by now knows that Google Reader is being shutdown. I am a heavy user of Google Reader or Greeder as I call it and I immediately started looking for an alternative, when this suddenly occurred to me, that all PC’s I use have Outlook installed on them. So if you work for an organization...
  • Blog Post: Core Parking

    For some time now, my main box got a bit slow and was glitching all the time. After some investigation I found that some power profile imposed by our I T department enabled CPU parking on my machine. This effectively parks CPU on low load condition to save power. However, This effects high load conditions...
  • Blog Post: Windows Phone 7, my story

    Now that Windows Phone 7 is released all the gadget/tech blogs like TechCrunch, Engadget , Gixmodo are humming with reviews. Given that it’s a Version 1 product (ignore that 7 in the phone name) the reviews are great. Seeing all the buzz around gets me thinking about how I got involved in the project...
  • Blog Post: Indic Language Input

    If you have tried inputting Indian languages in Windows you know it’s a major pain. That is particularly sad because Windows comes with very good support of Indian languages. I had almost given up using my native language Bengali on a computer due to this. Even when I was creating the About Page for...
  • Blog Post: Technical Presentation Tip

    I’m no Scot Hanselman , but even then I guess I can share at least one tip for delivering technical presentation that has worked very well for me. At the very beginning of your presentation always have a slide clearly calling out what the attendees will “Take Away” and what is the “Pre-requisites'” of...
  • Blog Post: How many heaps does the .NET Compact framework use

    While discussing the memory architecture with an internal customer, he inquired about how many heaps .NETCF creates. I’m not sure how it might be helpful to users, but the answer is 5. This has been touched upon in some blogs and presentations (e.g. MEDC 2005) but I thought I’d put up a handy list. Heap...
  • Blog Post: .NET Compact framework GC Quantum

    In my post When does the .NET Compact Framework Garbage Collector run I mentioned that one of the causes for starting a garbage collection is that 1 MB of data has been allocated from the last garbage collection. Essentially we keep a counter which is reset to 0 on each GC and it is incremented each...
  • Blog Post: Small Basic

    Today my father in law started teaching my 4 year old daughter how to write in Bengali which is her native language. Below is the screen shot of her attempt to write অ আ ই , the first character is written by her teacher and the rest by her. This got me thinking around when the time comes how do I introduce...
  • Blog Post: Back To Basics: Handling overflow in mark stage

    This post is Part 7 in the series of posts on Garbage Collection (GC). Please see the index here. Let’s first recap the basic algorithm of the mark-sweep garbage collection . In C like pseudo code the algorithm looks like void GC() { HaltAllThreads(); ObjectCollection roots = GetRoots(); for(int...
  • Blog Post: Back to basic: Series on dynamic memory management

    After becoming the .NET Compact Framework (.NETCF) dynamic memory management module owner I am continually learning a lot about the subject. Based on hallway discussion I figured out that a lot of developers are not very clear about the subject and would like to learn more. Most online material I encountered...
  • Blog Post: Windows 7 rocks

    Ok I know this blog is not about Windows but I thought I’d share the love. To me it looks like as is someone has combed through the entire user experience and fixed most of the stuff that bothered me. The taskbar change alone are good enough for the upgrade. E.g. the taskbar feels very natural when set...
  • Blog Post: 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 type of asserts which can be used to catch code...
  • Blog Post: 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 answer is that we are not porting .NETCF to S60 devices...
  • Blog Post: Team Foundation Server tool dump workspace details

    I juggle around with a lot of workspaces. The reason is .NET Compact Framework is consumed in a whole bunch of things like Windows Mobile, Xbox, Zune, Nokia and most of them are on different source branches. On top of this active feature work happens in feature branches and there are other service branches...
  • Blog Post: Back to Basic: Using a System.Threading.Interlocked is a great idea

    I just saw some code which actually takes a lock to do a simple set operation. This is bad because taking locks are expensive and there is an easy alternative. The System.Threading.Interlocked class and its members can get the same job done and much faster. I wrote the following two methods which increments...
  • Blog Post: Microsoft Roundtable

    Our conference rooms have been fitted with this really weird looking device (click to enlarge). I had no clue what the thing was. Fortunately it's box was still placed in the room along with the manual. It's called the Microsoft RoundTable and it is actually a 360-degree camera (with 5 cameras...
  • Blog Post: 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; // ... } - Style 2 using...
  • Blog Post: How does the .NET CF handle null reference

    What happens when we have code as bellow class B { public virtual void Virt(){ Console.WriteLine("Base::Virt"); } } class Program { static void Main(string[] args){ B b = null; b.Virt(); // throws System.NullReferenceException } } Obviously we have a null reference...
  • Blog Post: C# generates virtual calls to non-virtual methods as well

    Sometime back I had posted about a case where non-virtual calls are used for virtual methods and promised posting about the reverse scenario. This issue of C# generating callvirt IL instruction even for non-virtual method calls keeps coming back on C# discussion DLs every couple of months. So here it...
  • Blog Post: 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 team. You'll hate this tool when it imposes the...
  • Blog Post: 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 code example is here , where the application...
  • Blog Post: 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 is web development and lot of main-stream web...
Page 1 of 2 (38 items) 12