Archive for May, 2008

programming jokes

There are only 10 kinds of people in this world: those who know binary and those who don’t.

**********

Two strings walk into a bar and sit down. The bartender says, “So what’ll it be?”

The first string says, “I think I’ll have a beer quag fulk boorg jdk^CjfdLk jk3s d#f67howe%^U r89nvy~~owmc63^Dz x.xvcu”

“Please excuse my friend,” the second string says, “He isn’t null-terminated.”

**********

The computer is mightier than the pen, the sword, and usually, the programmer.

**********

Have you heard about the new Cray super computer? It’s so fast, it executes an infinite loop in 6 seconds.

**********

Two bytes meet. The first byte asks, “Are you ill?”
The second byte replies, “No, just feeling a bit off.”

**********

Eight bytes walk into a bar. The bartender asks, “Can I get you anything?”

“Yeah,” reply the bytes. “Make us a double.”

**********

How many programmers dose it take to change a light bulb?
None – It’s a hardware problem

**********

Why do programmers always mix up Halloween and Christmas?
Because Oct 31 equals Dec 25.

**********

From the Random Shack Data Processing Dictionary:

Endless Loop: n., see Loop, Endless.
Loop, Endless: n., see Endless Loop.

**********

Jesus and Satan have an argument as to who is the better programmer. This goes on for a few hours until they come to an agreement to hold a contest with God as the judge. They set themselves before their computers and begin. They type furiously, lines of code streaming up the screen, for several hours straight.

Seconds before the end of the competition, a bolt of lightning strikes, taking out the electricity. Moments later, the power is restored, and God announces that the contest is over. He asks Satan to show his work. Visibly upset, Satan cries and says, “I have nothing. I lost it all when the power went out.”

“Very well,” says God, “let us see if Jesus has fared any better.”

Jesus presses a key, and the screen comes to life in vivid display, the voices of an angelic choir pour forth from the speakers.

Satan is astonished. He stutters, “B-b-but how?! I lost everything, yet Jesus’ program is intact! How did he do it?”

God chuckles, “Everybody knows… Jesus saves.”

**********

VN:F [1.9.13_1145]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.13_1145]
Rating: 0 (from 0 votes)

math myth – 1

  • All square numbers have odd number of factors. All other numbers have even number of factors.
  • To check whether a number is prime, it is sufficient to check its divisibiliy by all prime numbers less than square root of the number.
  • A number n is a sum of two squares if and only if all prime factors of n of the form 4m+3 have even exponent in the prime factorization of n.
  • if p is a prime number, then for any integer a, ap ? a will be evenly divisible by p. This can be expressed in the notation of modular arithmetic as follows.
    ap ? a (mod p) .  This is Fermat’s Little Theorem.
  • If an integer n is greater than 2, then the equation an + bn = cn has no solutions in non-zero integers a, b, and c. This is Fermat’s Last Theorem.
VN:F [1.9.13_1145]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.13_1145]
Rating: 0 (from 0 votes)