Thursday 29 May 2014

Download Whatsapp For PC Windows XP, 7, 8 / MAC For Free

Filled under:

Post By: Hanan Mannan
Contact Number: Pak (+92)-321-59-95-634
-------------------------------------------------------

Download Whatsapp For PC Windows XP, 7, 8 / MAC For FreeThese days Whatsapp become one of the best free messenger for all type of android phones, smart phones, tablets and also for PC. It has about 450 million active users globally. By using whatsapp you can chat with your friends and also share media files such as video, audio, images  with your friends. This messenger got so many active users within a short time because people are looking to cut down text message charges. To download whatsapp on pc before that  we need to install bluestacks on pc.

                                                  
dowload+whatsapp+for+pc

                    Steps To Download And Install Whatsapp On PC 

    • Download and Install Bluestacks on pc.
    • Bluestacks allow you to use android apps on pc by accessing you to google play store.
    • After finishing the installation process open bluestacks and search for whatsapp.
    • Click install button it will take some time to setup after that you can see whatsapp icon in All apps section.
    • To get idea checkout below pictures that will help you to install both Bluestacks and Whatsapp.

                                Installation Process Of Bluestacks & Whatsapp:

       After downloading bluestacks on pc run setup file and it will displays the below screen here click on "CONTINUE"
                                               
      installing+bluestacks
      After click on continue it will display below window and you should deselect three boxes and click on "INSTALL" for easy installation process.
                                                 
      installing+bluestacks..   

      It will take some time to Install bluestacks...
                                               
      installing+bluestacks+process

      Search for whatsapp messenger and click install button it will take some time to download and install It on pc. 
      download+whatsapp+on+pc

      After installation it will display the below window.Now its ready to use whatsapp messenger on pc by using bluestacks.

      welcome+to+whatsapp

      Click on "AGREE AND CONTINUE" if you are new to whatsapp messenger it will ask you to verify your phone number
      . After that whatsapp is ready to use.

      Posted By MIrza Abdul Hannan12:42:00 am

      How To Activate Or Enable 2 Step Verification In Facebook

      Post By: Hanan Mannan
      Contact Number: Pak (+92)-321-59-95-634
      -------------------------------------------------------

      How To Activate Or Enable 2 Step Verification In FacebookWe all know that google has giving maximum security with 2 step verification.Facebook also launched 2 Factor Verification but this feature is not available in all countries. Facebook call it as Login Approval's. Facebook is providing 2 step verification for limited countries only. It's not available in some countries In India, Pakistan, Indonesia, Sri lanka, Philippines and many more countries.

                                                    
      2+factor+verification+in+facebook

               What Is 2 Step Verification And How It Will Works

      It means to login in to your account you need password. In 2 step verification you need account password and other one is randomly generated code sent to your mobile as sms or to your app Every time you accessed from new browser/device. Even though the person know your password he cannot get access to your account directly without knowing the randomly generated code sent to your mobile.

      How To Activate OR Enable 2 Step Verification In India

      It means Facebook has launched this feature in U.K and some other countries also.By using those countries Proxy we can enable this feature.Here I am using UK proxy.

      Activate OR Enable 2 Step Verification In Pakistan:
      • Open Mozilla Firefox browser.
      • Now get UK proxy from here.
      • Open menu>>options>>Advanced>>Click on settings.
      connection+settings
      •  In connection settings select manual proxy configuration.Enter HTTP Proxy and Port.Here I used UK Proxy.Tick use this proxy for all protocols.
      change+proxy
      • Save settings and login to your facebook account.
      • Click on settings>>security settings>>here you can see login approvals. (If you can't see you may entered wrong proxy please try another one..)
      • Just click on it.
      security+settings
      •  It will pop up a window. Click on Get Started to activate 2 factor verification to your account.
      login+approvals+get+started
      • Here you can setup your phone to receive randomly generated code through facebook app then select "android, I-phone or I-pod Touch" option.
      • If you want to get randomly generated code through mobile SMS select "other" option
      phone
      • select other option and click on "continue". After click on continue button facebook sends you a text message to your mobile which you already registered with facebook.
      • Just enter the code below which you received on mobile.
      security+code+delivery
      • After entered the code click on continue. Now you can enjoy 2 step verification feature on your account.
      NOW: If any one try to login in to your account from unrecognized browsers with password, they cannot get access to your account without entering randomly generated code received on your mobile.

      Posted By MIrza Abdul Hannan12:41:00 am

      How To Make Your PC/Laptop Run Faster And Smoother

      Filled under:

      Post By: Hanan Mannan
      Contact Number: Pak (+92)-321-59-95-634
      -------------------------------------------------------How To Make Your PC/Laptop Run Faster And Smoother
      Its really irritating when your Pc/Laptop get dangled without any reason or not responding properly. All such things makes your experience with your devices bad.But some devices will respond very slowly because of its hardware configuration.Even though if you have a good hardware configuration your device take too much time to respond or dangled you need to follow some steps to make your Pc/Laptop run faster and smoother.It Doesn't mean that your dual core processor will work like a i5 processor.Its impossible but if you experience your device performance is less than of its existing performance you need to follow below steps which makes your device run faster and smoother.
                                                
      How+To+Make+Your+PCLaptop+Run+Faster+And+Smoother

         How To Make Your PC/Laptop Run Faster And Smoother

      Clean Prefetch Folder: To start up a program faster windows saves a file of the program.After using those programs for long time prefetch folder get filled with unrelated data/programs.To clean this folder open notepad (copy and paste the below code).

                                                 del C:\Windows\Prefetch\*.* /Q
                                                 Rundll32.exe advapi32.dll,ProcessIdleTasks 

                                              
      clean+prefetch+folder

                 Save it as faster.bat (by saving it as .bat extension it will run as batch file)....
                                     
      clean+prefetch+folder+save

      Go to the location where you saved and just double click on it to initialize the file.Within a seconds command window will disappear your Pc/Laptop run faster and smoother than before.
                                       
      clean+prefetch+folder+double+click

      Uninstall Unwanted Programs:
       Its very important to know that what type of programs/software currently installed in your device and how it will works and is there any use of those programs or not. Software those are running on back end use some amount of RAM.Which makes your device slower.So better uninstall such type of programs/software which you don't use frequently and also some unused programs.
                                       
      uninstall+unwanted+programs

      Disk Defragmentation: If you store a data in hard drive or any storage device.It will store in several separate areas which leads to fragmentation.After deletion of those files/data some amount of memory will not be available.To recover that memory we use defragmentation tool.

      If you want to defragment any hard drive open "my computer" >> Right click on a drive which you want to defragment>>Properties                               
      disk+defragmentation+select+properties
                                                            >> Choose Defragment Now.                                                            
      disk+defragmentation+select+defragment+now
      Check For Disk Errors: Disk errors may slow down your Pc/Laptop.If you want to defragment any hard drive open "my computer" >> Right click on a drive which you want to check for disk errors.>> Properties >> Choose "check now" under error checking area.This windows inbuilt tool will scan and fix all the errors within hard drive.
                                                         
      check+for+disk+errors
      Install Anti-Virus: Anti-Virus plays an important role in speed of your Pc/Laptop or other devices.It will protect our device from harmful viruses which may attack during download a file from internet or when we connect cd's and pen drives to our devices to copy the files from it.There are more chances of getting infected by the viruses and worms within the device.So protect your device by choose best antivirus which provides you a better security.

      Stop Unnecessary Programs From Starting when Your Device Boots:Every time you start or reboot your Pc/Laptop or other devices some programs run immediately it will take some memory that makes your device slow.So better to stop those programs from starting when your device boots.

      Follow below steps: 
      • Click on start button>> search for "Run">>then type "msconfig" (microsoft's system configuration utility.)                                      
      msconfig

       
                                                   Choose "Selective Start up"
                                             
      choose+selective+startup


      Now uncheck the programs which you don't want to run everytime when you start or boot the device.
                                              
      uncheck+the+programs

      Clean Up Your Disk And Remove Temporary Files: This is one of the best method to make your device faster and smoother.This inbuilt windows tool remove unwanted and temporary files which are not in use.

       Follow below steps: 
      • open "my computer" >> Right click on a drive which you want to cleanup>> Properties >> General>>Choose Disk Cleanup.
      • It will display all unwanted and unnecessary files now remove all listed files.
      disk+cleanup
      To Remove All Temporary Files: Follow below steps to remove all temporary files.
      Click on start button>> search for "Run">>then type "%temp%" and press enter.
                                           
      remove+all+temporary+files
      • New window will appear in that select all files and hit delete.
      • After that type "temp" in run box and press enter and delete all files.
      remove+all+temporary+files+temp
       Check For Updates: It is very important you should keep your Pc/Laptop up to date.Always use latest version of software's, update video and audio drivers that will improve your system graphics.Before installing any drivers, software's, or any other applications make sure that those are suitable to your device or not.
                                           
      check+for+updates

      Posted By MIrza Abdul Hannan12:38:00 am

      Wednesday 28 May 2014

      Pascal - Date & Time

      Filled under:

      Post By: Hanan Mannan
      Contact Number: Pak (+92)-321-59-95-634
      -------------------------------------------------------

      Pascal - Date & Time

      Most of the softwares you write need implementing some form of date functions returning current date and time. Dates are so much part of everyday life that it becomes easy to work with them without thinking. Pascal also provides powerful tools for date arithmetic that makes manipulating dates easy. However, the actual name and workings of these functions are different for different compilers.

      Getting the Current Date & Time:

      Pascal's TimeToString function gives you the current time in a colon(: ) delimited form. The following example shows how to get the current time:
      program TimeDemo;
      uses sysutils;
      begin
         writeln ('Current time : ',TimeToStr(Time));
      end.
      When the above code was compiled and executed, it produces the following result:
      Current time : 18:33:08
      
      The Date function returns the current date in TDateTime format. The TDateTime is a double value, which needs some decoding and formatting. The following program demonstrates how to use it in your program to display the current date:
      Program DateDemo;
      uses sysutils;
      var
         YY,MM,DD : Word;
      begin
         writeln ('Date : ',Date);
         DeCodeDate (Date,YY,MM,DD);
         writeln (format ('Today is (DD/MM/YY): %d/%d/%d ',[dd,mm,yy]));
       end.
      When the above code was compiled and executed, it produces the following result:
      Date: 4.111300000000000E+004
      Today is (DD/MM/YY):23/7/2012
      
      The Now function returns the current date and time:
      Program DatenTimeDemo;
      uses sysutils;
      begin
         writeln ('Date and Time at the time of writing : ',DateTimeToStr(Now));
      end.
      When the above code was compiled and executed, it produces the following result:
      Date and Time at the time of writing : 23/7/2012 18:51:
      
      Free Pascal provides a simple time stamp structure named TTimeStamp, which has the following format:
      type TTimeStamp = record
        Time: Integer;
        Date: Integer;
      end;

      Various Date & Time Functions:

      Free Pascal provides the following date and time functions:
      S.NFunction Name & Description
      1function DateTimeToFileDate(DateTime: TDateTime):LongInt; 
      Converts DateTime type to file date.
      2function DateTimeToStr( DateTime: TDateTime):; 
      Constructs string representation of DateTime
      3function DateTimeToStr(DateTime: TDateTime; const FormatSettings: TFormatSettings):;
      Constructs string representation of DateTime
      4procedure DateTimeToString(out Result: ;const FormatStr: ;const DateTime: TDateTime); 
      Constructs string representation of DateTime
      5procedure DateTimeToString( out Result: ; const FormatStr: ; const DateTime: TDateTime; const FormatSettings: TFormatSettings ); 
      Constructs string representation of DateTime
      6procedure DateTimeToSystemTime( DateTime: TDateTime; out SystemTime: TSystemTime ); 
      Converts DateTime to system time
      7function DateTimeToTimeStamp( DateTime: TDateTime):TTimeStamp;Converts DateTime to timestamp 
      8function DateToStr( Date: TDateTime ):; 
      Constructs string representation of date
      9function DateToStr( Date: TDateTime; const FormatSettings: TFormatSettings ):; 
      Constructs string representation of date
      10function Date: TDateTime; 
      Gets current date
      11function DayOfWeek( DateTime: TDateTime ):Integer; 
      Gets day of week
      12procedure DecodeDate( Date: TDateTime; out Year: Word; out Month: Word; out Day: Word ); 
      Decodes DateTime to year month and day
      13procedure DecodeTime( Time: TDateTime; out Hour: Word; out Minute: Word; out Second: Word; out MilliSecond: Word ); 
      Decodes DateTime to hours, minutes and seconds
      14function EncodeDate( Year: Word; Month: Word; Day: Word ):TDateTime; 
      Encodes year, day and month to DateTime
      15function EncodeTime( Hour: Word; Minute: Word; Second: Word; MilliSecond: Word ):TDateTime; 
      Encodes hours, minutes and seconds to DateTime
      16function FormatDateTime( const FormatStr: ; DateTime: TDateTime ):; 
      Returns string representation of DateTime
      17function FormatDateTime( const FormatStr: ; DateTime: TDateTime; const FormatSettings: TFormatSettings ):; 
      Returns string representation of DateTime
      18function IncMonth( const DateTime: TDateTime; NumberOfMonths: Integer = 1 ):TDateTime; 
      Adds 1 to month
      19function IsLeapYear( Year: Word ):Boolean; 
      Determines if year is leap year
      20function MSecsToTimeStamp( MSecs: Comp ):TTimeStamp; 
      Converts number of milliseconds to timestamp
      21function Now: TDateTime; 
      Gets current date and time
      22function StrToDateTime( const S: ):TDateTime; 
      Converts string to DateTime
      23function StrToDateTime( const s: ShortString; const FormatSettings: TFormatSettings ):TDateTime; 
      Converts string to DateTime
      24function StrToDateTime( const s: AnsiString; const FormatSettings: TFormatSettings ):TDateTime; 
      Converts string to DateTime
      25function StrToDate( const S: ShortString ):TDateTime; 
      Converts string to date
      26function StrToDate( const S: Ansistring ):TDateTime; 
      Converts string to date
      27function StrToDate( const S: ShortString; separator: Char ):TDateTime; 
      Converts string to date
      28function StrToDate( const S: AnsiString; separator: Char ):TDateTime; 
      Converts string to date
      29function StrToDate( const S: ShortString; const useformat: ; separator: Char ):TDateTime; 
      Converts string to date
      30function StrToDate( const S: AnsiString; const useformat: ; separator: Char ):TDateTime; 
      Converts string to date
      31function StrToDate( const S: PChar; Len: Integer; const useformat: ; separator: Char = #0 ):TDateTime; 
      Converts string to date
      32function StrToTime( const S: Shortstring ):TDateTime; 
      Converts string to time
      33function StrToTime( const S: Ansistring ):TDateTime; 
      Converts string to time
      34function StrToTime( const S: ShortString; separator: Char ):TDateTime; 
      Converts string to time
      35function StrToTime( const S: AnsiString; separator: Char ):TDateTime; 
      Converts string to time
      36function StrToTime( const S: ; FormatSettings: TFormatSettings ):TDateTime; 
      Converts string to time
      37function StrToTime( const S: PChar; Len: Integer; separator: Char = #0 ):TDateTime; 
      Converts string to time
      38function SystemTimeToDateTime( const SystemTime: TSystemTime ):TDateTime; 
      Converts system time to datetime
      39function TimeStampToDateTime( const TimeStamp: TTimeStamp ):TDateTime; 
      Converts time stamp to DateTime
      40function TimeStampToMSecs( const TimeStamp: TTimeStamp ):comp; 
      Converts Timestamp to number of milliseconds
      41function TimeToStr( Time: TDateTime ):; 
      Returns string representation of Time
      42function TimeToStr( Time: TDateTime; const FormatSettings: TFormatSettings ):; 
      Returns string representation of Time
      43function Time: TDateTime; 
      Get current time
      The following example illustrates the use of some of the above functions:
      Program DatenTimeDemo;
      uses sysutils;
      var
      year, month, day, hr, min, sec, ms: Word;
      begin
         writeln ('Date and Time at the time of writing : ',DateTimeToStr(Now));
         writeln('Today is ',LongDayNames[DayOfWeek(Date)]);
         writeln;
         writeln('Details of Date: ');
         DecodeDate(Date,year,month,day);
         writeln (Format ('Day: %d',[day]));
         writeln (Format ('Month: %d',[month]));
         writeln (Format ('Year: %d',[year]));
         writeln;
         writeln('Details of Time: ');
         DecodeTime(Time,hr, min, sec, ms);
         writeln (format('Hour: %d:',[hr]));
         writeln (format('Minutes: %d:',[min]));
         writeln (format('Seconds: %d:',[sec]));
         writeln (format('Milliseconds: %d:',[hr]));
      end.
      When the above code was compiled and executed, it produced the following result:
      Date and Time at the time of writing : 7/24/2012 8:26:
      Today is Tuesday
      Details of Date:
      Day:24
      Month:7
      Year: 2012
      Details of Time:
      Hour: 8
      Minutes: 26
      Seconds: 21
      Milliseconds: 8

      Posted By MIrza Abdul Hannan5:53:00 am

      Pascal - Units

      Filled under:

      Post By: Hanan Mannan
      Contact Number: Pak (+92)-321-59-95-634
      -------------------------------------------------------

      Pascal - Units

      A Pascal program can consist of modules called units. A unit might consist of some code blocks, which in turn are made up of variables and type declarations, statements, procedures, etc. There are many built-in units in Pascal and Pascal allows programmers to define and write their own units to be used later in various programs.

      Using Built-in Units

      Both the built-in units and user-defined units are included in a program by the uses clause. We have already used the variants unit in Pascal - Variants tutorial. This tutorial explains creating and including user-defined units. However, let us first see how to include a built-in unit crt in your program:
      program myprog;
      uses crt;
      The following example illustrates using the crt unit:
      Program Calculate_Area (input, output);
      uses crt;
      var 
         a, b, c, s, area: real;
      begin
         textbackground(white); (* gives a white background *)
         clrscr; (*clears the screen *)
         textcolor(green); (* text color is green *)
         gotoxy(30, 4); (* takes the pointer to the 4th line and 30th column) 
         writeln('This program calculates area of a triangle:');
         writeln('Area = area = sqrt(s(s-a)(s-b)(s-c))');
         writeln('S stands for semi-perimeter');
         writeln('a, b, c are sides of the triangle');
         writeln('Press any key when you are ready');
         readkey;
         clrscr;
         gotoxy(20,3);
         write('Enter a: ');
         readln(a);
         gotoxy(20,5);
         write('Enter b:');
         readln(b);
         gotoxy(20, 7);
         write('Enter c: ');
         readln(c);
      
         s := (a + b + c)/2.0;
         area := sqrt(s * (s - a)*(s-b)*(s-c));
         gotoxy(20, 9);
         writeln('Area: ',area:10:3);
         readkey;
      end.
      It is the same program we used right at the beginning of the Pascal tutorial, compile and run it to find the effects of the change.

      Creating and Using a Pascal Unit

      To create a unit, you need to write the modules or subprograms you want to store in it and save it in a file with .pas extension. The first line of this file should start with the keyword unit followed by the name of the unit. For example:
      unit calculateArea;
      Following are three important steps in creating a Pascal unit:
      • The name of the file and the name of the unit should be exactly same. So, our unit calculateAreawill be saved in a file named calculateArea.pas.
      • The next line should consist of a single keyword interface. After this line, you will write the declarations for all the functions and procedures that will come in this unit.
      • Right after the function declarations, write the word implementation, which is again a keyword. After the line containing the keyword implementation, provide definition of all the subprograms.
      The following program creates the unit named calculateArea:
      unit CalculateArea;
      interface
      function RectangleArea( length, width: real): real;
      function CircleArea(radius: real) : real;
      function TriangleArea( side1, side2, side3: real): real;
      
      implementation
      function RectangleArea( length, width: real): real;
      begin
         RectangleArea := length * width;
      end;
      
      function CircleArea(radius: real) : real;
      const
         PI = 3.14159;
      begin
         CircleArea := PI * radius * radius;
      end;
      
      function TriangleArea( side1, side2, side3: real): real;
      var
         s, area: real;
      begin
         s := (side1 + side2 + side3)/2.0;
         area := sqrt(s * (s - side1)*(s-side2)*(s-side3));
         TriangleArea := area;
      end;
      
      end.
      Next, let us write a simple program that would use the unit we defined above:
      program AreaCalculation;
      uses CalculateArea,crt;
      
      var
         l, w, r, a, b, c, area: real;
      begin
         clrscr;
         l := 5.4;
         w := 4.7;
         area := RectangleArea(l, w);
         writeln('Area of Rectangle 5.4 x 4.7 is: ', area:7:3);
      
         r:= 7.0;
         area:= CircleArea(r);
         writeln('Area of Circle with radius 7.0 is: ', area:7:3);
      
         a := 3.0;
         b:= 4.0;
         c:= 5.0;
         area:= TriangleArea(a, b, c);
         writeln('Area of Triangle 3.0 by 4.0 by 5.0 is: ', area:7:3);
      end.
      When the above code is compiled and executed, it produces the following result:
      Area of Rectangle 5.4 x 4.7 is: 25.380
      Area of Circle with radius 7.0 is: 153.938
      Area of Triangle 3.0 by 4.0 by 5.0 is: 6.000

      Posted By MIrza Abdul Hannan5:51:00 am