Wednesday, June 20, 2007

Evangelist Dialogs Day 4 - Goodbye Hong Kong

..and Hello Bangkok/Bangalore India. Traveling all night is fun, really! NOT!!

My suspicions are confirmed; Cathay Pacific is first class royale! Check out my seat/bed/cocoon.



Today was another frantic day of early rise and nonstop presentations and meetings. From the start of the day it was end-to-end presentations with the exception of about 18 minutes where I had a chance to eat some food. Zip2Zap showed off a great demo of a really cool Web 2.0 application for financial services built with Flex. The Hong Kong IT crowd, like the crowds in Korea and Singapore, seems very eager to adopt the latest in Web 2.0 technologies. There is a great infectious air of enthusiasm and a “let’s do it” attitude. No wonder this region is booming economically. Lots of smart developers and lots of open minded IT managers who seem to understand that the core design patterns of SOA and Web 2.0 are essential to the future of their enterprises. This makes it very easy to deliver a compelling message about why LiveCycle ES is a must have for any company serious about being in sync and not losing its edge to the competition.

I have been asked a lot about Microsoft Silverlight and JavaFX from Sun. While I have not used either of these technologies, I wouldn’t compare them directly to AIR (the technology formerly known as Prince… oops. I meant Apollo) . What is clear is that the future of RIA development is going in the same direction. The fact that Adobe, Sun and Microsoft have all started carving out a niche in this area seems to indicate it is the place to be. Of course, Adobe has the advantage being the incumbent player in the Enterprise 2.0 space (Clarification: to me, Enterprise 2.0 is the adoption of the design patterns of Web 2.0 by enterprises). Some analysts might cast it differently so ask for a definition when talking to someone.

On a personal note, I really miss my family now. My son has a new mountain bike needing some assembly which I need to be doing but this trip pays the bills. My wife and two young daughters are hard to be without. Ahh – one more week till I return.

Hong Kong has to be one of the most beautiful cities in the world. Check out this photo from the Adobe office:



No rest for the wicked. As I write this I am on a plane bound for Bangkok then on to Bangalore. My less-than-a-week-old 15” MacBook Pro has some serious display issues too. I went with the newer sharper display. It seems to be a hardware issue and it is making it hard to do presentations. The job of an evangelist requires nerves of steel. When things go terribly wrong with less than 3-5 minutes before starting a presentation, you need to have a backup plan, remain cool, and always do what needs to be done to do the job.

Bangalore will be another day of panic but I am also looking forward to spending more than 18 hours in one country. I get in after midnight and have to be ready to leave the hotel by 8:00 AM. So tired…. Need sleep.

More to follow.

Tuesday, June 19, 2007

Evangelist dialogs - day 3

Arrived in Singapore late last night and got busy preparing for the next day. Schedule is nuts! Check this out:

7:00 am – up for breakfast
8:30 – leave hotel (check out)
9:00 – 10:00am: Room set up. Computer check.
10:00 am -12:00 pm: Partner briefing
10:00 am: Arrival of Partners / Refreshments
10:15 am: Welcome
10:15 – 11:15 am: Livecycle ES presentation
11:15 am -12:00 pm: Q&A
12:00 pm: lunch (working lunch)
1:00 pm: Arrival of Media
1:15 pm: Welcome
1:15 – 2:15 pm: Livecycle ES presentation
2:15 – 3:00 pm: Q&A
3:00 – 4:00pm: Refreshments / Side one-one interviews
4:30 – leave for airport.

It is now 5:15 and I am sitting in an airport lounge. On the way out of the city I saw this amazing statue. It is either going to be the world’s largest Ferris wheel or the world’s largest bicycle wheel truing stand. Either way – well done Singapore! This country is also very cool! Everyone is really energetic and positive. If only there was a way to export this energy to other areas of the world.

Tonight I fly to Hong Kong. After two days of luxury aboard Singapore Airlines (my gawd – has it really only been two???), tonight I see what Cathay has to offer for first class.

Sunday, June 17, 2007

The Evangelist Dialog - Day 2 (Seoul - Singapore)

Seoul is such a beautiful city. When I was here 8 years ago, the smog and traffic were so bad I could barely see three blocks. Today is a beautiful day, filled with sun and clean air. The day was very busy. All day long talk, listen, talk, listen. Here are some interesting things. My fellow blog brethren have informed me that the Korean Flex user group community has over 6500 members! They also asked me to come back and party with them with some cool Korean liquor called Shoju (spelling???). These guys were fun.

I just about missed my plane thanks to a minor fender bender which slowed freeway traffic to a crawl. Managed to make it by about 3 minutes. Once again, Singapore Airlines exceeded every single other airline.

Flying to Singapore, will be there soon.

.. and now I am in Korea!

Anyung ha se yo! Je erumun Duane yim ni da! Ju nun Canada esu whatsem ni da.

I am now in Korea and I love everything about this country. In South Korea, about 70% of the land is covered with mountains and Seoul itself is a world class city with a world class tech community. I am a bit haggered but glad to be here again.


Being an evangelist for Adobe Systems definitely has its benefits. At the airport I got picked up in an Equus Limo (made by Hyundai). The car is amazing - full on Luxury. At the Hotel Intercontinental, there is a pyramid sticking out of the ground reminiscent of the Louvre in Paris where I was 3 weeks ago.




Tomorrow I will be meeting some of the top bloggers and top press in Korea. It will be an honor to meet with luminaries such as Ik-Jong Kim (Electronic Times), Hong-Seok Lee (Digital Times), Kyu-Hee Cho (eWeek Korea), Management & Computer magazine's Sang-il Lee, Computer World's Jeong-eun Kim, Jun-Kee Park or Monthly w.e.b., Electronic Information Times' very own Jeong-Hyun Heo, Computer Times' Jeong-Hyun Kim and several other top notch publications. This country just *loves* technology.

I am really keen to meet my fellow blogosphere devotees too. A special meeting has been arranged where I will get a chance to talk to Jun-Gyun Bae (Flex Adobe Community Champion), Ho-Sung Shin (Flex Adobe Community Champion & one of the brains behind the Dongbu Life insurance Flex project), Man-Young Lee (Flex Adobe Community Champion, BAM, Java and BPM master), Kwang-Nam Hur (Flash Adobe Community Champion), Joo-il Yang (blogger extraordinaire and Flash Designer), Chang-Shin Lee (top flight Java guy), Tae-Wan Kim, Dong-Ho Lee, and Sung-Hoon Choi among others.

Many people who talk to me think the evangelist role is only about talking, promoting etc. It is also about listening. Tomorrow, while I might be giving two presentations, most of the day will be focused on listening to what Koreans want from Adobe and what they think we need to be doing in the next 1,3,5 and 10 years. After all, they are the real users and the ones who are instrumental to our success.

Time to grab some sleep and ready myself for a power day tomorrow. here is the schedule:

7:00 - Up and get breakfast
8:00 - Pack up suitcase, leave hotel room
9:00 - meet local Adobe staff.
10:00 - 10:45 a.m. Pre-meeting with Interpreter (get set up for live concurrent translation into Korean)
10:40 - 11:00 a.m. Reception (I hope they have Tim Horton's)
11:00 - 11:10 a.m. Introduction to Press
11:10 - 11:50 a.m. Presentation (WHOOPS! Maybe I should write one before going to bed)
11:50 - 12:00 a.m. Q & A
12:00 - 13:00 p.m. Lunch
Session 2. Blogger Roundtable
13:00 - 13:10 p.m. Introduction
13:10 - 13:40 p.m. Presentation
13:40 - 14:20 p.m. Open Forum
14:20 - leave for airport (60 minutes via limo)
16:30 - on flight bound for Singapore
21:45 - arrive Singapore
22:00 - clear customs, get bags
22:30 - get to hotel
23:00 - new blog entry and prepare for next day.

This is the reality of Technical Evangelism. If you think you've got what it takes, email us - we have more jobs like this open!

Saturday, June 16, 2007

The Evangelist Dialog - Day 1 (Vancouver - Seoul)

A lot of people tell me I am lucky to be an evangelist for Adobe. Yes - I am but they often don't see the other side of the job. The tireless hours, long trips and endless interviews, press events, speaking engagements, conferences and more.

To illustrate what this job is like, I am going to publish a diary of the next 2 weeks during a trip. Today is Saturday. While most people have the day off, I am sitting at the Vancouver international Airport about to leave for Seoul, Korea. I am excited about riding on Singapore Airlines new 777 Dreamliner in first class. Heard a lot of good things.

I will hopefully arrive tomorrow at suppertime in Korea and get a chance to sleep before going to my first meetings.

TTYL

Tuesday, June 05, 2007

SEO - Search Engine Optimization Tricks

Consider this a gift if you are seeking to lead the search engine rankings with some newer tips and tricks. I used to do this for a living and have tried to stay current over the new technologies as they come out. SEO is generally much easier now that there are fewer search engines to target. Back in the good 'ole days we had to target multiple engines and change the code behind to be specific for each one.

I have a long history of working on search engine projects and feel nothing reveals tricks like building a search engine to see how it works. One project was the Initiative to evaluate XML Retrieval (which I was largely working with Universities on advance ontological and syntax mechanisms) while another one was the GoXML Contextual XML Search Engine launched in 1998, days after the recommendation was done. GoXML is still featured on PatentStorm.

SEO has little to do with indexing the content of a page nowadays. All that does is give you a starting reference point. The indexbot parses your page noting some particulars and provides you a weight with various terms.

The key metrics are:

1. Domain name matches search string (note – since hyphens and periods are removed during the webbots normalization process, things like www.ford.com are equal to www.f-or.d.com). Not many people know this since they do not write code to parse domain names. The hyphens are removed since not many people search on hyphens and the search engine index needs to be as efficient and lean as possible.

2. How many relevant sites that point at the site are very important. I showed some Adobe colleagues how to use this to our advantage to beat out Microsoft and Sun for the term “Enterprise Developer Resources”. All I did was ask that everyone make a signature to their email that said “Adobe Enterprise Developer resources – http://www.adobe.com/devnet/lifecycle” and then go about our normal business of posting to public threads. The index assumed that we must be relevant given the other top sites seemed to have links pointing at Adobes site. In reality, these were only archived email threads with the signature being treated as a link. All the Search Engine saw was “-links to -> Adobe.com. Within 6 weeks we beat out MSDN, BEA, Sun, IBM etc. and are still #1
http://www.google.com/search?source=ig&hl=en&q=enterprise+developer+resources&btnG=Google+Search

3. How people click on the top ten search results in Google. Google uses an adaptive algorithm which is a variation of the GoXML algorithm of which I co-wrote. We had 51 unique patent points in 1998 on this. When you click on one of the top ten results, Google simply tracks the result via a pass through. You can see this in action by doing any search on google, then right clicking the link and copying it. Where you see www.adobe.com/devnet/livecycle/ or get that URL if you copy/cut, when you right click and copy link, that actually translates to http://www.google.com/url?sa=t&ct=res&cd=1&url=http%3A%2F%2Fwww.adobe.com%2Fdevnet%2Flivecycle%2F&ei=JzZkRvzMEZqUgwPkmNmKBw&usg=AFQjCNGx7iKEUn38Kcfk8woBnWtcNueL9g&sig2=ope-x2wZBZhBXtNlk_fj0w

A case study is “Architectural patterns metamodel”. Matt Mackenzie and I wrote a variation of the gang of fours template for architectural patterns using UML 2.0 and linking known uses. It is now ranked #1 since it is the most used template by many software architects. See http://www.google.com/search?hl=en&q=architectural+Patterns+meta+model&btnG=Search

Note that this is referenced by the unique IP address bound form the incoming HTTPRequest header so you cannot spoof it without additional tricks. Since you have to first receive the call back code from google to build the new outgoing request in order for it to register, there is almost no way to spoof it ;-)

4. The meta tags are indexed and useful but only up to a certain point. Many people who have no clue how code works try in vain to do things like META Content=”mountain, bike, mountain bike, mountain bike clothing . Etc. The truth is that the meta keywords are parsed and normalized stripping out both the commas and spaces except for one space or other delimiter to separate the array. All the indexbot see from the above example is “mountain:bike:mountain:bike:mountain:bike:clothing” Any word repeated is generally disallowed completely and interpreted as spamdexing the bot.

5. Any keywords that do not appear in the body in plain text at least once are heavily discounted unless the core content of the page has no visible words, then the indexbot defaults to what it has to work with to establish the baseline weights.

6. Any keywords that appear more than approx. 7% of the total word count for the body are discounted as spam. (Note - this cannot be verified lately but it used to be true in the early part of the decade).

7. Words in large fonts near the top of the page and in the page title weight very heavily. People used to trick the SE’s by making this text the same color as the background. The human would not see anything but the indexbot would. The SE’s caught this trick early on and made a cross reference of colors to nab perpetrators. What many people do not know is that you can beat this by using javascript which the indexbots do not see. A browser’s parser hands this off at a later stage to the rendering engine so they might catch this later. I suspect that Google should catch this trick in the near future.

8. Google overlays the search matrix with an ontology classified by a first order of logic that separates all results into a modal array. The ontological nodes are also ranked at the meta level based on the preceding and mix into the pages dynamically but within the constraints defined by their librarians. That is why a term like “washington” will have results for the president, the state, the university, the actor etc all in the top ten. One way to trick this is to find the least common context then build a site to get #1. Once you have done that, replace the words for the context of your choice and you will usually stay in the top ten since the visibility draws

I have other tricks but have never failed to get any site less than 3rd for the terms including “mountain bike”, aromatherapy, whistler rentals, enterprise developer resources and many others...

Oh yeah - these are the tricks I am willing to share. I am still keeping some others as closely guarded secrets. It's not hard to figure out since it is all based on simple logic. Enjoy and good optimizing. Post your success back here if you find this helped.

Tuesday, May 29, 2007

Gas Prices are not high - stop whining already!

Okay - gas at the pumps is now about $3.50 USD per gallon. Seems steep right. Well, it's not really out of line. Sure in 1980, gas cost only $1.13 per gallon. That was 1980 people!!! You could also buy a house for under $100,000 and a car for under $8,000. In inflation adjusted figures for 2005, the real price was $2.86 (based on US Census figures for inflation adjusted prices). In 1955 gas was only $0.27 per gallon. In a time where a brand new house AND car could be bought for under $10,000, this would be the same multiplying the whole equation by ten. Hence Gas goes from $0.27/gallon to $2.70 per gallon and the car AND house goes from $10,000 to $100,000 USD. If you think gas is to high at $2.70 per gallon, consider your range of options for buying a new house and car in the US for under $100,000. Can't really to it. the US national median house price is actually about $220,000 as of August 2005.
If you raise the price of gas to be in alignment with housing and new automobiles, it should be around 2.2 times the $2.70 in terms of 1955 inflation adjusted dollars or approximately $6.00 US per gallon. Coincidentally, that seems to be what many other countries pay.

On top of that, the US has one of the lower prices for gas at the pumps world wide. See this graph to see how really upset people would be if placed in a country like Norway where gas is over $6.00 USD per gallon. Us Canadians have been paying $1.35 per litre at the pump (approximately $5.00 USD perUS gallon). The Dutch pay $6.48 per US Gallon!

The price of gas has largely remained stable over the last 40 years and in terms of inflation adjusted dollars, has not become a luxury. Yes - in the last few months we have witnessed US prices that appear to almost approach the median price the rest of the world pays but we have not yet even seen the USA get into the expensive half of the chart. In short, the US still has some of the cheapest gas in the free world.

Also - consider that higher prices might have positive effects. Perhaps even less people on the roads in their own cars, more people car pooling or sharing. If higher prices make people think, let's think about how we got into a position where the gas and oil companies have the power to unilaterally raise prices over us and screw us in the pocketbook. We got ourselves into this position by becoming Dependant upon it in the same manner drug addicts feel the financial wrath of their dealer.

What I would really like to see? I would like to see a real Energy policy in the USA. The US an dCanada could lead the world in alternative energy innovation and use if the right people take control. Get rid of the brats who still falsely consider Hydrogen as a viable terrestrial energy storage device and start real research into the net energy capabilities of new systems. My great Uncle Stig runs the world's largest and cleanest bio-mass energy conversion plant in Finland. We shoudl be doig the same here. The California wind energy policy is a good move. Solar works.

And I would like to see more people stop and think before winging on about how costly gas is. it really isn't.

Wednesday, May 23, 2007

SOA : the real goods

This series on Youtube called "Greg the Architect" is brilliant. it left me ROTFL..

Monday, May 21, 2007

Adobe MAX 2007 info

The amount of work going into MAX 2007 is unbelievable. Preparing our annual event for North America, Europe and APAC regions is a monumental task to take on. To date, I have about 500 emails from various parties (each taking a minimum of 5-10 minutes to read and respond to or about 50-100 hours) plus almost a full GB of materials to go over. It takes a serious commitment, not just from the track leaders but from all involved. Rom Portwood and Sarah Eaton are putting their hearts minds and souls into MAX 2007 and we have tons of community involvement planned this year.

Some of the other evangelists on our team have done the same and from what I have seen so far, MAX 2007 will not be something you want to miss. Ted Patrick, Ben Forta and I have asked for a received permission to do a full blown code camp style event. Anyone reading this that would like to be involved int eh code camp, please contact one of us and we'll figure out a way to fit you in.

The MAX 2007 website will be going live soon with registration and the content.

Sunday, May 20, 2007

A must read entry to music lovers

Ajit's entry on Open Garden's really spoke to me. Not just because the idea fits in with the model of Mix2r.fm for the next generation of music. He nails the ideas that the record industry has to understand and how fans are attracted to music for more than just the bits and bytes that make up the files we transfer.

Technoracle (a.k.a. "Duane's World"): Buying a hot water heater? Read this first. Don't buy Rheem

Rippoff Report!!! Buying a hot water heater? Read this first. Don't buy Rheem: "http://www.ripoffreport.com/reports/ripoff17495.htm"

Technoracle (a.k.a. "Duane's World"): Buying a hot water heater? Read this first. Don't buy Rheem

Technoracle (a.k.a. "Duane's World"): Buying a hot water heater? Read this first. Don't buy Rheem

Friday, May 18, 2007

Buying a hot water heater? Read this first. Don't buy Rheem

I want to share a personal experience with anyone considering buying a hot water heater in North America. When my wife and I moved into our house in Vancouver, we soon found we needed a new hot water heater. After much choice, we went with a Rheem brand since it was sold to us as a high quality, North American brand with a 8 year warranty. Were we ever taken for a ride though. The warranty turned out not to be worth the paper it was printed on. While the warranty did state it was "limited", we were lead to believe by Hillcrest Plumbing that if anything happened to our hot water heater, it would be replaced within the warranty period. After all, what does warranty mean? According to Rheem, even today you are protected on parts but don't be fooled. They are unscrupulous and are lying to you.

Our water heater let go and we had to call Hillcrest during off hours. They told us that Rheem and Hillcrest are no longer honoring their written warranties and due to a change in design and rules , would not be able to honor their warranty on parts. WFT??? This is a clear case of a large multi national company imposing a unilateral change on a contract due to their own lack of foresight. We, the people are being ripped off.

My advice:

1. Do not believe anything Rheem promises in terms of warranty. They lied to us and did not honor their own written warranty. This website could just as easily be lying.

2. I will also never do business with Hillcrest Plumbing again. I urge you to consider this when looking for a plumber. Get references from any plumber. By contrast, there are lots of reputable firms like Roto Rooter and others who have never ripped us off.

3. Rheem Canada also seems to handle the Ruud brand. Be wary.

4. If you are a contractor looking for a line of water heaters/holding tanks
to carry and install, consider how your customers will feel about you if this happens to them. It will cost you money if too many people experience lies like this.

If you are one of the 10,000 people who read this blog every month, please pass this on to others in North America.

Friday, May 11, 2007

Stupidity knows no bounds!


I am speechless. I am not even sure where to begin addressing this. Someone at Vancouver International Airport actually convinced others to get a budget for a project to tell people how to bring food on an airplane. They developed a small logo for their project. Do they really think we need signs to help us? Did they envision that people are too clueless to figure the three steps out for themselves (1. buy food; 2. ask for it "to go", 3. bring it on plane)??? WTF??? These signs are everywhere.

This is one project I am glad I was not in any meetings for. I would have strangled someone.

Duane's World 2007 Java One "Coolest in Show" award

Every year I blog after Java One and recognize one company, demo, entry, exhibit that is better than all others. In 2006, this award went to a robotic Lego and Java demonstration. This is never an easy task since there are so many cool things at Java One. This year is no easier. After much internal debate and watching the "wow" factor from peopel seeing things for the first time, I bestow the 2007 Duane's World "Best in Show" award to the Java powered helicopter. Das ist ein sehr gute Hubschrauber!



Runners up were the Sun SPOT (Small Programmable Object Technology) and the Quebec University students Java submarine. the latter failed to make tops given they have not yet included an adaptive algorithm to learn and re-program thrust bursts based on Causality Event Programming models (The thrusters usually over-compensated in attempts to level the device). While it is not "kinderspiele" (Child's play), it could be done with minimal effort. Quebec has a long history of great technology and good hockey goalies so I look forward to seeing what they bring next year.

Disclaimer: I excluded the Flex, Apollo and Java PDF code from Adobe.

Thursday, May 10, 2007

Java One 2007 source code and slides

Java One 2007 is full on! My favorite was the helicopter but I also can't wait to start developing with the SunSpot devices. I think I am going to build a solar tracking device.

Anyways - thanks to all of you who came to my talk. I was overwhelmed with the great reception and applause and felt really humble to be appreciated by such an esteemed and knowledgable peer group. I don't use Java every day so I was happy to see all the code I wrote for you compile the first time. Felt like I dodged a bullet.

Here is the first class (DuanePDFClass2.java). You will need to download the XPAAJ.jar file to make this work. The other class is directly below. You should also know that we are moving towards the XML friendly version of PDF ("Mars") which will allow any developer to work with PDF XML formats using the XML parser in their native language. For the long term, this is a much better solution than us developing libraries for each and every programming language.

import java.io.*;
import java.util.*;
import java.awt.image.DataBuffer;
import com.adobe.pdf.*;

public class DuanePDFClass2 {
public static void main(String[] args)
throws FileNotFoundException, IOException

/* Make sure we have the correct args.length() and call PDFExtract() */

{
String inPdfName;
if(args.length != 1 )
{
System.out.println("\nCommand line format: java classname pdf-file");
return;
}
else
{
inPdfName = new String(args[0]);
PDFExtract(inPdfName);
}
}

public static void PDFExtract(String inPdfName)
throws FileNotFoundException, IOException
{
System.out.println("\nOpening PDF with DuanePDFClass2...");
PDFDocument doc = null;
boolean b = false;
FileInputStream inPdfFile = new FileInputStream(inPdfName);
try {
doc = PDFFactory.openDocument(inPdfFile);
} catch (IOException e) {
System.out.println("Error opening PDF file :" + inPdfName);
System.out.println(e);
}
if(doc == null)
System.out.println("Cannot open PDF file : " + inPdfName);
else
System.out.println( inPdfName + " was successfully opened.");

System.out.println ("Document Version = " + doc.getVersion());

System.out.println ("PDF is " + doc.getNumberOfPages() + " pages long.");

/*Save PDF to file*/
System.out.println ("\nSaving document ... ");
int j = inPdfName.lastIndexOf(".");
String outPdfName = inPdfName.substring(0, j) + "_saved_by_Duane_at_JavaOne2007" + ".pdf";

InputStream inputStream;
inputStream = doc.save();
b = false;
try {
b = saveFile(inputStream, outPdfName);
} catch (Exception e) {
System.out.println("Error saving PDF file.");
System.out.println(e);
}
if(b == true)
System.out.println ("Document was saved to file : " + outPdfName);
else
System.out.println("Document was not saved to file.");

System.out.println("\nExecution of DuanePDFClass1 has finished.");
}
/**
method to save InputStream to a file.
*/
public static boolean saveFile(InputStream is, String filePath)
throws Exception
{
boolean retVal=false;
byte[] buffer = new byte[10240];
FileOutputStream outStream = null;
try
{
outStream = new FileOutputStream(filePath);
int len=0;
while (true)
{
len = is.read(buffer);
if (len == -1)
break;
outStream.write(buffer, 0, len);
}
outStream.close();
retVal = true;
}
catch (IOException io)
{
System.out.println("Writing the array of bytes into the file "
+ filePath + " failed.");
throw new Exception(
"Writing the array of bytes into the file "+ filePath +
" failed in saveFile");
}
return retVal;
}
}


Here is the second class which casts the input stream handed off by the Document factory class into a buffered stream reader and strips out the XMP metadata.

import java.io.*;
import java.util.*;
import java.awt.image.DataBuffer;
import com.adobe.pdf.*;

/* XMPExtractSample
* by Duane Nickull, Adobe Systems Inc. dnickull@adobe.com
* Copyright (c) October 25, 2006 - all rights reserved
*
* Use this at your own risk and don't whine/winge on to me if it doesn't work.
* You will need to have XPAAJ.jar from Adobe labs.
* Written and tested with JDK 1.5 on a mac w/osx 10.4.7

*/

public class XMPExtractSample {
public static void main(String[] args)
throws FileNotFoundException, IOException

/* Make sure we have the correct args.length() and call PDFExtract() */
{
String inPdfName;
if(args.length != 1 )
{
System.out.println("\nCommand line format: java DuanePDFClass1 pdf-file");
return;
}
else
{
inPdfName = new String(args[0]);
PDFExtract(inPdfName);
}
}

public static void PDFExtract(String inPdfName)
throws FileNotFoundException, IOException
{
System.out.println("\nOpening PDF with DuanePDFClass1...");
PDFDocument doc = null;
boolean b = false;
FileInputStream inPdfFile = new FileInputStream(inPdfName);
try {
doc = PDFFactory.openDocument(inPdfFile);
} catch (IOException e) {
System.out.println("Error opening PDF file :" + inPdfName);
System.out.println(e);
}
if(doc == null)
System.out.println("Cannot open PDF file : " + inPdfName);
else
System.out.println( "\n" + inPdfName + " was successfully opened.");

// Export the xmp metadata from the document
try {

//Call the PDFDocument object's exportXMP method.
InputStream myXMPStream = doc.exportXMP();

//Get the byte size of the InputStream object.
int numBytes = myXMPStream.available();
System.out.println("\nNumber of XMP Bytes found is " + numBytes + "\n");

// Read into a Buffered Reader Stream.
BufferedReader d = new BufferedReader(new InputStreamReader(myXMPStream));

// Iterate through the XMP object and print each line
String xmpLine;
while((xmpLine = d.readLine()) != null)
{
System.out.println(xmpLine);
}
// Find the Physical Memory Reference of the object
System.out.println("\nXMP InputStream is in physical memory at -> " + d);

//Create an array of bytes. Allocate numBytes of memory.
byte [] MDBytes = new byte[numBytes];

//Read the XMP metadata by calling the InputStream object’s read method.
myXMPStream.read(MDBytes);
} catch (IOException e){
System.out.println("it went really bad" + e );
}
System.out.println("\nXMP Extraction has finished.");
}
}



Friday, May 04, 2007

Web 2.0 Definition? What is the Web 2.0?

I have been writing a lot lately for an upcoming book on the topic of Web 2.0 with James Governor and Dion Hinchliffe for O'Reilly. During the process, we have done an amazing amount of research in an effort to quantify some of the patterns surrounding the concept. The work was actually quite intense and started with examining a single table put forth by Tim O'Reilly. The table illustrated examples of what was web 1.0 vs. web 2.0. Many people have struggled to define and understand "Web 2.0" At this point, defining it probably won't happen due to the fact that there are so many differences in what people think it is, however, anyone can mine it for knowledge. I personally don't see this as a problem since there seems to be a lot of consensus surrounding what is and is not web 2.0. While definition has possibly slipped away, the ability to share the collective knowledge on the subject has not. The knowledge of web 2.0 can be caught and expressed in architectural patterns and models. This blog post is a teaser of the upcoming book on that exact subject.

So what are "Patterns"? A pattern is a repeatable solution to a frequently occurring problem. The value of patterns is that it captures the solution knowledge independent of the implementation which then allows the pattern to be re-applied to other instances of problems in different contexts. An example of a pattern is to note the collaborative tagging (A.K.A. "Folksonomy") and commenting patterns on Flickr, then realize that the same mechanism can be used for video, audio, scientific research, news articles etc. Entrepreneurs in general should be very interested in this book. New start up ideas will be plenty abound.

We started with this diagram:



From each of these examples, patterns were distilled from the instance. The methodology left us with a huge collection of patterns that are documented and can be used to compare the old way to the new way. From these patterns, we were able to create a model based on further abstracting the main concepts required to fulfill the patterns. The model itself is abstract but from the model we were able to create a reference architecture for developers and architects. The idea is that the reference architecture is abstract of all technologies, implementation detail yet presents a great technology component view that can be used to help guide architects and developers as they build their applications.




The value of this methodology is that anyone can take the reference architecture and build their own specialized architecture from it. The model is simple and reflects abstract concepts that are present in most of the patterns. So what does the model look like and what is different? The model is shown below:



The model is definitely different than the old internet in a number of ways. In order to reflect the capabilities necessary to fulfill the patterns mined form Tim's examples, developers need to extend the basic client server model. Instead of a simple "server", the Services Tier of the model reflect the core tenets of Service Oriented Architecture, itself a a core pattern of Web 2.0. SOA is a pattern that can be used to match needs and capabilities under disparate domains of ownership. In this context, SOA is independent of any specific implementation or technology family such as web services and aligned with the abstract definition in the OASIS Reference Model for SOA. SOA allows "capabilities" to be offered for consumption to potential consumers on a common fabric. The common fabric is defined in terms of "Reachability and Connectivity", often implemented by using common standards and protocols. The concept of web 2.0 as an open platform relies on these open standards and technologies to function. Work such as the Service Component Architecture will rely on this type of infrastructure to exist in order to work.

The services tier offering these services is necessary to fulfill many patterns. To deliver a Rich User Experience (RUE), the capabilities must be leveraged to add more depth to interactions between users. To enable people to build mashups or offer Software as a Service (SaaS), the services tier must beliver the capabilities whilst abstracting the client from how the capabilities are being fulfilled.

The the middle tier of Capabilities and Reachability, we have seen huge changes since the first iteration of the internet. The development of Web Services standards and new data serialization forms such as XML to supplement the simplistic HTTP and HTML model form the first internet are necessary to fulfill the promise of the first iteration of the web. Guys like Bob Sutor, David Orchard, Marc Goodner and Eric Newcomer have all been working on these new standards and protocols for a long time. Why? They are absolutely necessary for Web 2.0. The Web must be open and mashable (new word??) to enable the patterns.

Additional patterns beyond simple "Request-Response" are necessary to fulfill core patterns like the "Synchronized Web". This latter pattern being used a lot for online gaming, collaborative applications and other synchronous architectures of participation. We have seen the rise of AJAX as an asynchronous model and various other mutations to make the patterns reality. Models for interaction include Probe and Match, Request-Response, Subscribe-Push, Synchronized, Asynchronous and more.

On the top side of the model, the old notion of "client" has been widened to become a "Client Applications/Runtimes". The purpose of this is to perform client duties and prepare the ultimate user to connect to the web. We noted that there is a new entity above the client. This entity is the User. The user is now a core part of the model for the internet and vice verse. Users are involved is so many patterns it would be difficult to ever devise an inclusive list. The Collaborative Tagging pattern ("Folksonomy), Collaboration-Participation Pattern, Rich User Experience Pattern, Semantic Web Patterns, Synchronized Web Patterns, Declarative Living and many others all include the notion of the user. Note that 'users' are not limited merely to humans but may include applications or other agents.

Some more about the model? This model can be used as a pattern between any two entities on the web. It is not about simply making one model for a platform of all interconnected devices. The model can be used in Peer to Peer patterns (one peer has a capability that gets consumed by another peer using protocols like BitTorrent via services for the ultimate benefit of a human actor) or other patterns like the Web Services * architecture, reflected in a great book by Chris Kurt.

Note that we do not consider the model to be the one single model that forever defines Web 2.0. It is simply "a" model which people can use, even if they disagree with it. If you disagree, you still have a model to use as a point of reference to describe your disagreements.

The reference architecture was presented during a recent session at Web 2.0 in San Francisco but I am not going to repost it here just yet. It will be the subject of another entry. In true Web 2.0 style, the book will have a sister website that allows anyone to collaborate and contribute to the set of patterns. This will be announced when the book is published.

The list of patterns identified to date is as follows:

Adaptive Software (software that gets better the more it gets used)
Asynchronous Particle Exchange
Collaboration Participation
Collaborative Tagging
Declarative Living
Mashup
Persistent Rights Management
Rich User Experience
Semantic Web
SOA
Software as a Service
Synchronized Web
Tag Gardening
...

Expect this list to grow as the work continues and others start contributing patterns. Note that Rich Internet Applications (RIA's) use a combination of patterns (RUE, Mashup, etc). Patterns themselves may be combined and used together.

Ahh - back to work..TGIF!!!

Wednesday, May 02, 2007

David Linthicum gets SOA - a good read.

I have just read an article by David Linthicum on SOA Reference Models and Reference Architectures. David has explained how the two relate to each other very well and I consider it a good read. There are a couple of points he makes that I am also wanting to expand upon.

In David's blog post, he writes:

"Again, abstraction, one is an instance(s) of the other, if I understand this correctly."

This infers that the SOA Reference Architecture work at OASIS is an instance of the SOA Reference Model. While close, this is not quite accurate. The OASIS Reference Model for SOA is in fact abstract. By definition, an abstract entity cannot have instances, the same definition shared by UML 2.0 and programming languages like Java. The relationship is best described as the Reference Architecture "is based" upon the Reference Model. The OASIS SOA RM TC always knew that there would be multiple SOA works (architectures) based on the Reference Model. Such is the purpose of a model, to allow various architectures to be based upon it which maintaining a common language and understanding of the core concepts, axioms and relationships.

David also writes:

"I urge you to download and read this 31-page document to get some additional details. Also, get involved, if you like. I always love the comeback from standards bodies that deal with criticism and debate around the concepts they put forward: "If you don't like it, join us and change it." Can't argue with that."

and

"You have to give them an A for effort, but you can see where the debates are going to pop up. It's really a matter of understanding, a marketing issue really. I understand different levels of architectural abstractions, but what is really needed is a reference framework or model, and a set of steps to figure out how to build something that's proper for your problem domain."

David correctly notes the true purposes of a reference model here. Even if you disagree with it, it is a point of reference a person can use to explain their variances in definition. For example, if someone claimed that SOA was not what the reference model stated, they have a point of reference for their definition. As such, there will likely never be newer editions of the RM work unless some great inconsistencies are uncovered during he RA works going on in various bodies, companies and vendors.

FWIW - I give David an "A" for his continued clarification of SOA. I'm adding him to my blogroll.

Saturday, April 14, 2007

Major Upset - Team Best Yet beats Team Indecent Exposure

In round three of the winners bracket, Vancouver, Canada based video game team Best Yet upset Indecent Exposure, one the top ranked teams on the MLG pro circuit. In a close match, Conker, BlakOut, Toxic and Nutraways shut the door on their pro competition, advancing themselves to the next round later tonight.

Below - Toxic Euphoria and Nutra take time to chat with a fan between rounds.

MLG Pro tournament - Halo 2 Free For All

From Charlotte, NC

For most of society, video gaming conjures up images of lonely 30-ish geeks or pimply teenagers staring at violent screens in dark rooms instead of participating in real life. For a the growing ranks of amateur and elite competitive players, taking it to the next level means playing in front of millions of fans in live auditoriums with stage lighting resembling a rock concert. Prize money for a single season now tops well over 7 digits. Parents, take note – this is just as legitimate a career as any other.

This weekend, I am attending my first event of the Major League Gaming 2007 campaign kicks off in Concorde, NC as a gopher for team Best Yet (BY). Our team has traveled from Vancouver, Canada and Utah to compete against the world’s finest in the Halo 2 bracket, a game from Microsoft played by millions of players every day. I decided to travel to the event myself to experience what it has to offer. I had preconceived notions that the video game crowd are shy, anti-social types. This is the farthest from the truth I could have suspected. The event itself was like a constant raging nightclub (minus the alcohol, fights, drugs etc.) where friends met, played, conversed and just had a great time. This report is about exposing this world of gaming as it starts to explode from a fringe activity to a mainstream test of intelligence, agility, coordination and strategy.

Before continuing, I have a personal confession to make. I used to be in a chess club. I used to follow Karpov and Kasparov as they met new challengers including IBM’s Big Blue, a super computer that was claimed impossible to beat by humans given it could calculate far beyond the capabilities of the mere human brain. If anyone knows geeks, it is me. The chess matches used to draw out for hours and the boredom could be best described as a mass communal sedative.

The team:

Coming from Argyle High School in North Vancouver, BC, Christopher Nickull (a.k.a. “Conker”) and I set out with two of his team mates at 06:00 Thursday to catch a flight to the event. Players often use pseudonyms representing their alternate personalities. Conker, is well known amongst many in the Halo 2 competitive landscape. Adam, aka "Nutraways", is also a student an North Vancouver’s Argyle School however the twosome met their third and fourth team mates online. Halo 2 is played via the internet so players from multiple countries can compete and even talk to each other during their games. Niko, aka “Blakout” hails from Whiterock, British Columbia while their fourth team member from Utah is somewhat of an international halo 2 rock star. His handle, “Toxic Euphoria” or often just “toxic”, scares competitors and intrigues spectators alike. He has the elitist distinction of finding an “exploit”, a loophole in the Halo 2 code base that allows a player to manipulate the game to their advantage. He also has a very unique style of playing. Together, the foursome is known as the team Best Yet or BY for short. In Halo 2, when a player is shot, the screen says “you have been shot by ” so when they make the kill, the statement is “you have been shot by by “ (as in “bye-bye”). Yes there is a lot of humor in the video gaming world but you have to be quick to catch most of it as the players have developed a language to themselves with terms such as “noobs” meaning “newbies” or those who are new to the game.

I’ve forgot what it is like to be on a road trip with a group of teeneagers but the fun starts with the hotel room which resembles a war zone within minutes. Shown below is the AM shot with Toxic and Blakout ready to get some breakfast while Nutraways can’t be coaxed out of the sofa bed, despite the danger imposed by a potential avalanche of hotel room furniture poised just above his head, ready to fall at the slightest tremor.



While some consider video games antisocial, the competition aspect is anything but. It is a very social event and has hints of all aspects of society. Some teams appear like tough street gangs out of some cheesy Hollywood movie, the only difference is that they are engaged in a high-stress competition and test of strategy and intelligence rather than fighting each other on the streets with chains and knives. Gender, race, religion, age, social status, career and nationality are completely meaningless here. Everyone is equal and has no advantage. I watch Friday night as a twelve year old kid destroys his opponents in one heat which include a twenty something girl wearing a party dress, some motley teenagers, a 30 year old computer nerd type and some guy who looks like an African American football linebacker, weighing in at al least 280 pounds of muscle. It turns out he actually was a football player. There are also a lot of female players who seem to hold their own against the guys. The girl poised below is one of many who ruined the evening for the young men in the crowd by outscoring them.



The weekend unfolds in three separate days for each of the MLG events. This is the first of the year so there are a few bugs in the system but generally everything flows on schedule with plenty of referees and officials on hand to keep the crowds and players in hand (yes – there are actually many who come just to watch). MLG is a top notch event provider and has left nothing to chance.

Early Friday night, players huddle in small groups, often representing their own teams plus a few friends. Each team for the MLG Halo 2 tournament is comprised of four members. Tonight’s action is a free for all though where team members may actually face each other during the contests. The team aspects of Halo 2 is an important component of the competition. The names taken by some of the players are noteworthy. Players take on names such as “Toxic”, “Bag of Sand”, “deathstar” and any other variation you can conjure up in your mind. It is truly funny to meet a player with a name like “Steel Robot Killer” to find a meek mannered 16 year with a 89 pound frame. Nevertheless, for his sake and societies in general, all of these kids are taking part in a kick-ass and very cool competition. Given the alternatives, this is a very cool scene. Imagination plays a big part too. Some of the players names on the brackets are noteworthy.




As I write this article, I’m sitting beside Joel Brill (aka PBJB), a contestant in the Halo 2 competition. He traveled from Boynton Beach, Florida with teammate Dark 99 to meet Chipmonk and Unger, completing the foursome of the team. PBJB and Dark99 met at school while the other members of their team were met online. Rather than being an antisocial aspect of video gaming, this competition is actually forming new friendships that would never have existed had it not been for the Major League Gaming. The members of the team are not overweight, chess club types. In fact, both PBJB and Dark 99 are more your typical skateboarder, snowboarder teenagers who take part in competition partially for the comradery but also for the challenge and social bonding. This story is far from typical with team members traveling from Europe and Asia to compete in what has become the Olympics of video gaming.

Friday night arrives and the first portion is the free for all (FFA). There are no teams in the FFA section and players gather in stations of 8 for 15-20 minute heats with the top four advancing to the next bracket until there are only 16 left. The final 16 play for the pro money on Sunday.

Prior to the start, the euphoria in the hall is unbelievable and approaches the energy apex of a rock concert just before an encore. This is the absolute opposite of anti-social. Friends who have met on line are meeting in person for the first time. New friendships are being formed and teams are working towards a common goal – a major portion of the $1,000,000 in prize money put up by a multitude of sponsors.



Vancouver based Team BY has mixed results in the FFA event. Only Conker gets into the top 64 seed (out of 1,200 contestants). Along the way he has to face countless others and keep reaching top four in each heat of 8. The concentration is astounding and unrelenting. A moment’s lapse in concentration can result in a loss of points and slipping several positions down. Conker has a medium following and each time he plays a group of fans compete for the best view behind him to watch his technique and strategy. Below, a younger player in a white t-Shirt leans on the back of Conker’s (in black t-Shirt) chair while he narrates to his friend what he witnesses. Sharing of techniques is part of the social aspect of the game. Noteworthy is the fact that the 12 year old with huge spectacles is still in the top 16 that will face off on Sunday for the pro money.



Below, North Vancouver’s Adam (aka “Nutraways”) takes a breather to smile for the camera on his way to first round victory in the FFA portion on Friday night.



Another rather unique aspect I find of this environment is the knowledge of health and vitamins possessed by many of the players. Most of them know about the effects of vitamin B complexes, with A and D to help absorption. I would wager that most of the kids here know more about taking the right combination of vitamins to heighten mental alertness than the average college major. Of course, Adam's is sponsored by Nutraway's, a Vancouver vitamin company that has a lot of influence in this area.

Friday was good, but tomorrow is their main event - the Halo 2 4X4 compeition.

Monday, April 02, 2007

Web 2.0 Architectural Patterns and Model Presentation

The slides from O'Reilly eTech are now available here. Feel free to poach and use at your leisure.

Synopsis:

There is no definition of Web 2.0 nor will there ever be a formal architecture. From Tim O'Reilly's example however, we can distill out patterns. If we take the list and compare Ofoto to Flickr, Akamai to BitTorrent, etc., the abstract patterns tell us what is going on for each example. These patterns can then be studied to build an abstract model for the Web 2.0. The abstract model in the presentations extends the basic client server model of the first internet generation to be able to facilitate the patterns of interaction people are building now. The new model extends the client to include "users" to enable patterns such as Participation-Collaboration and Collaborative Tagging. The lower part of the server sees SOA replacing the concept of a server given it encompasses an entire paradigm for software architecture and extends the concept into the enterprise (Capabilities) to fulfill other patterns like delivering a Rich User Experience or Software as a Service. The middle also encompasses some concepts that are important for developers and architects alike to consider such as consistent event and object models (necessary to build Mashups and the synchronized web patterns.

The first set of draft architectural and design patterns distilled from Tim's examples are listed below. Some of these are explained in the slide deck. The rest will be refined in a book I am working on with other authors.

Service Oriented Architecture
Software as a Service pattern (SaaS)
Participation-Collaboration Pattern
Asynchronous particle update (AJAX)
The Mashup Pattern
Rich User Experience
The Synchronized Web
Collaborative Tagging Systems (Folksonomy)
Declarative Living and Tag Gardening
Semantic Web Grounding Pattern
Persistent Rights Management
Adaptive Software
Fine grained content accessibility

Slides, Code Samples from 3 hour intro to Flex and Apollo

I had promised to upload the slides from Massive 2007 as well as the code examples used during the presentation. The presentation is 3 hours long and goes from Hello World to building an Apollo Browser in 5 lines of code. The slides are here and the Flex and Apollo Code Samples are on this PDF.

Please feel free to use the slide deck to help spread the good word. Please make sure to attribute where possible if you change the template.

Monday, March 26, 2007

Wait list for Flex, Apollo at Massive 2007

I just heard from Lindsay Smith today that the 3 hour course I am teaching on Wed. March 28 at Massive has not only sold out with 140 registered attendees, but there are over 350 on the wait list. 360Flex also sold out as have other events where Apollo and Flex are happening.

This trend is worth noting. At the recent Vancouver Flash Users Group meeting I realized there aren't really any unemployed Flash gurus in the area. There are tons of jobs being posted on various sites for Flex and I am sure Apollo is going to be the same.

The course outline is as follows:

  • Module 1: Introduction to Flex and Flex Builder
    • Simple application using online compiler (Build Flex Application)
  • Module 2: Installing Flex Builder
    • Hands on Walk through
  • Module 3: First Hands on Experience
    • HelloWorld (Build hands on application)
  • Module 4: Flex in more depth
    • Flash Chart from Data binding (S51: Build hands on application)
    • Flex Slider Control data capture (S53: Build hands on application)
    • Data binding (S55: Build hands on application)
    • Using the tag to code Actionscript behaviors (S57: Build hands on application)
  • Module 5: Working with XML using Flex Builder
  • Module 6: Flex and AJAX
  • Module 7: Apollo
    • Hands on (Build Stand alone Browser)
I'll post the modules here is there is interest.

/d

Friday, March 23, 2007

Adobe SOA platform launches Data Services

Architects, Flex/Apollo/LiveCycle/Java Developers take note. Adobe® LiveCycle Data Services 2.5 has just been released on Adobe labs for Windows, Linux, Unix as well as a cross platform java installer. Adobe has been a pragmatic adopter of SOA for years and this release shows engineering excellence and forethought. LDS is the next generation of Flex Data Services.

The name change reflects an important expansion in the use of these valuable services. In addition to serving the needs of both Flex and Ajax developers, LiveCycle Data Services will provide enhanced integration with Adobe’s other LiveCycle server products for document and process management, enabling business to create new ways to engage and reach customers.

Most people might think of SOA as only request-response. This is not the only pattern for service interaction within SOA and there are many others such as subscribe-push, multicast, probe and match etc. LiveCycle Data Services is a J2EE server that fulfills many

The feature set of LiveCycle Data Services 2.5 includes:

  • A new Flex SDK (which will be released currently with Data Services 2.5), which includes updates the client-side Web Services library.
  • Server-side PDF generation capabilities for RIA applications generates properly formatted PDF documents that include graphical assets from Flex applications, such as graphs and charts.
  • Runtime configuration of data destinations in Data Services eliminates the need for a compile-time dependency between clients and the Data Services server configuration.
  • Support for WSRP portal deployment of Flex applications, which makes it easy for developers to deploy a Flex application as a portlet in a portal server without having to do any portal specific programming.
  • Per Client Messaging quality of service (QoS) allowing Flex clients to select custom data access policies for real- time data.
  • Ajax Data Services, enabling Ajax applications to take advantage of the data management and messaging capabilities available in Data Services.
  • The Flex-Ajax Bridge (FABridge), which is a small library that can be inserted into a Flex application, a Flex component, or even an empty SWF file to expose it to scripting in the browser without any additional coding.
  • Improved off-line message queuing, supporting future Apollo development, which allows Flex applications using Data Services to queue outbound messages locally when the client is offline and manage exactly what is sent to the server upon reconnect.
  • Groundwork for future Apollo application support, including a local data cache that enables developers to cache client data requests and data changes to the local file system for later retrieval when an application resumes.
  • RTMP tunneling (RTMPT) that allows the use of the RTMP protocol in Data Service applications to traverse firewalls and proxies that currently prevent direct RTMP client connections to the server.
  • A new SQL adaptor, which dramatically simplifies the development of applications using Data Management Services without having to write any server-side Java code.
  • A new JSP Tag Library that enables MXML and ActionScript code to be embedded into a JSP page providing an easier entry for J2EE developers to Flex programming.
  • Several important enhancements to core Data Services performance and scalability.

LiveCycle Data Services 2.5 includes the following Web Application Archive (WAR) files:

  • flex.war - The primary Flex WAR file: use this as a starting point for building your LiveCycle Data Services application.
  • samples.war - Sample Flex applications.
  • inventory.war - Data Management Service - Ajax sample application
  • flex-admin.war - Simple administration and monitoring application.

Monday, March 19, 2007

Apollo Alpha available on Adobe Labs!

Get it here:

http://labs.adobe.com/technologies/apollo/

For those of you who haen't heard about Apollo, you will. Apollo (code name) is a cross-operating system runtime that allows developers to build and deploy rich Internet applications (RIAs) to the desktop, outside the browser. The technologies that Apollo currently works with are Flash, Flex, HTML, JavaScript, Ajax.

It brings the benefits of RIA/RUE web apps (network and user connectivity, rich media content, ease of development, and broad reach) – with the strengths of desktop applications – ( functionality w/o internet connection, application interactions, local resource access, personal settings, powerful functionality, and rich interactive experiences.





Thursday, March 15, 2007

Apollo Browser in five lines of code

In yesterday's post about what Apollo is, a comment appeared to challenge the notion of being able to implement a simple browser in 5 lines of code. Rather than rebuke it on the comments list, I decided to make this post and place the code here to show how easy it is. This is as simple as it gets, no back buttons, SSL, bookmarks etc, but it is a browser that you can type a URL into and it will navigate to the URL and display the HTML properly formatted.

The sample Apollo MXML code:

<?xml version="1.0" encoding="utf-8"?>

<!--line one. I am not goign to count the XML PI-->
<mx:ApolloApplication mx="http://www.adobe.com/2006/mxml" layout="vertical" cornerRadius="12">

<!-- line two -->
<mx:Text text="Enter URL and hit enter" fontFamily="Arial" fontSize="16" fontWeight="bold" />

<!-- line three-->
<mx:TextInput id="urlTxt" width="100%" enter="html.location=urlTxt.text;" text="http://www.adobe.com" />

<!--line four -->
<mx:HTML id="html" width="100%" height="100%" location="http://www.adobe.com">

<!--line five. Not really a line of code, just closing the root tag -->
</mx:HTML>

</mx:ApolloApplication>


Here is the screenshot of the Apollo browser application:

Wednesday, March 14, 2007

What is Apollo (Really)? Will it replace browsers?

The evangelist team at Adobe has been busy publicly discussing Apollo, the new flash and MXML based programming platform. During the time we have evangelized, there have been some mis-perceptions. Other than recognizing being an evangelist is sometimes more subtle than not, I want to discuss a few of the issues in this blog over the coming months.

For those who don’t know, Apollo is an internal code name for a stand alone application development platform that uses Flash and HTML to build interfaces. Unlike Flex Applications, Apollo applications exist as stand alone apps and are not bound to the browser. The Flash runtime is part of a native cross platform runtime environment that allows the application access to several core libraries and virtual machines. Apollo applications are cross platform and can utilize local resources to a greater degree than Flex based applications, yet less than full blown stand alone applications written in conventional languages that are targeted for single operating systems.

At a recent event, after a lengthy discussion and demonstration of Apollo’s functionality, a question came from the audience.

“Why do you want to replace the browser?”
The shocked silence that ensued made me personally realize that we have not clearly communicated the value proposition of Apollo. It is simply not true that we want Apollo want to replace the browser (even though you can build a simple browser in as few as 5 lines of code). The proposition of Apollo goes far beyond that capability. So what is Apollo? In Mike Chambers book he describes it with the following sentences:

“Apollo is a new cross-platform desktop runtime … that allows web developers to use web technologies to build and deploy Rich Internet Applications … to the desktop.”

Apollo is a middle ground, hybrid approach when a browser based application does not quite fulfill the requirements yet building a full blown, stand alone application might be too overkill, slow or complex. It is important to note that Apollo applications do have a very full featured set of libraries to build very complex applications. In no way should anyone consider an Apollo application as a feeble, halfway attempt at application development. Quite the opposite is true. Some of the early applications we have seen on the internal beta mimic the appearance and functionality of Apples’ Photobooth, standalone Text Editors with HTML capabilities, A Universal Business Language (UBL) editor, MP3 music players that can read your local iTunes library file, import it and use the ID3 metadata tags to search and retrieve photos from Flickr tagged with the same terms.

So why is this important? Why would you want to do this? Browsers are general purpose work horses and will not go away anytime soon but there are instances where browsers start to not fit the requirements. Browsers are best suited for online access to data. Sometimes, data needs to be worked with offline and later synchronized with multiple other data models. Browsers were not built to fulfill this task. Like wise, browsers are best suited to natively work with remote resources. The virtual machines for scripting languages cannot interoperate with local resources in a way native applications can without explicit permission being granted. Even then, most virtual machines have severe security limitations (* generally a good thing). Apollo transcends some of the restrictions of browsers.

Like browsers, Apollo also is not out to kill native applications, but can be used to rapidly (I meant very rapidly) prototype or build applications that can do many common tasks. Skinning the applications with Flash also allows a very rich user interface to be built that can transcend the typical opaque rectangular box approach of conventional applications.

Hello World – it’s me, Apollo!

Apollo applications can be built using certain builds of Flex Builder, but it is important to note that you can also use a plain text editor and the free compiler from Adobe labs (when available). To use Flex Builder, you benefit from first going to download and install the Apollo Extensions first (watch this space for the public beta announcement). You simply declare the root element as . The following code is an Apollo application that uses HTML code. The formatting is bad to fit the code into the columns available.



This yields a very simple application that looks like this:



Note that the cache button does not yet do anything. This was written as a prototype based on a request from Redmonk's James Governor. It is risky putting this up as it may trigger his memory and he'll leave a comment asking me to complete it soon. Duck!

Here is another example of an Apollo Application that traces a slider value and binds the data value to another component. It also changes the test on the label from “Hello Nobody” to “Hello World” when the slider value changes to be above “3”.



The Apollo Application looks like this:




Suffice to say, Apollo fills an important niche (pronounced “neesh”, not “nitch”. The latter really bugs me and most other Canadians). It’s going to be out there for you to play with soon so please take a look at it and see what you can do.

And all together, let’s say it one more time:

“Apollo is not out to kill Browsers”

Cheers!

Friday, March 09, 2007

Bush ignoring neighbours (note spelling)? Never!

I read today an article where George W. Bush denies he ignores neighbours.

In his speech, he stated:

"That may be what people say but it's certainly not what the facts bear out," Bush said. "We care about our neighborhood a lot."

Hmm. okay. I am not anti-Bush. I do think there are about 265 million Americans who could do a better job of public speaking and foreign policy than he does, but in general, he's just a guy trying to do his job. But....

He will never convince Canadians that he is not ignoring his neighbours. As reported on wikipedia:

"In a segment on the television series This Hour Has 22 Minutes during the 2000 American election, Rick Mercer convinced then-Governor of Texas George W. Bush that Canada's Prime Minister, Jean Chrétien, was named Jean Poutine and that he was supporting Bush's candidacy. A few years later when Bush made his first official visit to Canada, he joked during a speech, "There's a prominent citizen who endorsed me in the 2000 election, and I wanted a chance to finally thank him for that endorsement. I was hoping to meet Jean Poutine." The remark was met with laughter and applause. [1]"

Of course the problem is now past now that we have a newly elected new prime minister Steven Carper.

Thursday, March 01, 2007

Adobe committed to being open, web 2.0 company?

The answer has to be "yes". During the last six months we have seen PDF going to ISO, the code donation to the Tamarin project, the launch of Flex 2.0, the pre-beta Apollo program which allows developers to build really cool applications, Photoshop becoming Software as a Service (PDF has been for years) and more. In the near future Apollo is going to shake up the entire developer world (if you don't believe me, take a look at this application and imagine people can build this as a standalone application complete with live feeds to deliver ads, extra info etc). The Adobe Cycling Tour Tracker is by far the coolest web application I have ever seen in my life. I would rather watch this than TV. The amount of live information coming to the desktop is unparalleled. TV stations - take note. This is what you have to compete with in the future.

When LiveCycle ES launches, developers and architects alike will be able to see how advanced Adobe is as an enterprise software vendor. The LiveCycle ES platform is based on the core tenets of the OASIS Reference Model for SOA.

If you want to find out more, you don't want to miss MAX 2007. This year MAX will be held in three locations. North America (the main MAX) will be September 30-October 3, 2007 in Chicago, IL; MAX Europe: October 2007, Barcelona, Spain and MAX Japan: November 2007, Japan.

Things we can do better? Tell us. We're listening.

Sunday, February 25, 2007

Mix2r.com collaborative music portal growing!

In November, a new site was launched that allows musicians and other electronic artists to collaborate to create mixes, music and other audio projects via the internet. Recording an album used to involve recording tracks one at a time in separate rooms and controlling the creation via a central control room. Mix2r.com just overlays that pattern on the net to allow people to contribute to your mixes and music from all around the world.


Mix2r.fm, mix share collaborate, free membership


I have been using it to work on other people's music and have contributed to projects in the UK and USA. People from New Zealand have sent in tracks on my audio projects.

Even if you are not a musician, there are now hundreds of free MP3 works from various genres to legally download and use. There are desktop widgets for Mac users to get the latest audio files and RSS feeds you can use to keep up to date on the goings on. To listen to the latest music from Mix2r.com, go to this link http://mix2r.fm/recent/audio.


To be honest, we're still wondering what this might eventually become or where it will all lead. As a musician, I have been hopeful that a new model for the music industry will evolve. I want to see a really cool project start on the site to make a CD with ten songs on it, with each song having one track from one musician in every country in the world on it. That would be a really cool social project. Please help spread the word and maybe it will happen.

Oh yeah - its completely free and free of spam, spyware etc.

Wednesday, February 21, 2007

Massive 2007 - Free 3 hour intro to Flex and Apollo

My favorite tech show is just around the corner. Massive 2007, derived from the Techvibes Massive show, will attract well over 5000 visitors in a one day (March 28) frenzy of technology. What makes this show unique is that it caters and appeals to the non-technical members
of society as well as the hard core cutting edge techie types. It is also a show that emphasizes the social aspects of technology and has a very hip and upwardly mobile crowd.

I have been asked this year to teach a 3 hour tutorial on Flex and Apollo which will take place in the AM. Space is almost completely sold out so if you really want a seat, please register now. This is a very rare chance to get indoctrinated into the Flex and Apollo technology.

Friday, February 16, 2007

Adobe User Group Master List

I found this resource today for locating Adobe User groups on a worldwide basis:

http://www.adobe.com/cfusion/usergroups/

If there are user groups that are not yet listed, please list them here. This is a great resource for P2P learning.

Wednesday, February 07, 2007

Tide turns against Microsoft's XML Office format

There seems to be no shortage of technical complaints against Microsoft's Office XML format. Most of the list items are checklist items for standards bodies such as using existing standards where possible. There are some that are also what I would categorize as more of opinions rather than technical facts (such as the complaints against the use of confusing element names). I can understand how Microsoft word might have carried with it certain legacy functions that might even pre-date the XML specification currently under review within ECMA and ISO, but once a standard gets into the public stewardship, all is put on the table and it may be time to correct some of these items. Then again, if you fixed all of those items, why not just use the OASIS Open Document Format (ODF) as it is today in version 1.1? Why not harmonize the two standards?