in his characteristic way, has some interesting thing here.
And here is a followup equally amusing.
This is O.R.Senthil Kumaran's blogspot on programming and technical things. The title is a line from "Zen of Python".
clause - FOLDOC Entry
clause
1.A {logical formula} in {conjunctive normal form},
which has the {schema}
p1 ^ ...^ pm => q1 V ... V qn.
or,equivalently
~p1 V ... V ~pn V q1 V ... V qn,
where pi and qi are {atoms}.
The operators ~,^,V,=> are connectives,where ~ stands for a
{negation},^ for a {conjunction},V for a {disjunction} and =>
for an {implication}.
2.A part of a {SQL} statement that does not constitute
a full statement; for e.g. a "WHERE clause".
(2004-5-15)
Was sent to me on Apr 7, took a little extra time to edit.
Thanks FOLDOC
copy and paste in vim
Now, this was stupid. I had not figured out how to do copy-paste in vim editor.
At last now, I got it. Thanks to google and Linux Novice
HOWTO Copy and Paste in VIM Editor.
These Steps Assume you are in the Command Mode.
Step 1: Move your Cursor to the Starting Point of the text tobe Copied .
Step 2: Press v. The Mode changes to Visual.
Step 3: Move your Cursor now to the Ending point of the text tobe Copied.
Step 4: Press y This will copy the text in the buffer and lead to the starting point again.
Step 5: Move your Cursor to the position where you want to paste the text.
Step 6: Press p
YO!
At last now, I got it. Thanks to google and Linux Novice
HOWTO Copy and Paste in VIM Editor.
These Steps Assume you are in the Command Mode.
Step 1: Move your Cursor to the Starting Point of the text tobe Copied .
Step 2: Press v. The Mode changes to Visual.
Step 3: Move your Cursor now to the Ending point of the text tobe Copied.
Step 4: Press y This will copy the text in the buffer and lead to the starting point again.
Step 5: Move your Cursor to the position where you want to paste the text.
Step 6: Press p
YO!
The Logic Behind being Crazy
Most real innovation is done by crazy people doing crazy things. The keys are:
Learn all you can before you go adventuring.
Don't be afraid to make mistakes.
Only make new mistakes.
Keep your eyes open.
Don't just look straight ahead: develop your peripheral vision.
It's the things that go in unexpected directions are the most important.
James Gosling in his Java Blog
Learn all you can before you go adventuring.
Don't be afraid to make mistakes.
Only make new mistakes.
Keep your eyes open.
Don't just look straight ahead: develop your peripheral vision.
It's the things that go in unexpected directions are the most important.
James Gosling in his Java Blog
Geek Humor
Geek humor: If you take a close look at the form Google filed with the Securities and Exchange Commission, the exact value of its planned offering is $2,718,281,828 dollars, which some would immediately recognize as the mathematical constant e.
Notes on Programming in C by Rob Pike
The following data structures are a complete list for almost all practical programs:
array
linked list
hash table
binary tree
Of course, you must also be prepared to collect these into compound data structures.
Rob Pike
array
linked list
hash table
binary tree
Of course, you must also be prepared to collect these into compound data structures.
Rob Pike
Just to check
char p[]={0x4F,0x20,0x52,0x20,0x53,0x65,0x6E,0x74,0x68,0x69,0x6C,0x20,0x4B,0x75,0x6D,0x61,0x72,0x61,0x6E,0x00};
used man ascii and learnt some...
used man ascii and learnt some...
lucubration
lucubration \loo-kyoo-BRAY-shun; loo-kuh-\, noun:
1. The act of studying by candlelight; nocturnal study; meditation.
2. That which is composed by night; that which is produced by meditation in retirement; hence (loosely) any literary composition.
1. The act of studying by candlelight; nocturnal study; meditation.
2. That which is composed by night; that which is produced by meditation in retirement; hence (loosely) any literary composition.
Programming Humor
- "The primary purpose of the DATA statement is to give names to constants; instead of
referring to pi as 3.141592653589793 at every appearance, the variable PI can be given
that value with a DATA statement and used instead of the longer form of the constant.
This also simplifies modifying the program, should the value of pi change."
- FORTRAN manual for Xerox computers - "Programming graphics in X is like finding sqrt(pi) using Roman numerals."
- Henry Spencer - Real programmers are surprised when the odometers in their cars don't turn from 99,999 to A0000.
- Any sufficiently advanced bug is indistinguishable from a feature.
- COBOL programmers understand why women hate periods.
- Computer interfaces and user interfaces are as different as night and 1.
- If God had intended humans to program, we would be born with serial I/O ports.
- There are two ways to write error-free programs; only the third one works.
Swapping variables without dummy
This seems to be Old Programming School Practise. Came to know from Ariya.
a ^=b;
b ^=a;
a ^=b;
In C Programming, ^ stands for Exclusive OR.
Lets expand this expression and denote an and bn for new values of a and b then,
bn = b xor ( a xor b) = b xor a xor b = a
an = a xor ( b xor a) = a xor b xor a = b
a ^=b;
b ^=a;
a ^=b;
In C Programming, ^ stands for Exclusive OR.
Lets expand this expression and denote an and bn for new values of a and b then,
bn = b xor ( a xor b) = b xor a xor b = a
an = a xor ( b xor a) = a xor b xor a = b
Subscribe to:
Posts (Atom)