Blogs
Tech Talk - Web 3.0
We keep hearing buzzwords like Web 2.0 and Web 3.0. But what do these actually mean? When the World Wide Web started, the first thing everyone did was to put all their print media or material online. That was Web 1.0, where the primary usage of the Web was to enable users to publish information online. Web 2.0 attempts to now take all this published information and actually have users interact with it and with each other. Social Networking, Enterprise Applications and Applications like Facebook let you publish, share information and interact with others connected into your network.
Implementing Agile – Part I
So you came to know about this Agile thing, you have collected enough information from the sources available and now you want to implement it in your organization also. First of all I want to welcome you to the world of software development methodologies, which is known as Agile. You must know here that implementing Agile is not an immediate process. It is not like passing a circular that now we are going to adopt Agile methodologies in the future projects and the next day you proudly announce that now we are an Agile company. It is a process which takes time, sometimes 1-2 years to implement.
Updating additional data fields in has and belongs to many relationship
Updating additional data fields in has and belongs to many relationship
It's always been problem to update additional fields in HABTM tables.
Unfortunately rails have no direct support to update fields. I have written patch to update those fields in HABTM additional fields.
The code snippet and example are given below:
We have following models with HABTM relationship
Open Flash Chart
About:-
Using open flash chart you can represent your data in the form of different type of graphs.
Install Files:-
For languages other than Ruby:-
Open the .zip file and copy the open-flash-chart.swf to the root folder of your web server and copy the folder ofc-library to the root directory. Set the permissions of this folder and the .php files inside it so they will run correctly.
Using GRUFF with Ruby on Rails
Gruff is a RoR plugin to generate On-The-Fly graphs within the Web Application. Developed by Geoffrey Grosenbach you can find the Plugin Home Page at http://nubyonrails.com/pages/gruff
The API documentation can be found at http://gruff.rubyforge.org/
Example Graphs
Being Agile and how is it different from classic project management techniques?
The software industry always has some buzzwords spreading across the world from time to time. At times, it was Object Oriented Programming, Software Development Life Cycle approaches like Waterfall model and Prototyping, Graphical User Interfaces, ISO certifications, CMM Level and now it is Agile Development Practices. Every one of us keep running to catch up with other and be the first to get ISO certified or CMM level certified. Now it is turn to be Agile, and say proudly that “We are Agile”.
Caching in ROR
Ruby on Rails: Validation in Models
It is natural that when you are going to accept a new thing, you have a different kind of feeling. The same thing applied to me when I was first introduced to Ruby on Rails to accept as a new web language and framework that was based on MVC. It’s a big challenge to learn a whole new language and a new well-structured framework.
It’s been for some time now that I am using RoR and I must point out here that it is a very good learning experience.
Testing with Ruby on Rails
- From the moment we create a new application using the Rails command simply creates the test directory structure.
- Every time we run the generate script to create a model or a controller, Rails creates a test file to hold a corresponding test stub.
- A Rails test suite is split into three fundamental parts
a. Unit Tests – Unit tests cover model-level functionality, which generally encompasses an application’s sore business logic.
Avoid NoMemoryError during model reindex with ferret in ruby on rails
Avoid NoMemoryError during model reindex with ferret in ruby on rails
When Ferret is used and we want to rebuild index via console, sometime we get following error:
NoMemoryError (failed to allocate memory)
This problem mostly comes on shared server where we have limited memory space.
To get ride of this issue we have to make following test to ensure batch size of rebuilding index


