2009/05/16

Workshop 6

  • generate a controller and an action by adding a method(s) to a controller;
  • create a view template for each action and to link to actions from views;
  • use AJAX to improve the user experience;

C:\Downloads\InstantRails3\rails_apps\login\app\controllers\account_controller.rb



C:\Downloads\InstantRails3\rails_apps\login\app\models\user.rb



C:\Downloads\InstantRails3\rails_apps\login\app\views\account\login.html.erb


C:\Downloads\InstantRails3\rails_apps\login\app\views\account\registration.html.erb


php database:



A salted value to prevent hacking is added.



The view to register a user.



Neither username or password can be blank;
Error message to be displayed:






While Wrong password is entered, the error message will be seen:


Input the correct username and password:




After registered a new user, a welcome speech will be shown:







Try to login:

Password field cannot be empty:


While correct username and password are entered, a welcome speech will be shown:

Workshop 5-C

The output view:



Fill the data:



The processed output:

You can enable the following line in your controller class definition to skip the authenticity_token check:protect_from_forgery :only => [:create, :update, :destroy] is added for Instant Rails 2.0 to perform/authorize the form operation.
Assign the root for the application: map.root :controller => "Vehicle"
A index.rhtm with same code of cabtype.rhtml is added in order to skip no index error.







Workshop 5-B

The output view:


Workshop 5-A

The output view:


2009/05/15

Exercise 26-2 & 3

Summarise your understanding and describe its relevance (250 words max) in either your study at university or in your work environment;



IT integrated systems need to be better organized and integrated to advance the use of business information in enterprises to the next stage and thereby promote innovation in business processes and customized services for individuals.

Business Process Management (BPM) to improve business processes using the following cycle:
1) Visualization of a business process,
2) analysis and evaluation of a business process,
3) design of an improved business process, and
4) execution of an improved business process.



People in all levels, including the operational level, now require raw, real-time information so they can continuously improve their business processes. Therefore, integration middleware such as ERP and CRM will be used to enable real-time use of business information by using Web-service integration technology.

The technologies of business process integration are as follows:
1) ERP works as Web services.
2)Flow technology to enable business process monitoring. This technology includes human flow monitoring technology and event tracking technology.

Service-oriented integration middleware equipped with Web-service integration technology to support the Business Process Management framework. By using Web-service integration technology, enterprise personnel from the executive level to the operational level can use real-time information. The integration middleware has been adopted in the systems of industry-leading enterprises and will be used in other systems in various industries.

In my working environment (a secondary school), the business processing management would be the related criteria. Many processes are not standardized, updated data and information are always appeared and decrease the quality of working.

References:
Masahior Nalagawa, 5 Dec 2003, Business Process Management with Web-Service Integration Technology, p1

M. Nakagawa: Business Process Management (BPM) is mandatory in the Web services age. (in Japanese), Web Services Conference 2003.http://interstage.fujitsu.com/jp/events/2003/828wsc.html

Evan D., Morrison Alex, Menzies Koliadis el at, 2009, Business Process Integration: Method and Analysis

Exercise 26-1

My topic:
Business process analysis will be chosen to manage and develop integrated systems.

Exercise 25

1. What is meant by a location based service?

Location Based Service (LBS) is an intersection of three technologies like the following figure. It is created from New Information and Communication Technologies (NICTS) such as the mobile telecommunication system and hand held devices, from Internet and from Geographic Information Systems (GIS) with spatial databases.


LBS give the possibility of a two way communication and interaction. Therefore the user tells the service provider his actual context like the kind of information he needs, his preferences and his position. This helps the provider of such location services to deliver information tailored to the user needs.





The basic components of an LBS: User, Communication Network, Positioning, Service Provider and Content Provider.

The two types of services which LBS provides:
Pull services sent information on user interaction (asking for the next restaurant)
Push services deliver information without user interaction (advertisement in a shopping mall, weather warning).

The example of searching a Chinese restaurant the information chain from a service request to the answer will be described in the following and is illustrated


The information the user want is a route to a Chinese restaurant near by. Therefore the user expresses his need by selecting the appropriate function on his mobile device: e.g. menu: position information => searches => restaurants => Chinese restaurant.

1. Now if the function has been activated, the actual position of mobile device is obtained from the Positioning Service. This can be done either by the device itself using GPS or a network positioning service. Afterwards the mobile client sends the information request, which contains the objective to search for and the position via the communication network to a so called gateway.

2. The gateway has the task to exchange messages among mobile communication network and the internet. Therefore he knows web addresses from several application servers and routes the request to such a specific server. The gateway will store also information about the mobile device which has asked for the information.

3. The application server reads the request and activates the appropriate service - in our case a spatial search service.

4. Now, the service analyses again the message and decides which additional information apart from the search criteria (restaurant + Chinese) and user position is needed to answer on the request. In our case the service will find that he needs information on restaurants from the yellow pages of a specific region and will therefore ask for a data provider for such data.

5. Further the service will find that information on roads and ways is needed to check if the restaurant is reachable (e.g. sometimes a restaurant on the other river side might not be reachable since no bridge is nearby).

6. Having now all the Information the service will do a spatial buffer and a routing query (like we know from GIS) to get some Chinese restaurants. After calculating a list of close by restaurants the result is sent back to the user via internet, gateway and mobile network. The restaurants will now be presented to the user either as a text list (ordered by distance) or drawn in a map. Afterwards the user could ask for more information on the restaurants (e.g. the menu and prices), which activates a different kind of services. Finally if he has chosen a specific restaurant he can ask for a route to that restaurant.

References:
Stefan Steiniger, Moritz Neun and Alistair Edwardes, Foundations of Location Based Services, retrieving on 14 May 2009 from http://www.spatial.cs.umn.edu/Courses/Fall07/8715/papers/IM7_steiniger.pdf

Shiode, N., Li, C., Batty, M., Longley, P., Maguire, D., 2004. The impact and penetration of Location Based Services. In: Karimi, H. A., Hammad, A., ed. Telegeoinformatics. CRC Press, 349-366.