Skip to main content

Posts

Showing posts from October, 2016

C# Programming : Primes less than 100

Here is a ready made function in C# that lists all primes greater than 2 and  less than 100.    protected void GetPrimes()         {                          int i, j;             i = 2;             j = 100;             StringBuilder sb = new StringBuilder();             while (i < 100)             {                 if ((j % i) == 0) //not a prime                 {                                          j = j - 1;                     i = 2;                     continue;                 }                 else                 {                     i = i + 1;                 }                 if (i==j) { sb.Append(j.ToString()+ ", "); }                           }             MessageBox.Show(sb.ToString());         }//end

C# Programming : Primes less than 100

Here is a ready made function in C# that lists all primes greater than 2 and  less than 100.    protected void GetPrimes()         {                          int i, j;             i = 2;             j = 100;             StringBuilder sb = new StringBuilder();             while (i < 100)             {                 if ((j % i) == 0) //not a prime                 {                                          j = j - 1;                     i = 2;                     continue;                 }                 else                 {                     i = i + 1;                 }                 if (i==j) { sb.Append(j.ToString()+ ", "); }                           }             MessageBox.Show(sb.ToString());         }//end

600 wins @ chess.com....

Reached a very important milestone viz. 600 wins @ chess.com (Chess site promoted by WGM Susan Polgar). Play on this site seems to be getting more interesting by the day. HO HUM ☺

600 wins @ chess.com....

Reached a very important milestone viz. 600 wins @ chess.com (Chess site promoted by WGM Susan Polgar). Play on this site seems to be getting more interesting by the day. HO HUM ☺

Hindi cinema classics - Mughal-e-azam in color HO HUM ☺

It was K Asifs dream to see Mughal E Azam in colour. Sixty years later the magic of technology has filled the love story between the Mughal Crown Prince Salim and the beautiful courtesan Anarkali in colour. Mughal E Azam is considered to be the finest historical epic ever made in Indian Cinema. This movie presented Emperor Akbar played flawlessly by Prithviraj Chauhan is a man torn between his duties towards his Empire and the love for his son. Talent and technology came in sync to weave magic over this work of art and Mughal-E-Azam in it's color avatar was released in November 2004. It was a box office success. Check out the promo @  Mughal-e-azam A masterpiece indeed !!!

Hindi cinema classics - Mughal-e-azam in color HO HUM ☺

It was K Asifs dream to see Mughal E Azam in colour. Sixty years later the magic of technology has filled the love story between the Mughal Crown Prince Salim and the beautiful courtesan Anarkali in colour. Mughal E Azam is considered to be the finest historical epic ever made in Indian Cinema. This movie presented Emperor Akbar played flawlessly by Prithviraj Chauhan is a man torn between his duties towards his Empire and the love for his son. Talent and technology came in sync to weave magic over this work of art and Mughal-E-Azam in it's color avatar was released in November 2004. It was a box office success. Check out the promo @  Mughal-e-azam A masterpiece indeed !!!

Hindi cinema classics - Mughal-e-azam in color HO HUM

It was K Asifs dream to see Mughal E Azam in colour. Sixty years later the magic of technology has filled the love story between the Mughal Crown Prince Salim and the beautiful courtesan Anarkali in colour. Mughal E Azam is considered to be the finest historical epic ever made in Indian Cinema. This movie presented Emperor Akbar played flawlessly by Prithviraj Chauhan is a man torn between his duties towards his Empire and the love for his son. Talent and technology came in sync to weave magic over this work of art and Mughal-E-Azam in it's color avatar was released in November 2004. It was a box office success. Check out the promo @  Mughal-e-azam A masterpiece indeed !!!

Hindi cinema classics - Mughal-e-azam in color HO HUM

It was K Asifs dream to see Mughal E Azam in colour. Sixty years later the magic of technology has filled the love story between the Mughal Crown Prince Salim and the beautiful courtesan Anarkali in colour. Mughal E Azam is considered to be the finest historical epic ever made in Indian Cinema. This movie presented Emperor Akbar played flawlessly by Prithviraj Chauhan is a man torn between his duties towards his Empire and the love for his son. Talent and technology came in sync to weave magic over this work of art and Mughal-E-Azam in it's color avatar was released in November 2004. It was a box office success. Check out the promo @  Mughal-e-azam A masterpiece indeed !!!

Hindi Cinema Classics : Nausherwan-e-adil

I have always admired Hindi cinema in the pre-tech age, when costume dramas and snazzy dialogue delivery were in vogue. Sohrab Modi is one of my favorite actors. Nausherwan-E-Adil also called Farz Aur Mohabbat, is a 1957 costume action drama Hindi/Urdu film directed by Sohrab Modi. Produced by Minerva Movietone, it had music composed by C. Ramchandra with lyrics by Parwaiz Shamshi. Revisit this Indian classic @  Naursherwan-e-adil HO HUM ☺

Hindi Cinema Classics : Nausherwan-e-adil

I have always admired Hindi cinema in the pre-tech age, when costume dramas and snazzy dialogue delivery were in vogue. Sohrab Modi is one of my favorite actors. Nausherwan-E-Adil also called Farz Aur Mohabbat, is a 1957 costume action drama Hindi/Urdu film directed by Sohrab Modi. Produced by Minerva Movietone, it had music composed by C. Ramchandra with lyrics by Parwaiz Shamshi. Revisit this Indian classic @  Naursherwan-e-adil HO HUM ☺

Master at last :-)

Tied with Fritz online engine at last.... in Master mode..... HO HUM ☺

Master at last :-)

Tied with Fritz online engine at last.... in Master mode..... HO HUM ☺

Fritz online : Master mode

If you want to test your wits against a Goliath chess engine try out the online version of Fritz engine in the master mode. After about 10 attempts I reached a position of equal material (I took less time) but the engine proved too strong in the end game.  HO HUM ☺

Fritz online : Master mode

If you want to test your wits against a Goliath chess engine try out the online version of Fritz engine in the master mode. After about 10 attempts I reached a position of equal material (I took less time) but the engine proved too strong in the end game.  HO HUM ☺

Online chess play with Fritz engine : Amateur mode

Try out the online Fritz chess engine :  Fritz I tried out the Amateur mode and ended up with a draw (I did not take any moves back). Enjoy  HO HUM ☺

Online chess play with Fritz engine : Amateur mode

Try out the online Fritz chess engine :  Fritz I tried out the Amateur mode and ended up with a draw (I did not take any moves back). Enjoy  HO HUM ☺