Wednesday, August 29, 2007

Use Case

Background Introduction
Second hand textbook has potential market in every university. Although there are many big C2C online selling companies out there, like eBay, some students still prefer to buy locally, which saves the delivery expense and is easier to make a payment.

Description
A local bookstore can deploy a used book sell online website, which utilizes information communication technology and has the convenience provided by local trading. Buyer can check detail of each book on the website before he/she go to the store, and seller can leave a book in the bookstore with predefined price. Each transaction is through the bookstore. Buyer and seller do not have to make an appointment to meet any more.

Scope
This component is a part of an entire online selling system. It builds the entry and update function for bookstore staff, browsing function for buyer to find a correct book.
Online placing sell, order and updating function from buyer or seller are out of the boundary. Also, there is no search function for browser to search a particular book for sell.

Actors & Goals
Bookstore (Direct Actor): Keeps buyer and seller’s membership. Propagate itself, or generate some profit from transaction.
Buyer (Direct Actor): Easy to find a book and get the up-to-date information. Does transaction with less time constrain.
Seller: Get a platform with intense demand. No time constrain as no appointment.

Use Case
1. A seller hand a textbook to the bookstore located near university, and give a price to the book.
2. Bookstore staff takes picture and makes description of that book, classify it to a course. Then upload this sell onto the website. (MVC and write database)
3. Buyer browses the website, follow the course classification then check all those available books under one course, record a book he/she wants to buy. (MVC with database read)
4. Buyer goes to bookstore, ask for that particular book and pay. (Delete the record in database)
5. Seller is notified to collect money from bookstore.

Extend
 In book’s description, staff uses a multiple choice to mark a book’s current condition. (unbias)
 Bookstore staff can use barcode to identify a particular book.
 Seller can leave and update a description and price directly on the store website.
 Buyer can place an order directly online.

Potential Project Components to Integrate
(This part is not in my individual work, but can be handled by other team member)
 Bookstore can notify seller by email or SMS after book sold.
 A search engine should be built
 A auction function can be used.
 Integrate with library book DB, student account DB and study unit portal (sakai).

Actually the best actor of the bookstore is the library, which keeps a book database, customer (student) database. This also enhances the payment and trust. And the most important thing is that, unlike most second hand bookstores work on large margin or commission fee between buying and selling price, this service can be free to students.

Sunday, August 19, 2007

A Book related to our lab work - Spring in Action

CRAIG WALLS, RYAN BREIDENBACH, 2005, Spring in Action

It discusses what we are trying to do in lab in the following chapter. I find it useful when you get confused in doing the lab work.

Chapter 8 Building the web layer - Getting started with Spring MVC
This chapter covers
■ Mapping requests to Spring controllers
■ Transparently binding form parameters
■ Validating form submissions
■ Adding functionality with interceptors

Saturday, August 18, 2007

GCC

To setup the C environment in Ubuntu, so that you can compile C file
sudo apt-get install build-essential

Wednesday, August 15, 2007

Junit test failed in terminal

Use my Eclipse to run junit:
No problem:

Buildfile: /home/ji/projects/springapp/build.xml

build:
[javac] Compiling 1 source file to /home/ji/projects/springapp/war/WEB-INF/classes
clearData:
[echo] CLEAR DATA USING: org.hsqldb.jdbcDriver jdbc:hsqldb:db/test
[sql] Executing commands
[sql] 1 of 1 SQL statements executed successfully
loadData:
[echo] LOAD DATA USING: org.hsqldb.jdbcDriver jdbc:hsqldb:db/test
[sql] Executing commands
[sql] 5 of 5 SQL statements executed successfully
junit:
[junit] Running tests.TestProductManager
[junit] Testsuite: tests.TestProductManager
[junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.035 sec
[junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.035 sec
[junit] Running tests.TestProductManagerDaoJdbc
[junit] Testsuite: tests.TestProductManagerDaoJdbc
[junit] 2007-08-15 00:55:31,921 INFO [org.springframework.jdbc.datasource.DriverManagerDataSource] -
[junit] 2007-08-15 00:55:31,922 INFO [db.ProductManagerDaoJdbc] -
[junit] 2007-08-15 00:55:32,387 INFO [db.ProductManagerDaoJdbc] -
[junit] 2007-08-15 00:55:32,403 INFO [db.ProductManagerDaoJdbc] -
[junit] 2007-08-15 00:55:32,403 INFO [db.ProductManagerDaoJdbc] -
[junit] 2007-08-15 00:55:32,406 INFO [org.springframework.jdbc.datasource.DriverManagerDataSource] -
[junit] 2007-08-15 00:55:32,407 INFO [db.ProductManagerDaoJdbc] -
[junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.771 sec
[junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.771 sec
[junit] ------------- Standard Output ---------------
[junit] 2007-08-15 00:55:31,921 INFO [org.springframework.jdbc.datasource.DriverManagerDataSource] -
[junit] 2007-08-15 00:55:31,922 INFO [db.ProductManagerDaoJdbc] -
[junit] 2007-08-15 00:55:32,387 INFO [db.ProductManagerDaoJdbc] -
[junit] 2007-08-15 00:55:32,403 INFO [db.ProductManagerDaoJdbc] -
[junit] 2007-08-15 00:55:32,403 INFO [db.ProductManagerDaoJdbc] -
[junit] 2007-08-15 00:55:32,406 INFO [org.springframework.jdbc.datasource.DriverManagerDataSource] -
[junit] 2007-08-15 00:55:32,407 INFO [db.ProductManagerDaoJdbc] -
[junit] ------------- ---------------- ---------------
[junit] Running tests.TestSpringappController
[junit] Testsuite: tests.TestSpringappController
[junit] 2007-08-15 00:55:32,535 INFO [org.springframework.core.CollectionFactory] -
[junit] 2007-08-15 00:55:32,577 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] -
[junit] 2007-08-15 00:55:32,691 INFO [org.springframework.context.support.FileSystemXmlApplicationContext] -
[junit] 2007-08-15 00:55:32,709 INFO [org.springframework.context.support.FileSystemXmlApplicationContext] - <6 hashcode="6147782]">
[junit] 2007-08-15 00:55:32,719 INFO [org.springframework.context.support.FileSystemXmlApplicationContext] -
[junit] 2007-08-15 00:55:32,722 INFO [org.springframework.context.support.FileSystemXmlApplicationContext] -
[junit] 2007-08-15 00:55:32,725 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] -
[junit] 2007-08-15 00:55:32,802 INFO [web.SpringappController] -
[junit] 2007-08-15 00:55:32,803 INFO [web.SpringappController] -
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.376 sec
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.376 sec
[junit] ------------- Standard Output ---------------
[junit] 2007-08-15 00:55:32,535 INFO [org.springframework.core.CollectionFactory] -
[junit] 2007-08-15 00:55:32,577 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] -
[junit] 2007-08-15 00:55:32,691 INFO [org.springframework.context.support.FileSystemXmlApplicationContext] -
[junit] 2007-08-15 00:55:32,709 INFO [org.springframework.context.support.FileSystemXmlApplicationContext] - <6 hashcode="6147782]">
[junit] 2007-08-15 00:55:32,719 INFO [org.springframework.context.support.FileSystemXmlApplicationContext] -
[junit] 2007-08-15 00:55:32,722 INFO [org.springframework.context.support.FileSystemXmlApplicationContext] -
[junit] 2007-08-15 00:55:32,725 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] -
[junit] 2007-08-15 00:55:32,802 INFO [web.SpringappController] -
[junit] 2007-08-15 00:55:32,803 INFO [web.SpringappController] -
[junit] ------------- ---------------- ---------------
BUILD SUCCESSFUL
Total time: 3 seconds




When I use the terminal command:
ant junit
Error comes out:


Buildfile: build.xml

build:
[javac] Compiling 1 source file to /home/ji/projects/springapp/war/WEB-INF/classes

clearData:
[echo] CLEAR DATA USING: org.hsqldb.jdbcDriver jdbc:hsqldb:db/test
[sql] Executing commands
[sql] 1 of 1 SQL statements executed successfully

loadData:
[echo] LOAD DATA USING: org.hsqldb.jdbcDriver jdbc:hsqldb:db/test
[sql] Executing commands
[sql] 5 of 5 SQL statements executed successfully

junit:

BUILD FAILED
/home/ji/projects/springapp/build.xml:175: java.lang.NoClassDefFoundError: org/apache/tools/ant/types/ResourceCollection



I think the reasons can be they use different junit.jar files, or my Ant did not configure well. Anyway, the springapp website runs without any problem. I install
Apache Ant version 1.6.5 compiled on July 5 2006

Saturday, August 11, 2007

Stop working

http://weg.ee.usyd.edu.au/courses/ebus5003/
This afternoon, I try the course website, but it doesn't work. I can't do the lab without this~~~~!!!!!

Another problem is that I have copied Spring file from lab computer. When I extract it in my desktop at home, it comes out an error. I really need the junit.jar from Spring to continue.

Maybe Saturday is not the right day to work.

Friday, August 03, 2007

Here is a brand new chapter

I install Ubuntu 7.04 on my desktop at home to do this lab. Since I used up all the quota in accessing internet, I downloaded all the software in lab and planned to install them into my Ubuntu just like what we usually do in MS Windows that straight forward. But I am wrong.

Many software in Ubuntu is self-managed by the system. It can automatically download online and install it on a click. But if you'd got a pack on hand to install, it seems not that straight forward.
First, in Ubuntu, you can't use RPM pack used normally in Fedora or some other popular Linux systems. In installation, you just uncompress the pack you downloaded online, and put it somewhere in the system. The hard thing is to specify the environment value. Here is what I added to
~/.bashrc

export JAVA_HOME=/usr/lib/j2sdk1.5-sun
export CLASSPATH=/usr/lib/j2sdk1.5-sun/lib
export PATH=$PATH:/usr/lib/j2sdk1.5-sun/bin
export CATALINA_HOME=/opt/tomcat

There are some reminders when using the lab computer

bash
source /eelabs/ebus5003/profile

In my account, I always have to type these in my terminal to start and work. No idea!!!!

fs listquota
check your disk space

proxy:
http://www.eelab.usyd.edu.au/proxy.pac
In Firefox


build.properties and build.xml should be under the same folder




In step10, make sure to specify where you want to put the log file. In my case, it is like this:

log4j.appender.logfile.File=/opt/tomcat/logs/springapp.log

If you make it wrong, you can't find the file, and nothing indicates it was going wrong!!!!!!!!


Until now, luckily, part1 is finished. I encounter Linux, Ant and Spring. I believe they are good tools once you can set them up.

Tuesday, July 10, 2007

4 yrs old laptop System












CPU-Z 1.40.5 report file




Processor(s)





















Number of processors1
Number of cores1 per processor
Number of threads1 (max 1) per processor
NameIntel Pentium M
Code NameBanias
SpecificationIntel(R) Pentium(R) M processor 1500MHz
PackageSocket 479 mPGA
Family/Model/Stepping6.9.5
Extended Family/Model6.9
Brand ID22
Core SteppingB1
Technology0.13 um
Core Speed595.4 MHz
Multiplier x Bus speed6.0 x 99.2 MHz
Rated Bus speed396.9 MHz
Stock frequency1500 MHz
Instruction setsMMX, SSE, SSE2
L1 Data cache32 KBytes, 8-way set associative, 64-byte line size
L1 Instruction cache32 KBytes, 8-way set associative, 64-byte line size
L2 cache1024 KBytes, 8-way set associative, 64-byte line size


Chipset & Memory














NorthbridgeIntel i855GM rev. A3
SouthbridgeIntel 82801DB (ICH4-M) rev. 03
Graphic InterfaceAGP
AGP Revision2.0
AGP Transfer Rate4x
AGP Side Band Addressingsupported, enabled
Memory TypeDDR
Memory Size512 MBytes
Memory Frequency132.3 MHz (3:4)
CAS# Latency (tCL)2.5 clocks
RAS# to CAS# (tRDC)3 clocks
RAS# Precharge (tRP)3 clocks
Cycle Time (tRAS)6 clocks


System







System ManufacturerSony Corporation
System NamePCG-Z1RCP(CN)
System S/N28144570-7102300
BIOS VendorPhoenix Technologies LTD
BIOS VersionR0061G0
BIOS Date05/02/2003


Memory SPD



Software



Windows VersionMicrosoft Windows XP Professional Service Pack 2 (Build 2600)
DirectX Version9.0c

New System Profile

















CPU-Z 1.40.5 report file




Processor(s)




















Number of processors1
Number of cores1 per processor
Number of threads1 (max 1) per processor
NameIntel Celeron 347
Code NameCedar Mill
SpecificationIntel(R) Celeron(R) D CPU 3.06GHz
PackageSocket 775 LGA
Family/Model/SteppingF.6.4
Extended Family/ModelF.6
Core SteppingC1
Technology65 nm
Core Speed3077.7 MHz
Multiplier x Bus speed23.0 x 133.8 MHz
Rated Bus speed535.2 MHz
Stock frequency3066 MHz
Instruction setsMMX, SSE, SSE2, SSE3, EM64T
L1 Data cache16 KBytes, 8-way set associative, 64-byte line size
Trace cache12 Kuops, 8-way set associative
L2 cache512 KBytes, 8-way set associative, 64-byte line size


Chipset & Memory














NorthbridgeIntel i945G/GZ rev. A2
SouthbridgeIntel 82801GB (ICH7) rev. 01
Graphic InterfacePCI-Express
PCI-E Link Widthx16
PCI-E Max Link Widthx16
Memory TypeDDR2
Memory Size1024 MBytes
Memory Frequency267.6 MHz (1:2)
CAS# Latency (tCL)4.0 clocks
RAS# to CAS# (tRDC)4 clocks
RAS# Precharge (tRP)4 clocks
Cycle Time (tRAS)12 clocks
Bank Cycle Time (tRC)16 clocks


System









System Manufacturerstem manufacturer
System NameSystem Product Name
System S/NSystem Serial Number
Mainboard VendorASUSTeK Computer INC.
Mainboard ModelP5LD2-SE
BIOS VendorAmerican Megatrends Inc.
BIOS Version1104
BIOS Date06/14/2007


Memory SPD



Module 1DDR2, PC2-5300 (333 MHz), 512 MBytes, Hyundai Electronics
Module 2DDR2, PC2-5300 (333 MHz), 512 MBytes, Hyundai Electronics
Software
Windows VersionMicrosoft Windows XP Professional Service Pack 2 (Build 2600)
DirectX Version9.0c

Thursday, August 17, 2006

JAVA

How to change the compiler's language in runtime environment?

http://developers.sun.com/dev/gadc/faq/java/files/cjkv.html#1.1

Here is the solution, simply change the Regional Setting control panel. It works

Tuesday, June 13, 2006

Organizational Learning

A useful link, about double loop learning

Monday, December 19, 2005

Firewall Architectures




Key Points in Developing an Effective Security Policy

Safety Net P263

Classes of M-Commerce Applications

Establish SLAs Requires Steps



Turban, E., Leidner, D.,McLean, E., Wetherbe, J., 2006, Information Technology for Management, Transforming Organisations in the Digital Economy, 5th Edition, John Wiley and Sons, New York

Thursday, August 04, 2005

LEB 312 - Week 1

• What is the nature and purpose of strategic transformation?

• Using an example:
• Explain the Impact of transformation change on a business’ architecture and infrastructure

• Give other examples of ‘transforming’ industries.


“Fit for purpose”
As technology is continuously improving and customer desires for more, company is involved into a non-stop innovation process, so that to sustain the market share, make profit in the long run.

Game Industry
Online game is the trend of game industry. Customer’s favour is playing with real people instead of machine now. Many popular games are redesigned into online version.
Web server is employed into the game industry as a component. Online payment, security, and online marketing are highly focused by game producer. Staff with special skill in network game design is needed. Latest console is designed to support wireless high speed connection.

Online Education
Network access is available at home. Students want to save time in commuting, and start to study in their free time. So we can see the possible and necessary of online education.
School starts to provide digital material. An enrolment system should be built up, which hardware, software, network & communication devices, information management personnel and database. IT staff is required. Tutor is trained to master basic computer skill, for communication and produce the learning material.


This course focuses much on change in a business environment, especially in network economy. And see how a company reacts to this change. Doing transformation to maintain competitive, getting more profit eventually. The whole structure builds up on EDCF.

Turban Chapter1 and MaKay P.127,128.

Friday, July 08, 2005


Roberts and Berry Model on Acquiring Capabilities

Strategic management process

1. Where is the firm now concerning the internet?
2. Where does the firm go next?
3. How does it get there?
4. How does it implement the decisions to get there?