Friday, December 27, 2013

In which category do you fall??

(Think), (Act) or (Think + Act)


Never let the life flow as it is moving. Hold it and control it. 
There are always three type of living people-- 

One who think but does not acts, 
One who acts but does not think and 
One who think as well as act accordingly.

People fall in third category are always happy and are the most successful person.
People fall in second category are happy while acting, they enjoy the life at least for a short period.
People fall in first category are unhappy always. They hide their feeling in their heart instead of expressing it. 

Choose in which category do you fall. It is never too late, to change, this will bring smile in your face.
Before you realize its too late to act, start following these simple rules. Don't wait for the perfect situation, but take efforts to make the situation perfect and act.


 

Sunday, November 10, 2013

Funny Definitions

School: A place where Papa pays and Son plays.
Life Insurance: A contract that keeps you poor all your life so that you can die Rich.
Nurse: A person who wakes u up to give you sleeping pills.
Marriage: It's an agreement in which a man loses his bachelor degree and a woman gains her masters.
Divorce: Future tense of Marriage.
Tears: The hydraulic force by which masculine willpower is defeated by feminine waterpower.
Lecture: An art of transferring information from the notes of the Lecturer to the notes of the students without passing through "the minds of either"
Conference: The confusion of one man multiplied by the number present.
Compromise: The art of dividing a cake in such a way that everybody believes he got the biggest piece.
Dictionary: A place where success comes before work.
Conference Room: A place where everybody talks, nobody listens and everybody disagrees later on.
Father: A banker provided by nature.
Criminal: A guy no different from the rest....except that he got caught.
Boss: Someone who is early when you are late and late when you are early.
Politician: One who shakes your hand before elections and your Confidence after.
Doctor: A person who kills your ills by pills, and kills you by bills.
Classic: Books, which people praise, but do not read.
Smile: A curve that can set a lot of things straight.
Office: A place where you can relax after your strenuous home life.
Yawn: The only time some married men ever get to open their mouth.
Etc.: A sign to make others believe that you know more than you actually do.
Committee: Individuals who can do nothing individually and sit to decide that nothing can be done together.
Experience: The name people give to their mistakes.
Atom Bomb: An invention to end all inventions.
Philosopher: A fool who torments himself during life, to be spoken of when dead
ENJOY

Saturday, November 9, 2013

Skip to give extension of the file in notepad

Hey guys many time we have the situation like we don't want to give any extension to our file or we don't want others to know about the file in notepad.

Then just follow the simple steps.

Open the notepad, write the content and at the time of saving use double quotes( "*" ).
 where * is the file name and save it without giving any extension.
e.g.- "abc"

Your files will be encrypted and no others can see the extension or the contents, because they don't know the software which will will open it. If you want to view it again then right lick on the file and open with notepad.

Doubly linked list (JAVA)

import java.io.*;
class node
{   int data;
    node next;
    node prev;
    node(int d)
    { data=d; }
}

class link
{   private node first;
    private node last;
    public link()
    {  first=null;  last=null;  }
   
    public void insfirst(int a)
    { node newnode=new node(a);
      newnode.next=first;
     
 
   
      first=newnode;
    }
    public void delfirst()
    { if(first==null)
        {   System.out.println("UNDERFLOW");  }
      else
      {  first=first.next;  }
    }
     
  public void insafter(int b,int c)
  { node ptr; ptr=first; node newnode=new node(c);
    while(ptr.next.data!=b)
    { ptr=ptr.next; }  
    if(ptr.data==b)
    { newnode.next=ptr.next;
        newnode.prev=ptr;
        ptr.next.prev=newnode;
        ptr.next=newnode;
    }
    else
    { System.out.println("No. is not found in the list");  }
  }
 public void delafter(int b)
 {  node ptr=first;
    if(first==null)
    { System.out.println("Underflow");  }
    else
    { while(ptr.data!=b)
      ptr=ptr.next;
      if(ptr.next.data==b)
      { ptr.next.next.prev=ptr;
        ptr.next=ptr.next.next;
      }
      else
      {  System.out.println("Data is not found"); }
    }
  }
  public void display()
  {  node ptr;  ptr=first;
      while(ptr!=null)
      {  System.out.println(+ptr.data); ptr=ptr.next; }
  }
 }
 
  class doublylinkedlist
  {
 
 
    public static void main(String args[])throws IOException
    {   int x;  link mm=new link();
       try{
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        do
        { System.out.println("*********DOUBLY LINKED LIST::OPTIONS********");
           System.out.println("1.>Insert first\n2.>Delete first\n3.>Insert after\n4.>Delete after\n5.>Display\n6.>Exit");
  System.out.println("Enter your option here::");
  x=Integer.parseInt(br.readLine());
  switch(x)
  { case 1:   System.out.println("Enter the node data");
              int y=Integer.parseInt(br.readLine());
              mm.insfirst(y);
              break;
    case 2:  mm.delfirst();   break;
    case 3:  System.out.println("Enter the position value and new node value");
              int l=Integer.parseInt(br.readLine());
              int m=Integer.parseInt(br.readLine());
              mm.insafter(l,m);  break;
    case 4:  System.out.println("Enter the value to be deleted");
              int n=Integer.parseInt(br.readLine());
              mm.delafter(n);  break;
    case 5: mm.display();  break;
    case 6: System.out.println("By"); break;
    default: System.out.println("Try again");
  }
  }
  while(x!=6);
 }
  catch(Exception e){ System.out.println("---->"+e);}

 }
 }            

Binary Tree (JAVA)

import java.io.*;
class node
{ int data;
node lc;
node rc;
node(int d)
{ data=d; }
}
class link
{ node root;
node ary[]=new node[20];  int top;
public link()
{ root=null;
top=1;  ary[top]=null;
}
public void insert(int a)
{ node ptr=root;
node newnode=new node(a);
if(ptr==null)
root=newnode;
else
{
 while(ptr!=null)
 {
   if(a>ptr.data)
   ptr=ptr.rc;
else if(a<ptr.data)
ptr=ptr.lc;
else
{ System.out.println("Data allredy exist");    break; }
  }
}
if(ptr==null)
ptr=newnode;
}
public void display()
{ node ptr=root;
System.out.println("INORDER");
inorder(ptr);

}
void inorder(node n)
{
if(n!=null)
{
inorder(n.lc);
System.out.println(""+n.data);
inorder(n.rc);
}
}


public void delete_lowest()
{ node ptr=root;   node parnt=null;
while(ptr.lc!=null)
{ parnt=ptr;
ptr=ptr.lc;
}
parnt.lc=null;
}
public void delete_highest()
{ node ptr=root;   node pt=null;
while(ptr.rc!=null)
{ pt=ptr;
ptr=ptr.rc;
}
pt.rc=null;
}
public void search(int x)
{ node ptr; ptr=root;
while(ptr!=null)
{ if(x>ptr.data)
ptr=ptr.rc;
else if(x<ptr.data)
ptr=ptr.lc;
else
{ System.out.println("Data found"); break; }
}
if(ptr==null)
{ System.out.println("Data not found"); }
}
}
class binarytree
{
public static void main(String args[])throws IOException
{ link newlink=new link();
int x; BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
do
{   System.out.println("*****BINARY TREE**********");
System.out.println("1.INSERT\n2.DELETE SMALLEST \n 3.DELETE HIGHEST \n 4.SEARCH \n 5.DISPLAY \n 6.EXIT");
x=Integer.parseInt(br.readLine());
switch(x)
{ case 1: System.out.println("insert value");
int a=Integer.parseInt(br.readLine());
newlink.insert(a); break;
case 2: newlink.delete_lowest(); break;
case 3: newlink.delete_highest(); break;
case 4: System.out.println("insert value");
int b=Integer.parseInt(br.readLine());
newlink.search(b); break;
case 5: newlink.display(); break;
case 6: break;
default:System.out.println("try again");
}
}
while(x!=6);
}
}

Dos Commands to make bootable usb (Flash drive)


      ********
        STEPS
      ********
first make iso image of the file which you want to make bootable through flash
drive, if you have it allready then fine.
Just mount it to any virtual drive by any iso image mounting software. Insert the
pendrive.

1.open command prompt

write these
2.>cd\

3.>diskpart (new dos window will appear--swith to new window)

4.>list disk (Shows the list of disks)

5.select disk 0/1/2/3/.. (In place of 0/1/2/3/.. write the disk sequance which is
of USB pendrive,just see the
size and recognize the pendrive sequance,,, let here a
variable "y")

6.>clean

7.>create partition primary

8.>select partition y

9.>active

10.>format fs=fat32 ( wait till the flash deive is formatted....)

11.>assign

12.>exit ( go to old(main window)

13.>xcopy (source mounted drive letter):\*.* /s/e/f (destination mounted drive
letter(flash drive)):\

it will take time and when it is done ... you done it!!!


www.soft9871.co.cc

Reverse a string(JAVA)

import java.io.*;
class node
{
node top;
node next;
char name;
node()
{}
node(char c)
{
name=c;
}
}
class link extends node
{
void push(char c)
{
node newnode=new node(c);
if(top==null)
{
top=newnode;
}
else
{
newnode.next=top;
top=newnode;
}
}
char pop()
{
node pot=top;
top=top.next;
return(pot.name);
}
}
class reverse
{
public static void main(String args[])
{
try
{
link k=new link();
char ch;
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
System.out.println("enter the string");
String s=br.readLine();
int l=s.length();
for(int i=0;i<l;i++)
{
char c=s.charAt(i);
k.push(c);
}
System.out.println("the reverse is   ");
for(int i=0;i<l;i++)
{
System.out.print(k.pop());
}
}catch(IOException e)
{
System.out.println(e);
}
}
}




Know your PC's complete details using nfo file.

What is a *.nfo file?

It is a file which on execution shows sysyem info which is directly and automatically liked with "msinfo32.exe" file the system. the msinfo.exe file rmains in sysem32 directory.

You can write any thing inside the nfo file, any thing but save it by giving the extention nfo file.

Whenever you see a *.nfo file and if you double click on it will shows the system information but if you want to see the text message you have to open it by notepad. never change default opening of the file. If you set to always open as notepad then you will never be able to see the system details by just double clicking over the nfo file.

By the way if you have set to always open with notepad and want to see the system details then open the run window and type "msinfo32.exe' and press enter. you will see a new window opening and showing different properties of the system

How to mount Linux on flash drive


DOS Commands to make bootable usb(Flah drive)
      ********
        STEPS
      ********
first make iso image of the file which you want to make bootable through flash
drive, if you have it allready then fine.
Just mount it to any virtual drive by any iso image mounting software. Insert the
pendrive.

1.open command prompt

write these
2.>cd\

3.>diskpart (new dos window will appear--swith to new window)

4.>list disk (Shows the list of disks)

5.select disk 0/1/2/3/.. (In place of 0/1/2/3/.. write the disk sequance which is
of USB pendrive,just see the
size and recognize the pendrive sequance,,, let here a
variable "y")

6.>clean

7.>create partition primary

8.>select partition y

9.>active

10.>format fs=fat32 ( wait till the flash deive is formatted....)

11.>assign

12.>exit ( go to old(main window)

13.>xcopy (source mounted drive letter):\*.* /s/e/f (destination mounted drive
letter(flash drive)):\

it will take time and when it is done ... you done it!!!


www.soft9871.co.cc

Create a file with blank name in Windows


Q: How to create a blank folder or File name?

A: To create a file with blank name(i.e. the name will be nothing).
To do this right click over the file and click on rename option.
Now press the following keys without pressing any key...
"Alt+0160" or "Alt+255"
and then press enter.

Note:- To enter the numeric value use numkeypad i.e. the number keys in the right side of the keyboard. If you are using laptop then first activate the number keys.



Q: How to hide a file?

Two options--
1. In advanced setting of the file check the hide option there.
2. First rename the file by a blank(null) file name by above ways, and then change the icon of the file by any of transparent file provided by windows in default icons.


Right Click the New Folder, go to Properties, then to Customize, and then click Change Icon. Here is the trick, go to the middle and you should see some blank spaces. Those are transparent icons, select one of those then press OK -> Apply -> OK.

Saturday, October 26, 2013

Windows XP Bliss Wallpaper

Windows XP bliss wallpaper
Have you ever thought about the very popular wallpaper of windows?

Where the image has been taken and who taken this?




It is an actual picture, taken from camera.
Location:- Sonoma County, California, southeast of Sonoma Valley near the site of the oldClover Stornetta Inc. Dairy.
The image contains:- rolling green hills and a blue sky with stratocumulus and cirrus clouds.
Picture Taken by:- Charles O'Rear from Napa(County). Charles was a professional photographer.
Most important thing is that photo was not digitally enhanced
Photo taken on:- 1996 (5 years before the release of windows XP.)
Coordinates of the place:- 38.250124,-122.410817Same place after 10 years in November 2006…. How it looks….


You can see the place in Google earth by just entering the coordinated of the place. Then go to street view.





Delhi - The Heart of India

Kerala
Delhi                                                                                                                                                                             
                                                                                                     



KERALA                                                               TO                                     NEW DELHI

First time I came Delhi on 30th September, 2012. Directly from Trivandrum to Delhi in Rajdhani Express Train. It was a nice experience to travel in Rajdhani Train first time.
I spent my 4 years of life in God's Own  Country, Kerala. One who stayed there can only know why it called so. The best thing there is the season and environment there. You will find whole year almost same type of weather, not too hot not too cold. During the rainy season these happens heavy raining for one month. hat is also a beautiful there. Bushes and trees (maximum coconut trees) grows rapidly and you will be happy to see green lush all around.
One will always have feel fresh and pure oxygen there.
By the grace of God I got placed in a multinational company, Tata Consultancy Services (TCS). hanks Kerala and CUSAT for this.
Then again for my initial TCS training, I got one more chance to spend 3 more months there, in Trivandrum. During the training I learned so many things and explored few new places there. After training I had to report TCS Delhi center.
I was feeling very uneasy to come Delhi. Whenever I was thinking of Delhi the first thing that was coming to my mind was rush, pollution, travel problem. So I was hesitating to come Delhi. Before this I did not visited Delhi ever before. But it was my job, so I have to report any way.
On 30th September, 2012 I reached Delhi with my friends Rahul and Sunil. Stayed first 3 days in Hotel provided by our Company in Green Park. In evening when I was travelling though the roads  I was missing Kerala. But after 2-3 days I started liking Delhi. Beside the rods tree were planted in both sides of the roads. It was looking green. I realized even though there are so many vehicles are running on the roads, pollution was very low. This was only due to the fact that all 3 wheelers and above vehicles uses CNG instead of petrol and Diesel.
 It is something different what I was expecting. Its nice.
Here in Delhi rush is a part of life. You have to find your way from this rush.
About travel problem Delhi already having solution for me, Metro. Metro train is one of the best part of Delhi. I love to travel in Metro. First time I travelled in metro in Delhi metro itself.
I started loving this city..