Blog Apps About

Currently writing about GWT, Ajax, Leopard, iPhone Development, and Java.

iPhone vs Android: A Matter of Touch

Thursday, March 13, 2008
After last week's press conference, my friend Ed Burnette compared the iPhone SDK to Google's Android SDK on his ZDNet blog. It's a great rundown of the platforms, and describes the dev kit differences (developer tools, application life cycle, devices) and the many similarities (location based services, acceleromater, OpenGL ES, SQLite).

From the software developer's perspective, Android openness is appealing: less restrictions on applications, easier deployment to devices, and a lower barrier to entry (any OS, no $99). But Ed points out two advantages for iPhone that I think will end up being Apple's aces in the hole:
  1. Multi-touch: The multi-touch experience is the iPhone's killer app, and Android doesn't have it.
  2. Consistent hardware: Android devices will come with differing screen sizes, processing power, and input devices. This will lead to cheaper phones, but an inferior user experience: applications designed to accommodate never excel. Desktop apps have room for error (what's 1024 pixels among friends?), but mobile apps have to shine or they stay in the pocket. With the iPhone, developers can target their application to one specific platform and fine-tune a pixel-perfect user interface.
I might be wrong, and the PC model might win out again. Google has put forth an impressive SDK, and it's somewhat of a foolish exercise to judge usability without actually using a device. But from my perspective, the entire iPhone experience will be hard to beat.

The second half of 2008 will be an exciting time in the mobile space: Android devices will be on the market, iPhone applications will be in AppStore, and hopefully a 3G iPhone will be flying off the shelves. I can't wait to see what developers start releasing and, more importantly, what consumers start using.

Labels: , , ,

iPhone Software Development: No Anger Here

Monday, March 10, 2008
I'd like to follow up on my initial impressions of the iPhone SDK. Overall, I think Apple did a great job with the SDK, and released a powerful, comprehensive environment for developers. I brought up a few minor criticisms in my post, but concluded with:
"Setting aside these concerns, I'm very impressed by the iPhone SDK. It builds on the strong foundation of OS X, while integrating with the multi-touch and mobile capabilities of the iPhone. You can tell a great deal of work went into preserving the Mac experience on a device lacking in memory & computing horsepower."
The Internet being the Internet, I shouldn't have been surprised to see my post quoted in an article by Alexander Wolfe of InformationWeek entitled "iPhone SDK Developers Angry at Apple's Tight Control." A few points of clarification:
  • I'm not angry at Apple or the SDK. Thrilled, actually. I can't wait to release native applications for the iPhone and iPod touch.
  • Access to calendar appointments & media would be nice, and I hope it's added in a future version. (As Fraser Speirs notes, this is the beta SDK.) After perusing the technical docs, I thought it was a noticable omission and worth pointing out. It probably wasn't worth the "glaring" adjective, but I surely wasn't suggesting Apple keeps all the good stuff to itself.
  • Access to the phone & SMS functionality would be great, but is problematic from a security/carrier standpoint. I made that point in my post, and Wolfe included it. I was actually impressed to hear Steve Jobs say that a 3rd party VOIP app would be allowed over WiFi.
Creating a developer platform and ecosystem is hard, especially when you throw in security constraints and the conflicting interests of the mobile phone market. Apple had to make trade-offs, and I think they made the right ones, but it's worthwhile to document and discuss them. In my opinion, the most interesting restriction is that 3rd party applications can't register themselves as the default providers for URLs that conflict with Apple applications (like Safari or Mail). I can see the reasoning: malicious applications would love to hijack all HREF-handling, but there's a legitimate business case as well (e.g. Opera or Thunderbird). These trade-offs should be discussed, and I was hoping to do so with some nuance. But then again, this is the Internet...

Now, back to happily writing code with the iPhone SDK...

Labels: , , , ,

Visiting Aspen: A Trip Through the iPhone SDK

Saturday, March 08, 2008

The real iPhone SDK has arrived. While I enjoyed developing iPhone web apps (and have another one in the works), software developers like myself were waiting for something beefier, and Apple delivered a heifer. The previous web-only "human interface guidelines" weighed in at a measy 54 pages. The new guidelines are double that size, and serve as an addendum to the 200 page iPhone OS Programming Guide. I've been plowing through the docs and tools to learn about the new SDK and v1.2 of the iPhone software, codenamed Aspen. It's been a fun trip.

The Good
Apple delivered an architecture familiar to any OS X developer: Objective-C, Cocoa, and lots of Core* frameworks. Built on top of a Mach kernel, the iPhone OS contains all the basics like threading, networking, and file-system access. The gaming industry will be happy with support for OpenGL ES (embedded systems), 3D audio, and access to the accelerometer. For business software developers, the exciting technologies are SQLite (a lightweight, embedded database that is taking over the world) and XML parsing via libXML2 and libxslt.

But in my mind, the real All-Stars of the SDK are:
  • Full access to multi-touch events via the Cocoa touch framework
  • Location-based services (triangulation and bonjour)
  • System-wide access to address book contacts and photo albums
These features show off the power of a mobile device, while providing consistent, unified services to make it a mobile platform.

The Bad
The biggest letdown is that Apple didn't expand this mobile platform far enough. While the shared address book contacts and photo albums are great, there are a few glaring things that developers can't access:
  • appointments from the Calendar app
  • music or videos from the iPod app
  • phone or SMS functionality
Calendar integration seems like a no-brainer. There should be a way to schedule and share appointments between applications. iPod media support is probably restricted due to DRM issues. The iPhone supports video and audio playback, but only from remote servers or local files within the app's sandbox. Phone and SMS restrictions are likely due to the carriers & security concerns. Phone calls can be initiated via "tel:" links, but this is the same, limited action currently available to web pages: the phone app launches and prompts the user to confirm the call. There's no way to integrate with voicemail, access call history, or initiate a text message. Given the potential for abuse, this is probably a wise restriction. However, when Apple brags that 3rd party developers use the same tools and access the same APIs as engineers in Cupertino, this is only partially true. Indy developers writing the next great Weather app are on a level playing field, but there's no way to design the next great iPod interface* or replace the telephony apps.

For an entirely different reason, there's no way to compete with Apple's iPhone Mail app. Applications can register custom URLs to launch their application. For example, my Flickr viewing app could register "flickr". If a user clicked on the URL "flickr:user123" from another app, my Flickr app would launch and display photos from user123. According to the iPhone OS Programming Guide, URL conflicts between 3rd party apps are undefined: so if two apps register "flickr", there's no guarantee who wins. However, if a 3rd party application tries to register a URL identical to one defined by Apple (like "mail" or "tel"), the Apple-provided application always wins. Here's hoping the rumors are right about Apple improving the Mail app, since there's no getting rid of it.

* Technically you could design a new iPod app with all the media enclosed in its sandbox, but without iTunes integration you'd be DOA.

The Controversial
The iPhone SDK's first big, public firestorm arose over AppStore and Apple's cut. Native iPhone applications can only be distributed by Apple, and they take 30% of the revenue for their efforts. I'm reserving judgment on this one: when John Siracusa and John Carmack take opposing sides of an issue, I'll wait on the sidelines to see how it plays out.

However, my immediate concern with AppStore is not with the 30% cut, but with the iPhone Developer Program. In order to deploy and test an application on an iPhone, you have to become a member of the iPhone Developer Program and pay $99. Like the thousands of developers hammering the ADC site on Thursday, I signed up for the program and gladly offered to pay. But alas, I just got a message thanking me for my application and promising to get back to me in the future. The fine print says the program "will initially be available to a limited number of developers in the U.S. and will expand to other countries in the coming months." Until my membership gets approved, I can only test my iPhone applications via the software emulator, not on my actual iPhone. I'm sure they're deluged with applications and I don't mind waiting in line with everyone else, but I hope it gets processed in weeks, not months. Please Apple, take my money! (They're usually so good at that...)

As we get closer to the official SDK launch in June, it will be interesting to see how long it takes from developer submission to AppStore appearance. What will the screening and approval process be like? When Microsoft started the XBox Arcade service, they were deluged with ideas and submissions from independent developers. It took them months to work through the backlog, with the bigger companies usually getting preferred treatment. I anticipate a similar deluge from indy iPhone developers, and I hope Apple has the resources to handle it when June rolls around. If not, expect another round of controversy

The Apple Polish
Setting aside these concerns, I'm very impressed by the iPhone SDK. It builds on the strong foundation of OS X, while integrating with the multi-touch and mobile capabilities of the iPhone. You can tell a great deal of work went into preserving the Mac experience on a device lacking in memory & computing horsepower.

My favorite nugget is that developers can include an application launch image in their distribution. Quoting from the programming guide, this image "should closely resemble the application’s initial user interface; the system displays the launch image before an application is ready to display its user interface, giving the impression of a quick launch." Even when it's computationally impossible, Apple found a way to make apps feel snappy.

Labels: , , , ,

Announcing iDoc: Javadoc for iPhone

Tuesday, January 29, 2008

Got an iPhone? View iDoc demo of the OpenJDK Javadoc
Want to make iPhone Javadoc? Download the iDoc source code

Every Java developer loves Javadoc. Every software developer* loves the iPhone. iDoc brings these two worlds together and generates iPhone-friendly Javadoc for your source code. Now you can browse API documentation when you want it, where you want it - all in the palm of your hand.

The cynical set might question the need for iDoc. After all, isn't Javadoc only useful while programming? And doesn't all programming happen at an eight-core workstation with a high-speed Internet connection and two 30" monitors? Surely Javadoc is best viewed when tethered to a desk.

Sadly, that view (shared by 100% of my coworkers) is mistaken, as evidenced by the following...

Top 10 Uses for iPhone Javadoc
10. Settle an API argument at the Google cafe
9. Give the observer in your pair programming team something to do
8. Study open source on the subway
7. Justify the iPhone's business use to the your IT department
6. Sound smart during an interview (requires hidden iPhone & discreet fingers)
5. Impress Blackberry users
4. View Tomcat docs while flying an F-14 Tomcat (not recommended)
3. Cheat on the Sun Java Certification test
2. Write off your iPhone in next year's taxes
1. You're writing an article about iPhone Web Development and need to create an iPhone application that appeals to developerWorks' readers

That last one happens to be reason for writing iDoc. My article, "Develop iPhone Web Applications with Eclipse", describes the creation of iDoc and covers best practices for iPhone web development. While designing the iDoc user interface, I use two slick open source tools: Aptana's iPhone Development plug-in and Joe Hewitt's iUi framework. If you're looking to create an iPhone-specific web site, I highly recommend you check them out. The article was published today on IBM developerWorks and can be found in the Open Source and Java Technology zones.

I generated iPhone-specific Java 7 Javadoc using OpenJDK and posted it online as the iDoc demo. If my Top 10 list won you over and you want to generate Javadoc for your own code base, download the v0.1 iDoc source code. I'd love to hear any feedback on the project or article. Right now the generator is very simple: it doesn't resolve links within comments or display full signatures for Java 5 generics. (So maybe it won't help you cheat on a Sun Java Certification test after all...)

* every software developer who doesn't work for Microsoft or Nokia

Labels: , , ,

Dr. Dobb's Article: Hands-On Google Web Toolkit

Monday, December 17, 2007
"Hands-On Google Web Toolkit," an article I co-authored with Ed Burnette, is in this month's issue of Dr. Dobb's Journal. The article details the creation of GWTFlow, an Ajax Cover Flow Mash-up. To view your Flickr photos using this application, visit the GWTFlow Project Page.

Labels: , , ,

GWT Conference Wrap-up

Sunday, December 16, 2007
I had a great time at the Voices That Matter: Google Web Toolkit conference. Many thanks to Barbara Gavin at Pearson for organizing the event.

The highlight of the week was moderating Wednesday afternoon's GWT Tools Panel. We had a great group of panelists on stage to discuss widget libraries, components, and IDE plugins (pretty much anything to make a GWT developers' life easier):We had great questions from the audience, and the panelists got to share their passion for technology and helping developers.

Selected quotes from the week's sessions:
  • "Fast is better than slow is an understatement when switching costs are low." Bruce Johnson, A Business Case for GWT
  • "It's not that the dog talks beautifully, it's that the dog talks!" Josh Bloch on Ajax
  • "Techniques you use to build a hut are not the same techniques you use to build a skyscraper. If you try to turn a hut into a skyscraper, it will probably fall down." Josh Bloch on the benefits of static typing and GWT
  • "Turn on GZIP compression - gPokr went from 250kb to 70kb." Ryan Dewsbury, Deployment Best Practices
  • "HTTP requests are the slowest thing you'll ever do in a browser." Joel Webber, GWT Performance
  • "Fastest code is that which never executes." Joel Webber, GWT Performance
  • "Graphic design derives from use, not from making things look pretty." Kelly Norton, GWT Usability
  • "Keep the user interface stable. If it's moving around, that's bad." Kelly Norton, GWT Usability
  • "This is Ajax Baby!" David Geary, GWT Cool & Useful Stuff
  • "Deferred Binding allows resources to be baked into crunched-down, streamlined versions." Ray Cromwell, Deferred Binding
  • "GWT libraries are value-add, not magic." Bruce Johnson, A Tour of GWT Libraries
  • "The optimization is not pre-mature if it's about to affect hundreds of thousands of people." Joel Webber, Best Practices for Building Libraries
  • "Design to real use cases, not someone's dreamscape." Kelly Norton, Best Practices for Building Libraries
As others have mentioned, it was amazing to see the applications created in the last year based on GWT. The technology is really moving the bar for what's possible in a web application. I can't imagine what they'll be demoing next year...

Labels: , ,

GWT Leopard Fixed

Wednesday, November 07, 2007
Google Web Toolkit now works on Mac OS 10.5. Google's team posted a link to the unofficial test build of GWT 1.4.61 in the issue tracker (comment #46):
http://code.google.com/p/google-web-toolkit/issues/detail?id=1792#c46

According to the post, this is not an official release and is still under testing, so report any problems to GWT Issue 1792. I've tested the patch on Leopard with the Hello World, Kitchen Sink, and my GWTFlow applications. Everything works great. I had no problems launching GWT applications via shell scripts or debugging them from Eclipse. Other users report similar successes with IntelliJ JetBrains and Cypal Studio.

If you're interested in the gory details of the GWT/Leopard incompatibilities, view the history in the issue notes. The first two problems stemmed from changes in Apple's AWT subsystem initialization and Webkit's Carbon interop. The third problem was a ClassLoader bug in Leopard's 1.5 JVM when starting Java with -XstartOnFirstThread.

Many thanks to Google's Kelly Norton* and members of the GWT community for tracking this issue down.

*If you want to thank Kelly in person and hear some in-depth talks on GWT and Ajax, register for the upcoming Google Web Toolkit Conference (Dec 3-6, 2007 in San Francisco). Take $100 off registration with discount code GW-ADAM.

Labels: , , , ,

Google Web Toolkit Conference

Tuesday, November 06, 2007
Pearson's GWT Conference is coming in less than a month! Voices That Matter: Google Web Toolkit will take place December 3-6, 2007 at the Palace Hotel in San Francisco. There's a fantastic collection of speakers:
  • Bruce Johnson & Joel Webber: creators of GWT
  • David Geary: author of the upcoming book Google Web Toolkit Solutions: More Cool & Useful Stuff
  • Josh Bloch: Chief Java Architect at Google
  • Billy Hoffman: author of Ajax Security
  • Kelly Norton: Google engineer & MIT Media Lab alum
  • Ryan Dewsbury: creator of GPokr and author of the upcoming Google Web Toolkit Applications book
  • ..and many more
I'm excited to be moderating the Tools for GWT Panel. We're lining up some great participants to talk about the third party tools available for GWT. I'll be posting more information about the panel soon, but please let me know if there's something you're interested in.

Discount Code: Save $100!
Pearson was nice enough to provide me with a discount code to share with my readers. If you're interested in attending, please register with the following code to receive $100 off the conference price: GW-ADAM.

I look forward to meeting some of the great members of the GWT Community!

Labels: , ,

Leopard vs Vista: Duke University Sees More Interest in Mac OS 10.5 Upgrades

Monday, November 05, 2007
Today's Duke University Chronicle reports a problem with Mac OS 10.5 and the campus ePrint system. It's a pretty standard story: ePrint is incompatible with the new Mac operating system, and the Duke IT department has developed a workaround until the vendor can patch their software.

Interestingly, Duke faced the same ePrint incompatibility when Microsoft released Vista. This creates a controlled environment for gauging interest in Vista vs Leopard: if students are upgrading to a new OS, they'll ask for help getting ePrint to work. According to Duke OIT manager Kevin Davis, Leopard is winning:
"We're actually seeing more concerns about Leopard than we did from Vista, which I suspect is because there is much more active interest around Leopard than we saw with Vista's release."
Like other schools, Duke is seeing an increase in students choosing Macs. It's encouraging to see the enthusiasm from the student body in upgrading to Leopard. But if I was back in school and had to worry about term papers and tests, I'd probably wait until Winter Break to upgrade...

Labels: ,

DTrace: Why Java 6 on Leopard Matters

Saturday, November 03, 2007
In all the hullabaloo and developer discontent about Mac OS 10.5 shipping with Java 1.5, one question has been frequently overlooked: why do we need Java 6? Why is Java 1.6 so much better than Java 1.5?

The standard answer is performance. And it's true, Java 6 smokes Java 5, especially in GUI applications. But I spend most of my time in the server world, so the Java 6 performance improvements don't impact my life that much. There are some other nice-to-haves like XML binding, better exception logging, and improved web service support - but nothing on the scale of the Java 1.4->1.5 changes.

So why does Java 6 on Leopard Matter?

DTrace!
DTrace is a kernel debugging framework created by Sun. Apple built DTrace support into Leopard and created a Garageband-like GUI around it: Instruments, aka Xray. Apple is pretty proud of DTrace (5 of Leopard's 300 new features are DTrace related), and rightfully so. The developer community is also excited about it - in his seminal Mac OS 10.5 review, John Siracusa called it "indistinguishable from magic" and said DTrace "can't help but lead to better, faster, more stable applications."

For an in depth description of DTrace, I highly recommend you read Siracusa's review, Sun's page, or the developers' blogs. If you're short on time, here's the poor man's guide to DTrace:

How developers monitored & debugged applications before DTrace:


How developers monitor & debug applications after DTrace:


DTrace and Java 6
So what does DTrace have to do with Java? DTrace allows developers to get a top-to-bottom view of application activity and see what happens across the entire stack. You can look "beneath the JVM" and understand how your application interacts with the kernel. Very cool stuff.

Unfortunately, DTrace probes are only available in Java 6 - it can't be hooked up to Java 5, which ships with Leopard. So there's this incredibly useful tool that developers are dying to use for debugging Java applications. It's sitting there in the terminal, taunting techies. But everytime they type "dtrace -l", 21,527 probes scroll by without a hotspot in sight.

Performance & parity are all great reasons to want Java 6 on Leopard, but I'm looking forward to DTrace support.

Labels: , , ,

Java 6 on Leopard: Developer Discontent

Tuesday, October 30, 2007
In my Leopard First Impressions post, I mentioned that Mac OS X 10.5 ships with Java 5, not Java 6. Sun released Java 6 almost a year ago, so this is generating quite a bit of angst in the Java developer community. Is Apple abandoning Java? Is it time to install Ubuntu? Should Duke sell his iPods?

In short, no. The same thing happened in 2003: Apple shipped OS X Panther with the old version of Java (1.3). A few weeks later, however, Apple released the latest Java (1.4.1) via a software update. I'd expect the same thing to happen in this case. Eric Burke created a nice timeline showing the history of Mac OS X releases, and he agrees: it's not time to panic, Java 1.6 is coming.

From a stroll through the Java developer blogs and mailing lists, there are roughly three areas of contention:
1. Java versions on Mac are always late
2. Steve Jobs said nobody uses Java anymore
3. Apple is too secretive towards developers

All are legitimate and longstanding critiques, but none have stopped me from developing Java on a Mac these past few years (and enjoying it!). Yes, Apple takes some time to release the latest & greatest versions - but coming from the world of application servers & corporate software, I'm used to being a version or two behind. Developing on Windows or Linux would let me use Java 6 right now, but I'm not willing to put up with the trade-offs.

From a consumer standpoint, I still love the fact that a modern version of Java is shipped with every copy of OS X and integrated with the software update system. It might be a version or two behind, but it's still light years ahead of the Windows world - I shudder to think what JRE is on grandma's Acer.

The Steve Jobs comment was in the context of supporting Java applets on the iPhone. Applets have been losing to Flash and Ajax for years. Server-side Java development, however, is alive and thriving - and I'm pretty sure they're aware of that in Cupertino.

The last issue, secrecy, is par for course with Apple. I haven't been following the release of information too closely this time. In general, though, most communication is reserved for ADC members and covered under a strict NDA. Apple & Microsoft take different approaches with developers: Apple gives away XCode and charges for information, while Microsoft gives away information and charges for Visual Studio. (But really, who's keynote would you rather watch?)

Leopard is a great developer's environment right now. When Java 6 is released, it will get even better.

Labels: , ,

Leopard: First Impressions, Java, GWT

Saturday, October 27, 2007

I had the official Leopard release up & running on my laptop by 8:00pm EST. Short of an early FedEx delivery or mugging Walt Mossberg, I don' t think I could have done it much faster. Install was a breeze - click a few buttons, grab some dinner, and come back to a star-covered desktop.

Leopard First Impressions
Three features immediately help my productivity: Quick Look, Spaces, and Tabbed Terminal. I spent half an hour zipping through old files using Quick Look, finding documents and spreadsheets I'd completely forgotten about. Spaces & Tabbed Terminal are a developer's best friend (although I kept tripping the Spaces hot keys when RDCing to a Windows box). I'm still working on my optimal desktop configuration, with 2x2 currently in the lead.

Network sharing is great, except for a slight lag when populating the Shared list. This causes Places to appear in one spot then jump down 40 pixels. This happens in open & save dialogs, resulting in some whack-a-mole mouse action. (Anyone know how to move Places above Shared?)

Other personal highlights: faster Safari, faster Spotlight (hallelujah), unified UI. The animated iChat backgrounds will make for a nice demo to non-Mac friends. The transparent top bar is ridiculous and the tiny blue lights in the dock are hard to see, but I'll gladly put up with them to get all the other improvements.

Java on Leopard
Most of my third party tools worked like a charm: Eclipse, Smultron, Fugu, RDC. I had no problems upgrading XCode/Interface Builder. Unlike previous releases, the developer tool install does not include the Java Developer Documentation - you now have to download it separately. Log in to the ADC Member Site (free memberships work), click Downloads, then select Java for Mac OS X 10.5 Documentation. As reported earlier, Leopard ships with Java 5 (build 1.5.0_13-b05-237); hopefully they'll release Java 6 soon as a software update.

Google Web Toolkit on Leopard
Unfortunately, GWT on Leopard has some issues. If you start hosted mode, it either exits immediately or brings up the window then quickly crashes with this stack trace:

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at apple.awt.CGraphicsEnvironment.displayChanged(CGraphicsEnvironment.java:65)
at apple.awt.CToolkit$4.run(CToolkit.java:1259)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)...


This looks like a bug inside Apple's AWT implementation. Over at the GWT group, Issue 1792 is tracking this problem. I also filed a bug report to Apple with more details and an easy-to-reproduce example. If you need to develop using GWT, I suggest you hold off on upgrading to Leopard until this issue is resolved.

Update 11/6/07: GWT now works on Leopard! View my latest post for more information and links to a test build.

Shrook
My RSS reader is dead-on-arrival with Leopard. It immediately crashes whenever I start it. I haven't spent any time looking into this yet - maybe I'll migrate to Google Reader.

(Updated 10/28/07: Shrook is now compatible with Leopard!)

Labels: , , ,

Announcing GWTFlow: Ajax Cover Flow photo gallery

Wednesday, October 24, 2007

View GWTFlow version 0.1

GWTFlow is a mashup photo viewer I wrote using the Google Web Toolkit (GWT) for an upcoming Dr. Dobbs article. GWTFlow uses CoverFlow-like effects for navigating through photos. Currently you can view photos from Flickr, but it's designed to support other image services like Picasa Web Albums. The article, which I co-authored with Ed Burnette, gives a hands-on look at GWT development using GWTFlow as our sample application. It is scheduled to be published in the December issue of Dr. Dobbs Journal.

GWTFlow's user interface is inspired by the .Mac Web Gallery, which was redesigned in August 2007 to make extensive use of the Prototype & Script.aclo.us frameworks. Apple's web gallery has three viewing modes: grid, mosaic, and carousel. Grid and mosaic modes are great examples of Ajax applications (if slightly resource intensive). Unfortunately, the Cover Flow-like carousel mode initially used Flash instead of Ajax*. This led to some criticism from Ajaxian readers, wishing that Apple had done the entire application in Ajax. GWTFlow, I'm proud to say, is 100% Flash-free. : )

GWTFlow uses standard GWT widgets for positioning the images and callouts to Script.aculo.us for the effects. All of the photos are just Image objects placed on an AbsolutePanel, with a little math behind the scenes to determine positioning & simulate perspective. Albums & images are retrieved via RPC calls to a Java service, which then calls out to Flickr's public API using flickrj. GWT made development & debugging a breeze, with history & cross-browser support basically coming for free. Not being a JavaScript expert, this would have been a nightmare for me to build by hand and expect it to work on Internet Explorer, Firefox, and Safari.

As a 0.1 release, there are obviously some bugs. Performance is dependent on the client machine; everything runs smoothly on my workstation, but the effects are a little jumpy on my laptop and downright ugly on my iPhone (poor 620mhz ARM processor). Larger photo albums also degrade performance. There's a known bug where some Flickr accounts aren't getting loaded properly, possibly due to spaces in the username. In future versions, I'd like to add Picasa support, more options for navigating through photos (keyboard, slider, etc), and integration with Adam Tacy's gwt-fx effects library. I'd also like to angle the images & add reflections to make it more like Cover Flow, but I'm a little worried about hurting performance.

The latest GWTFlow version should always be available at http://www.adamhoughton.com/GWTFlow. Any feedback is appreciated! Once the Dr. Dobbs article is published, I'll post a link. I should have the complete source code online soon.

* Since I first starting working on GWTFlow, it looks like Apple rolled out a version of Carousel mode that uses Ajax instead of Flash. Good for them.

Labels: , ,

Leopard Up-To-Date Announced: Shouldn't have waited after all!

Tuesday, October 16, 2007
Apple announced Leopard this morning:
- Release: Friday, October 26, 2007 @ 6:00pm
- Up-To-Date program: $9.95 upgrade for Mac purchases as of October 1st.

My earlier post was a week too early on the announcement date, and a week too late on the up-to-date cut-off. The waters are safe now: now go buy a Mac this weekend! :)

Labels:

Don't Buy a Mac This Weekend

Thursday, October 04, 2007
Leopard, the next version of Mac OS X, is scheduled to be released this month - but, Apple hasn't formally announced a release date yet. This might seem unimportant, except that the announcement date has traditionally been the start date for the Mac OS Up-To-Date Program. This program lets you get a copy of the new OS for a small shipping/handling fee ($10-$20) on any new Mac purchases before the actual OS release date. If you buy a new Mac before the announcement (like this weekend), you get to pay full price for the upgrade.

Looking back at history...
Panther (10.3): Announced: Wednesday October 8, 2003 / Released: Friday October 24, 2003 @ 8:00pm
Up-To-Date: $19.95 for purchases after October 8

Tiger (10.4): Announced: Tuesday April 12, 2005 / Released: Friday April 29, 2005 @ 6:00pm
Up-To-Date: $9.95 for purchases after April 12

So looking forward, my prediction is:
Leopard (10.5): Announced: Tuesday, October 9, 2007 / Released: Friday, October 26, 2007 @ 6:00pm
Up-To-Date: $9.95 for purchases after October 9 (link not active yet - but it will be!)

And while we're having fun... : )
Tabby (10.6): Announced: Tuesday, April 5, 2010 / Released: Friday, April 23, 2010 @ 6:00pm
Up-To-Date: $29.95 for purchases after April 5 (my in-house economist says rampant inflation is coming...)

And while we're on the topic of Leopard, I am looking forward to the new features in Objective-C 2.0: garbage collection, properties, and x-ray debugging.

(Updated 10/4/07: forgot that Puma was 10.1's codename. Changed 10.6 to Tabby...)
(Updated 10/10/07: no announcement yet - looks like my prediction was off. Next Tuesday, perhaps? Keep an eye on the Apple PR RSS feed.)

Labels: ,

Blog - Apps - About Adam


© Copyright 2007, Adam Houghton
Developed in Durham, NC