Monday, November 14, 2011

Lets Have some fun with Google

Open Google.com and type the following to get some wonderful refreshing moments

tilt                                 :-Your page tilts a little

do a barrel roll             :-your page rolls completely

Now open a new browser and copy paste the following address
www.mrdoob.com/projects/chromeexperiments/google_gravity/

You will get a page.
The moment you move your mouse,google will collapse infront of you,and u can play with google like any thing

Thanks for reading this artical

Sunday, September 4, 2011

Starting GlassFishServer Manually

Sometimes glassfish server is installed but its not visible in the program files.
Here is how you can start it manually by going to glassfish installation folder.

Use command prompt and navigate to "bin" folder of glassfish and type the following command

C:\Program Files\glassfish-v2\bin>   asadmin start-domain domain1


where domain1 is the default domain name.

Now server will be started.

Thursday, July 21, 2011

Starting Tomcat Server through Command Prompt

Most of Us start the Tomcat Server either
  • By double clicking tomcat_home\bin\  tomcatX.exe
  • By using Services in Service Manager
  • By using the short cut in System-tray(area where u see time)
But SomeTimes due to virus,TomcatX.exe may not be present in bin folder or may not be working
Reason may be anything,But Problem is You are unable to start the tomcat server.

So One more way is there,which Some people Knows,But Few People Shares

Open Dos and navigate to the bin folder of Tomcat and type the following
c:\Tomcat 6.0\bin>java -jar bootstrap.jar

It will start the tomcat.Notice that in your bin folder we have bootstrap.jar which is not a normal jar file.Its Executable jar file.
When you say >java -jar bootstrap.jar,    org.apache.catalina.startup.Bootstrap  class gets Executed.
and you get the Tomcat Console


 




Sunday, July 17, 2011

Opening Facebooks,Orkuts in Offices

Practically i have seen,Software companies generally dont allow users to open facebook,orkut. in offices.
There is a very simple trick to cheat them.

instead of typing http://www.facebook.com/
type https://www.facebook.com/
 and so on.

The entire magic is on HTTPS. I have used it and it worked.Hope it will be same for All
Cheers

Monday, July 4, 2011

Oracle Architecture

Oracle is a database s/w.
It can be divided into multiple partition.
Each partition will be identified by one global database.
By default when you install oracle,we have only 1 partition,which is identified by one global database.
ORCL for oracle enterprise edition(changable)
XE for oracle express Edition.

Each Db may contain many user,
and each user may contain multiple tables
and each table may contain multiple rows and columns

Thats the story of Oracle Architecture


Saturday, July 2, 2011

Breaking into Oracle

Resetting system password in oracle
***********************************

If you have forgotten system password in oracle,you can do the following to reset it.

1>  start->run-> type  Sqlplus


2> Enter user-name: conn /as sysdba
   Enter password:     

Connected to:
Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options

3>  SQL> alter user system identified by samsung;
    User altered.



You have successfully changed the system password to samsung.
samsung is the new password.and you need not worry about previous password


Sunday, June 12, 2011

Removing Services manually from Windows Service Manager

Sometimes you have uninstalled the software from ur machine,but still u find some services are visible at service manager.(start->run->services.msc)

Here is how to remove it manually by going into Registry Editor
1>Start->Run->Regedit  
2>Navigate to  HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services
3>Delete the services related folder
Restart if needed


Sunday, June 5, 2011

Unable to Install windows XP in Toshiba Satellite Laptop

Toshiba Satellite L300  comes with Vista preinstalled.
If you try to install XP then it say that it couldn't find a hard drive.

Here is the way to keep xp in your toshiba

Switch on the Laptop and then press F2 to get into the BIOS menu.
 Then go to the SATA option and change it from ACHI to Compatibility
then exit saving your changes (F10)

 and then reboot your Laptop from the XP Operating System disk.



It will now let you install Windows XP or any other Operating System.





Friday, March 18, 2011

JAXER

Now Java Script can be used at Client side as well as server side. Jaxer is a Server which provides Access to Database with use of Java Script itself, No need of any other scripting language. HTML,CSS, Java Script with database support is sufficient to build any web application.

Saturday, January 22, 2011

Creating folder which on Opening takes You to "Recycle Bin"

1.Assume folder name is RAJ,present in C:
    C:\RAJ

        My Computer
             |-------------->C:
             |                        |----->RAJ
             |                        |----->lock.bat
             |-------------->D:
                                     |---->key.bat
  
2.prepare a lock file.keep the lock file in c:
  Open a notepad and type the following

    ren RAJ RAJ.{645FF040-5081-101B-9F08-00AA002F954E}
     save the file. In file name type "lock.bat"   (include "")

3.prepare a key file.keep the key file in d:
  Open a notepad and type the following

  ren C:\RAJ.{645FF040-5081-101B-9F08-00AA002F954E} RAJ

save the file.In file name type "key.bat"   (include "")
______________________________________________________________________________

Note:key.bat,lock.bat should not be kept in same place,coz others can click key.bat to unlock the folder.
The location of key.bat should be known to you only.You may place key.bat anywhere.

Operation:

To lock the folder.Simply double-click lock.bat.The folder icon changes to Recycle-bin.
To unlock the folder.Simply double-click key.bat present in  D:

Modify as per your wish

Monday, January 10, 2011

Some times your ports are busy.

Exclusively for Web Developers

WhenEver you are developing your webapplication and your tomcat server/or any webserver fails to startup saying some is in use.  Here is the process to find out which port no is used by which service and kill that service to free that port
 


c:\>netstat -a -o       //displays all the process with their port and PID



 Protocol    Local Address :Port        Foreign Address                 State                     PID
 TCP                       raj:1033                   localhost:1034              ESTABLISHED         1692
 TCP                       raj:1034                   localhost:1033              ESTABLISHED         1692
 TCP                       raj:2008                   localhost:2009              ESTABLISHED         1376
 HTTP                     raj:2541                  localhost:12080            ESTABLISHED         1400




Suppose u want to free the port 2541.its pid is 1400


c:\>   taskkill /pid 1400 /f     //assuming PID=1400 is the process ID using that port /f for forcefully

            terminating the service with that PID

for more help
c:\>    taskkill /?
c:\>    tskill /?