Friday Feb 03, 2012

Silcon Valley Presenters

I love doing presentations, I become an actor on stage, it's fun, it's exciting. In California I have seen and/or met some of the best Technology presenters:
  • Marc Andressen, co-founder of Netscape and Opsware, now a venture capitalist. He is confident, knows his technologies and how they effects in the world.
    In a venture meeting, and afterwards, Marc personally took time to encourage me and help me network with other startup entrepreneurs, using tools such as using LinkedIn.
  • Jim Clarke, co-founder of Netscape and Silicon Graphics, is incredibly personable. He says technology work should be fun. I meet him in Palo Alto at his book signing for Netscape Time. Following Jim's lead, I wrote my own book, Getting Started with Sun ONE, which was published by Prentice Hall.
  • Scott McNealy, co-founder of Sun Microsystems, knew how to talk to Sun's technical staff, relate to them and make them smile and laugh. He made us feel he was one of us.
    I ghost wrote an introduction in my book for Scott, and he signed my book.
  • Jim Barksdale was Netscape's corporate leader. At Netscape all hands meetings he would tell us stories. His corporate rules related to life in, and outside of business.
    He would push an ice cream cart around the office and hand out treats to individual contributors.
  • James Gosling is the originator creator of the Java programming language. When on stage with James, he taught me to relax and have confidence while programming in front of a thousand people.
    I later became a contributor to the Java SE 7 Programmer certification exams, and I am Java Programmer certified.

Robin Williams's son Cody and my son Branden were friends at school. At our son's open classroom night, I learnt from Robin to project my voice and include emotion when talking. Watching a speaker on TV, at the movie theater, or on YouTube, does not take place of live and in person. Branden got to see Steve Jobs talk at Pixar during a school event. I should have taken time to see Steve Jobs live. He had an excellent presentation style, he had style. Here is a link to Steve Jobs presentation pointers.

After working with, and studying the Masters of Silicon, I have presentation pointers to share:

  • Tell a story. I do this when training people to administer email systems.
  • Have points which the audience can easily relate, such as how do they use messaging in their life, in and outside of business.
  • People relate to images. While training in Tokyo, rather than a display a number, I asked them the population of their country. Then informed them, the number of users of Oracle's Unified Communication Suite (email, calendar, and IM) is greater.
  • Know your topic, know your audience. I can talk and draw pictures of messaging systems impromptu, and I can get my enthusiastic students to teach along with me.
    If my students can teach, they will have learned.
  • Be animated. If the presenter has fun, the audience has fun.
    People remember the good times.

I am the guy on the left in photo below which is from a Java SE 7 certification promotional video. I show up at 2:30 minutes.

In the photo, I am working on stage (center person) with James Gosling mentoring me.

Friday Jan 08, 2010

MAC OS X was from Steve Jobs Next Computer

Steve's Next Company built computers with an operating system (OS) based on UNIX. When Apple bought Next, the Next OS grew into MAC OS X. The limited success of the Next computer lead to the huge success of MAC OS X. Another Next computer success story, was that Tim Berners-Lee was a user of a Next computer during the time he began the World Wide Web.

For the history Steve Jobs, which includes MAC OS X, watch

Another cool point about Steve Job's job history, at 23, he had over one million dollars, at 24, over ten million, at 25, over one hundred million. That certainly allowed a lot of freedom to continue to try new things such as buy a graphics image company from Lucas Films which he renamed Pixar.

Wednesday Aug 26, 2009

JSF 2.0, NetBeans 6.8, and GlassFish

Following are steps to get JSF 2.0 running on GlassFish, and can develop JSF 2.0 projects in NetBeans. Also, included are NetBeans project using JSF 2.0, and JSF 2.0 with some new Facelets functions.
Below is a screen shot of the JSF 2.0 selection step in NetBeans 6.8.

NetBeans 6.8 is packaged with GlassFish v3, which, I believe (I did not test), includes JSF 2.0.
Because I am running GlassFish V2, I followed the instructions to download the JSF JAR files to update my GlassFish for JSF 2.0:
Installing Mojarra 2.0.0 RC on GlassFish v2
\* download the Mojarra 2.0.0 RC binary bundle bundle from the project page.
- filename:
\* backup your existing jsf-impl.jar found in GF_HOME/lib
\* copy the new jsf-api and jsf-impl JARs to GF_HOME/lib
\* edit your GF_HOME/domains/<domain-name>/config/domain.xml and
- add (or update the existing classpath-prefix) 'classpath-prefix="${com.sun.aas.installRoot}/lib/jsf-api.jar" to the java-config element
- Example: <java-config classpath-suffix="" classpath-prefix="${com.sun.aas.installRoot}/lib/jsf-api.jar" ... >
\* Restart the GlassFish server
Note, the above instructions from:

Install NetBeans 6.8:
\* To download NetBeans 6.8, click on 6.8 M1, from the NetBeans download page:
- Filename: netbeans-6.8_m1-java-windows.exe
\* Run the installation.

Now that you have a JSF 2.0 GlassFish version, and NetBeans 6.8, you are ready to develop JSF 2.0 projects.
\* Start NetBeans.
\* Select New Project/Java Web/Web Application. In the project form, enter:
- Project Name: jsf1
- Project Location: C:\\java\\jsf\\samples
- Click Next.
- The Server selected is your JSF 2.0 GlassFish version.
- Click Next.
- Check JavaServer Faces, which then displays JSF 2.0 configuration information.
- Click Finish.
\*\*\* You now have your first JSF 2.0 NetBeans Project ready to run.

Descriptions of the jsf1 project files, under the Projects tab: jsf1/Web Pages:
- forwardToJSF.jsp : the project's home page which uses the JSF Servlet URL Pattern (faces/) to forward the browser to the first JSF page:
<jsp:forward page="faces/template-client.xhtml"/>
- template-client.xhtml : JSF 2.0 page, which uses a Facelets template.
- template.xhtml : Facelets template
- In the directory jsf1/Web Pages/WEB-INF, are the configuration files: web.xml and faces-config.xml
\* Run the project.

There are sample JSF 2.0 code which can be downloaded in the Mojarra 2.0.0 RC binary bundle. I have built one and zipped it up for your convience:
Click here to download, a JSF 2.0 code sample NetBeans Project.

Enjoy JSF 2.0, Stacy Thurston, Sun Learning Services developer.

Friday Aug 21, 2009

MySQL 5.1 with NetBeans 6.7

By example, this is how I installed and configured MySQL, then modified a NetBeans Java EE project to switch from using JavaDB to MySQL. Can be done in under an hour.

Download, Install, and Configure MySQL

Download MySQL 5.1:
File downloaded: mysql-5.1.37-win32.msi, about 100 meg
\* double click on mysql-5.1.37-win32.msi
\* Welcome page is displayed. Click Next.

\* Use default, Custom, click Next.
- Default installation directory (Destination Folder): C:\\Program Files\\MySQL\\MySQL Server 5.1\\
- Open MySQL Server branch, click on MySQL Server Datafiles, click Change button.
- Set destination folder (Data Folder) to C:\\sun\\mysql, click OK.
- Remove documentation from install
- To be installed: MySQL Server, Client Programs, MySQL Instance Manager.
- No other changes.
- Click Next.
\* Echoes the above selections. Click Install.
\* Software installs. MySQL notices come up. Click Next on each.
\* Wizard Completed is displayed. Configure the MysSQL Server now, is checked.
Click Finish.
\* Welcome to the MySQL Server Instance Configuration Wizard is displayed. Click Next.
\* Choose Standard Configuration. Click Next.
\* Install As Windows Service is checked,
- Service Name: MySQL,
- Launch automatically is unchecked,
- Include Bin Directory in Windows PATH is checked.
- Click Next.
\* Enter a root password, example root. Click Next.
\* Ready to execute, is displayed. Click Execute.
\*\*\* The first time, it failed to start the server. I restarted my computer.
On restart, I click: Start/All Programs/MySQL/MySQL Server 5.1/MySQL Server Instance Configuration.
Note, I can run this at anytime.

The installation and configuration is completed. And an database instance has been created.

use the Windows Services Manager to start and stop the MySQL instance.

Create a Database

Sample simple commands:

My steps:

>mysql -u root -p
mysql> create database studentdb;
Query OK, 1 row affected (0.00 sec)

mysql> show databases;
| Database           |
| information_schema |
| mysql              |
| studentdb          |
| test               |
4 rows in set (0.00 sec)

Now I have MySQL Server instance running, and a database created.

Modify the NetBeans Project to use MySQL

In NetBeans:
Under Services tab, Databases/Drivers, right mouse click MySQL (Connector/J driver) select Connect using.
In the popup, enter:

Name: MySQL (Connector/J driver)
Host: localhost
Port: 3306
Database: studentdb
User Name: root
Password: root
Remember password is checked.
Click OK

A connection is now under the Services tab, Databases. jdbc:mysql://localhost:3306/studentdb [root]

In the NetBeans Java EE EJB project:
Make a backup of the JavaDB persistence.xml file, which is under the project's setup folder: copy to persistenceJavaDB.xml.
In persistence.xml, I select Data Source: New Data Source ...
In the popup:

   JNDI Name: mysql/studentdb
   Database Connection: jdbc:mysql://localhost:3306/studentdb [root]
   Click OK

Clean and build EJB project.
Clean and build Java EE project.
Deploy and test.
\*\*\* Works with the MySQL database.

View New Rows in the Database

Use either MySQL command line utility, or Connect and Execute command in NetBeans.

>mysql -u root -p

mysql> use studentdb;
Database changed
mysql> show tables;
Empty set (0.00 sec)

mysql> show tables;
| Tables_in_studentdb |
| address             |
| dorm                |
| sequence            |
| student             |
| studentmajor        |
5 rows in set (0.00 sec)

mysql> select \* from studentmajor;
| ID | NAME    |
|  1 | English |
|  2 | Science |
2 rows in set (0.00 sec)

Done, tested, and verified!.

GlassFish Resource Configuration

In the above, the persistence resource is configured using NetBeans wizards.
Following are screen prints of the configurations created in GlassFish by NetBeans. This can be used to setup a resource in GlassFish, without using NetBeans.

GlassFish Resource Configuration on Solaris

Monday Aug 04, 2008

JavaFX SDK for NetBeans Samples

Screen prints from each of the JavaFX SDK for NetBeans Samples are printed below.

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

Arctangent-Circles follow cursor

Background Image-Has Moving red line


Bouncy Bubbles-Bubbles fall to floor bouncing with eachother

Clock-Tell time with clock

Color Wheel-Displays colors

Constratin-Move cursor with circle

Displaying-Shows Image

Distance 1D-Move cursor with lines

Distance 2D-Move cursor with circles

Easing-Move cursor and circle will follow

Flocks-Tiny triangles move across the background

Linear-Moving white line

Linear Gradient-Displays Image

Milliseconds-Flashes to seconds

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

Mouse 2D-Move the squares with the cursor

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

Points and Lines-Displays an image

Rotate-Moving square

Scale-Square grows and shrinks

Shape Primitives-Displays an image

Simple Particle System-Lots of falling circles

Sine-Shape expands and contracts

SineWave-Wave of circles

Smoke Particle System-Control the flow of smoke with cursor

Storing Input-Create circles with cursor that fade away

Translate-Two moving squares

Transparency-Java FX sign will follow cursor

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 ( 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( He is fine with it.NetBeans also works for JavaScript.


  • 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, 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.

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


« April 2014