Monday, December 20, 2010

How To Run Clojure

To run Clojure interactive mode:
#1. Download Clojure source file
#2. Unpack it
#3. In the Clojure directory, type:
     C:\Clojure\>java -cp clojure.jar clojure.main

Then you enter interactive mode:
user=> (+ 1 2 3)
6
user=>(. javax.swing.JOptionPane(showMessageDialog nil "Holla,
      World")

How To Use Perl In XAMPP

For using perl in xampp, you need to:
#1. type your source code in text editor with .pl extension, because there's no interactive mode.
#2. type
    C:\xampp\perl\bin\>perl sourcefile.pl

Run Scala Interactive Mode

Just type in bin directory of scala extracted file:

D:\Scala\bin\>scala

After you type this one, you will get into to scala interactive mode.

Saturday, December 18, 2010

Login To MySQL Server

May be you are confused to how to log in to MySQL Server. Although there's a simple login procedure. Just type this in command prompt to your MySQL bin directory:

C:\Program Files\MySQL\bin>mysql -u root

and use this one if you have password:

C:\Program Files\MySQL\bin>mysql -u root -p
Enter Password: ******