Posts

Showing posts from June 1, 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. re

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 ) Apple Mail 3.0 Outlook Express Outlook 2002 Outlook 2003 (see our animated demo ) Outlook 2007 Thunderbird 2.0 Windows Mail Other 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.