Angelo Joseph's Weblog The Technophiles

Saturday Feb 21, 2009

Yes, that's right... Milax who ( http://www.milax.org

- LiveCD/LiveUSB bootable OpenSolaris based on build 105 ( as of Milax 0.3.3 )

- even better is the VirtualBox image available for download at ~140MB ( http://virtualbox.wordpress.com/images/milax/  )

- You may need a 7-zip uncompression utility like I did ( http://www.7-zip.org/  )

- Using VirtualBox 2.1.4 ( www.virtualbox.org  ), we create a new VM

    - Solaris/OpenSolaris

    - Memory of 1GB ( if you can spare it )

- Add existing harddrive ( Milax-0.3.2-X86.vdi after uncompressing with 7-zip as Primary Master )

    - click next and continue until you need to just "Start" the VM

    - passwords are root/root, and milax/milax

Voila!

Wednesday Mar 05, 2008

I found this quite an easy proposition to get up an running, I hope you find it valuable:

(1) Download & Install Indiana (preview2 at this time)

- download the CD ISO image from here  http://opensolaris.org/os/downloads/on/

- set up a new VM in VirtualBox which mounts the ISO image of Indiana and start the VM

   - note: ensure you have adequate memory and disk space ( at 600MB RAM, 5GB disk space )

( this should boot you into a LiveCD instance of OpenSolaris )

- double-click the install icon on the desktop and you are away...

(2) Download the AE network drivers ( the only glitch in the seamless process so far )

- use the ISO for convenience sake: http://blogs.sun.com/alanbur/resource/ae-2.6.0a.iso.bz2

- shutdown opensolaris, mount the AE ISO image instead and Start the VM

# cd cdrom/cdrom0   ( this should get you to the AE tarball and follow the steps in README.txt as root )

# make install  ( instead of  "make" in  Step 6 in the README.txt )

# ./adddrv.sh

 (following the rest of the steps will cater for dhcp and make sure your settings stay around on your next reboot )

** in about 5 seconds the kernel autodetected my network settings from the VirtualBox NAT interface and i was away...     :)

( credit to the blog entry here for kick starting things for me -  http://blogs.sun.com/alanbur/entry/kicking_both_tyres_together_virtualbox )

 

Thursday Feb 14, 2008

With the fresh acquisition news of VirtualBox product, I tried the download from here:

http://www.virtualbox.org/wiki/Downloads

 To find that it is quite efficient, not just the 20MB download, but also the speed of the app when running.

 A simple test with DSL, from here:

ftp://ftp.oss.cc.gatech.edu/pub/linux/distributions/damnsmall/current/dsl-4.2.5.iso

And we can start testing, once the VirtualBox app is installed

(1) Create a New VM

Click the "new" icon and follow all the defaults ( note: I did not change any of the default settings the first time around )

(2) Boot from the DSL ISO image

Click on the "CD/DVD-ROM"  on the "Details" tab

Click on the ISO radion button, then select the dsl *.iso file you just downloaded

(3) Boot the DSL VM from the ISO

 Click the "Start" icon

... after a few boot screens you should have a working desktop

(4) Install to Hard Drive

This is the only tedious step, since you have to create your hard drive, virtually....

click the terminal icon on the bottom left of the screen in the panel

- type "sudo -s"
- type "cfdisk"
- Select "Y" when asked Do you wish to start with a zero table
- You will now see your cfdisk applicaton. Use the arrow keys and select "NEW"
-
Select "Primary" then select the size (by default it should be 2GB, but VirtualBox will grow this on-demand )
- Select "Bootable" (you see the word "Boot" under the Flags coloumn)
- Select "Write"
- When prompted with a (Y/N) type "YES" and hit enter.
- Select "QUIT"
-
now back at the command prompt type "mkfs /dev/hda1"
- now type "dsl-hdinstall"
- you will be prompted for the target drive type "hda1" and press enter
- Select "Y" for multiuser logins
- Select "Y" for ext3 filesystwm
- Select "Y" to continue.
- Select "Y" when asked "Proceed to install a boot loader"
- Type "g" for GRUB
- Type "Y" when prompted for reboot
- You will see DSL shut down and press "Enter" when prompted
-
Important: At the VirtualBox boot screen, click "Machine->Pause" from the Menu
- Click "Devices->Unmount CD/DVD-ROM" from the Menu
-
Click "Machine->Resume" from the Menu, and continue booting from the Hard Drive
- You should be prompted to enter a password for the "root" user and the "dsl" user.
- If it starts and you see your DSL desktop you have succesfully intalled DSL to your Hard Drive!

 For some neat tricks to DSL, try clicking on the MyDSL icon on the Desktop to install Apps/Games/Utilities instantly to your installation

Enjoy!




 

Friday Mar 16, 2007

 

This install assumes you have followed similar instructions for Glassfish from [here]

* assumes Glassfish v2B39 nightly
* assumes Java 1.6

Easy Evaluation Option ( for suits...again )
(1) Download Milestone 1 build:
copy file from here: https://portlet-container.dev.java.net/public/Download_jar.html?url=https://portlet-container.dev.java.net/files/documents/5463/51302/portlet-container-configurator.jar

(2) Install Portlet Container
Run jar file:
> java -jar portlet-container-configurator.jar d:\dev\glassfish  d:\dev\glassfish\domains\domain1

-OR-

> java -jar portlet-container-configurator.jar
(which gives you this eye candy below)

(3) Restart Glassfish
> asadmin stop-domain domain1
> asadmin start-domain domain1

(4) Go to URL
http://localhost:8080/portletdriver

(5) Install Sample Portlets

I used the following samples from the portlet-repository [here]
- flickr
- georss
- youtube
- iframe 

Just a click off the Admin tab and you have a screen like this... 

 

 (6) Voila!

Click the Portlets tab and you have the view of the implemented portlets



 

Geeks Evaluation Option ( PG - programmer guidance recommended )

Latest CVS Build Option

(1) Create project directory ( eg portlet-container-dir )
> md portlet-container-dir
> cd portlet-container-dir

(2) Subversion is your friend
- get & install svn from http://subversion.tigris.org/project_packages.html
> set PATH=%PATH%;<SVN_INSTALL>/bin

(3) Checkout source
> svn checkout https://portlet-container.dev.java.net/svn/portlet-container/trunk portlet-container --username guest

(4) Maven should also be your friend
get & install maven from http://maven.apache.org/download.html
> set PATH=%PATH%;<MVN_INSTALL>/bin

(5) Compile & Build sources
> cd portlet-container-dir
> mvn package
> mvn verify

(6) Install portlet-container package
> cd portlet-container-dir/dist
> java -jar portlet-container-configurator.jar d:\dev\glassfish  d:\dev\glassfish\domains\domain1

(7) Restart Glassfish
> asadmin stop-domain domain1
> asadmin start-domain domain1

Fine!

Resources:

 

OpenSSO on Glassfish ( for suits )

Assuming that you have followed the installation of Glassfish from [here] 

(1) Get the Bits
- copy openssodemo.war from http://download.java.net/general/opensso/nightly/amserver/20070105/
- put this file into <glassfish_install_dir>/domain/domain1/autodeploy
- then go to http://localhost:8080/opensso

(2) Setup OpenSSO

- this happens automatically by redirecting to the opensso configurator on the first attempt:
- you should see this url:  http://localhost:8080/opensso/configurator.jsp

- for a basic setup, enter admin password details and use the file system as a data store
- then click "configure" in the top right

(3) Login Screen for OpenSSO
- you will be presented with a login screen for Sun Java System Access Manager


- login using:
uid: amadmin
passwd: adminadmin
( the values above should be what you have entered in the configurator screen just before )

Success!


Resources

  • good tip on reinitialising OpenSSO [here]



The following is a quick cheatsheet from scratch to get GlassFish V2 up and running 

(1) Install JDK6 from http://java.sun.com/javase/downloads/index.jsp
- JAVA_HOME=<java install dir>
- PATH=%PATH%;%JAVA_HOME%/bin

(2) Install Glassfish v2b39 from https://glassfish.dev.java.net/downloads/v2-b39.html
- java -Xmx256m -jar glassfish-installer-v2-b39.jar
- PATH=%PATH%;<glassfish install dir>/bin


(3) Setup Ant 1.7.0 from the Glassfish distribution
- ANT_HOME=<glassfish install dir>/lib/ant
- PATH=%PATH%;%ANT_HOME%/bin

(4) Setup Glassfish v2b39
- cd <glassfish install dir>
- ant -f setup.xml
- asadmin start-domain domain1


* and we're done! *

(5) Test Glassfish Setup
http://localhost:8080/

(6) Test Helloworld
copy hello.war from http://glassfish.dev.java.net/downloads/quickstart/hello.war
to /domain/domain1/autodeploy
then go to http://localhost:8080/hello


(7) Test Glassfish Admin Screen
go to http://localhost:4848/
uid: admin
passwd: adminadmin


Monday Feb 28, 2005

not sure whether this is something to be proud of, but....

Friday Jul 02, 2004

Personally I thought that a 5.00pm technical session on the last day would be deserted, a very bad assumption on my part as it turns out. There are many more geeks that are space enthusisasts than i first believed

The session started well with the "Earth to Mars in Six Easy Steps" section:

I found the explanation of their use of Java3D and JAI really interesting in how they receive pictures and in real-time compose the scene into a flat cylindrical image that basically means if you were to look arounf at the horizon in 360 degrees you would get a picture of what rover would be seeing. They then convert the image into a polar image which essentially flattens the cylindrical image from top to give a view from above the surface. A lot of the work they did in making sure they could accurately record the images to put them together faithfully was also good.

Panaramic view made up of individual shots below:

There was a good description of the tools they used on the rover itself to investigate the rocks and minerals on Mars, which was process behind the discovery of the data that lead to the conclusion of water on Mars at some point in history.

If you were into rocks, this was the place for you, meet Humphrey - the rock:

Personally, i tried to think of how they could get that name applied to a rock:

 OR  ???

Some additional info, VxWorks was the platform running on Rover itself. The final execution code was still being refined as Rover was on its way to Mars and could be update at even a later date. The database behind the Java code was MySql.

They also summarised the activity for JPL in the "near" future for Cassini going through Saturns rings at the moment, talks of going the moon with a rover-like mission was hinted, another mission in 2007 to be a re-try of the failed 1999 Mars Polar Lander. Talks of using nuclear power sources instead of the solar powered variety seems also up for discussion. There is a concern that until the Mars solstice in September the waning Sunlight until then introduces the risk that there may not be enough power to maintain the rover in an operational state. After September the increase in sunlight will greatly improve the chances of using the rover for "a while" after that.

The color shots were also composed by rotating different filters in front of the lens  ( ie the three primary colors ) and taking the same shot three times and composing the aggregate image back on earth. The images were all captured in raw format and edited later.

The Phantom Bunny story went down well:

When the speakers announced that there was some collateral to pick up from JPL, there was a deep rumble as people were trampled on the way to the front of the room to grab a piece of nostalgia.

An interesting comment at the very end by an audience member, congratulating JPL for pushing the envelope on space, planets and other things that re-inforce the grander things about life than our own puny existence.

For more information, try the rover home page. Some really great detail can be found at the Cornell site

Wow...really!

The sheep-effect, fond New Zealanders can explain this to you over a beer one day, of the droves of people wading into the keynote this morning. Not to mention the queue of eager people winding its way down Howard St and through to 5th St waiting to get into the keynote from the doors of the Moscone Center:

First off, there's nothing like jumping straight into it and putting some code up on a screen first thing in the morning, a demo of Creator was shown that truly did make it all look easy:

For a quick catchup for most of us ( as I discovered with a quick conversation of lunch, the current status of Sun's product set is lost on most people )

  • Java Studio was something ahead of its time in Java gui-driven component building that Sun did about 6 or so years ago
  • Java Workshop was something else we did for a little while for a Java IDE
  • Forte for Java was the most recent link with the current genre of Sun Java IDE's
  • NetBeans is the open source IDE that is a close cousin of the demo's shown today with Java Studio
  • Creator is the "corporate developer" version of IDE that is shown above
  • Java Studio Enterprise is the "for sale" version of NetBeans with many enhancements, including those shown below

Next a quick switch to cram in the UML features of Java Studio Enterprise such as UML 2.0 class diagrams that can forward engineer code skeletons, which can have code entered then reflect those changes in the UML class diagrams - aka round-trip engineering:

Next we had the inimicable Todd Fast demonstrate the new collaboration features which combine traditional concepts of team code collaboration with locking of code segments that team members may be working on, as well as the instant messaging functionality that allows for greater communcation on top of the code collaboration - well recieved by everyone i spoke to. Todd also demonstrated the editor features such as look-and-feel and autocomplete within the chat window, which raised a muffled murmur of interest in the crowd.

The folks at PsiNetics brought in a demo of Jini and Bluetooth which was interesting to see. I believe they were Canadian, they might have mentioned it somewhere :)

The next highlight can only be described as the closest thing to the Gates Borg picture in real life that i have ever seen. The contraption used linux with Java2D and the FreeTTS engine for speech recognition, web camera, thumb mouse pointer, and a laptop strapped around the waist, with keyboard strapped to the arm - there was some reference to "making it smaller" which i won't elaborate on, purely because the inference had nothing to do with the technology - go figure:

 Too close for Comfort?

The one that really topped it all off had to be the real-time Java ( or RTJava ) project which was working on 5 ms intervals with no visible signs of interruption by any garbage collection that was going on ( including running Java2D applets to unnecessarily chew up CPU cycles ). On top of all that, the solution was built on top of fault-tolerent systems which already exist ( from memory, the likes of the old Sun Netra t line of  NEBS level 3 compliant servers ). Two servers had a heartbeat private network link for failover ( similar to cluster setups ) with one network link to the heart of the real-time controller. The demo itself was a reverse pendulum which was rather plain looking, to be honest at first, but when the system was fired up and the ruler that was hanging downward was swung back and forth until it became upright and the system was able to balance the rod even if James pushed it to one side - which he seemed to enjoy many times over,  it compensated for the imbalance and corrected itself in real-time. Last but not least, a demonstration of failover with a countdown, 5-4-3-2-1 and then the power plug was pulled from one of the servers and James pushed that poor defenseless machine once again - and everything was still working as before ( hopefully this translates better as a video/webcast - worth the look ):

As for the panel discussion, i thought it was well balanced with both sides of the argument getting reasonable attention. After at least two requests by the panel for IBM's Rod Smith ( owner of the open letter ) to explain why he believe Sun should Open Source Java, I don't believe I heard an answer. The discussion centred on compatibility and innovation, and what i heard from the open source advocates was that Open Source'ing invariably means derivatives of the specification, but there is a lot of innovation. The response from the MLB side of the panel was that there is a lot of innovation in Java, witnessed by the content of the conference itself, and Sun has been a good Angel/Guardian of Java to maintain the compatibility - and why risk changing what's currently working ( to much applause )

Discussions on the JCP could be summarised with a quote by Gosling from Winston Churchill: "Democracy is the worst form of government except for all those others that have been tried "( http://www.quotecha.com/quotes/quotation_16578.html )

Other favourite quotes:

  • Rob Gingell: "Who can't love a penguin?"
  • James Gosling: "I think SCO is causing more humour than problems"
  • James Gosling: "Linux is re-living the old Unix wars"

I think Tim O'Reilly summed the discussion best with my paraphrased version: "It seems that the Open Source requests are coming from two camps: the open source community who believe that Java is a natural fit and would benefit the momentum of the open source initiative; then there is the java community itself in the vendors who are looking for a better seat at the table"

 

You can't go past a big finish, and the old t-shirt cannon contest's third finalist was "The Caffeinator", a giant crossbow complete with Java coat of arms:

James may be inspired to look into medieval SIG's after trying out the cross-bow a few times. So between, the nitrogen cannon, the tandem bike and the crossbow - the close decision by the Applause-O-Meter was the tandem bike - a sympathy vote for the broken chain surely.

Thursday Jul 01, 2004

Nokia keynote by the venerable ex-Sun Jon Bostrom:

the pitch is good, and the marketing of nokia with J2ME has done leaps and bounds for the take-up rates of Java on handsets without doubt

SNAP mobile gaming platform sounds good, but i really want a Nokia 9500: http://press.nokia.com/PR/200406/951002_5.html

Showed a great example of a J2ME applet download initially with errors, then automated feedback to helpdesk real-time with the missing library files and the real-time update of the those files and notification to the user that one click will properly reload the existing applet correctly the second time around.

Interestingly, the feedback error to the helpdesk contained the relevant details required for support, such as platform, version, applications/libraries already loaded - very cool %)

Jon made an interesting reference to radio@AOL using the Liberty framework to assist in sign-on and discovery services all with web service technology: http://www.projectliberty.org/press/releases/2004-03-22.html

Talk about JSR 232 for handling different types of content: http://www.jcp.org/en/jsr/detail?id=232

Thanks to Sang Shin for his self-less devotion to the fostering Java knowledge in the global community, and especially for taking a lead in the labs that have been so well attended during JavaOne with a record number of tutorials available: http://www.javapassion.com/

Wednesday Jun 30, 2004

In early news, a man was found frozen in Yerba Buena today, authorities believe that the man was suffering severe withdrawal symptoms when told he could not have a ticket for JavaOne:

Scott McNealy's keynote this morning was recieved well by a packed house. There were some numbers thrown out which were interesting to see:

  • 14,000+ attendees of JavaOne 2004
  • 4-4.5 Million Java developers worldwide
  • $7.5B in the bank for Sun
  • $1.8B in R&D
  • $131B in installed based
  • 22% year/year growth
  • java.net has 40,000 members with 1,000 projects
  • 550 Java User Groups worldwide
  • 600 Million Java downloads
  • 20 Million ringtones downloaded from Sprint this FY
  • 12 Opterons for auction on ebay

LookingGlass was given the public Open Source launch, with Hideya making his usual personable apearance to push 'the button'

Infinium Labs launched their Phantom Game receiver on stage as well, re-inforcing the subscription model for service with giving the hardware away for free.

Sun's Gaming guru took us through Java-enabled and Java Games through to handsets, re-inforcing the $3B mobile gaming market figures from yesterday:

Some of Scott's outrage ( aka vent spleen ) moments summarised:

  • stock options ( govt should keep their noses out )
  • virii ( a lot was said that was reasonable, save the notion the the military should court-martial anyone that doesn't use java )
  • a verbal open letter to IBM to donate IP ( intellectual property - save confusion with any OSI discussion )

On the topic, a verbal open letter also to Microsoft and RedHat to also contribute to the community initiatives

Really can't beat the keynote finish without the t-shirt cannon shootout. Today's was a tandem bicycle contraption which worked well for the first 3 t-shirts until the chain broke:

Best Sun T-shirt i have seen for a while:

Last, but not least, lets not forget about the Sun vs Apple Hockey match. That's Scott in the Blue jersey with the white hat getting down to business - god knows he must be in better shape than i am because he was looking pretty good on the ice for an older fella:

Tuesday Jun 29, 2004

Jonathan Schwartz gave a great opening keynote as expected...

A lot of focus on the non-traditional markets. Total Java marketplace numbers placed at $100B. The mobile gaming market was estimated at $3B.

The demo using MedicTouch with has a device that monitors vitals via bluetooth to a mobile phone probably confirmed that Jonathan was powering through the presentation with a flu.

According to Jonathan, the next wave will be automotive. To that effect, Siemens VDO gave a cool demo of a BMW that was driven into the keynote to demonstrate the infotainment services. Some shots of the car, screen and the interface that sits next to the drive stick below:

With a combination of manual control and voice recognition, it was impressive to see.

Discussions with a CFO in the Auto industry provided insights such as it may be feasible to provide a monthly subscription pricing of $220/month and give away the car for free based on the services that may be able to be provided.

Jonathan gave a great example of how this may work in practice. At a meeting at an Auto corporation, discussions began around the mobile phone ringtone phenomena, and a younger person at the meeting suggested the possibility of downloading a car horn tone to the car much in the same way. After the immediate laughter at the JavaOne audience had subsided, Jonathan said that the same thing happened at the meeting in that after the initial burst of laughter there was an odd silence as the people in the room suddenly had the realisation that this kid may really be on to something.

Project KittyHawk was announced to provided implementation towards Service Oriented Architecture (SOA) solutions with the Java Enterprise System and Java Studio Enterprise solution areas.

Open Source announcements for Looking Glass, Java 3D , JDIC and JDNC were also tabled

With all the wireless laptops whirring away at JavaOne, it feels eerie that I can blog bloggers who are blogging ( Tim Bray - caught in the act ):

General Session from Borland....

Positioning was to abstract detail from the developer when needed but allow detail when necessary. Interesting slide on "Age Appropriate Tools" with a kid and toys, with turn of phrase J2EZ ( pronounced jay-too-ee-zee )

Three Big Rules:

  • use the right tools for the right job
  • use the tools that work together
  • don't get trapped

Talked about the concept of "legacy" Java code which i thought was novel

Monday Jun 28, 2004

Sunday starts with the all too-familiar buzz in the air and enthusiasm

The before shot below taken early on Saturday is sure to change with the stampede to follow tomorrow morning

The "Fireside Chat" with James Gosling, Rob Gingell and Graham Hamilton was a great way to start the conference with an informal chat about all things.

Questions ranging from the typical Open Source strategies for Java was interestingly positioned by James as having to be strict with standards/specifications means that users are free to choose whatever implementation they want, and vendors are free to develop their own implementations according to a widely adopted standard.

This was followed with the old car analogy with his farm boy twist: "It's like learning to drive a car with a steering wheel and then figuring out how to drive a caterpillar with a joystick [levers]". The point of which was lost when Gingell added that it is fun to drive caterpillars/tractors, to the amusement of all.

The more traditional comment followed: "It's like learning to drive a Ford and being stuck with driving Fords only for the rest of your life"

A common theme of the audience asking for Sun to mandate strategy and direction for Java was met with consistent insistence from Graham and James that the good thing about Java is innovation and freedom of choice, with the addition that Sun's preference is to watch the experimentation on top of the platform and have the expert groups reach consensus on what is best for the industry.

Thursday Jun 24, 2004

can't be all bad in the summertime...