My trip to Jaisalmer

Hi friends,
I recently had a visit to Jaisalmer to attend my friend’s wedding ceremony. It was an unforgettable experience. I am so excited to share my best moment with you. Although those moments were ineffable, I will explain why my experience is worth sharing.

The time we arrived sand dunes, there was nothing but placid desert. Soon docile wind started blowing sand and became a nettlesome storm. All the camels that were initially looking imperturbable started moving faster. We felt as if it was the end of our halcyon hour.

Soon weather turned out in our favor and it started raining. It made our ambiance serene and our demure smile turned into guffaws. We started enjoying camel safari. In my humble suggestion, you should visit this place at least once.


Can you answer these 5 programming language based questions. (1-2 min.)

Hi friends,

Thanks for sparing few minutes. I’ve designed these questions for you, if you want to check your theoretical background in programming. It will take only 1 or 2 minute.

Find these questions below.

  1. What is the most critical feature of programming languages
    a. Readability
    b. Well-developed library
    c. Robustness
    d. Programmer friendliness

  2. Which of the following is not a client side scripting language
    a. Coffeescript
    b. Javascript
    c. Cold Fusion Markup Language
    d. ECMAScript

  3. Programming is widely used for which of the following purpose
    a. Automation
    b. To solve complex problems
    c. For efficient use of resources
    d. All of the above

  4. Which of the following is oldest programming language
    a. FORTRAN
    b. ALGOL
    c. COBOL
    d. BASIC

  5. Which one of the following is a kind of scientific programming language
    a. C
    b. FORTRAN
    c. Java
    d. Ruby

You can provide your answers in comment section.


Sorry – Long time no see

Hi friends,

So meanwhile I was writing on Twitter, Quora, YouTube and others. After a long time I am back again on WordPress. This time I have got some advices for better writing. I am going to share these ‘Better writing tips’ for GRE, TOEFL test takers etc.

Please tell me if this help you by leaving me a comment/reply on my upcoming posts.

Thank you.

Never be hopeless – Read how you can get a ray of hope

Whenever I feel like “There are things I can’t control or I can’t change this or something with more hopelessness like I can’t do this

I speak to myself

Is this true ? No. There must be a possibility. Yes there is a possibility. It is possible. If it is possible then I can do it. If I can do it I should do it.

I find these lines to be hopeful. I think, saying these lines to yourself will also help you a lot.

Programming tips that always work

OH !!! The problem is easy, I got it, I know what is tricky in the problem, I can definitely make this program and then you just start your work on keyboard and after working for a while all of a sudden you stop writing code.

Does this happens to you a lot of time ???
Okay then I guess, this post will help you in figuring out what you are missing…

So, What do you think, why it happens to you – because you don’t actually know what you need, what you need to design, you know how to write a program, how to code, how to indent and other required things, but what is that makes you stop writing …???

Its the Idea you need to get first of all…See how it helps.
To check that, I’d like you to follow these simple steps every time you begin coding

  1.  To save a lot of time, you don’t really need to start directly with coding, In fact this should be the last thing to do.
    So my first tip is – Take a pen & paper
  2. Observe carefully what is given to you, and what is asked – you may think that it is very simple, but this is what people underestimate, so please don’t just skip this part and give it extra time so that your mind can really understand what the problem is ??
    So the second tip is – Plant the seed of problem in your mind.
  3. Now this is the time where power of experience comes, the more experienced you are in logic designing and problem solving, more quickly you will design you solution.
    The third tip is – Design algorithm – See how this solution will works in your scenario
  4. If you think and if your solution fits over all the problem cases, Its time to move on to keyboard, write all your code what you’ve designed in your algorithm.
    Fourth tip is – Write everything you know( Don’t try to trim the code at this moment)
  5. The time you’ll be exhausted and that’s why this task should be easy and see what you gotta do here
    Fifth tip – Debugging – Try to resolve errors/warnings, indent your code, prepare documentation and try to shorten your code.


Always remember……

Full House in a game of POKER — Get the Probability

You want to write a program that

1) has a class ‘card’ which identifies each card from a pack of cards with number and suite like
Example: Ace of Hearts would be ‘1H’, 7 of Clubs would be ‘7C’, King of Diamonds would be ’13D’ etc.

2) the program should pick a random card from 52 cards that are part of standard deck (without jokers). and basd on card picked, output all possible combnations for a Full house in Poker containing that card.
For example:
if I pick 4S (for 4 of Spades), the output should say: you picked 4S all possible combinations of Full House containing
4S: 4S4C1S1C1H 4S4H1S1C1H 4S4D1S1C1H . . … etc. And

3) Print out the probability that you would get a full house if you pick this card, and 4 more cards at random

Get the code which tells you how much is the probability of getting a full House in a game of POKER from CS_IT folder from my box widget.

How to take one by one images from your webcam using opencv

#include "opencv2/highgui/highgui.hpp"
using namespace std;
using namespace cv;
int main()
 for(int i = 0; i<100;i++)
 CvCapture* capture = cvCaptureFromCAM(0);
 IplImage* img = 0;
 img = cvRetrieveFrame(capture);
 return 0;

How to load an image in your opencv program

#include "cv.h"
#include "cxcore.h"
#include "highgui.h"
int main()
 IplImage* img = NULL;
 img = cvLoadImage("satan.jpg",1);
 return 0;

Get every new post delivered to your Inbox.

Join 335 other followers

%d bloggers like this: