Blue Screen Of Duds

Where the alter ego of codelust plays

Archive for June 1st, 2007

Pirates of the Caribbean 3: Will this ever end?

leave a comment »

depp.pngPirates of the Caribbean: At World’s End is basically the team behind the franchise on dope or something like it. They could comfortably have taken off an hour and a half of the running time from it and still not missed much in terms of completion and narration. The first hour and half is so awfully disjointed, confused and desperately looking for direction that most of us were left wondering where exactly were we going with this? They could have done this much much better and from what I have heard about Spiderman 3, it looks like this is going to be a summer of discontent for the ‘part’ movies.

When they took Jack’s life in the previous installment, the story writers also took the character’s soul with it. Sparrow in this episode is hollow and in a manner of speaking very Jim Carrey-esque while doing time in Davy Jones’s locker. It almost felt like they wanted to make up for the time they could not put him on screen during the first hour by splattering the screen with multiple Jacks when they finally could get him on it. Come on, the character’s charm is his singularity and uniqueness. And by showing three different sides of him in the same frame, they all but destroy it. Depp, as usual, does his bit very well and the movie has its regulation number of classic Sparrow quotes and moments, but those alone can’t carry a 2.5 hour mess all through to the end.

There are good performances splattered all over the place, notably from Geoffrey Rush, as usual, but in the end there is not much else to remember a movie that starts with people being hanged by the half-dozen and ends with some pseudo head given by Will to Elizabeth. And oh, the Keith Richards cameo was funny too, but why on earth did Chow Yun-Fat agree do to this to himself? If you are giving this one a miss, I can tell you that you are not missing much.

Technorati tags: , , ,

Written by shyam

June 1, 2007 at 8:09 pm

Posted in Movies

Making out with Google Gears

with one comment

Couple of days ago, Google took the wraps off Google Gears – a framework that brings persistence of data and state into the browser.

Gears consists of three modules:

  1. LocalServer: The LocalServer provides a platform to copy and execute the live functionality within the local system. In a manner of speaking, it mimics the interaction that happens on a live webserver when a browser interacts with it. It also caches the images, JavaScript and other objects it may encounter on a Gears-enabled website.

    This is not a revolutionary approach. Companies like Zimbra have been doing this for a while now, but the difference is that Zimbra embeds the entire application within the server, while in the case of Gears the LocalServer is only a framework that allows you to build applications on top of it.
     

  2. Database: This a simple SQLite 3 RDBMS that will store anything you want it to store.It provides a layer to access almost all of the SQLite’s features. It also includes support for full text searching with the Fts2 extension. And in true blue web programming style, it also leaves the door open for SQL injection attacks.
  3. WorkerPool: These are the poor Orcs of Gears. All functionality triggered by the UI is passed on to the WorkerPool to execute in leisure. According to the documentation, “Scripts executing in the WorkerPool will not trigger the browser’s “unresponsive script” dialog.” None of the workers share any execution state and can at best be thought of as dumb crunchers, they just keep crunching away at whatever is thrown to them. As a result, there is no hierarchy in the system, because every worker is born equal (wow, the Googlers are commies!) it is up to the developer to do his design in such a way that if need be, he should place a traffic cop worker whose lone job is to track inter-worker messages.

First Blood

Anyway, the geekery apart, these are some of my initial impressions of Gears:

The installation is simple. Go to the website and download the installer. The product is available for the Windows, Mac and Linux platforms.

On Windows, the installer downloads the required files and lodges itself as an extension in Firefox and as a Browser Help Object (gears.dll) in Internet Explorer.

Following a restart, this is what you get in the browser options:

image
Add-ons options in Internet Explorer

 image

Add-ons/Extensions tab in Firefox

Websites that are Gears-enabled will check if you have the framework installed and ask you for your permission to use Gears and its features.

image

The only major Gears-enabled product that is available now is Google Reader and what it allows you now is to download and store data and objects (images, files etc) locally, till you can sync it with the server again.

image 

Once I had selected the offline mode, it downloaded 2000 items (which is a soft limit than actually downloading 2000 items that you may not have to download in the first place).

image

It took six minutes to download the items, which was not bad considering that I am on a lousy GPRS/EDGE connection that is barely usable these days. Your mileage may vary depending on the feeds you have subscribed to, whether they are full text or excerpts or if they have too many images in them and so on. And the data download happens only till the progress meter hits 50%, after which the syncing starts and no more data is downloaded. As a result you see 0% to 50% progress taking almost 90% of the time, while the 50% to 100% progress happens in a flash.

As expected, in the offline mode, new items load considerably faster since they are coming from a local database. The subsequent syncs also proceed much faster than the first one, which is only natural most times as it would contain much lesser data compared to the initial full sync. Interestingly, following the installation, all the reader URLs now have the ‘offsync=true’ flag attached to them. But I have to say that the framework is still very clunky and buggy. I often ended up with 0 unread items in offline mode and 100+ unread items in online mode with the same item set, as Items marked as read in offline was turning up as unread in online. Buggy!

Conclusion

So, what do I think about it? It is a promising concept, but it also requires a considerable bit of re-engineering of applications that can often be built far too easily for the web. Designing syncing and conflict resolution logic is not everyone’s morning cuppa and uptake would at least initially be slow for this one. As a technology, it is a bold gambit by Google. It is aiming to set the standards and in getting the first blow in and it is also trying to get developer muscle behind it (once the tide turns towards in terms of usage, the community and other companies will do the hard work for Google. It won’t have to keep racking its brains to release products all by itself).

I am still not convinced that Javascript and the extension model is the way ahead for a secure offline platform for Mozilla. Even though every application is to have its own sandbox sort of scenario, with the database and LocalServer locked down to conform to the Same Origin Policy, the WorkerPool seems agonistic to the application context in which it is being called and the Same Origin Policy is the first and the last line of defense. I am not too sure about this, but it does require further investigation. The rest of the security is provided by the platform (Firefox or IE), which again brings in its own set of problems. And since Gears is now being talked about as the offline storage framework for Firefox 3, this has to be thought out very well.

From a user’s perspective, this is quite a nifty addition. It would be very familiar for people who already use syncing in their daily life using existing software like Mail For Exchange. But at this point in time, it is a developer-oriented release, is clunky and anything but seamless to use. Then there is the major problem of being able to maintain state between two different computers. The Google engineers suggest a workaround for this by asking developers to “store offline preferences locally,” which is not really a workaround anyway. So there is plenty of work to follow in this space too.

Written by shyam

June 1, 2007 at 9:16 am

Posted in Google

Follow

Get every new post delivered to your Inbox.