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 !

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  


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,

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

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!