Tigerfarm Tigerfarm

Computers, Localization, Travel, Southeast Asia, Sun Microsystems, Writing
Main | Next page »

Open Source Course Content: Web 2.0 | Frameworks | Solaris
Monday Aug 04, 2008

JavaFX SDK for NetBeans Samples

Screen prints from each of the JavaFX SDK for NetBeans Samples are printed below.
Download: http://java.sun.com/javafx/downloads/

Screen prints and descriptions of the Java FX Sample Programs were done by: Riley Thurston, August 1, 2008


Arctangent-Circles follow cursor
Math-Arctangent

Background Image-Has Moving red line
Image-Background

Bounce-Game
Game-Bounce

Bouncy Bubbles-Bubbles fall to floor bouncing with eachother
Motion-BouncyBubbles

Clock-Tell time with clock
Input-Clock

Color Wheel-Displays colors
Color-ColorWheel

Constratin-Move cursor with circle
Input-Constrain

Displaying-Shows Image
Image-Displaying

Distance 1D-Move cursor with lines
Math-Distance1D

Distance 2D-Move cursor with circles
Math-Distance2D

Easing-Move cursor and circle will follow
Input-Easing

Flocks-Tiny triangles move across the background
Simulation-Flocks

Linear-Moving white line
Motion-Linear

Linear Gradient-Displays Image
Color-GradientSample

Milliseconds-Flashes to seconds
Input-Milliseconds

Mouse 1D-Squares grow larger and smaller to the cursor
Input-Mouse1D

Mouse 2D-Move the squares with the cursor
Input-Mouse2D

Mouse Press-A digital mouse, if you click your own mouse, it will show on screen
Input-MousePress

Points and Lines-Displays an image
Forms-Points&Lines

Rotate-Moving square
Transform-Rotate

Scale-Square grows and shrinks
Transform-Scale

Shape Primitives-Displays an image
Forms-ShapePrimitives

Simple Particle System-Lots of falling circles
Simulation-SimpleParticleSystem

Sine-Shape expands and contracts
Math-Sine

SineWave-Wave of circles
Math-SineWave

Smoke Particle System-Control the flow of smoke with cursor
Simulation-SmokeParticleSystem

Storing Input-Create circles with cursor that fade away
Input-Storing

Translate-Two moving squares
Transform-Translate

Transparency-Java FX sign will follow cursor
Image-Transparency

Wednesday Jun 11, 2008

Teenagers Getting Started with Java

My son turned 16 a few days ago, he has done some Java programing, and JavaScript programming. JavaScript is the computer language used to make web sites highly interactive; Facebook and Google Maps use it.

For Java programming,
An excellent beginner book: Java in Easy Steps by Mike McGrath.
* I had my son do a number of programs from this book to learn the basics of programming: variable types, if and while loops, etc. To write Java programs, my son started by using Bluejay (http://www.bluej.org/). There is a book with a description on the web site; I have not seen the book. When I looked at the description, I would stay with Java in Easy Steps.
Since I can sit with my son and help him because I am a Java programmer, I have taught him to use NetBeans(http://www.NetBeans.org). He is fine with it.NetBeans also works for JavaScript.

Recommendation,

  • Use the Java in Easy Steps book to get started. After learning the basics, can move to the Bluejay book.
  • If you have an experience developer use NetBeans, else use Bluejay.
  • Once started with the basics of Java, have a look at the Greenfoot site, http://www.greenfoot.org/. This was recommended to me by James Gosling. It is a bit of game or scenario type learning environment for Java.
That should be plenty to get you started.

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