Showing posts with label fun tricks. Show all posts
Showing posts with label fun tricks. Show all posts
Tuesday, August 24, 2010

A Clever Way to Fix the Bug haha :)

Remove this bug from code...

#include
<stdio.h >
#define LAST 10

int main()
{
int i, sum = 0;
 


 

for ( i = 1; i < = LAST; i++ )
{
sum += i;
}

/*-for-*/
printf("sum = %d\n", sum);
return 0;
}

############ ######### ######### ######### ######### #########




And the developer fixes it this way



..
..
..
..
....
..
#include stdio.h;
#define LAST 10

int main()
{
int i, sum = 0;

/*

 


*/
for ( i = 1; i < = LAST; i++ )
{
sum += i;
}

/*-for-*/
printf("sum = %d\n", sum);
return 0;

Friday, July 16, 2010

is your anti-virus intelligent

# open a wordpad or not pad and save this.

X50!P%@AP[4\PZX54(P^)7CC)7}EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*

save it as eicar.com . while doing this your anti-virus should stop you. its not harmful either but if the anti virus is active it will warn you. if it does not then your anti virus is good for nothing .

the above code is a standard code to check the antivirus.

copy and paste the below javascript code in your address bar and press enter and see the shakeee


javascript:function Shw(n) {if (self.moveBy) {for (i = 35; i > 0; i--) {for (j = n; j > 0; j--) {self.moveBy(1,i);self.moveBy(i,0);self.moveBy(0,-i);self.moveBy(-i,0); } } }} Shw(6)