Saturday, July 31, 2010

Windows XP Commands Not Working

Many Times due to some Environment variable setting in system values of path variable changes . . .which leads to this type of problems.

Ex.

1) If you open command prompt cmd and type any command as 'ipconfig' you get output as :

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Girish> Ipconfig
'Ipconfig' is not recognized as an internal or external command,
operable program or batch file.


2) Now simple thing you have to do is : change path variable value.

Steps :


1) right click on my computer > properties > Advanced > Environment Variable > System Variable
2) Select PATH variable and click on Edit 
3) Add at the End :   ";C:\WINDOWS\SYSTEM32" without quotes.

That's it now you can fetch any commands in XP you want !

Tuesday, July 27, 2010

Ajax Very Basic Tutorial

Hi, friends here i will explain you some little things about AJAX its absolutely for Beginners!!!! If you are advanced AJAX programmer then please correct me if am wrong!...

Fine . . . .Enough now lets start with AJAX!!

AJAX = Asynchronous JavaScript and XML.......

Its not at all a programming language but a new way to use existing Web Technology Standards. still wondering what it is ? ? ? ok . . .lemee explain you...You might be familiar with social engineering websites like orkut.com...when you click on next button of your photo album you can 

Check out this picture . . . when you click on next button of Album in orkut it loads new image without loading whole page, instead  


Monday, July 19, 2010

Shakira waka waka for (this time for africa) lyrics

Oooeeeeeeeeeeeeeeeehh 

You're a good soldier 
Choosing your battles 
Pick yourself up 
And dust yourself off 
Get back in the saddle 

You're on the front line 
Everyone's watching 
You know it's serious 
We are getting closer 
This isn't over 

The pressure is on 
You feel it 
But you got it all 
Believe it 

When you fall get up, oh oh 
If you fall get up, eh eh 
Tsamina mina zangalewa 
Cuz this is Africa 
Tsamina mina, eh eh 
Waka waka, eh eh 
Tsamina mina zangalewa 
This time for Africa 

Listen to your God 
This is our motto 
Your time to shine 
Don't wait in line 
Y vamos por todo 

People are raising 
Their expectations 
Go on and feed them 
This is your moment 
No hesitations 

Today's your day 
I feel it 
You paved the way 
Believe it 

If you get down get up, oh oh 
When you get down get up, eh eh 
Tsamina mina zangalewa 
This time for Africa 
Tsamina mina, eh eh 
Waka waka, eh eh 
Tsamina mina zangalewa 
Anawa a a 
Tsamina mina, eh eh 
Waka waka, eh eh 
Tsamina mina zangalewa 
This time for Africa 

Awela Majoni Biggie Biggie Mama One A To Zet 
Athi sithi LaMajoni Biggie Biggie Mama From East To West 
Bathi . . . Waka Waka Ma Eh Eh Waka Waka Ma Eh Eh 
Zonke zizwe mazi buye 
Cuz this is Africa 

Voice: Tsamina mina, Anawa a a 
Tsamina mina 
Tsamina mina, Anawa a a 

Tsamina mina, eh eh 
Waka waka, eh eh 
Tsamina mina zangalewa 
Anawa a a 
Tsamina mina, eh eh 
Waka waka, eh eh 
Tsamina mina zangalewa 
This time for Africa 

Django eh eh 
Django eh eh 
Tsamina mina zangalewa 
Anawa a a 

Django eh eh 
Django eh eh 
Tsamina mina zangalewa 
Anawa a a 

(2x) This time for Africa 

(2x) We're all Africa

Friday, July 16, 2010

Simple Oracle Java Connection

import java.io.*;
import java.sql.*;

class oraclecon
{

public static void main(String argsp[])
{
try
{

Connection con = null;

Class.forName("oracle.jdbc.driver.OracleDriver");

con=DriverManager.getConnection("jdbc:oracle:thin:@snk:1521:database_name","scott","tiger");

Statement s=con.createStatement();

s.execute("select * from emp");

s.close();




}
catch(Exception e)
{


}


}



}



Thank You,

Wednesday, July 14, 2010

Send Free Sms to India








Free SMS to India

Fifa 2010 mp3 and lyrics

Helloo Friends , Spain Rocks This time !








Download Fifa 2010 Mp3 for free download

Lyrics : 

Song Title: Wavin Flag
By K'Naan y David Bisbal

Oooooo Woooooo...Oooooo Woooooo...

Give me freedom, give me fire
Give me reason, take me higher
See the champions take the field now
You define us make us feel proud

In the streets are, as a lifting
As we lose our inhibition
Celebration is surround us
Every nation all around us

Singing forever young
Singing songs underneath the sun
Let's rejoice in the beautiful game
And together at the end of the day

We all say

When I get older I will be stronger
They'll call me freedom
Just like the a waving flag
And then it goes back [4x]

When I get older I will be stronger
They'll call me freedom
Just like the a waving flag
And then it goes back [4x]

Oooooo Woooooo...Oooooo Woooooo...

Give you freedom, give you fire
Give you reason, take you higher
See the champions, take the field now
You define us, make us feel proud

In the streets are, as a lifting
As we lose our inhibition
Celebration is surround us
Every nation all around us

Singing forever young
Singing songs underneath that sun
Let's rejoice in the beautiful game
And together at the end of the day

We all say

When I get older I will be stronger
They'll call me freedom
Just like the a waving flag
And then it goes back [4x]

When I get older I will be stronger
They'll call me freedom
Just like the a waving flag
And then it goes back [4x]

Oooooo Woooooo...Oooooo Woooooo...

We all say

When I get older I will be stronger
They'll call me freedom
Just like the a waving flag
And then it goes back [4x]

When I get older I will be stronger
They'll call me freedom
Just like the a waving flag
And then it goes back [4x]

Oooooo Woooooo...Oooooo Woooooo...
And everybody will be singing it

Oooooo Woooooo...Oooooo Woooooo...
And we all will be singing it


Enjoy Fifa 2010!!!!!

Have a nice day!

Tuesday, July 13, 2010

Boot into Single usermode with Read Write Access to root

Why you want read write access to your system in Single User Mode ? ? Why ? ? Ofcourse its bad practice but we want rw access to bash in some situations like in Maintenance Mode ? ? ? still why ? ? ? ok . . . .lemme explain you . . .

Imagine you are doing LVM (I hope u know LVM) and you already activates USER QUOTA (Hope you know it) Now If this is the situation and you forgot to Disable USER QUOTA before reducing LVM size then probably after restart you will simply lang to maintenance mode!!!
Now what ? ? In this situation you must edit /etc/fstab which is must , to start back your Red Hat!!!! And for this you need to have write access to these files which is not by default!!

Method 1:

When you will boot you will see something like this :

module /vmlinuz-2.6.18-8.el5xen ro root=LABEL=/ rhgb quiet

Here a little modifications can land you to bash prompt with read write access

module /vmlinuz-2.6.18-8.el5xen rw root=LABEL=/ rhgb quiet

Method 2:

You can normally boot in single user mode as :

module /vmlinuz-2.6.18-8.el5xen ro root=LABEL=/ rhgb quiet single

or

module /vmlinuz-2.6.18-8.el5xen ro root=LABEL=/ rhgb quiet 1

you get bash prompt as :

bash# (type here)
bash# mount -o remount /,rw --> which provides read write access to root

Thats how we can get out of maintenance mode . . .

Thank You . . .

Enjoy RHEL

Saturday, July 10, 2010

My DC++

Home IP's :

10.46.104.173:55555
10.46.104.9:12100
10.40.100.198:11211
10.46.102.22
10.46.98.105:11211

Home Setting :

ip - 10.46.102.XXX nythin betweent 0-255
subnet - 255.255.255.0
gateway - 10.46.102.1

dns = 172.31.6.5

2nd dns = 172.31.6.125

Sunday, July 4, 2010

My RHCE Experiance

Hi Friends ,

It's not at all a different thing i have done , many of you might have already passed RHCE some of you might have passed RHCSS and blah blah . . .but everyone have their own experience about their certification. So here i will share few things about my experience of being an RHCE.

It was 29th June 2010 , Tuesday

This time Red Hat had a scheme , 11000 for First Shot + 2000 for next shot! Personally don't wann waste money , and no one will rt???So just woke up by 7 and my exam center was Focus Training Institute Pune , which was not close from my place soo was in hurry to reach there on time , Finally reached by 8:15 AM and exam was supposed to be conducted at 9:30 AM , as usual it was not on time because of System Problems.After and hour examiner came there and started formatting pc's , they have some procedure to format each and every machine atleast 5-6 times and then they think they can start exam.So it's very good procedure which i saw there and one thing is that examiner is really a geek and solves any problems that arises in a system quickly, a very talented student of their batch i guess! Don't mind if you are one of them!!!
I was outside the lab and was observing what's going on there on systems and finally figured out that there was Some SELinux service problem and coz of that our exam started late there at center.Ohhhhh! Again we all became restless coz we were just wanted to get rid of exam fast! Finally somehow he was able to solve all of problems in a system . . it was Good as well as bad news for all of us because exam was about to start in few minutes !

Finally he called up names of students one by one , gave one blank paper to everyone , and told me to sit on 3rd machine . Machine was looking scary to me at first site , but as time proceed it was very friendly with me.Finally we started filling a form and signed a NDA (Non Discloser Agreement) So we can't expose questions in exam. Exam started and first 1 and half hour was very gud for me as i could solve all questions except 2 questions related to NIS and SAMBA I thought i can solve it later soo i left those questions and completed my exam paper.But later words i came to know i was in a big trouble!!! Suddenly i saw one BIG SILLY MISTAKE! They were told to create COMMON directory and i created COMMAN directory which was wrong!! Total 3 questions were dependent on this DIRECTORY Ohhhh gOD! Finally had to stop all that 3 services and had to configure NFS,Mount partition and had to set permissions on that again! Now only 20 Minutes left , i thought now its better to reboot system once and did that and what i saw was astonishing once again . . . All my FIREWALL (iptables) rules got deleted coz of my silly mistake of RESTORECON . . . 15 minutes . . . then again was in hurry and applied that firewalls quickly but something was WRONG! 1 rule ! ! ! ohh god...10 minutes . . .started entering commands deleted rule ! ohh my godddddddd but which one? ? it was not one which i want . . correct rule got deleted and wrong remains there only ! 5 minutes . . . again Fast typing and finally each and every entry was correct and then saved it using RESTORECON and rebooted my Server and as soon as login screen came , examiner told me to stop ! ! ! Exam finished!!!
. . . . . .
. . . . . .
. . . . . .
1 and half day was waiting for result and finally i got my Dream Result on 30th June 2010
evening 8:30 Pm
Got a mail from Red Hat Certification Ce.

RHCT components score: 77.8
RHCE components score: 84.4

RHCE Certification: PASS

Thats GreaT!! I was soooooooooooooooooooooooooooooooo happy that day wow! Now i can go for next certification ! This was all about my personal experience of RHCE . . .
Thanx a lot for visiting my web!