Monday, January 12, 2015

Recover missing, lost, or deleted files

How to recover missing, lost, or deleted files

Computer hard driveBefore reviewing the below recommendations and suggestions, verify that the files have been deleted; in some cases the files may have been moved. You can search the hard drive for the files you believe to be missing by running find or search on the computer.

Recover file from backup

If the file has been backed up to floppy disk or other medium it is recommended that the file be restored from that backup if the file cannot be found.

Restore from Recycling Bin or Trash

If you are running Apple MacOS or MicrosoftWindows and the file has been recently deleted it may still be in the Trash or Recycle Bin. If present within this area it can be recovered.

Download freeware program or purchase a program

When a file is deleted (even when removed from the Recycle Bin) the files are marked as deleted, however it is not removed from the hard drive. Assuming no other file has overwritten the deleted file on the hard drive a recovery program can be used to recover deleted files. Below is a list of freeware file recovery programs that can be used freely to recover lost data.
  1. Recuva
  2. Restoration
  3. Undelete Plus
  4. FreeUndelete
  5. Photorec
  6. PC Inspector File Recover *Not compatible with Vista/7
Tip: When running a program such as Restoration in Windows Vista or 7 and prompted to run as administrator, right-click on the executable and choose the option to run as administrator.
In addition to the above freeware programs there are also several companies who have created programs designed to recover your lost data. For example, PowerQuest makes the utility Drive Image that in some cases can be used to recover data from a hard drive.

Utilize a service from a company that specializes in recovering lost data

Utilize the service of a local data recovery company or an out of state data recovery company. One word of caution is that these services can sometimes be very expensive. It is only recommended they be used if the data is extremely important or data cannot be read from hard drive. Below is a listing of a few major data recovery companies.
  1. Action Front Data Recovery
  2. CBL Data Recovery Technologies Inc.
  3. Doctor Byte
  4. DriveSavers Data Recovery
  5. Kroll Ontrack
  6. Lazarus Data Recovery
  7. Virtual Data Recovery
  8. Stellar Data Recovery
  9. DataCent Professional Data Recovery
There are also several companies that specialize in the service of recovering files or documents that are password protected. Below is a listing of some of the companies that provide this service.
  1. Passwordcrackers
  2. Passwordservices.com
  3. Password Recovery software

Additional information

Steric diamond

//print a diamond

#include<iostream>
using namespace std;
int main()
{ int height;
cout<<"Enter height: ";
cin>>height; for(int i=1;i<height;i++)
{ for(int j=height;j>i;j--)
{ cout<<" ";
} for(int k=1;k<=1;k++)
{ cout<<"*";
} for(int m=1;m<i;m++)
{cout<<"**";
}
cout<<endl;
}
for(int y=1;y<=height;y++)
{ for(int z=1;z<y;z++)
{ cout<<" ";
} for(int a=1;a<=1;a++)
{ cout<<"*";
} for(int s=y;s<height;s++)
{ cout<<"**";
}
cout<<endl;
}
return 0;
}

Thursday, December 18, 2014

Spaceless triangular sterric pattern

//c++ program to display pattern like that

//user only enter the size
#include <iostream>
using namespace std;
int main()
{
 int size,temp_variable;  //declaring variables
 cout<<"Enter size = ";  //asking for output
 cin>>size;     //input
 temp_variable=size;   //storing sizze in temporary variable
 if(size>0)
 {
  for(int i=1;i<=size;i++)   //outer loop controlling number of rows
  {
   for(int j=1;j<=temp_variable;j++)  //inner loop controlling number of columns
   {
    cout<<"*";
   }
   temp_variable--;   //applying decrement
   cout<<endl;
  }
 }
 else
 {
  cout<<"PLease enter size greater than zero.\n";
 }
 return 0;
}

Triangular steric pattern

//c++ program to display pattern like that

#include <iostream>
using namespace std;
int main()
{
 int size,temp_variable;   //declaring variables
 cout<<"Enter size = ";   //asking for input
 cin>>size;      //input
 temp_variable=size;    //store size in temporary variable
 if(size>0)
 {
  for(int i=1;i<=size;i++)   //outer loop controlling number of rows
  {
   for(int j=1;j<=temp_variable;j++)  //inner loop controlling number of columns
   {
    cout<<"* ";
   }
   temp_variable--;     //applying decrement
   cout<<endl;
  }
 }
 else
 {
  cout<<"Please enter size greater than zero.\n";
 }
 return 0;
}

Triangular number pattern

//c++ program to dispaly a pattern like that

//so user only has to enter the size of pattern
#include <iostream>
using namespace std;
int main()
{
 int size,temp_size;    //declaring variable
 cout<<"Enter size  = ";   //asking for output
 cin>>size;      //giving input
 temp_size=size;      //store size in a temporary variable named temp_size
 for(int i=1;i<=size;i++)    //outer loop controllin number of rows
 {
  for(int j=1;j<=temp_size;j++)  //inner loop controlling number of columns
  {
   cout<<j<<" ";
  }
  temp_size--;     //decrement
  cout<<endl;
 }
 return 0;
}

Lower triangular number pattern

//c++ program to display a pattern like that

//so user only has to enter size
#include <iostream>
using namespace std;
int main()
{
 int size;        //declaring variable
 cout<<"Enter size = ";     //asking for input
 cin>>size;        //giving input(size)
 if(size>0)        // applying check
 {
  for(int i=1;i<=size;i++)    //applying outer loop which will controll number of rows
  {
   for(int j=1;j<=i;j++)    //applying inner loop whiuch will controll number of columns
   {
   cout<<j<<" ";
  }
  cout<<endl;
  }
 }
 else
 {
  cout<<"You have enter wrong size\n";   //condition for invalid input
 }
 return 0;
}

To find the nature and value of roots of quadratic equation except for complex roots

/*c++ Program to find the nature of roots and value of
roots of a quadratic equation.User has to enter the values of coefficients
of x^2,x and the value of constant*/


#include<iostream>
#include<cmath>
using namespace std;
int main()
{
  float a,b,constt,discre,root1,root2,k;  //declaring variables
  do
  {
  cout<<"Enter coeffitient value of x^2 = ";
     cin>>a;         //input the value of a the coeffitient of x^2
  }while(a==0);        //checking condition
  cout<<"Enter coeffitient value of x = ";  //asking to give input (value of coeffitient of x)
  cin>>b;          //input the (value of coeffitient of x)
  cout<<"Enter value of constant = ";    //asking to give value of constant
  cin>>constt;          //input the value of constant
  discre=pow(b,2)-4*a*constt;      //k is used as to store a temperarly intermediate result
  k=sqrt(discre);
   if(discre==0)
   {
     root1=(-b+k)/(2*a);  
     cout<<"The equation has a single(repeated) root\n\n";
     cout<<"first root = "<<root1<<endl;
   }
  else if(discre>0)
  {  
   root1=(-b+k)/(2*a);
   root2=(-b-k)/(2*a);
   cout<<"Equation has two real roots.\n\n";
      cout<<"First real root = "<<root1<<endl;
      cout<<"Second real root = "<<root2<<endl;
     }
  else
  {
    cout<<"The equation has two complex roots\n\n";
  }
 return 0;
}