Success Has No Fixed Formula You Need To Find Your Own

Phone Was Always A Dream,Until and Unless Someone Developed It.

Success Has Its Own Algorithm

Computer Is Not a Tool,But someone's Desire which has grown Bigger

This is default featured slide 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

Labels

Saturday 17 November 2012

Want Any Lab Code

If U Want any lab code::::::



mail me :   adityadua1992@gmail.com

feedback are always welcome

LRU Page Replacement Algo in C

/* program to implement page replacement using LRU algorithm*/
#include<stdio.h>
int i,j=1,k,l,re[30],p[10],ch,no,nr,c,al=0,a,line=6;
struct re
{
          int st,l,ps;
}opr;
main()
{
          clrscr();
          printf("enter the length of the reference string:");
          scanf("%d",&nr);
          printf("enter the reference string:");
          for(i=1;i<=nr;i++)
          scanf("%d",&re[i]);
          printf("\n enter the number of frames:");
          scanf("%d",&no);
          clrscr();
          for(i=1;i<=no;i++)
          p[i]=-1;
          opr.st=0;
          for(i=1;i<=nr;i++)
          {
                   al=0;
                   opr.st=100;
                   for(c=1;c<=no;c++)
                   if(re[i]==p[c])
                   al++;
                   if(al==0)
                   {
                             if(j<=no)
                             {
                                      p[j]=re[i];
                                      j++;
                             }
                             else
                             {
                                      for(k=1;k<=no;k++)
                                      {
                                                for(ch=i-1;ch>=1;ch--)
                                                {
                                                          a=0;
                                                          if(p[k]==re[ch])
                                                          {
                                                                   a++;
                                                                   break;
                                                          }
                                                }
                                                if(a!=0)
                                                {
                                                          if(opr.st>ch)
                                                          {
                                                                   opr.st=ch;
                                                                   opr.l=re[ch];
                                                                   opr.ps=k;
                                                          }
                                                }
                                                else if(a==0)
                                                {
                                                          opr.ps=k;
                                                          break;
                                                }
                                      }
                                      p[(opr.ps)]=re[i];
                             }
                   }
                   display(no,p,i);
          }
          printf("\n");
          getch();
}

display(int no,int p[],int i)
{
          int k;
          if(i==1)
          {
                   printf("\t\t\t");
                   for(k=1;k<=no;k++)
                   printf("__");
          }
          printf("\n%d",re[i]);
          gotoxy(25,line++);
          for(k=1;k<=no;k++)
          {
                   printf("|");
                   printf("_");
                   if(p[k]!=-1)
                   printf("%d",p[k]);
                   else
                   printf(" ");
                   printf("_");
          }
          printf("|");
}

FCFS Disk Scheduling Algo implementation in C++

#include<iostream.h>
#include<conio.h>
#include<stdlib.h>
//#include<time.h>
int request[100],st,cylinders,n;
//time_t t;
void random(void )
{
  
    for(int i=0;i<n;i++)
    {
       //srand(request[(rand()%n)]);
       request[i]=rand()%cylinders+1;
    }
}  

void display(void )
{
     cout<<"\nThe requests are : \n";
     for(int i=0;i<n;i++)
        cout<<" "<<request[i]<<" ";
}
  
          
  
int main()
{
   int choice;
   void fcfs(void );
   void scan(void );
   cout<<"\nEnter no. of cylinders in hard disk and starting cylinder : ";
   cin>>cylinders>>st;
 
 
   cout<<"\npress 0 to generate random disk requests and any other no. to give your own requests : ";
   cin>>choice;
   if(choice==0)
   {
       cout<<"\nEnter no. of requests to generate randomly : ";
       cin>>n;
       random();
   }
   else
   {
       cout<<"\nEnter the cylinders requested (0 to break): \n";
       while(1)
       {
          cin>>request[n++];
          if(request[n-1]==0||n==100)
          {
              n--;
              break;
          
          }
      
       }    
   }
 
   cout<<"\nEnter the scheduling algo that you want to implement(0:FCFS,1:Scan) : ";              
   cin>>choice;
   switch(choice)
   {
      case 0:
           fcfs();
           break;    
      case 1:
           scan();
           break;  
      default:
         break;
   }
 
   getch();
   return 0;
}      
          
void fcfs(void )
{
     int total=0,i;              //no of cylinders traversed
     display();
     cout<<"\n\n The traversal is shown below : \n\n"<<st;
     for(i=0;i<n;i++)
     {
         cout<<"-->"<<request[i];
         total=total+abs(request[i]-st);
         st=request[i];  
     }
     cout<<"\n\nNo. of cylinders traversed : "<<total;
}                    

void scan(void )
{
     int total=0,i,j,temp;
     display();
     for(i=0;i<n;i++)
        for(j=0;j<n-1-i;j++)
        {
            if(request[j]>request[j+1])
            {
               temp=request[j];
               request[j]=request[j+1];
               request[j+1]=temp;
            }
        }
     display();
  
     cout<<" \nThe traversal is shown below : \n\n"<<st;
  
     if(st<request[0])
     {
        for(i=0;i<n;i++)
        {
           cout<<"-->"<<request[i];
           total+=abs(request[i]-st);
           st=request[i];
        }
     }
     else
     {
      
         i=0;
         temp=0;
         while(st>request[i++])
            temp++;
         for(i=temp;i<n;i++)
         {
          
                  
        
               cout<<"-->"<<request[i];
               total+=abs(request[i]-st);
               st=request[i];
  
               if(i==n-1)
               {
                
                  total=total+2*cylinders-request[i];
                  st=0;
                  i=0;
                  n=temp;
                  if(st!=cylinders)
                  {
                     cout<<"-->"<<cylinders;
                     cout<<"-->"<<1;
                  }
               }
          }    
                  
       }              
      
       cout<<"\nTotal cylinders traversed : "<<total;
  
}    

Saturday 3 November 2012

What Is A Leader????

WHAT IS A LEADER?
Yes what is a leader.
Some might think as a strange question but my question is correct.

Leader : A term which in our dictionary refers to 40+ old aged person who carries with himself his experience and knowledge who can tackle difficulties.

But Is he actually worthy of being called a Leader I doubt ?

We often see such characteristics in leader but the reverse is just true.

All those 40+ old mangers who are being talked of are just the power in position.A leader is one who inspire and motivates !!!!! Ya a bit bookish.
Lets simplfy In terms of Aditya Dua you are not a leader :

1.If you take the credit of your win.
2.If you fail you blame your team
3.If you believe you should head the team
4.If you believe you can get the work done by anger.

A person who heads the team is actually just a power head he may or may not be a good leader.
A leader is one who takes responsibility of all the failures that happens but forwards his teammates when it comes to collecting laurels.Even a junior level person in a team may be a leader because it requires skills of composure and able to tackle problems.

Dont worry I am not a leader I am doing just what I wish to convey




Sunday 26 August 2012

MSP Programme ...

Help Me In being the MSP



Do comment On Youtube

Sunday 10 June 2012

Dhirubhai Ambani : My Hero


Dhirubhai Ambani : Story Of THE LEGEND




Born to a school teacher, he was the third of five siblings, three brothers and two sisters. Ever since childhood, Dhirubhai was more keen on work than studies and repeatedly bunked classes and roamed in streets, watching people work and making money. He’d once said his mother to stop lamenting about the hardships and that he would make “heaps of money one day.” His entrepreneurial career began in his early school years by selling “bhajias” to pilgrims in Mount Girnar over the weekends. On completion of his school studies, his brother Ramnikbhai sent him to Aden, Yemen, which was the second busiest oil banking and trading port of the time.
He joined the largest transcontinental trading firm named A.Besse & Co as a gas-station attendant, as well as a dispatch clerk. A.Besse & Co would deal in every possible branch of trading from cargo booking, shipping, handling, forwarding, to wholesale merchandising for a great number of American, European, African and Asian companies. His hard work promoted him to maintain and manage company`s oil filling station at the port of Aden. Dhirubhai once said, “More than anything else I learnt that nothing big can ever be achieved without money, influence and power and I also learnt that money, influence and power alone cannot achieve anything in life, big or small, without a certain soft, delicate, sensitive, understanding human touch in all one’s deeds and words.” In 1958, he came back to India with Rs 50,000 and started the business of polyester yarn import-export at Masjid Bunder of South Mumbai and later founded the Reliance Commercial Corporation with an investment of 15,000. Back in those days Polyester was in great demand across Asian markets and soon his profit skyrocketed. Dhirubhai continued to live in one bedroom flat with his wife and children for almost a decade until 1968 when he moved to Altamount Road in South Mumbai. In 1966, Dhirubhai started his own textiles manufacturing unit at at Naroda, in Ahmedabad. He launched his first brand “Vimal” sometime in 1969-70; and in 1975, his manufacturing was visited by a team of technical experts from the World Bank who certified it as “excellent even by developed country standards.”
The biggest breakthrough in his life came in the year 1977, when he managed to attract over 58,000 investors in the very first IPO of Relience Commercial Corporation; and he never looked back ever since. A humble beginning helped him to stand his empire worth $64 billion.
He has been honored for several times for his significant contributions. In 1998 The Wharton School, University of Pennsylvania honored him with Dean’s Medal for his excellent leadership. In 1996, 1998, and 2000 Asiaweek magazine featured him among ‘Power 50 – the most powerful people in Asia. In 2001 Economic Times honored him with Economic Times Awards for Corporate Excellence for Lifetime Achievement and many more.
Dhirubhai built up a textile and Petrochemicals Empire with his dedication, ability to recognize new business opportunities, dare to take risk, never-give-up attitude and intelligence to handle people.
Dhirubhai Ambani Quotes:
“Our dreams have to be bigger. Our ambitions higher. Our commitment deeper. And our efforts greater. This is my dream for Reliance and for India.”
“Think big, think fast, think ahead. Ideas are no one’s monopoly”
“Pursue your goals even in the face of difficulties, and convert adversities into opportunities.”
“Give the youth a proper environment. Motivate them. Extend them the support they need. Each one of them has infinite source of energy. They will deliver.”


Source : http://www.successstories.co.in/dhirubhai-ambani-a-real-rags-to-riches-story.
copyright protected by : successstories.co.in 

Sunday 1 April 2012

Success is not a destination it is a journey

Success??????

We often hear that people boasting about I am successfull but is success really a destination ? If yes then
reliance would have never been a multi millionare bussiness house,
apple would have stopped after macintosh os,
there would have been no infosys,

Because as far as we feel we treat success is as destination but have u ever imagined after ur success in one project we tend to move on another project with more confidence and zeal our ultimate goal is far off and to our surprise that ultimate goal is also not our destination that is also the step to another goal which is much wider and better.

Who says failure is opposite to success ? In my observation failure is nothing but getting close to success.don't work to be successful work because you want to. It is often seen that when we work to be successfull we waste our time thinking about goal so guys just work because u think u want to work. When u focus on work u attain small success in terms of short goals that makes ur path comfortable and easy.
Let me narrate a story :
Once a 5 year child went to his guru to attain knowledge.
He asked him :
Guruji how much time will take to complete my education ?
The teacher replied him : 5 yrs if u practise 8 hrs a day.

The students asked : wht if I practise 16 hrs a day?
The teacher replied : 10 yrs
The student out of tension asked : if I study 24 hrs a day?
the guru replied : 20 yrs.....

The boy thought and asked when I am devoting more time then why r u increasing my time of education :
The guru told : son ! When u foucs on time then u tend to waste your time watching time and hence you go back one step from your goal.
Moral : when u want to achieve something in life then don't wait fr time jst start and time will follow u

Friday 30 March 2012

Agr sapne na hote to zindagi kitne adhori hoti

Agr sapne na hote
to
zindagi kitne adhori hoti

Na ye lambi lambi raten hoti
Na ye din me ye bhagam bhaag hoti

Agr sapne na hote to zindagi kitne adhori hoti

Na kuch pane ki khushi hoti
Na kuch khone ka gam hota....
Na hi zindagi me phele ane ki jung hoti

Agr sapne na hote to zindagi kitne adhori hoti

na hi hume kuch jeetne ki tamana hoti
Na hi hume kuch paana ki echa hoti
Hum aj bhi ghodhe aur gahde  chala rahe  hote
Technology ke naam par cycle hoti
haath mein android nahi purne jamane ki pen hoti
Agar sapne na hote to ye blog nahi purno ki kitabe hoti

Agr sapne na hote to zindagi kitne adhori hoti

Sapne na hote to hame chaan ki neeend milte
Kyunki sapne vo nahi jo hum so kar dekhte hain
Sapne to vo hote hain jo apko sone nahi dete....
Agr sapne na hote to zindagi kitni adhori hoti