Today my exams are finished..
and m happy of that.
it was really a tuff task to study in summer..
NO LIGHT
NO FAN
SWEAT ALL OVER
Just impossible to handle.
I was happy so want to share with all of you...
now i will enjoy my summer vacations
Yepi!!!!!!!
Software Project Management Exam
i had exam of SPM today..
one of the most boring subject in my education history...
i m really pissed off studying that subject!
i had attempted full paper but still not sure about my result...
any ways nw i have to study ERP byeeeeeee!!!!!!!
one of the most boring subject in my education history...
i m really pissed off studying that subject!
i had attempted full paper but still not sure about my result...
any ways nw i have to study ERP byeeeeeee!!!!!!!
E-Mail using PHP script
you can use this php script for sending emails.....
< ?php
$name= $_POST['name'];
$email= $_POST['e-mail'];
$phone= $_POST['phone'];
$address= $_POST['address'];
$message= $_POST['message'];
$recipent="xyz@gmail.com";
$subject="Customer Query";
$mailheaders="From: "$name"." ".Phone No.:."$phone"." ".Address:."$address"";
$mailheaders .="Reply To: "$email"";
mail($recipent,$subject,$message,$mailheaders);
?>
< ?php
$name= $_POST['name'];
$email= $_POST['e-mail'];
$phone= $_POST['phone'];
$address= $_POST['address'];
$message= $_POST['message'];
$recipent="xyz@gmail.com";
$subject="Customer Query";
$mailheaders="From: "$name"." ".Phone No.:."$phone"." ".Address:."$address"";
$mailheaders .="Reply To: "$email"";
mail($recipent,$subject,$message,$mailheaders);
?>
I Did Not Vote
today,on 7th of may 2009, 5th phase of election
held in INDIA.
But i did not vote because i did not find any candidate from ghaziabad worth of my vote.
i think there should be a BLANK Vote or NO VOTE option in EVM( electronic voting machine)
so that these candidate may know that they are not worth of anything!
CHEERS!!!!!!! For INDIA
i hope next gov will be good for our country..
like all other previous governments
held in INDIA.
But i did not vote because i did not find any candidate from ghaziabad worth of my vote.
i think there should be a BLANK Vote or NO VOTE option in EVM( electronic voting machine)
so that these candidate may know that they are not worth of anything!
CHEERS!!!!!!! For INDIA
i hope next gov will be good for our country..
like all other previous governments
computer networks exam
i m one of the victims of UPTU.
this year our date sheet gonna kill us.
what the crap date sheet is this yaar!
i to give them the huge fuck who crated this date sheet!
zero gap for study in computer networks exam
this is the limit buddies!
i do not know how m going to pass this exam!!!!!!
god help me....
this year our date sheet gonna kill us.
what the crap date sheet is this yaar!
i to give them the huge fuck who crated this date sheet!
zero gap for study in computer networks exam
this is the limit buddies!
i do not know how m going to pass this exam!!!!!!
god help me....
Destroy a session in PHP
here is the script for destroying a session.......
< ?php
session_start();
session_destroy();
header("Location: logout.html");
?>
< ?php
session_start();
session_destroy();
header("Location: logout.html");
?>
ATM - An alarm to police
If you are ever forced by a thief or someone to take money out of an ATM
Machine; enter your pin number reversed.
So if your number is 1254 mark 4521.
The ATM machine will give you your money, but will automatically recognize this as a plea for help and will alert the police unknown to the thief.
This option is in all ATM machines, but not many people know this.
Please pass this information on to others. No harm in keeping this in mind!!
Machine; enter your pin number reversed.
So if your number is 1254 mark 4521.
The ATM machine will give you your money, but will automatically recognize this as a plea for help and will alert the police unknown to the thief.
This option is in all ATM machines, but not many people know this.
Please pass this information on to others. No harm in keeping this in mind!!
IIT Roorkee Cognizance-2009
I was at iit roorkee when i make this video of two IITian a singer and a guitarist...
that was amazing moment
and that night is unforgettable to me.
here is that video...
that was amazing moment
and that night is unforgettable to me.
here is that video...
Shortest Job First (SJF)-CPU Scheduling Algo in C
simulation of CPU Scheduling Algorithm - SJF in C
Code goes like that
# include < stdio.h>
# include < conio.h>
struct process
{
int pid ;
int burst ;
int wait ;
};
void main()
{
struct process p[5] , temp ;
int i,j,wait=0 ;
float twait;
clrscr();
for(i=0;i<5;i++)
{
p[i].pid = i+1 ;
printf("\nprocess p%d\n",i+1) ;
printf("\nenter burst time\n");
scanf("%d",&p[i].burst);
}
for(i=0;i<5;i++)
{ for(j=0;j<5;j++)
{
if(p[j].burst>p[i].burst)
{
temp=p[i];
p[i]=p[j] ;
p[j]=temp;
}
}
}
printf("\nprocess\t\tburst time\t\twaiting time\n");
for(i=0;i<5;i++)
{
p[i].wait=wait ;
printf("\np%d\t\t%d\t\t\t%d\n",p[i].pid,p[i].burst,p[i].wait);
wait = wait + p[i].burst ;
}
twait=wait;
printf("\n\n average waiting time= %f",(twait/5));
getch();
}
Code goes like that
# include < stdio.h>
# include < conio.h>
struct process
{
int pid ;
int burst ;
int wait ;
};
void main()
{
struct process p[5] , temp ;
int i,j,wait=0 ;
float twait;
clrscr();
for(i=0;i<5;i++)
{
p[i].pid = i+1 ;
printf("\nprocess p%d\n",i+1) ;
printf("\nenter burst time\n");
scanf("%d",&p[i].burst);
}
for(i=0;i<5;i++)
{ for(j=0;j<5;j++)
{
if(p[j].burst>p[i].burst)
{
temp=p[i];
p[i]=p[j] ;
p[j]=temp;
}
}
}
printf("\nprocess\t\tburst time\t\twaiting time\n");
for(i=0;i<5;i++)
{
p[i].wait=wait ;
printf("\np%d\t\t%d\t\t\t%d\n",p[i].pid,p[i].burst,p[i].wait);
wait = wait + p[i].burst ;
}
twait=wait;
printf("\n\n average waiting time= %f",(twait/5));
getch();
}
Priority Scheduling in C
Simulation of CPU Scheduling Algorithm - Priority Scheduling in C
code goes like that
#include< stdio.h>
#include< conio.h>
struct process
{
int pid;
int priority;
int comp;
int burst;
};
void main()
{
struct process p[5], temp;
int i,j, comp=0;
float tcomp;
clrscr();
for(i=0;i<5;i++)
{
p[i].pid = i+1;
printf("\nprocess p %d",i+1);
printf("\nenter burst time");
scanf("\n%d",&p[i].burst);
printf("\nenter priority ");
scanf("\n%d",&p[i].priority);
}
for(i=0;i<5;i++)
{
for(j=0;j<5;j++)
{
if(p[j].priority>p[i].priority)
{ temp=p[i];
p[i]=p[j];
p[j]=temp;
}
}
}
printf("\nprocess\t\tburst time\t\tpriority\t\tcompletion time\n");
for(i=0;i<5;i++)
{
{
comp=comp+p[i].burst;
}
printf("p%d\t\t %d\t\t\t %d\t\t\t %d\n",p[i].pid,p[i].burst,p[i].priority,comp);
}
tcomp=comp;
printf("\n\naverage waiting time=%f",(tcomp/5));
getch();
}
output for the above code is:
code goes like that
#include< stdio.h>
#include< conio.h>
struct process
{
int pid;
int priority;
int comp;
int burst;
};
void main()
{
struct process p[5], temp;
int i,j, comp=0;
float tcomp;
clrscr();
for(i=0;i<5;i++)
{
p[i].pid = i+1;
printf("\nprocess p %d",i+1);
printf("\nenter burst time");
scanf("\n%d",&p[i].burst);
printf("\nenter priority ");
scanf("\n%d",&p[i].priority);
}
for(i=0;i<5;i++)
{
for(j=0;j<5;j++)
{
if(p[j].priority>p[i].priority)
{ temp=p[i];
p[i]=p[j];
p[j]=temp;
}
}
}
printf("\nprocess\t\tburst time\t\tpriority\t\tcompletion time\n");
for(i=0;i<5;i++)
{
{
comp=comp+p[i].burst;
}
printf("p%d\t\t %d\t\t\t %d\t\t\t %d\n",p[i].pid,p[i].burst,p[i].priority,comp);
}
tcomp=comp;
printf("\n\naverage waiting time=%f",(tcomp/5));
getch();
}
output for the above code is:
Subscribe to:
Posts (Atom)