Pages

Friday, December 31, 2010

Send Free SMS Online

Go to the following website and send free sms to anyone.

Check Your Mobile Quality

Would you like to know your mobile is original or not?!!
press *#06# on your mobile.
After you enter the code you will see a new code contain 15 digits:
e.g.
434566106789435


IF the digit number Seven & Eight is 02 or 20 that mean it was Assembly on
Emirates which is very Bad quality.

IF the digit number Seven & Eight is 08 or 80 that mean it was manufactured
in Germany which is not bad.

IF the digit number Seven & Eight is 01 or 10 that mean it was manufactured in
Finland which is Good.

IF the digit number Seven & Eight is 00 that mean it was manufactured in
original factory which is the best Mobile Quality.

IF the digit number Seven & Eight is 13 that mean it was Assembly on
Azerbaijan which is very Bad quality and very dangerous for health!!!

Thursday, December 30, 2010

A Very Useful Website

Hey there. I just wanted to tell you a good site for downloading games,music, software, ebook, movies, etc n etc.

http://katz.cd/


Sunday, December 26, 2010

Offline w3school

At w3schools.com you will learn how to make a website. They offer free tutorials in all web development technologies. In-spite of learning online I am giving you a download link to learn everything from w3school being offline (no internet connection needed). Just download the attachment.

Assembly Language Tutorial

A very useful tutorial on assembly language which I had found on a forum. This is actually made by Arko

Tuesday, December 21, 2010

UVA Problem#541

Question:

Solution:

char  mat[105][105];
int N;

int row()  {

    int i,j,sum,c,save;
    sum = 0;
      c = 0;
    for(i = 0; i<N; i ++)  {
      sum = 0;
      for(j = 0; j<N; j ++)
       sum += mat[i][j];

UVA Problem#530

Question:
Solution:

double nCr(int n,int m){
    int k;
    register int i,j;
    double c,d;
    c=d=1;
    k=(m>(n-m))?m:(n-m);
    for(j=1,i=k+1;(i<=n);i++,j++){
        c*=i;
        d*=j;
        if( !fmod(c,d) && (d!=1) ){
            c/=d;
            d=1;
        }
    }
    return c;
}

int main(){
   ....
   ....
   ....
}

UVA Problem#495

Question:

Solution:

#include<iostream.h>
#include<string.h>
int main(){
    char *fibo[5001]={0};
    fibo[0]="0";
    fibo[1]="1";
    int l1=strlen(fibo[0]);
    int l2=strlen(fibo[1]);
    int l;
    for(long i=2;i<=5000;i++){

UVA Problem#483

Question:

Solution:
int main(){
   
    string line;
   
    while(getline (cin,line)) {
                  int t = line.size();
                  int count;
                  string sub;
                  for(int i=0;i<t;i++){
                       count=0;
                       if(line[i]!=' '){    
                                while(line[i+count]!=' ' && i+count<t){
                                       count++;         
                                }
                                for(int j=(i+count)-1;i<=j && j<t;j--){
                                          cout<<line[j];
                                }    
                                i+=count-1;  
                       }else{
                            cout<<line[i];
                       }
                  }
                  cout<<endl;
    }
   
 return 0;  
}

UVA Problem#412

Question:

Solution:

int gcd(int a,int b)  { return b ? gcd(b,a%b) : a;  }

int count()  {

   int i,j;
   k = 0;
   for(i = 0; i<N-1;  i ++)
     for(j = i+1; j<N;  j ++)
    if(gcd(a[i],a[j]) == 1)
       k ++;
   return 0;
}

int calculate()  {

    int pair;
    double pi,x,y;
    if( !k )  { printf("No estimate for this data set.\n");  return 0; }
    pair = (N * (N-1)) / 2;
     x = pair;
     y = k;
    pi = sqrt(( x * 6) / y);
    printf("%.6lf\n",pi);
    return 0;
}

int main(){
.......
......
}

UVA Problem#190

Question:

Solution:
1. take x1, y1, x2, y2, x3 and y3 as input.
2. calculate m1 and m2. m1= (y2-y1)/(x2-x1); m2= (y3-y1)/(x3-x1);
3. for different condition (values) of m1 and m2 the formula to find h and k (circles center) will be different.
4. Formulas of h and k on different conditions
     (i) m2=0;  k=(x2-x3)/m1/2+(y1+y2)/2; h=(x1+x3)/2;
     (ii) m1=0; k=(x3-x2)/m2/2+(y1+y3)/2; h=(x1+x2)/2;
     (iii) m1!=0 and m2!=0; h=((x1+x2)/m1-(x1+x3)/m2+y2-y3)/2/(1/m1 - 1/m2); 
      k=( h-(x1+x2)/2)/(-m1)+(y1+y2)/2;

Saturday, December 18, 2010

Secrets of NOKIA Mobile

On the main screen type
*#06# for checking the IMEI (International Mobile Equipment Identity).
*#7780# reset to factory settings.
*#67705646# This will clear the LCD display (operator logo).
*#0000# To view software version.
*#2820# Bluetooth device address.
*#746025625# Sim clock allowed status.
*#62209526# - Display the MAC address of the WLAN adapter. This is available only in the newer devices that support WLAN
#pw+1234567890+1# Shows if sim have restrictions.

3 Amazing Firefox Hack

  1.Save Session For All Tabs Opened In Multiple Firefox Windows:

If you are an ardent user of Firefox then you may be aware that when more than one Firefox windows are opened up, in that case when you close a Firefox window, it does ask me the option to save the session and exit, rather it ask to close all the tabs in that Firefox window, but it won’t save the tabs in other windows. So this way you could not save the session for multiple tabs opened in multiple Firefox windows.
In such a case, there is only one option left to save the session

Remove Virus From USB

One of the ways by which a virus can infect your PC is through USB/Pen drives. Common viruses such as ’Ravmon’ , ‘New Folder.exe’, ‘Orkut is banned’ etc are spreading through USB drives. Most anti-virus programs are unable to detect them and even if they do, in most cases they are unable to delete the file, only quarantine it. Here are the things which you can do if you want to remove such viruses from your USB Drive
Whenever you plug a USB drive in your system, a window will appears