How to Print Contents from Certain DIV

     Time to time we get into such situation when we need to print part of our webpage where pop-up is restricted. Well JavaScript will be the answer. Here is a little script that raise the DIV dynamically and print. It is very effective cross browser script. Feel free implementing it as a starter..

<script language = "javascript" type="text/javascript">
        function printSpecificDiv(divId) {
            var printContent = document.getElementById(divId);
            var windowUrl = 'about:blank';
            var windowName = 'Print' + new Date().getTime();
            var printWindow =, windowName, 'left = 10000, top = 10000, width = 0, height = 0');

In Java 3 = 12..

In Java, the output:  
    System.out.println(1 + 2 + " = " + 1 + 2);
    => 3 = 12

Because Java starts treating everything as a String once it has found a string in System.out statement. Interesting, huh...

Can the Product of Two Polynomials Result in a Single Term?

     By assuming that we are talking about polynomials with real coefficients. Suppose that the polynomials are, 

P(x) = axp +  ...  +  bxq
Q(x) = cxr +  ...  +  dxs
Where . . .

List all Modified File Names with Git

     Sometime we need to pull up data from specific time span. Suppose, we need to see all the changed files prior to a deployment. Well, its possible with source control. Git has some commands that can help you with that. Here are some of those..
First command lists every single modified file names from specific date to now..
git whatchanged --since '12/01/2016' --oneline --name-only --pretty=format: | sort | uniq

Second command lists modified file names from prior days..
git log --since="4 day ago" --name-only --pretty=format: | sort -u

Third command lists modified file names from specific interval..
git whatchanged --since '12/01/2016' --until '12/06/2016' --oneline --name-only --pretty=format: | sort | uniq

Best Programmer Joke _ int page[3];

1. Largest Number
      A: If there is a limit to the amount of information that can be stored / represented in the universe and all of it was allocated for a giant integer register, what is the largest number such a register could hold?

     B : -1

2. Recursion
     To understand what recursion is you must first understand recursion. If I teach recursion I first check if you understand recursion. If you do not understand recursion I teach you recursion. However, you can only know someone who understands recursion if you know someone who understands recursion.

Best Programmer Joke _ int page[2];

1. Prime Number 
     A mathematician, a physicist, a civil engineer, and a Software Engineer are asked (after a few beers) to show that all odd numbers greater than 1 are prime.
Mathematician: 3 is prime, 5 is prime, by induction they're all prime.
Physicist: 3 is prime, 5 is prime, 7 is prime, 9 is... experimental error, 11 is prime, 13 is prime -- clearly, they're all prime.
Civil Engineer: 3 is prime, 5 is prime 7 is prime, 9 is prime, 11 is prime -- sure, they're all prime.
Software Engineer: 3 is prime, 5 is prime, 7 is prime, 7 is prime, 7 is prime, 7 is prime, 7 is prime. . .