Pages

Thursday, January 20, 2011

Project Title : Mobile Marketing Force Automation

The description:

All the pharmaceutical industries marketing department has its marketing force asmedical representatives are spread across the country. It is difficult to provide each medical representatives a laptop for updating their marketing reports such as samples delivery todoctors, collecting stock requirements from the pharmacy for their product , schedules of marketing representatives for meeting the doctors,preparing the sales report .

MOBILE MARKETING FORCE AUTOMATION (MMFA) is the system which works on a mobile

phone (typically Nokia 6600) which has a browser (opera) and has connection to the server space which is hosted in the linux platform(Server management is tackkled by the third party hosting company).All the above said reports inputs are managed through the mobile phone. The mobile phone has the internet connection (provided by bsnl gprs or hutch service) which

cost from rupees 99/- to Rs 300/- per month.The RoR application has a specified cascading Style sheet(CSS)

which works on a mobile and separate Cascading case sheet to work on a pc for providing

inputs to system. The server space is taken from a hosting company which has a mysql/postgres

sql application.the RoR applicationresides in the server and it is been accessed by the

client(mobile phone) via internet connection.

Softwares prerequistive knowledge : RoR,MYSQL,Linux.

Platform                :  Browser based application works independant
on any platform

Client                  :  RoR application served on any compatible browser
Client Os               :  Symbian O/s or equivalent
Client hardware         :   Nokia 6600 or equivalent

Server                  : Mysql db support
Server Os               : Linux OS
Server Hardware         : Intel dual core/core 2 duo processor



Wednesday, January 12, 2011

Today I Learn class class, class object,class Integer in Ruby

Ruby is a perfect Object Oriented Programming Language. The features of the object-oriented programming language include:
  • Data Encapsulation:
  • Data Abstraction:
  • Polymorphism:
  • Inheritance:


class class :
         Class is also is an Object (like any other object in the system) but it is not direct instance of Object, it is an instance of a derived class (Class in this case)

Class object:
        An object-oriented program involves classes and objects. A class is the blueprint from which individual objects are created. In object-oriented terms, we say that your bicycle is an instance of the class of objects known as bicycles.
Class integer:



Tuesday, January 11, 2011

Association on rails


Briefly, Association Proxies are functions defined on an association. For example, in a library example, a Patron might have many books. This would look like

class Patron < ActiveRecord::Base
  has_many :books
end
 

Tuesday, January 4, 2011

Electricity bill

print "enter the value: "
consumed_units = gets.chomp.to_i
buffer_variable = consumed_units
if consumed_units > 0 and consumed_units <= 200
consumed_unit_cost = consumed_units * 1
consumed_units = 0
else
consumed_unit_cost = 200 * 1
consumed_units = consumed_units - 200
if (((consumed_units + 200) > 200) and  ((consumed_units + 200)<=350))
consumed_unit_cost = consumed_unit_cost + (consumed_units * 1.5)
consumed_units =0
end
end
if (((consumed_units + 200) > 350) and  ((consumed_units + 200)<=500))
consumed_unit_cost = consumed_unit_cost + (consumed_units * 2)
consumed_units =0
end
if (((consumed_units + 200) > 500) and  ((consumed_units + 200)<=750))
consumed_unit_cost = consumed_unit_cost + (consumed_units * 4)
consumed_units =0
end
if (((consumed_units + 200) > 750) and  ((consumed_units + 200)<=1000))
consumed_unit_cost = consumed_unit_cost + (consumed_units * 8)
consumed_units =0
end

puts buffer_variable

puts consumed_unit_cost

mysql

      commands
$rails new pms -d mysql
$rails generate scaffold product name:string price:float abc_class:string fsn:string narration:text

     How to Remove the folder in complete :
                 rm -rf  [folder name]  :

Today i learn about mysql and database connectivity

$  sudo gem install rails --v=3.0.3
                     [this is the procedure of rails installation]
             (Database connectivity)
                           rails new sample
                            $rails generate scaffold student name:string date_of_birth:number fathername:string mothername:string

$rails server
$rake db:migrate