Wednesday, November 29, 2006
Is having a loosely typed language necessary for creating ease of programming?
I have worked in programming languages such as c, c+=, java, php, jsp etc. I was trying to study ruby deeply. It looks like if you are a fan of programming systematically and sticking to some standards, ruby might give tough time in making you understand its loosely typed programming manners.
Although, a couple of things are fine. But on a whole, I still want to remain with tougher programming languages.:)
Tuesday, November 28, 2006
Why are we so different?
I keep wondering about how each one of are so different inspite of the fact that all of our lives run based on that tickling heart beat which is exactly same in everybody?
Well, at times, I come to a conclusion that all of us are born equally at birth with absolutely same behaviour, same features(different for females), same expression etc. But as time go by, we actually become embodiment of our observations, our learning, our experiences. Thats where we start differing in same topic, towards same food, towards same god!
I do not know if this is nature design to make world go like this.
I am so much puzzled.
Monday, November 27, 2006
Smart coding or what?
Take a look at the following piece of code. Isn't it interesting to find a new Thread class instantiated and on which start is invoked right away. Make a notice of run method. Is that a smart way of coding or displays lazy manners of the programmer.
private void execute(final Request request) {
new Thread(new Runnable() {
public void run() {
request.execute();
}
}).start();
}
private void execute(final Request request) {
new Thread(new Runnable() {
public void run() {
request.execute();
}
}).start();
}
Sunday, November 26, 2006
Class Inheritance example in Ruby
Following is an example of class inheritance in ruby programming. Do make notice of use of super and "<" for inheritance.
class HelloParent
attr_accessor :name
def initialize( name )
print "\nThis is a parent program, Hello #{name}"
@name = name
end
print "\nThis is a parent program, Hello #{name}"
@name = name
end
class HelloChild < HelloParent
def initialize( name, surname )
print "\nI am a child class #{surname}"
super(name)
end
end
def initialize( name, surname )
print "\nI am a child class #{surname}"
super(name)
end
end
child = HelloChild.new( "Ak", "Kumar" )
child.sayHello
In avove try putting something like following:
child = HelloChild( "Ak", "Kumar" )
child = new HelloChild( "Ak", "Kumar" )
And you get the following error:
hw2.rb:21: undefined method `HelloChild' for main:Object (NoMethodError)
Yet another Ruby Hello World Program
Trying hello world program once again
class Helloworld
def initialize( name )
@name = name
end
def setName(a_name)
@name = a_name
end
def getName()
return @name
end
end
h = Helloworld.new( "Krish" )
puts h.getName()
h.setName( "Aiyana" )
puts h.getName()
Save the file with any name and extension as *.rb unlike java where top level class name has to be same as file name. Then execute the following command:
ruby name.rb
NOTE:
Do not forget to name the class with first letter as capital letter.
I didnt put the first letter of class name as capital letter and got the following error:
hw.rb:1: class/module name must be CONSTANT
Menier's disease and Yoga
I am suffering from Vertigo based disease which they call Menier’s disease. Doctors have given up saying there is no definitive treatment in medicine side. I am going to try homeopathy.
However, I am also planning to join a Yoga class. I read some article on the net which says there are numbers of yoga asanas which could provide great relief to those suffering from vertigo, more specifically rotational vertigo.
Following is the list of those yoga asanas:
1. Malasana
2. Salamba Sirsasana
3. Halasana
4. Paschimottanasana
5. Sanmukhi Mudra
6. Nadi Sodhana Pranayama
7. Savasana
This one is Malasana.

For complete information, read the article http://www.deccanherald.com/deccanherald/dec26/liv5.asp
I am suffering from Vertigo based disease which they call Menier’s disease. Doctors have given up saying there is no definitive treatment in medicine side. I am going to try homeopathy.
However, I am also planning to join a Yoga class. I read some article on the net which says there are numbers of yoga asanas which could provide great relief to those suffering from vertigo, more specifically rotational vertigo.
Following is the list of those yoga asanas:
1. Malasana
2. Salamba Sirsasana
3. Halasana
4. Paschimottanasana
5. Sanmukhi Mudra
6. Nadi Sodhana Pranayama
7. Savasana
This one is Malasana.

For complete information, read the article http://www.deccanherald.com/deccanherald/dec26/liv5.asp
Saturday, November 25, 2006
Chilkur Temple, Hyderabad
I went to Chilkur temple today. Well, one of the ways to go to Chilkur temple is go to Medhipatnam bus stand by any means. From there, one could get shared auto-rickshaw, private auto rickshaw or APSRTC buses.
Anyways, it was around 3 hours stay in Chilkur. I had darshan of Balaji as well as lord Shiva. A popular faith is following: go to temple, make 11 rounds around the god’s place and wish one thing. If that gets completed, you have to make 101 rounds the next time you go to Chilkur temple.
Anyways, it was around 3 hours stay in Chilkur. I had darshan of Balaji as well as lord Shiva. A popular faith is following: go to temple, make 11 rounds around the god’s place and wish one thing. If that gets completed, you have to make 101 rounds the next time you go to Chilkur temple.
Friday, November 24, 2006
Hello World program in Ruby
class HelloWorld
def initialize( name )
@name = name
end
def getName
return @name
end
end
Then try the following:
h = HelloWorld.new( "a kumar" )
h.getName
The above prints "a_kumar"
Holiday planning for december 2006
Leave Date: 26-Dec-06 29-Dec-06
Leave: 4 days
Effective leave: 10 days
Description:
"Dec 23 2006 is Saturday, Dec 24 2006 is Sunday
Dec 25 2006 Monday Christmas
Dec 30 2006 is Saturday, Dec 31 2006 is Sunday
Jan 1 2007 Monday New Year Day/ Bakrid"Cheers
Leave: 4 days
Effective leave: 10 days
Description:
"Dec 23 2006 is Saturday, Dec 24 2006 is Sunday
Dec 25 2006 Monday Christmas
Dec 30 2006 is Saturday, Dec 31 2006 is Sunday
Jan 1 2007 Monday New Year Day/ Bakrid"Cheers
Netbeans Vs Eclipse Vs IntelliJ
I am using NetBeans these days as my Java programming IDE. It is quite cool. I recommend it to all java programmers to try the NetBeans as this is a cool IDE. This could be downloaded from http://www.netbeans.org
The latest version of NetBeans version 5.5 has come with upgraded features. I specially liked the ease of project creation in NetBeans wherein the wizard used for creation project is very good. Later, if you are used to other IDEs, you could configure keys to suit your needs.
Although it is comparatively slower than other IDEs, however it is promising. I give it 8/10. :) Do you really care my readings? Else try for yourself.
The latest version of NetBeans version 5.5 has come with upgraded features. I specially liked the ease of project creation in NetBeans wherein the wizard used for creation project is very good. Later, if you are used to other IDEs, you could configure keys to suit your needs.
Although it is comparatively slower than other IDEs, however it is promising. I give it 8/10. :) Do you really care my readings? Else try for yourself.
