Saturday, May 31, 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.

Wednesday, May 28, 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

Sunday, May 25, 2008

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 #