Saturday, August 23, 2008

Exercise 2

Started working with exercise 2 and there is an error relating to the encoding.





Could not figure out how to correct this.






Swithced backto PythonWin, tried the commands in the interactive mode, found out the (") was not entered correctly.



Corrected errors and ran the script file, below out put produced.


XML Workshop 1

Created the required xml file and python script.

Executing the script produces the below out put.




Setting up Python for Windows


Previously I had done python coding and executing scripts on a Unix environment for the CSU assignments. Therefore I wanted to use and familiarize my self with an IDE for Windows.

Had a bit of trouble finding out from where an IDE could be downloaded. Found someone else had asked the same question in a web forum post, and the answer pointed to http://www.activestate.com/main

From there onwards download and install was a breeze.

PythonWin in action above . . .

Sunday, August 17, 2008

AJAX - Asynchronous Javascript and XML

The goal of AJAX technology is to speed Web applications that have frequent user interactions. AJAX uses Javascript as the primary programming language and XML. The other technologies used are DOM and CSS.

A typical session of Web use starts when the user request for a page, either by typing the URL or clicking a link to the page shown on the web browser. The web browser then has to wait until the page is provided from the server to display it to the user. If the user makes a change to the document there may not be a need to re display the entire document.

Model-View-Controller - MVC

Model-View-Controller(MVC) architecture was developed by Trygve Reekskaug in 1978-1979 while he was a visiting scientist atXeroxPARC.

The original intent of MVC was to model graphical user interfaces, whichwere then being developed for Samlltalk.

The MVC architecture seperates applications into three parts,

  • The model - data and the enforced constraints on the data.
  • View - the part of an application that prepares and presents results to the user.
  • Controller - controlls the application and performs computations.

Rails

Rails is a development framework for Web-based applications, including those that access databases. Due to the intimate connection with Ruby, it is often called Ruby on Rails or RoR.
http://www.rubyonrails.org/

Rails was developed by David Heinemeier Hansson in early 2000 and was released in 2004.

A significant and characterizing part of Rails is its approach to connectiong object-oriented software with a relational database.

What are thumbs up and downs for ROR

Strengths
  • Convention over configuration
  • Active record
  • Metaprogramming
  • Scaffolding
  • Built in testing
Limitations
  • As pointed out by (Tate and Hibbs, 2006) Rails has poor support for object-relational mapping (ORM) for legacy schemas compared to Java's approach.
  • Assuming a single, non-compund primary key for the database and not supporting compund primary keys for the database is anotherlimitation highlighted by Monson-Haefel(2006).

Monday, August 4, 2008

Reflection

Finding information on web
Most tutorails available on web are dealing with earlier versions of rubyonrails, instant rails.
Finding correct information is quite time consuming.

Scaffolding in rails
InstantRails 2.0 does not provide scaffolding option and this limits the effectiveness in a educational or training environment. However due to limitations with scaffolding in production environments has been a major reason for this.

Making progress
There are number of different varieties of software tools available, and versions of them available. This makes things difficult to achieve if you don't have the correct combination. I started following a tutorial that was showing how to use MySQL that comes with the instant rails. However it was displaying an error sometimes and I found SQLite3 much easier.

XML workshop 4

1. The screen out put from running the as_you_SAX_parser.py
prints the whole XML file contents.



The screen out put from running the XML_pullDOM_parser.py
prints the fisrt line element of the defined act element
and scene element numbers in the program



6. There are about 30 public available packages and modules
and overall 200 individual modules in the pyXML package as mentioned
in http://pyxml.sourceforge.net/topics/howto/node10.html.

Styled using XSL



Answers to exercises

Exercise

Ruby

Ruby was designed in Japan by Yukishiro Matsumoto and was released in 1996. The primary purpose for designing Ruby for him was to replace the limitaions he found in Pearl and Python for his purposes. http://www.ruby-lang.org/en/

Learning Ruby is made easier by its implementation method, pure interpretation.
Ruby is an interpreted scripting language for quick and easy object-oriented programming.
Meaning and benefits of the above are,
  • ability to make operating system calls directly
  • variable declarations are unnceccessary
  • variables are not typed
  • everything is an object

Quick growth of Ruby has been due to the use of Rails, the web application framework that is both written in Ruby and uses Ruby.

SQL server

This is SQL server notes section

Subject - ITC382

E-commerce web development

Profile

Currently working in the IT software development industry for an Automotive wholesale company.