Configuring Miranda

Miranda is a great software and I will tell u how to configure it.

download it here

Download now

run it…….

SC00002

continue with setup……SC00003

SC00004

SC00008

right click it and …. click on accounts

SC00009

SC00011

click on the new account button…..

SC00013

enter ur account name there any name u like…..

And in the protocol field select yahoo if u want to setup a yahoo account and Jabber for GTalk and Facebook Chat

SC00015

click ok u should now see SC00017

u can see there Facebbok,Gtalk,My and an account named youraccountname it is the one we created earlier.double click it….

SC00018

now in server select facebook or GTalk.

SC00019

now enter your username and password.

REMEMBER:-if ur email id is [email protected] then enter dee

SC00020

now click ok

now …..

double click the miranda icon on the desktop and click status as online ur done!!!!!

 

SC00008

For Facebook users !!!!:::

u need a username for that

go to here

Facebook settings

here click username and set a username

SC00022

now enable chat in facebook

by going here

Facebook chat

there click other and log out and log in and u are done!!!

SC00023

done!!

Binary Search using functions

class bin{
public void fg(int a[],int y){
int f=0,l=a.length-1;
int mid=0;
while(f<=l){
mid=(f+l)/2;
if(m[mid] <s)
f=mid+1;
if(m[mid]>s)
l=mid-1;
if(m[mid] == s){
k=1;
break;
}
}
if( k == 1)
System.out.println("Found");
else
System.out.println("Not Found");
}
public static void main(String args[]){
int a[]={1,2,3,4,5,6,7,8,9,10};
bin j = new bin();
j.fg(a,6);
}
}

 

As usual compile as javac bin.java

run as java bin

Binary Search for Integers

import java.io.*;
class bogo{
public static void main(String args[])throws IOException{
BufferedReader ne = new BufferedReader(new InputStreamReader(System.in));
int m[] = new int[10];
for(int i=0;i<10;i++)
m[i]=Integer.parseInt(ne.readLine());
int s = Integer.parseInt(ne.readLine());
int f=0,l=0,mid=0,k=0;
while(f<=l){
mid=(f+l)/2;
if(m[mid] > s)
l=mid-1;
if(m[mid]<s)
f=mid+1;
if(m[mid]==s){
k=1;
break;
}
}
if(k == 1){
System.out.println("Found");
}
}
}

 

compile as javac bogo.java

run as java bogo