Deprecated: Function set_magic_quotes_runtime() is deprecated in /nfs/c01/h08/mnt/2939/domains/cidamon.com/html/blog/textpattern/lib/txplib_db.php on line 14
Cidamon: Blog: Solution

Solution

  • Get Keys of Dictionary data in c#
    06 November, 2010

    A very simply way to collect the keys of a dictionary object to iterate through them is given bellow –

    List<string> keyList = new List<string>(myDictionary.Keys);
    for (int i = 0; i < keyList.Count; i++)
    {
        int myInt = myDictionary[keyList[i]];
    }
    
  • Dictionary, Hashtable and HashSet
    06 November, 2010

    First of all HasSet is different then Dictionary and Hashtable cause it does not allow duplicate value and elements inside a HashSet cannot be accessed through indices, only through an enumerator (which is an iterator).

    Now the difference between Dictionary and Hashtable is though Hashtable takes in a key/value pair, but...

    more..

  • HashSet in dot net 3.5
    06 November, 2010

    HashSet has been introduced in framework 3.5. It inherits the ICollection interface. HashSet cannot be accessed through indices, only through an enumerator.
    HasSet is modeled upon mathematical set. It has methods such as Union, Intersection, IsSubsetOf, IsSupersetOf.
    Add method of HashSet is boolean unlike List. HashSet allows only unique...

    more..

  • Simple use of sqlplus
    14 September, 2010

    Bellow are the steps required to execute a sql script using sqlplus

    Start listener
    $ lsnrctl start

    Login to sqlplus
    $ sqlplus username/password (if using sys then “sys/password as sysdba”)

    Start the database
    sql>startup

    Turn on spool...

    more..

  • Wordpress – disabling Nofollow option in links
    07 July, 2010

    First go to settings->Privacy settings. Select the following option -

    “I would like my blog to be visible to everyone, including search engines (like Google, Sphere, Technorati) and archivers”.

    Then go to appearance->editor and select Header.php. Here...

    more..