i-Nnovate

Sunday, October 21, 2007

Downloading Pages via SSL and proxy using LWP Perl

›
If you use LWP modules in perl then you can download pages via HTTP easily using a proxy. However if you wanna download pages with HTTPS thr...
48 comments:
Thursday, June 28, 2007

Recovering deleted files in an ext3 File System

›
I was working on my Debian machine few days ago when accidentally I pressed "rm -rf *" in a wrong directory(my main working direc...
4 comments:
Friday, June 08, 2007

Recovering Lost Emails from Google Desktop Search's Cache

›
This post is for you if you Have accidentally deleted mails and Use Google Desktop Search (GDS) and Were fortunate or sensible enough or pos...
1 comment:
Friday, January 05, 2007

Stock Index

›
What does the stock Index indicate? First, let’s look at what an index number represents. Although there are different ways to calculate ind...
2 comments:

Spell Checkers

›
Ever Wondered how search engines like Google, Yahoo or for instance Microsoft word Does spell checking. Well the basic idea is to get Levens...
1 comment:
Tuesday, January 02, 2007

Casting Out Nines

›
How do you check the answer of a large multiplication like 8216*4215=36430440 without actually doing the multiplication. Sum 8+2+1+6=17. Tak...
2 comments:

Austrian Method of Subtraction

›
How do you subtract 5592 from 11149. Simple question.... There's an interesting method which involves only addition as it is easier to d...
4 comments:

Pascal's Triangle

›
There's a very good article about Pascal's Triangle in Wiki. I am just enumerating some important points for quick reference. - Con...
9 comments:
Monday, January 01, 2007

Hats

›
There are 5 persons in a line, all facing in the same direction. There are 5 hats, 2 white and 3 black. A person can't see the color of ...

Salaries of three persons

›
There are 3 persons A,B,C and their salaries are X, Y, Z respectively. Problem: Device a scheme so that all three of them know X+Y+Z, by ask...
Saturday, December 30, 2006

Calculate n-1

›
Well the problem is : your input in 'n' and you have to calculate n-1 without using the '-' opertaor... simple one I guess T...

Quine

›
Have u ever come across a code that prints its own code as an output.... these type of codes are calle Quines... and here is a link containg...

Scanf

›
very often we have encountered problems where a code fragment like for(i=0;i simple... the stray '/n' escape sequence remains in th...

Increment Operators

›
is the C statement /*printf("%d, %d, %d\n", i,i++,++i)*/ a valid statement? Think hard before arriving to any conclusions.... Well...

sizeof()

›
Well found something new about the sizeof() firstly it is an unary operator and shouldn't be mistaken for a function secondaly, what do ...

gets()

›
Well we all know that whenever we compile a file containing a refference to gets() function, the compiler gives a warning that using gets() ...

string inside scanf()

›
what will the following statement do??? scanf( " %d %d" + scanf("%d %d",&i,&j) ,&a); the inner scanf wi...

not a big deal

›
what would be the output of the following code statement main(_){for(--_;putchar(_++["J!Mpwf!Zpv\1"]-1););} think, think..... Well...

P NP

›
Well I have always been consufed with NP, P CO-NP and all such funda.... so today decided to get the basic funda clear about this: NP: It is...

Memory Leak

›
In simple terms memory leaks may be defined as the loss of any memory allocated during the program... for a more precise and informative def...
185 comments:

Goto

›
It has always been suugested to not use Goto in our programs, instead use for while and other stuff like it. why?? firstly, using goto may i...

Twelve days of Christmas

›
This is my fisrt post about obfuscated programming and this stuff seems to be amazing...... at first when I saw this code , I was amazed to...

Puzzle

›
consider the following code fragment: void fun() { } int main() { int i=10; fun(); printf("%d\n",i); } Now the task is to write so...

To find the greater of two number

›
Yes, but without using comparison operators!!!! the first solution came from Mayank... which was: int max(a,b) { if(a/b) return a; else retu...

Puzzle

›
You are given an array with n elements { x1, x2 ... xk ... xn }. You are also given an array location k. Using constant space and O(n) time,...
1 comment:

Simple One

›
Consider the following program #include void main() { if(.....) printf("AB"); else printf("C"); } Q: fill in the blank w...

Pointers and Reference

›
Although they look the same but have major differences. These are said to be valid in C++. I don't know about C. The info can be found h...

String Constants

›
char *a = "abc"; a = "def"; The above is correct but the code crashes when we do a[1] = 'd'; This may be becaus...

Padding

›
static struct { unsigned char **segment; unsigned int *reg1; unsigned int *reg2; int offset; int offset16; int pad[3]; /* Make structure pow...

Size of a Datatype

›
how to find the size of any datatype in c ,without using sizeof operator and also without using the technique of bitwise operator? U can us...
26 comments:

Reverse an Array

›
An array of size N has distinct values 1…N in random order. You have only operator called rev(X) (where X is any value from 0 to N-1) which ...

More Efficient

›
which is more efficient of these two FOR LOOPS for(int i=0;i for(int i=0;i Post increment is less efficient that Pre because in former the ...

without "" in printf

›
can u print any string wthout using " " in printf function? without using " " anywhere in the program #define str(a) #a ...
1 comment:

without main

›
Although its not possible to write a program without main() but still it may be possible that main() is not present explicitly... as follows...

Integer Limits

›
Any way to get the limits of an integer using a code? There are two ways: 1.Simpler one #include #include int main() { printf("Range o...

Maximal Munch

›
How is the expression x+++y parsed? As x++ + y or x + ++y ? Why? The issue is with tokenization. The ANSI C standard requires that the lo...
Saturday, November 04, 2006

Web 2.0, for the layman!

›
We have often heard the term Web 2.0. What does it mean? Surely there's no new version of the web available and neither there are any pa...
5 comments:

Biasing Web Results for Topic Fimiliarity

›
This post is based on a research paper by Yahoo! Research written by Omid Madani and Rosie Jones of Yahoo! and Giridhar Kumaran from Unive...
26 comments:
Friday, November 03, 2006

Useful Keyboard shortcuts for Microsoft Word

›
C refers to Control S refers to Shift C+Home Go to first line of Page from anywhere S+End Go to last line of a Page from anywhere C+S+...
2 comments:
Home
View web version
Powered by Blogger.