Pages

Thursday, January 12, 2012

WeatherReaderUI Instance Exception

cannot create instance WeatherReaderUI Exception 
whenever u try to build or execute this application in VisualStudio  make sure that ur connected to internet because there is an WEATHER APP which uses INTERNET to find out the weather.If ur try without connecting to internet the application quits by raising an exception and the program doesn't START.Here is a snapshot of that Exception(It raises because it is unable to cretate sockets to connect the internet)













If u directly try to run the .exe file which is present in the debug folder of the project without connecting the INTERNET  the program doesn't start.Here is the snapshot for that..........











So make sure ur connected to INTERNET...........................

Wednesday, January 11, 2012

BLACK BOX ISSUE IN SIXTH SENSE

Recently pranav has released a beta version of his project sixthsense.when u run this application u can see some part of the picture is hiding with a black box , all u need  to do is  right click on the pictureBox1 control and select the option "send it to back"  in visual studio  (OR)   adjust the  width of the control "pictureBox1" because it is overlapping  with the pictureBoxDisplay" control 

TOWER OF HONAI



TOWER OF HONAI NON-RECURSIVE PROGRAM  IN "C"

void main()

{
      int n,i,j,moves,dsk=0,a;
     // n represents the no.of disks(i.e.the height of the tower),i and j are used for iteration purpose
    //  moves represent the no.of moves required for a tower of height n
   //  dsk used to indicate the disk to be moved
     int from,to;
     char ch[3]={'A','B','C'};
     printf("Enter the no.of disks.....");
     scanf("%d",&n);
     moves=1<<n;
     for(i=1;i<moves;i++)
    {
       //logic to determine the disk to move
        for(a=i,dsk=0;a%2==0;a=a>>1,dsk++);
        dsk++;
      //logic to determine the pegs
      from=(i&i-1)%3;
      to=((i|i-1)+1)%3;
    //print the statement
    printf("Move disk %d from %c to %c\n",dsk,ch[from],ch[to]);
    }
   getch();
}


Friday, January 06, 2012

Sixth Sense

Sixth Sense is a wearable gestural interface that augments the personal world round us with digital data and lets us use natural hand signs to interact with that information.
The source cipher is released and it is an opensource.
ascertain out the link underneath for the minutia.
http://code.google.com/p/sixthsense/
U can find the first beta release of the cipher. Some dll's (i.e. Microsoft DirectX) need to be installed in alignment to run the C# code. They utilised Microsoft Visual Studio to evolve the task and the answer files are included.