Chief Programmer

  • Dec. 27th, 2009 at 9:22 PM
kwiz_quotient
"(The Chief Programmer) personally defines the functional and
performance specifications, designs the program, codes it, tests it,
and writes its documentation... He needs great talent, ten years
experience and considerable systems and applications knowledge,
whether in applied mathematics, business data handling, or whatever."

-- Fred P. Brooks, _The Mythical Man Month_

C++0x support in gcc

  • Nov. 2nd, 2009 at 7:02 AM
comic
http://gcc.gnu.org/projects/cxx0x.html

Some of the features are already available in gcc.

Python Strings as Comments

  • Oct. 21st, 2009 at 6:29 AM
kwiz_quotient
The question was:

In Python we can emulate multiline comments using triple-quoted
strings, but conceptually strings and comments are very different.
I.e. strings are objects, comments are auxillary text discarded at
compile time. Strings are objects created at runtime, comments are
not.

The answer from Steven D'Aprano:

Guido's time-machine strikes again.


>>> import dis
>>> def test():
...     x = 1
...     """
...     This is a triple-quote comment.
...     """
...     return x
...
>>> dis.dis(test)
  2           0 LOAD_CONST               1 (1)
              3 STORE_FAST               0 (x)

  6           6 LOAD_FAST                0 (x)
              9 RETURN_VALUE



String literals -- not just triple-quoted strings, but any string
literal -- that don't go anywhere are discarded by the Python compiler,
precisely so they can be used as comments.

Celebrating Nationality

  • Oct. 13th, 2009 at 7:14 PM
comic
Nobel Laureate bemused by deluge of goodwill


He expressed anguish over “all sorts of lies” published about him in a section of the media that he went to school and pre-Science in Chidambaram, the Tamil Nadu temple town where he was born in 1952.

“People I don’t know, for example a Mr. Govindrajan, claim that they were my teachers at Annamalai University which I never attended, since I left Chidambaram at the age of three,” Dr. Ramakrishnan clarified.

Dr. Ramakrishnan said that it was a good thing if his winning the Nobel Prize encouraged people to read about the work, read books and take interest in science.

“But I, personally, am not important. The fact that I am of Indian origin is even less important. We are all human beings, and our nationality is simply an accident of birth,” he said.



http://beta.thehindu.com/sci-tech/article33379.ece?homepage=true

ln explained best

  • Oct. 12th, 2009 at 10:58 PM
comic
At this article titled Demystifying the Natural Logarithm

His entire series of get an intuition articles on Maths is very good.

Getting Answers

  • Oct. 12th, 2009 at 7:21 AM
comic
A good article, explaining how to get answers from the lists.

http://www.mikeash.com/getting_answers.html

Pell's Equation

  • Oct. 9th, 2009 at 8:56 PM
comic
x^2 - n y^2 = 1

(Pell's equation) which is named after the English mathematician John Pell. It was studied by Brahmagupta in the 7th century, as well as by Fermat in the 17th century.

http://en.wikipedia.org/wiki/Pell%27s_equation

8 Bit Byte

  • Oct. 1st, 2009 at 8:45 PM
kwiz_quotient
Factors behind the ubiquity of the eight bit byte include the popularity of the IBM System/360 architecture, introduced in the 1960s, and the 8-bit microprocessors, introduced in the 1970s. The term octet unambiguously specifies an eight-bit byte (such as in protocol definitions, for example)

http://en.wikipedia.org/wiki/Byte

Otherwise, people have tried with 12 bit byte. Varying byte length in PDP 10. 6, 7 and 9 bits in Univac computers.
kwiz_quotient
Our Trials with e-speaking voice recognition software has worked out for Avinash (http://avinash.sonnad.googlepages.com)

On Mon, Sep 28, 2009 at 06:07:17PM +0530, Avinash Sonnad wrote:
> HELLO WORLD HI SENTHIL; THESE ARE MY FIRST TYPED WORDS ON MY OWN.
> THANK YOU VERY MUCH FOR YOUR HELP.THIS I DID WITH THE HELP OF ON
> SCREEN KEYBOADRD.

Brainfuck

  • Sep. 28th, 2009 at 7:03 PM
kwiz_quotient
+++ +++ +++ +[>
+++ +++ +
>
+++ +++ +++ +
<<-]
>++ .
>+++ ++ .


Brainfuck is easy and interesting.
We work on cells, like if you know c, cell is like ptr = unsigned char *
+ stands for increment like ++*ptr
- stands for decrement like --*ptr
> goes one cell right like ++ptr
< goes one cell left like --ptr
. spits out output like putchar(*ptr)
, expects input. like *ptr = getchar(stdin)
[ is the start of while block test condition (for non-zero) which is like while(*ptr) {
] is the end of the block }
And everything else is comment, like the these sentences.
The above program is designed to output "Hi" and if you include these
sentenses too, it will print "Hii" and wait for some input and enter
presses till the cell becomes zero.

Isn't it cool? :)

BTW, you can run this program using an interpretor called (bf) just an apt-get away.

Good Quote

  • Sep. 28th, 2009 at 4:47 PM
kwiz_quotient
I don't think there's anything exceptional or noble in being philanthropic. It's the other attitude that confuses me. --Paul Newman

http://en.wikiquote.org/wiki/Paul_Newman

Good Quote

  • Sep. 14th, 2009 at 3:21 PM
kwiz_quotient
Although September 11 was horrible, it didn't threaten the survival of
the human race, like nuclear weapons do. ... I don't think the human
race will survive the next thousand years, unless we spread into space.
There are too many accidents that can befall life on a single planet.
But I'm an optimist. We will reach out to the stars.

--Stephen Hawking

<http://en.wikiquote.org/wiki/stephen_hawking>

What is Recursion?

  • Sep. 13th, 2009 at 1:06 PM
comic
What is Recursion?
In order to say exactly what recursion is, we first have to answer "What is recursion?"

tutorial

Lake Wobegon Effect

  • Aug. 6th, 2009 at 2:21 PM
comic
It is a theory, in which everyone tends to think his/her capability, achievements is above every other person in the group.

Lake Wobegon Effect

Tags:

Kavka's toxin puzzle

  • Aug. 2nd, 2009 at 6:23 AM
comic
In its original form, it is:
An eccentric billionaire places before you a vial of toxin that, if you drink it, will make you painfully ill for a day, but will not threaten your life or have any lasting effects. The billionaire will pay you one million dollars tomorrow morning if, at midnight tonight, you intend to drink the toxin tomorrow afternoon. He emphasizes that you need not drink the toxin to receive the money; in fact, the money will already be in your bank account hours before the time for drinking it arrives, if you succeed. All you have to do is. . . intend at midnight tonight to drink the stuff tomorrow afternoon. You are perfectly free to change your mind after receiving the money and not drink the toxin.

Kavka's theory is that, one cannot intend to do something which one won't do.

There is an analysis of payoffs from different scenarios and the real-world example of this puzzle is:


...the Political Manifesto. Before an election, a political party will release a written document outlining their policies and plans should they win office. Many of these promises may be difficult or impossible to implement in practice. Having won, the party is not obligated to follow the manifesto even if they would have lost without it.

Tags:

X Window joke

  • Jul. 30th, 2009 at 4:47 PM
comic
X window: The ultimate bottleneck. Flawed beyond belief. The only thing you have to fear. Somewhere between chaos and insanity. On autopilot to oblivion. The joke that kills. A disgrace you can be proud of. A mistake carried out to perfection. Belongs more to the problem set than the solution set. To err is X windows. Ignorance is our most important resource. Complex nonsolutions to simple nonproblems. Built to fall apart. Nullifying centuries of progress. Falling to new depths of inefficiency. The last thing you need. The defacto substandard. Elevating brain damage to an art form. X window.

Word of the day: Snob

  • Jul. 26th, 2009 at 11:35 AM
comic
Snob stands for an attitude which tries to attribute self or another as inferior or superior based on something. A good example of a snobber is if a person posses TAOCP and feels good that he a good programmer or a computer for having it in his bookshelf.

I stumbled on this word while reading this one:

Still a joke that "TAOCP is a book that is almost exclusively loved by those who haven't read it" makes some sense as snobbism in programming is not that different from snobbism in other areas.

Softpanorama link on TAOCP

Tags:

Coffee flavors

  • Jul. 15th, 2009 at 10:23 AM
comic

Espress
This is the base flavor, brewed by passing hot water under high pressure through finely ground coffee beans.

caffè latte
This is Coffee and Milk

Cappuchino
This is Espreso and Milk foam. This contains less milk than latte.

Advertisement

Latest Month

December 2009
S M T W T F S
  12345
6789101112
13141516171819
20212223242526
2728293031  

RSS Feeds

Syndicate

RSS Atom
Powered by LiveJournal.com
Designed by Tiffany Chow