Monday, November 14, 2011

First three NHibernate examples

As some of you may already know, I've begun work on a series of NHibernate tutorials as the first steps in a larger effort to help update the NHibernate reference documentation. For many users, starti...

Sunday, October 2, 2011

Developer Conference 2011 by Microsoft User Group Hyderabad

Attended Developer Conference 2011 by Microsoft User Group Hyderabad on Oct 1, 2011.Excellent session was C# Session by  Dhall, MVP; and next useful session was HTML 5 by Harish Ranganathan.

Thanks MUGH for organizing such a great event.


MUGH Official Site: http://www.mugh.net/

Wednesday, September 28, 2011

Official Google Blog: Launching Google Wallet on Sprint and working with...

Official Google Blog: Launching Google Wallet on Sprint and working with...: In May we announced Google Wallet —an app that makes your phone your wallet—with Citi, MasterCard, Sprint and First Data. With Google Wallet...

Number of elements in a javascript object

Number of elements in a javascript object


Although JS implementations might keep track of such a value internally, there's no standard way to get it.
On Mozilla-browsers, you can use the non-standard __count__, but for cross-browser scripting you're stuck with explicitly iterating over the properties and checking hasOwnProperty():
function countProperties(obj) { 
    var count = 0; 
 
    for(var prop in obj) { 
        if(obj.hasOwnProperty(prop)) 
                ++count; 
    } 
 
    return count; } 

For more info:   http://stackoverflow.com/questions/956719/number-of-elements-in-a-javascript-object?answertab=votes#tab-top