Saturday, November 14, 2009

The new starting point.

I am happy to share that I have finished the course. This blog site will stop from updating. Don't worry, I will create the other blog site soon to share other things that may be interesting.

Wednesday, May 27, 2009

Evaluation Report 2

Audio file is uploaded to EAST

Evaluation Report (Audio) also can be accessed with Sky Drive:
http://cid-df4d3bf95db02d9e.skydrive.live.com/self.aspx/.Public/A2.mp3

Script of the Evaluation Report:

I am Raymond TANG. I worked as a technical support in educational field, the exercises and workshops broader my view on latest programming approach and current technologies on business and e-commerce.

I heard the Enterprise Resource Planning (ERP) system but not the Customer Relationship Management (CRM) system and Supply Chain Management (SCM) system. This is a new experience for me know more about them.

The most interesting part of the exercise is the security part. For example, I knew cookies in browser can be collected by advertiser for sending junk email, but I don’t know the actual mechanism. With the exercise, I realized the way the cookies work on the advertiser.

Before workshops, I know the way to write a program, two tiers, three tiers, but not considering about the framework. Ruby on Rails provided me a chance, not only to learn the way to write a program, but also creating the MVC approach framework.

To sum up, no matter it is B2B or B2C, e-commerce is around us. Security is the most concerned topic between the e-commerce, to provide a safe and convenience way for planning, communicating, delivering, merchandising and purchasing.

My Computer is down again. >_<

My computer suddenly cannot startup after I press the switch yesterday morning.

I just become crazy because all the information including study guides, ebooks, the project files are stored in that hard drive.

The system is found to be certified (dead). Bad Luck.

Tuesday, May 19, 2009

Workshop 8: Evaluation and Report

1. List what you consider to be the three strengths of Ruby on Rails workshop series

a. Learn a new programming language for e-commerce
b. Learn the new kind of framework on software development
c. Practical the RoR skill on the workshops

2. List what you consider to be the three weaknesses of Ruby on Rails workshop series:

a. RoR version changes with its language, it is difficult to follow up.
b. Setup and configure the server will be difficult if no experience.
c. Difficult to classify if we should do both the “To do:” and “Challenge Problem:” or only “To do:”

3. List what aspects of Ruby on Rails workshop series that you found to be most difficult.

a.. Install and configure the server in the UNIX/Linux environment, it is not allowed in my workplace.
b. Instead of the text mode, if a GUI IDE introduced for RoR may improve the work for workshops.
c. The AJAX (not encounted before)
d. Lots of time used in the workshop
e. The work including exercises and workshops were too much for the part time student.

4. List what improvements could be made to the Ruby on Rails workshop series:

a. Introduce the GUI IDE.
b. Clear clarify if we should work on both "To do:" and “Challenge Problem:” or else.

Free response and reflective questions:
5. The MVC framework separates three type of work at place. It is found to be effective framework for development.

6. No. It is because the RoR can give me challenges and fulfillment.

7. No further comments

Workshop 7: DEVELOPER’S THREAD (RED team)

Workshop 7

I would like to choose the UNIX platform to deploy the system. I have been using the Linux platform to provide service as production server such as Webmail, FTP in my workplace for years. The stability and the performance of the system are excellent. In terms of the system maintenance, the patch or fix packages release rapidly when bugs were found. Absolutely, it is important that it is free.
I would like to use the Mongrel and Mongrel cluster for deployment. In my experience in the workshop with InstantRails, it is a easy to use plugins to the RoR. Furthermore, Mongrel is a single-threaded application (Wikipedia 2009), with the management of the Mongrel with Mongrel-cluster plugins, the load of the system will be balanced on production server.

Microsoft platforms and development platform like JAVA and JRuby are not considered. Although it is more easy to configure the system with Microsoft platforms, the stability is not as well as UNIX for deployment as production server. JAVA and JRuby are not choosen. Although JAVA or JRuby can provide cross platform capability, but the performance of the system may not to be as good as just using the Apache with Mongrel. The other reason is that WiFi are popular, people can use their PDA phones or Smartphone to go Internet and browse the website directly deploying JAVA like platform may lead a slow performance on the client side.

Reference:
Wikipedia (2009), Mongrel (web server), Retrieved 27 May 2009 form http://en.wikipedia.org/wiki/Mongrel_(web_server)

Debian (n.d.), Mongrel plugin to manage a cluster of Mongrel servers, Retrieved 27 May 2009 from http://packages.debian.org/zh-cn/squeeze/mongrel-cluster

Workshop 6: Enjoying the Ride: Web framework alternatives, scalability and flexibility


Figure 1. Generate the site


Figure 2. Result of site generation


Figure 3. Change the route


Figure 4. Welcome screen

At this stage, the file index.html in public folder is removed, the file index.erb in OTBS\app\views\site removed.


Figure 5. Screen after added link at the top of page


Figure 6. Screen after implementation of CSS


Figure 7. Change MySQL password and create database


Figure 8. Database structure at MySQL administrator


Figure 9. Register screen

Due to my computer system failure, it is required to rebuild the stuffs from scratch.
As the time constraint, the rebuild of the workshop was unsuccessful. I will do my best to try it again even passed the deadline of assessment.

I do not have any experience on writing AJAX program. According to the Wikipedia (2009), with the AJAX, the data exchange asynchronously between browser and server, the performance is much faster than always connected. The AJAX programming avoiding page reloads, that part of the screen is refreshed as it required. The load of the server reduced.

Reference:

Wikipedia (2009), Ajax (programming), Retrieved 27 May 2009 from http://en.wikipedia.org/wiki/Ajax_(programming)

Workshop 5: Admiring the scenery Forms, AJAX screen layout and mobile interfaces

I am joining the RED TEAM - DEVELOPER. It is because like to create programs, from concept to product.

Part A

1. Create the Rails application framework in the projects folder:



2. Running the application on localhost:3000 using the WeBrick ruby server (or Mongrel as alternative) and access via Web browser at http://localhost:3000/







3. Create the controller to make the application do an action. This is under the controller-action/model-view structure.





Result from browser



5. Create an action by editing and saving the mammal_controller.rb class in projects\animals\app\controllers using your text editor to add the method



6. Start the WEBrick server and browse at http://localhost:3000/mammals/breathe where you will get a “missing template” message since it is missing a view for the breathe method.



7. Create and save a view in that directory by using a text editor to create a view called breathe.rhtml



Result from browser



8. Try Ruby code and HTML in the action view by using the <%....%> wrapper around the inserted Ruby code. Here are some snippets to try from workshop 4:



Result from browser





Part B

1. Create a new application called scenery in the same projects directory to demonstrate the use of an active view.



2. Create a controller called Demo in scenery\app\controllers



3. Add an action to demo_controller.rb as the method called rubycode





4. Add a view template - scenery\app\views\demo\rubycode.rhtml





Result at browser



8. Then modify and save the corresponding view template



9. Restart the Web server and navigate the browser




Part C

1. Create a new application called cabs in the same projects directory to demonstrate the use of an active view.



2. Create a controller called Vehicle in cabs\app\controllers



3. Add an action to vehicle_controller.rb as the method called cabtype



View result



6. Create a file in the public directory - \cabs\public called input.html



7. Edit the vehicle_controller.rb here is a start. The data in each form element in the Rails application can be accessed via its name and a hash called params



8. Edit the view template cabtype.rhtml



9. Start the Web server and go to the opening page of this application at http://localhost:3000/input.html



Result



10. Submit form data. What do you find?
I found error in the program. The if statement can not progress with the (=) equal to symbol when using boolean type of variable.

After fix the webpage and link. The information pass from webpage and to the controller vehicle_controller.rb and to the result page - cabtype.rhtml for output.

11. Report your progress or findings in your Developers Blog.

The select list use array. It is because the selection from user is the index value but not the text itself. So, the array is used to collect the text back from the index value.