Monday, February 15, 2010

`require_frameworks': no such file to load -- openssl (RuntimeError)

When i was switch over my ruby version from 1.8.6 to 1.8.7, i got this problem.Sinc i was using ubuntu 9.04, the default ruby version seems to be ruby 1.8.6.But for working with rails 2.3.5, ruby 1.8.7 is recommended.So from source i compiled the ruby 1.8.7 and the files installed in /usr/local/lib/ruby/.

Now i typed ruby script/server in the terminal, it asked for rails 2.3.5 gems.After installing i found this problem `require_frameworks': no such file to load -- openssl (RuntimeError).

If you encounter the above error, run the following to fix the error

$ sudo apt-get install openssl libssl-dev
$ sudo apt-get install ruby1.8-dev
$ cd /home/user/ruby-1.8.7/ext/openssl (source file of ruby-1.8.7)
$ sudo ruby extconf.rb
$ sudo make
$ sudo make install

Now the problem solved.

Thursday, February 11, 2010

Syntax of require/load vs. syntax of include

While writing ruby scripts we may have notice that when we use require or load, we use quotation marks for requiring or loading the name of the item.But when we use include we won't do this.

Because require and load take strings as their arguments, whereas include takes the name of a module, in the form of a constant.More fundamentally it's because require and load are locating and loading disk files, whereas include is performing a program-space, in memory operation that has nothing to do with files.It's a common sequence to require a feature and then include a module that the featur defines.The two operations thus often group together, but they are completely different from each other.

Saturday, January 30, 2010

Agile Methods and Attitudes

Agile development methods usually apply time boxed iterative and evolutionary development, employ adaptive planning, promote incremental delivery, and include other values and practices that encourage agility-rapid and flexible response to change.

Example practices from the Scrum agile method includes a common project work room and self organizing teams that coordinate through a daily stand-up meeting with four special questions and each member answers.

Example practices from Extreme Programming(XP) method include programming in pairs and test driven development.

Agile Manifesto

  • Individuals and interactions - over processes and tools
  • Working software -over comprehensive documentations
  • Customer collaboration -over contract negotiation
  • Responding to change -over following a plan


Agile Prinicples


1.Customer satisfaction and continuous delivery of valuable software
2.Encouraging requirment change even in late development.
3.Delivering software frequently from a couple of weeks to a couple of months, with a preference to the shorter time scale.
4.Developers and business must work together daily throughout the project.
5.Efficient method is to have face to face conversation between developers within the development team.
6.Continuous attention to technical excellence and good design enhances agility.
7.Team should focus at regular intervals to become more effective.

Favourite quotes

Favourite quotes "For most of my life, I've thought that doing good for someone didn't mean you would receive any commendation for an act of kindness -- until now," Jerry Lewis About

Targets to Achieve

Be a strong webdeveloper, XHTML,CSS,Javascript,SQl and system oriented knowledge