Tuesday, November 18, 2008

Installed today in linux - ubuntu

Successfully installed the following.

1. Adobe acrobat reader - it should be a ".deb" package. Not an "rpm. I made that mistake here.
If you are using Open Suse, then rpm would be fine.

2. Installed Virtual box - Then installed Window XP in it. - > Windows XP is working fine.

3. Installed JDK  - > and net beans on top of that.

Scribefire - easy blogging for everybody

I installed scribe fire. This is one tool I like best.
Easy to blog, with no hassles.

You can expect a lot more blogs in my site - with this tool! :)

Sunday, November 16, 2008

I wanna run ALL windows programs on Linux!!

The solution seems to be "virtualization". Let me install vmware players and I will let you know the results.

Tristan Rhodes tells us about the five possible alternatives here-> http://useopensource.blogspot.com/2007/02/five-ways-to-use-windows-apps-in-linux.html

1. Use an open source alternative instead. And he gives the website (http://www.osalt.com/) which can provide open-source alternatives to any windows program u want.

2. Buy a commercial product that was designed for Linux

3. Use Wine to run the application in Linux -> The drawback is that all applications cannot be ported to linux.

4. Run Windows in a Virtual Machine -> Virtual box seems to be promising. I will let you know the results.

5. Run the application on a remote Windows system --> This is when you already have a windows server running for you. :)

Wednesday, October 29, 2008

Playing Quake 3 Arena in Linux


Successfully installed Quake 3 Arena with Wine.

Started playing.. and enjoying a lot!!

Type wine /pathtocdrom/setup.exe to install the game.
Type wine quake3.exe in the installation directory to run the game.

Screenshot is attached.

Wine : Running windows programs on Linux

http://www.go2linux.org/run-windows-software-on-linux-with-wine


I followed this great tutorial.
I could run putty.exe on Windows!!

The wine version I have used is : wine-1.1.7-2.1.i586.rpm

Other than this wine rpm, I have not installed anything!!

Monday, October 27, 2008

Installing nvidia driver on Opensuse 10.2

openSUSE 10.2

It is very easy, most of the time.
WARNING: The NVIDIA driver RPMs for openSUSE 10.2 are built against the default kernel on the DVD and they should work after kernel updates provided trough YaST Online Update (YOU), but sometimes they don't, because the kernel update, forced by security reasons, broke compatibility with previous version. In this case you should follow instructions in the section The Hard Way to restore 3D.

1. Import the NVIDIA GnuPG key. Login in console as root user and type, or simply copy and paste using mouse:

rpm --import ftp://download.nvidia.com/opensuse/10.2/repodata/repomd.xml.key

2. Add the NVIDIA rpm-md repository: ftp://download.nvidia.com/opensuse/10.2/ to the package manager.

* To do this in YaST, go to Software -> Installation Source. Now hit Add and then select Specify URL. In there, enter the above URL and then hit Next, and then Finish.
* Or, to do this in Zypper execute:

zypper sa ftp://download.nvidia.com/opensuse/10.2/ nvidia

3. Identify which 'nvidia' driver packages you need. This depends on the exact model of your card. For a newer card you'll probably need x11-video-nvidiaG01 and nvidia-gfxG01-kmp-default packages. If your card is part of the NVIDIA Legacy then you'll need x11-video-nvidia and nvidia-gfx-kmp-default. (The list is taken from http://www.suse.de/~sndirsch/nvidia-installer-HOWTO.html)

If you are running on a non-default kernel flavour, you may need nvidia-gfxG0-kmp-bigsmp instead of nvidia-gfxG0-kmp-default (or nvidia-gfx-kmp-bigsmp instead of nvidia-gfx-kmp-default). "bigsmp" here is a your kernel flavor. You can find out your kernel flavor by running uname -r.

4. Install the identified packages, e.g. x11-video-nvidiaG0 and nvidia-gfxG0-kmp-default.

* To do this with Zypper. for example, execute:

zypper install x11-video-nvidiaG0 nvidia-gfxG0-kmp-default

5. Restart X (Logout and press --).

6. Enjoy!

6. The kernel update will trigger installation of new NVIDIA kernel drivers. This addition will leave the old versions present, they need to be removed manually. Run:

rpm -qa '*nvidia-gfx*'

If you have a new "nvidia-gfxG01-..." package in this list, you can remove the left over nvidia-gfx-... package(s).
[edit]
SUSE Linux 10.1 and SLED 10

*
o Add the YUM repository ftp://download.nvidia.com/novell/sle10sp1 to the package manager (YAST or ZEN).

Sunday, October 05, 2008

Xine FAQ

Step by step guide to run xine

You need to download the xine engine (libxine). Get the libxine rpm which more closely matches yourCPU:
libxine1-(version)-xxxxxx.i586.rpm for Pentium/Pentium MMX
libxine1-(version)-xxxxxx.i686.rpm for Pentium II/III/IV
libxine1-(version)-xxxxxx.k6.rpm for AMD K6
libxine1-(version)-xxxxxx.k7.rpm for AMD Athlon/Duron

If you don't know your CPU just get the i586 package.
Download xine-ui:
xine-ui-(version)-xxxxxx.i586.rpm for any CPU.

Install the packages (you need to be root):
# rpm -U libxine1* xine-ui*

If you want full DVD support download and install libdvdcss:
libdvdcss-1.2.8-1.network.i386.rpm

By default, xine expects to find your DVD-ROM at /dev/dvd. Creating a symbolic link to your device is recommended (for example, /dev/hdc or /dev/scd0). The command below should work for most users:
# ln -s /dev/cdrom /dev/dvd

Make sure the DMA is enabled for your DVD-ROM, otherwise playback will be 'jumpy'.
# hdparm -d1 /dev/cdrom

If you want full Windows Media Video and Quicktime support download and install:
w32codec-0.52-1.i386.rpm

If you want full Real Media support download and install:
RealPlayer9-9.0.7.151-4.i386.rpm newest version
(alternative rpm for fedora core: RealPlayer9-9.0.7.151-6.fdr.0.i386.rpm), or
RealPlayer8-8.0.3.412-5.i386.rpm older version (if you have problems instaling RealPlayer9)
obs: Depending on your distro, you might need /usr/sbin/update-alternatives or libXm.so.2
Type 'xine' at your console window and enjoy...

Monday, July 07, 2008

Learning ruby

The next few posts would be related to learning ruby.
My project was on "ruby on rails".

But to understand rails, I believe, I should know ruby first.

I have joined an online course "http://rubylearning.org/class/".
I will be posting reviews about the same here.

The course is for two/three months.

The following online book "http://pine.fm/LearnToProgram/" seems interesting.

Saturday, June 21, 2008

Automation using selenium


I will provide the steps for automation testing as a series of tutorials.

The automation is going to be done using the selenium tool (free) and Netbeans IDE (free again)!

Steps

1. Download firefox browser, if you already don't have one.

2. Start firefox and go to the selenium website. Selenium is available as a plugin for firefox.

http://selenium.openqa.org/

We need the "selenium ide" plugin. So we go here : http://release.openqa.org/selenium-ide/1.0-beta-2/selenium-ide-1.0-beta-2.xpi

3. When the browser prompts you, say "open the file" and the plugin will get installed in your browser.

4. Alternatively, you could save the file to your desktop. Now drag and drop the file into the browser window. This will install the plugin into Firefox.

Result
You should be able to access the plugin from the tools menu.

See the screenshot below.

Monday, June 16, 2008

Learning python - python411

The best site (free) that I have come across to learn python is "http://www.awaretek.com/tutorials.html#begin".

Justin (my brother) suggested this. It has many useful podcasts.
I like podcasts because they help me to easily retain the information I learned .

Learning becomes fun!!

I am going to learn python using this site.

The first tutorial I am going to try is

http://uselesspython.com/JoeUselessWritesAProgram.html

It is supposed to be very simple..
Will keep you posted on the same!!

Technorati Tags: , , ,

Free icons!!

Get your free (as in freedom) icons here.

http://www.famfamfam.com/lab/icons/silk/

I have checked them and they look really great!!


Sunday, June 15, 2008

Trying to add Adsense to my blog

http://help.blogger.com/bin/answer.py?answer=50288

Nvidia drivers for OpenSuse

How To
How to install latest Nvidia driver for Suse 10.2

Don'ts
Dont search in google.
Dont follow the instructions in any google search result

Do's
Head over to "http://en.opensuse.org/Nvidia"
Also read "http://en.opensuse.org/Nvidia"

Speeding up video playback on xine

To speedup videoplayback, you should enable DMA.

> hdparm -d /dev/dvd
bash: hdparm: command not found

Googled it. First result, you have to be logged in as root.
Here goes.

guest@linux-7vgo:~> su
Password:
linux-7vgo:/home/guest #
linux-7vgo:/home/guest # bash: hdparm: command not found
bash: bash:: command not found

Now second result in google says " you have to login as root as -1".
Here goes..

linux-7vgo:/home/guest # su -l
linux-7vgo:~ # hdparm -d /dev/dvd

/dev/dvd:
using_dma = 1 (on)

Success!!

If it is off (0), we have to enable it.
sudo hdparm -d 1 $DVD_DEVICE



More links for developing firefox extensions

http://digg.com/programming/How_to_create_a_Firefox_extension_step_by_step_tutorial

http://www.businesslogs.com/technology/firefox_extension_tutorial.php

http://www.borngeek.com/firefox/toolbar-tutorial/

http://digg.com/programming/How_To_Your_First_Firefox_Extension_Say_XUL

how to create firefox plugin

I use fire fox plugins and I like them very much.

eg:

1. selenium ide (Test automation tool)
2. Scribe (For posting blogs..this blog is being posted to blogger by scribe)
3. Gspace (converting your gmail to virtual hard disk...storing all your files online)
4. Down them all etc

So how to write one for myself.
Googled it.

Hey, I have coined a new word..googled (like countless millions already found out)

Here is the link I am reading now...
http://www.businesslogs.com/technology/firefox_extension_tutorial.php

Saturday, June 14, 2008

Netbeans installed successfully


Netbeans was installed successfully!
Here is a screenshot.

Failures

First I installed netbeans by changing to root.
And this failed.
Steps
Suppose you are currently logged in as user1.
> su
> Now type the password.
manojtesting

You are "root".
Now if you run the Netbeans installer , it fails.

But if you dont do "su", then Netbeans gets installed successfully!!

Downloading of jdk complete..what next?

The jdk was downloaded as .bin
Running it as ./filename did not work.
Nor did just typing the filename.

Google gave the answer like this..
sh filename.bin

It worked!!

First the license agreement...

Pressed "Enter" a zillion times...:)

Now i type "yes" and press "Enter".

It worked!!

JDK was installed.
Output

Java(TM) SE Development Kit 6 successfully installed.

JDK never asks the user where to install the Jdk.
It installs itself in the same directory where the jdk installer was run..
Just remember that!!!

Aim -> To install Netbeans 6.1 on Linux

Downloaded Netbeand 6.1 Linux version. My linux box is OpenSuse, by the way.

Installing it gave me the message.. It cannot find the jdk.

Checking that ..found it to be true.. the machine did not have jdk, only java runtime.

Going to the sun site

Ya, here it is.

Linux self-extracting file
jdk-6u6-linux-i586.bin 67.25 MB


Will take one hour approximately...
See you in one hour...

Friday, June 13, 2008

Extreme sports


I like doing these kinds of stuff ;)
Here is the photo...!!


Wednesday, June 11, 2008

Learning ruby - Baby steps

Baby Steps...

First you must have an editor.
For practical reasons, I suggest Netbeans IDE 6.1
Go ahead and download it. It is available for Windows, Mac and Linux!

First program -Hello world

puts displays output to the screen.

To print hello world: puts "Hellow world"
(Bold letters are source code).

The opposite of puts is gets.
eg:
value =gets()
It returns whatever the user has typed on the screen.

you can embed a variable inside a string like this.

Syntax:
print( 'What is your name: ' )
name = gets()
puts( "Hello #{name}" )

By the way, I tried "SciTE" - the default editor which comes with Ruby.
Good, but not great.
Then I tried Netbeans 6.1. It was amazing!!
1. Intelli sense -> you type a method, all methods are there in the pop-up, with descriptions and usage! A great tool to learn the language and get good at it!!
2. Auto completion -> You say "def" and type the function name and "end" is automatically typed and aligned for you by Netbeans. Three kisses to Netbeans!!


Technorati Tags:

Tuesday, June 10, 2008

New login created for irctc

New login "manoj????" was created.
each question mark is related to my Persistent office equipment.

The password is as usual.

IRCTC Railway ticket booking

http://www.irctc.co.in

This is a great site for booking your railway tickets.
Just create a login and book your tickets upto three months in advance.

You can book "tatkal" tickets as well.
Credit card is mandatory. Debit problems give some problems with this site.

Multiple Gmail ID's in gmail

How can you get multiple email id's from one gmail account?

Here is the scenario.

The product I test requires multiple users. Each user has to sign up first and the password is sent to his email account.
I have one gmail account. And I dont want to create 20 gmail accounts.
What should I do?

The solution was provided by Saurabh Seth ( and his brother).
Send the mail to "<username> +<junk value>@gmail.com

So example email addresses would be.. (assuming my email address is manoj@gmail.com)

1. manoj+user1@gmail.com
2. manoj+user2@gmail.com
3. manoj+user3@gmail.com etc....


Python for beginners

Hey, I have decided to study Python.

I will be continuing this as a series...

Typing in what I study each day. So watch the topics posted!

Python was created BY Guido van Rossum.

It is a general purpose lanague, very fast ( but not as much as C) and we can program it at a higher level of abstraction.
Python is easy to learn, easy to use and at the same time highly powerful.
founded
Python is implemented in three flavours.

1. CPython (this is the "Standard" Python. It was developed first and is more stable than any other implementation).

2.JPython ( Python for java language - all functions of Python _+ all functions of Java is available. Requires the JVM)

3. Iron Python ( Python implementation for dot net developers. Supports .net functionality).

Monday, June 09, 2008

Mustard functions - Hypothetical interpreter for GUI Testing

Here are the functions of the hypothetical interpreter "Mustard'.

MUSTARD FUNCTIONS

Login CLICK TAB SPACE ENTER TYPE CHECK EXEC
DELAY END BEGIN TYPEFILE

1. Login: Used for logging into a web page. The url of the web page should be stored in Url.txt. The X and Y co-ordinates of “username” text box should be stored after that.



An ideal url file (url.txt) would look as given below.

https://ps2332/S3Control/index.jsp

488 321

Work flow

Web page is opened with address https://ps2332/S3Control/index.jsp. In the login page, the point 488, 321 is clicked. This brings the cursor inside the “username” text box.

Now the username “A” is typed. TAB is pressed to go to “password” text box. Password “B” is typed. TAB is pressed to bring focus to “Login” button. The “Enter” key is pressed to login to the page.


Usage: Login A B

A= username

B= password




2. CLICK: The function is used for simulating mouse click on any point on the screen.

Usage: CLICK X Y

X= x co-ordinate of point to be clicked.

Y= y co-ordinate of point to be clicked.



3. TAB = Simulates pressing of TAB key.



4. SPACE = Simulates pressing of SPACE key.
5. ENTER = Simulates pressing of ENTER key.



6. TYPE = The function is used for simulating keystrokes from the keyboard.

Usage: TYPE ABC

The text “ABC” would be entered (say into a text box).





7. CHECK = Check if a window with specified caption contains the specified text



Usage: CHECK A B

Checks if a window with the caption “A” and text “B” exists. If the window exists, the test case is shown as passed (the name of the test case would be the test case in which the CHECK function is present) along with the date and time.

If the specified window does not exist, the test case is considered failed.

If a test case passes, an appropriate line is entered into “success.txt”.

If a test case fails, similar line is appended to “failure.txt”.



Note: Users of Winrunner may consider this similar to CHECKPOINT.



8. EXEC = Used for running an external program.



Usage: EXEC notepad.exe



This would run the notepad program.



9. DELAY= Used to make the automator wait for some time (in milliseconds)

Usage: DELAY X

X= Time in milliseconds.



10. TYPEFILE = Used to input multiple data items. This is used in conjunction with looping (BEGIN…END).

Type all data into a single text file. Each data entry should be separated by a new line.

Usage: TYPEFILE Users.txt


11. BEGIN= BEGIN is used along with END to simulate a loop.

Usage:


BEGIN 4 --------------------------------------> Begin the loop here.

CLICK 85 264//ADD NEW USER

DELAY 500

TAB //BRINGS CONTROL TO USERNAME

TYPEFILE Users.txt

TAB //FIRST NAME

TYPE MANOJ

TAB //LAST NAME

TYPE THARAYIL

TAB //EMAIL

TYPE manoj_tharayil@yahoo.com

TAB //ANALYTITIC PASSWORD

TYPE changeme

CLICK 51 489 //click on save.

DELAY 500

CHECK Add/Edit User

CLICK 455 442 // //TO CLOSE THE CONFIRMATION MESSAGE

END ----------------------------------> End the loop here.


Tool for capturing and tracking requirements

I am looking for a free tool - good if it is opensource - great if it in python or java - the two languages i like best.

The tool should be able to capture requirements.
We should be able to track it as well.

I am imagining three checkboxes - 1) completed 2) Not done 3) In progress
and a text box called "Comments" against each of these requirements.

Monday, June 02, 2008

Unit Testing Ruby on Netbeans IDE

For ruby unit testing, we need to extend from the class "Test::Unit::TestCase?".

Suppose the following "Demo" class exists. It has only one method ie “return_two”.

class Demo

def return_two
2
end
end

The method "return_two" returns the value 2. We could have written "return 2" or just "2" since ruby returns the value of the last line in the method.

Now let us write the class to test the "Demo" class. I have used Netbeans IDE.

By convention, we have to name test classes as "Test+ClassName?". So we have "TestDemo?" as the classname. Here is the ruby code.

$:.unshift File.join(File.dirname(__FILE__),'..','lib')

require 'test/unit'
require 'demo'

class TestDemo < Test::Unit::TestCase

def test_foo
d= Demo.new
assert_equal 2, d. return_two

# assert_equal("foo", bar)
end
def test_fail
d= Demo.new
assert_equal 3, d. return_two
end

end

Now the method "test_foo" tests the method "return_two" of "Demo" class.

In detail:

1. First the class “Demo” is instantiated using “Demo.new”

2. Next, the variable “d” is used to store the reference to the newly instantiated “Demo” object.

3. The method “assert_equal” checks whether the expected value (2) matches with the actual value (d. return_two). Since this matches, the test case will pass.

4. There is another method called “test_fail”. This checks whether the expected value (3) is equal to the actual value (d. return_two). Of course, this method will fail.

When we run the “TestDemo?” program, following output is obtained.

Loaded suite C:\Documents and Settings\manoj_tharayil\My Documents\NetBeansProjects\RubyTesting\lib\test_demo
Started
F.
Finished in 0.131 seconds.

1) Failure:
test_fail(TestDemo) [C:\Documents and Settings\manoj_tharayil\My Documents\NetBeansProjects\RubyTesting\lib\test_demo.rb:14]:
<3> expected but was
<2>.

2 tests, 2 assertions, 1 failures, 0 errors

Running multiple tests – Testsuite

Suppose we have another class “example”.

Here is the code.

class Example
def return_five
5
end
end

The method “return_five” returns 5.

So here is the class “TestExample?” to test the above class.

$:.unshift File.join(File.dirname(__FILE__),'..','lib')

require 'test/unit'
require 'example'

class TestExample < Test::Unit::TestCase

def test_foo
k=Example.new
assert_equal 5, k.return_five,"Success"

end

def test_fail
k=Example.new
assert_equal 6, k.return_five,"Success"

end
end

The sample method “test_foo” would always pass.

The method “test_fail” would always fail.

Here is the output when the “TestExample?” class is run.

Loaded suite C:\Documents and Settings\manoj_tharayil\My Documents\NetBeansProjects\RubyTesting\lib\test_example
Started
F.
Finished in 0.195 seconds.

1) Failure:
test_fail(TestExample) [C:\Documents and Settings\manoj_tharayil\My Documents\NetBeansProjects\RubyTesting\lib\test_example.rb:21]:
Success.
<6> expected but was
<5>.

2 tests, 2 assertions, 1 failures, 0 errors

Now we have two classes

1. TestExample?

2. TestDemo?

We need to run the tests in both the classes. Test suite comes into the picture.

TestSuite? code

Create a test suite class, say “ts_suite”

require 'test/unit' 

# Add your testcases here

require 'test_example'
require 'test_demo'
#require 'tc_3'

The above test suite says

1. First run the test case "test_example".

2. Then run the test case "test_demo".

3. It will not run "tc_3" since it is commented out.

We can go on adding test cases to the test suite as above. Here is the output from the test suite when it is run.

Loaded suite C:\Documents and Settings\manoj_tharayil\My Documents\NetBeansProjects\RubyTesting\lib\ts_suite
Started
F.F.
Finished in 0.17500000000000002 seconds.

1) Failure:
test_fail(TestDemo) [C:/Documents and Settings/manoj_tharayil/My Documents/NetBeansProjects/RubyTesting/lib/../lib/test_demo.rb:14]:
<3> expected but was
<2>.

2) Failure:
test_fail(TestExample) [C:/Documents and Settings/manoj_tharayil/My Documents/NetBeansProjects/RubyTesting/lib/test_example.rb:21]:
Success.
<6> expected but was
<5>.

4 tests, 4 assertions, 2 failures, 0 errors

You can see that there are 2 failures – one in each class.

The failures are “hyperlinks” – when clicked would take us to the exact line in the method of the class which failed.

Happy Testing!!

Sunday, June 01, 2008

Interesting website for books

Just joined goodreads.com


Configuring thunderbird with gmail

Not able to send email from my desktop.

sending a picture from Gwenview opened up "KMail composer" asking me to configure the pop3 account.

Searching in google - for "gmail pop3".

Google supports only following mail clients. ( http://mail.google.com/support/bin/answer.py?answer=12103 )

So "Thunderbird 2.0" it was.

Configuring thunderbird with gmai is given in detail here.

http://mail.google.com/support/bin/answer.py?answer=38343

So fired up Yast and entered thunderbird. Downloading the latest version (around 25 MB).

QT4 - developing application on opensuse linux

There is a cool feature introduced in Windows xp.

If your computer is going to hang, just pull out "task bar" and "End task" the application.

Why don't we have something similar in linux?

I decided to create one.

Which is the language and the IDE we can use here.

My brother Justin suggested QT4.
I researched. He was right.

The remaining blogs would be dedicated to QT4.

Fedora core 9 crashed on amd64 bit.

I spent four days downloading Fedora core 9. It was a whopping 4.5 GB.
Yesterday I tried installing it and it crashed.
The computer just went off. Phit!!!

Reason: Fedora core 9 is using the latest bleeding edge technologies.
Currently Nvidia is not supporting drivers for KDE 4.
Guess what? Fedora core 9 is using KDE 4.

Well, bad luck for the users!!
All you can see is the crash of Fedora core 9.
Dont bother to read the release notes if you are using Nvidia drivers.
See the crash, reboot your machine and install another Linux.

My favourite Linux is Open Suse 10
I love the way these people do everything.
Right from the time, the installer begins to the end - where you install additional software using Yast, everythng is a breeze!!

Do remember NOT to install ZEN Virtualization. It is a real pain in the ass!!

For suse 10.3, they have recongnized the mistake and removed the software from the official release.

Advantages of blogging

We face a lot of issues in our day to day life.

As software engineers, most of them are related to software testing.
We find answers to these problems after much research.

Why not share it in the blog?
People all over the world who face similar problems could benefit from it.


Blogging from Firefox using scribe fire

We could use scribe fire to blog from firefox.

Scribe is available as a plugin from the firefox website.

After installation, you can configure scribe to connect to blogspot.com easily.


Testing with scribe fire

This is a test.

Thursday, May 29, 2008

How to install a ruby build - dependent on mysql

Download the build from SVN .

Pre-requisite

Tortoise svn is setup and is working properly.
Ruby and rake are installed.

Steps

1. In any directory, create a new folder. Rename it to something like "Test build version 0.5 build 1".
2. Right click on the folder and select "SVN checkout" from the menu.
3. In the pop-up "Checkout", make sure the "URL of repository" field has the correct data.
4. Now in the "Revision" heading, select the "Revision" check box and enter the revision number (say "333").
5. Click on "ok".

Result:
The build gets downloaded to the new directory you created in step 1.

Configuring the build.

1.  Now go to the directory
"Test build version 0.5 build 1". Navigate to config->database.yml
2. Edit the file "database.yml".
3. Under the heading "development", change the database field to something like "Testdatabase_05_2".
4. Change the password to current password of "mysql database".
5. Save the file.

Creating the above database in mysql.

1. Open a command prompt and type the following command.

>mysql -uroot -proot123

Root is the user name.
root123 is the password.

Note that there is no space between -u and the username.

Here is the output from the command prompt.

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 18
Server version: 5.0.51b-community-nt MySQL Community Edition (GPL)

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

Now type the following command "
create database Testdatabase_05_2".

mysql> create database Testdatabase_05_2
    -> ;
Query OK, 1 row affected (0.00 sec)

mysql>

Now we have created the database "
Testdatabase_05_2".

Populating the database with data (using rake)

1. open a command prompt.
2. Go to the directory where the build is downloaded. ie
"Test build version 0.5 build 1".
3. Run the rake command to populate the database "
rake db:schema:load ".
4. You will get some output which denotes that the database is populated.

Running the server.

1. Navigate to the directory where build is downloaded.
2. Run the ruby command to start the server.
eg:

E:
cd E:\ParasharBuilds\Parashar version 0.5 build 2
ruby script/server --port=3005

Monday, May 26, 2008

Eccentricities of xampp

Xampp asks you to secure the password.

After securing the password, what is the username to login to xampp website?

During securing of xampp, it only asks for the password

Solution:

The default user is "lampp"

If you used xampp to change the passwords, the user should still be "lampp"

Website: http://www.apachefriends.org/f/viewtopic.php?t=22869

Installing ruby on rails in linux - the easy way

Ruby was already present in the system.

To install rails, we have to install gems first.


Download gems, go to that directory, login as root

> su
Password:
and type as below.

ruby setup.rb

Now to install rails, we have to install a lot of gems first.
All this can be done automatically if you type

gem install rails --include-dependencies


Result is given below.

# gem install rails --include-dependencies
INFO: `gem install -y` is now default and will be removed
INFO: use --ignore-dependencies to install only the gems you list
Bulk updating Gem source index for: http://gems.rubyforge.org/
Bulk updating Gem source index for: http://gems.rubyforge.org/
Successfully installed rake-0.8.1
Successfully installed activesupport-2.0.2
Successfully installed activerecord-2.0.2
Successfully installed actionpack-2.0.2
Successfully installed actionmailer-2.0.2
Successfully installed activeresource-2.0.2
Successfully installed rails-2.0.2
7 gems installed
Installing ri documentation for rake-0.8.1...
Installing ri documentation for activesupport-2.0.2...
Installing ri documentation for activerecord-2.0.2...
Installing ri documentation for actionpack-2.0.2...
Installing ri documentation for actionmailer-2.0.2...
Installing ri documentation for activeresource-2.0.2...
Installing RDoc documentation for rake-0.8.1...
Installing RDoc documentation for activesupport-2.0.2...
Installing RDoc documentation for activerecord-2.0.2...
Installing RDoc documentation for actionpack-2.0.2...
Installing RDoc documentation for actionmailer-2.0.2...
Installing RDoc documentation for activeresource-2.0.2...
linux-edp6:/home/manoj/Documents/downlload movies/Ruby on rails/rubygems-1.1.1/rubygems-1.1.1 #

Friday, May 23, 2008

How to create screencast

VNC to swf

http://www.unixuser.org/~euske/vnc2swf/howto-vnc2swf-windows.html

Photoshop effects

I really love these photoshop effects.



How to create it is given here.

http://9tutorials.com/2008/05/22/amazing-photoshop-light-effect-in-steps.html

http://psdtuts.com/tutorials-effects/create-a-glowing-light-painting-effect/

http://www.flickr.com/photos/marcoarment/2058577742/

Thursday, May 22, 2008

XAMPP on OpenSuse 10.2

Another choice is installing MySQL Database Server from a complete bundled from XAMPP. XAMPP bundled MySQL Database Server with Apache webserver, PHP and Perl Engine.

Installing XAMPP on Linux box is very easy. This step was taken from apachefriends.org.

1. Download XAMPP for Linux from Apachefriends.org
2. Go to a Linux shell and login as the system administrator root:
su
3. Extract the downloaded archive file to /opt :
tar xvfz xampp-linux-1.6.tar.gz -C /opt

Warning: Please use only this command to install XAMPP. DON'T use any Microsoft Windows tools to extract the archive, it won't work.

Warning 2: already installed XAMPP versions get overwritten by this command.

That's all. XAMPP is now installed below the /opt/lampp directory.

4. Start

To start XAMPP simply call this command:

/opt/lampp/lampp start

You should now see something like this on your screen:

Starting XAMPP 1.6...
LAMPP: Starting Apache...
LAMPP: Starting MySQL...
LAMPP started.

Ready. Apache and MySQL are running.

5. Test
OK, that was easy but how can you check that everything really works? Just type in the following URL at your favourite web browser:

http://localhost

Now you should see the start page of XAMPP containing some links to check the status of the installed software and some small programming examples.


I have tested this with OpenSuse 10.2 and it works like a breeze!!

Wednesday, May 21, 2008

Increasing selnium functionality

A good place to increase functionality of selenium

http://wiki.openqa.org/pages/viewpageattachments.action?pageId=369


Blogged with the Flock Browser

Untitled

The best snacks ann likes is pav bhaji

Monday, May 19, 2008

Simple Linux commands

What is the command in linux to find the version of the operating system. is Red hat or Suse etc.

# uname -a

and

# cat /etc/issue

Monday, May 19 2008

Taking part in the Google Puzzle contest!!