Wednesday Jan 02, 2008

Training Trainers in Shanghai

Shanghai, Dec.22, 3 days before Christmas, I'm training some Sun Microsystems Java trainers, and Partner trainers from Beijing and Shanghai. The class of 5 people is half good at English so I use lots of diagrams and write point form on a white board to help clarify my points. My hope is they can now work through the labs and be able to teach the one day seminar about Java EE web site Frameworks.

One of the students, 周羽 (2 from the right in class photo below), modified my struts examples to use spring. I am now analyzing his NetBeans projects for use in future teachings. His notes are below, I have added his samples to the Framework download zip file.

During lunch, a few of us went for Japanese food which was good. After the class, Lily (right most in class photo below) and I went for excellent wong tong at a tourist area. It was fun eating, shopping, and walking around. The difficult part was finding taxis because it was lightly raining and we were in busy areas which meant competition for taxis.

Click here to view all my China Trip photos.

Class photo


The First Way.
The addGameAction must be extended ActionSupport(ActionSupport is a class from Spring). And use ApplicationContext.getBean() to get LeagueService. I don't like this way because it's too close-coupled.

The Second Way.
The addGameAction still extend Action(Class of Struts).But add 1 attribute in addGameAction.The attribute is LeagueService. Change the default RequestProcessor to org.springframework.web.struts.DelegatingRequestProcessor. Then can Dependency Injection via Spring. This way is better than first way.But it isn't the best way because it's changed default RequestProcessor in Struts.

The Third Way.
Still Inject the LeagueService via Spring.But it's no need to change the default RequestProcessor. It's AOP.Use the Spring interceptor to intercept Action class. In struts-config.xml,change the "Writen by 周羽.

Wednesday Nov 28, 2007

China Sun Learning Event Dec.17-20

In Beijing, Dec.17-18, and Shanghai, Dec.19-20, Sun Microsystems is hosting a Learning Technology Event covering the following:
Java Topics: Java Architect and Design, Web 2.0, Spring Framework, GlassFish, Certification preparations
Solaris Topics: Security, ZFS, DTrace, Containers, Certification preparations
Operation Technology: Risk management, Disaster Recovery, DRP, Business Continuity
Other: Partner and employee seminars, and in Beijing, there is an exam centre

I will be teaching:
\* Web 2.0 which is Ajax, CSS, JavaScript, and demo the DojoToolkit and jMaki.
\*\*\* Click here to preview course materials and demo programs.
\* Developing MVC web applications using the Spring Framework.
\*\*\* Click here to preview course materials and demo programs: Modules 1,2,3,7

For details of the daily events, click on the images below.


Sunday Nov 11, 2007

Download YouTube Videos and Replay the Videos From Disk

To many times I have seen my favorite graphic or media files disappear from the Internet. Following is instructions to save your favorite YouTube videos to your hard drive.

Steps:
1. Download a special player, an FLV player from http://applian.com/flvplayer/. Install it. Note, I first checked it for viruses, and there were none.
2. Download your videos. I used the site http://www.youtubecatcher.com/.
2.1 First, I went to YouTube.com to get the URL for for the video I wanted to download.
Example: http://youtube.com/watch?v=uswYdQqHC6s
2.2 Second, copy the URL into YouTubeCatcher, and click Download. Save the file to disk, and give it a file name with the extension .flv, example, jeepney.flv.
3. Play the video file you saved to disk using the FLV Player.

Friday Oct 26, 2007

Solaris Associate Seminar Course

This course is for developers and administrators new to the Solaris operating system, or those investigating it's more advanced features. The first day is an introduction to the desktop and applications that come bundled with Solaris Developer Express distribution. Day 2 is an introduction to the Solaris environment and resources. Day 2 includes UNIX commands which some are different from other flavors of UNIX such as Linux. Day 3 is advanced topics of interest to people experienced with UNIX.

Full Course Description:
Day1: Introduction the Solaris Desktop and Applications \* ready for students
Day2: Introduction to the Solaris Environment \* in development
Day3: Advanced Solaris Features \* ready for students

Online catalog: None at this time
Solaris Certification: Sun Certified System Administrator (SCSA), Sun Certified Network Administrator (SCNA), and Sun Certified Security Administrator (SCSECA)
Download the slides and demo source code from the open source project on Java.Net: Tigerfarm.


Modules for Day 1: Introduction the Solaris Desktop and Applications \* ready for students
0. Course Introduction
PDF
Slides OpenOffice document
\* About this course
Download Slides: PDF or OpenOffice document
Module 1 - Getting Started with the Solaris Desktop and the Firefox Internet Browser
Module 2 - Configuring Desktop Preferences
Module 3 - Applications
Module 4 - Administration
Module 5 - System Tools
Module 6 - StarOffice
Module 7 - Multimedia
Module 8 - Play Games on Solaris

FilenameDayDescription
SolarisDay1usr-StudentFiles.zip 2megsDay 1: UserStudent Workbook to do the labs.
SolarisDay1usr-StudentFiles.zip 15megsDay 1: UserSample user files for the labs

Modules for Day 2: Introduction to the Solaris Environment \* in development
0. Course Introduction
PDF
Slides OpenOffice document
\* About this course
1. Solaris Environment Introduction
PDF
Slides OpenOffice document
\* An Introduction to Computer and the Operating Environment
\* Solaris UNIX Commands
\* Basic UNIX to able to use the computer
\* Working with the Solaris package system: Install, configure, use, and monitoring a VNC server
2. OpenSolaris
PDF
Slides OpenOffice document
\* Introduction: Gain an insight into OpenSolaris Technology.
\* See how you can participate in the OpenSolaris community.
\* Get ideas for OpenSolaris projects
3. Working with Environment Resources
PDF
Slides OpenOffice document
\* An Introduction to performance
\* CPU, Memory, I/O

FilenameDayDescription
SolarisDay2env-StudentWorkbook.pdf 0.2megsDay 2: EnvironmentStudent Workbook to do labs.

Modules for Day 3: Advanced Solaris Features \* ready for students
0. Course Introduction
PDF
Slides OpenOffice document
\* About this course
1. DTrace
PDF
Slides OpenOffice document
\* Introduction to DTrace Concepts
\* Overview of D-Language
\* Aggregation
\* Variables
\* DTrace providers
\* DTrace Visualization
2. Using ZFS on Solaris
PDF
Slides OpenOffice document
\* Introduction to ZFS Concepts
\* Data integrity model
\* ZFS pooled storage
\* Self healing data
\* Configuring, Saving, restoring, and Cloning
3. Zones and Containers
PDF
Slides OpenOffice document
\* Introduction to Zone Concepts
\* Concepts and architectures
\* Sun's Virtualization Spectrum
DTrace Reference slide - extra material
PDF
Slides OpenOffice document
\* DTrace for programmers: Java, C, C++, PHP, JavaScript
\* DTrace for database developers
\* Providers, other advanced topics

Tuesday Oct 16, 2007

New Java EE Frameworks Seminar Course

This course is an overview of web site frameworks to develop Java web applications. The slides introduce concepts, and the labs re-enforce the concepts through sample demonstrations. The instructor walks through a sample application for each web site development approach: JSP and servlets, using tag libraries, Apache Struts, and JavaServer Faces (JSF).
Full Course Description: Frameworks: Developing Web Applications using Apache Struts, and JavaServer Faces
Online catalog: SEM-DTJ-3314
Download the slides and demo source code from the open source project on Java.Net: Tigerfarm.

FilenameModuleDescription
Projects-menuSetup.zip 0.5megsSetupSetup Instructions and plugins. Click here for HTML version of the instructions.
Projects-frameworks.zip 0.5megsFrameworksJSP/Tags/Struts/JSF Framework NetBeans Project files

Past Course Teachings:

Modules:

0. Course Introduction
PDF
Slides OpenOffice document
\* About this course
1. Servlet and JSP Basics
PDF
Slides OpenOffice document
\* Components of Java EE and the Application Server
\* Define Java Servlets, Java Servlet Pages, and the Java Web Container
\* Describe benefits and concerns of threads
\* Define and test data persistence using a Bean
2. Servlets and JSP Application Programming
PDF
Slides OpenOffice document
\* Introduce the Model View Controller (MVC) Application Design
\* Servlets and Java Server Pages in an MVC Application
\* Demostrate in the context of web application form processing life cycle using Servlets and JSP
3. Using Tag Libraries to Enhance the Servlets and JSP Application
PDF
Slides OpenOffice document
\* Tags in the MVC Model
\* Application Form Tags for JSP: useBean Tag, if tag, and foreach tag
\* Expression Language
\* Demonostrate sample improvements to the Servlets and JSP application
4. Apache Struts Framework
PDF
Slides OpenOffice document
\* Describe the Struts framework
\* Explain the Struts in the context of web application form processing life cycle
\* Sample application is presented to highlight the structure of a Struts application
5. The JavaServer Faces Form Process
PDF
Slides OpenOffice document
\* Describe JavaServer Faces technology and key concepts
\* Explain the JavaServer Faces components processing life cycle
\* Describe the structure of a JavaServer Faces application
\* Sample applications are presented to highlight the JavaServer Faces components processing life cycle
6. Web Site Localization Using JavaServer Faces
PDF
Slides OpenOffice document
\* The structure and requirements to localize a web site.
\* How to add languages to a web application

Friday Aug 31, 2007

One Day Web 2.0 Seminar Course

This course is a programmers approach to Web 2.0. The slides introduce concepts, and the labs re-enforce the concepts through sample demonstrations.
Full Course Description: Web 2.0: Exploring Ajax, the Dojo Toolkit and jMaki to Develop Modern Web Site Interactivity
Online catalog: SEM-DTJ-3108
Download the slides and demo source code from the open source project on Java.Net: Tigerfarm.

FilenameModuleDescription
sem-dtj3108-labSetup.htmlSetup Web 2.0 course setup instructions
SetupEnvironment.htmlSetup Instructions to setup a development environment: NetBeans, Sun Java Application Server (GlassFish), and JavaDB
Ajax.zip 2megsAjaxAjax , CSS, and JavaScript NetBeans files. Includes a sample using JavaDB.
Dojo.zip 9megsDojo ToolkitDojo NetBeans files
jmaki.zip 10megsjMakijMaki NetBeans files

Past Teaches:

Click here for the previous web 2.0 course materials: samples and slides.

Modules:

0. Course Introduction
PDF
Slides OpenOffice document
\* About this course
\* About the labs
1. Using Ajax
PDF
Slides OpenOffice document
\* Showing how Ajax works
\* The XMLHttpRequest object, get and post
\* DOM, Document objects, setting attributes
\* Cascading Style Sheets (CSS)
2. CSS and Web Standards
PDF
Slides OpenOffice document
\* Introduction to Web Page Standards
\* Cascading Style Sheets (CSS) fundamentals
\* Web page formating and layout using CSS
3. The Power of JavaScript
PDF
Slides OpenOffice document
\* JavaScript event handling
\* Moving graphics
\* Dragging graphics
\* Building an application with Google Map features
4. Web 2.0 Application Features
PDF
Slides OpenOffice document
\* Internet transition to Web 2.0
\* Web 2.0 application features
\* Starting a Web 2.0 application within your company
5. Using the Dojo Toolkit
PDF
Slides OpenOffice document
\* Introducing the Dojo Toolkit
\* Creating a Dojo Toolkit web application
\* Using the Dojo Toolkit to make an Ajax call
6. jMaki, a Web Application Framework for Rapid Development
PDF
Slides OpenOffice document
\* Introducing jMaki
\* Getting Familiar with the Features of jMaki
\* Building applications with jMaki
\* Using jMaki Glue

About

Tech event, training, business, in east and south Asia.

Search

Archives
« July 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
  
       
Today