It's Singleton, not Simpleton...dummy!

Tuesday, April 22, 2008

Flex Builder 3 - LiveCycle Data Services - Libs

I would never have been writing this post in addition to so many others that are already there talking about how to build, compile, deploy, run your flex applications that use Live Cycle Data Service, had I not spent last five days trying to figure out why my application wouldn't compile when I was following all the steps mentioned everywhere.

I might be dumb for not having known something that was obvious; that one must know in order to build applications in flex, so I concede. However, there might be my other dumb brethren out there who might be struggling with the same things, so this one is for you fellas!

After migrating the flex app that was built on Flex Builder 2 by my associate, some time last year, around October/November, I was facing a few issues in getting the application to compile.

Some of the errors were as follows:

Type 1:
1172: Definition mx.data.utils:Managed could not be found.
or
1172: Definition mx.data:IManaged could not be found.

Type 2:
Unable to resolve resource bundle "data" for locale "en_US".

Now first of all when you start Googling, you come across the following links (that are relevant):

http://bugs.adobe.com/jira/browse/ASC-2815

http://www.mail-archive.com/flexcoders@yahoogroups.com/msg38973.html

http://www.mail-archive.com/flexcoders@yahoogroups.com/msg66002.html


And even though these have been written with the intention to help out the newbies in the flex world, they don't really shed light on what might be the cause of this problem and/or how to fix it. The problem is indeed far simpler than the complicated discussions on the "Known Issues" and "Hot Fixes".

All I need to know is, where is that goddamn missing library that I could include in my build path to resolve these issues.

If you have been following the instructions elsewhere, you probably already have gone through all the treacheries that I have gone through so you can relate to the frustration I am talking out of.

Well having said and done all that I have, here is what you need to do in order to get those libraries into your classpath.

The location where you installed your Live Cycle Data Services, let's call it [lcds-install-path].

Under [lcds-install-path] you will find a war file called samples.war. If you can't see it, download the Data Services afresh from an authentic source and install it.

Now the reason I referred to this samples guy was because I wanted to make sure if anybody had ever tried to accomplish what I had set out for with the Flex SDK3.0 and Data Services. (I realized later that what I was trying to do was not something that was rarely used, but something that is used so often that it is taken for granted that people who can't get it right, like me, are just too dumb to work on Flex Applications.)

Procedure for alleviation:
  1. Create the following directory [lcds-install-path]/flex/libs
  2. Create the following directory [lcds-install-path]/flex/locale
  3. Create the following directory [lcds-install-path]/flex/jars **
  4. Expand or explode (suit yourself) [lcds-install-path] /samples.war to [lcds-install-path]/samples
  5. Go to [lcds-install-path]/samples/WEB-INF/flex/libs and copy everything.
  6. Paste the files copied into [lcds-install-path]/flex/libs
  7. Go to [lcds-install-path]/samples/WEB-INF/flex/locale and copy everything.
  8. Past the files copied into [lcds-install-path]/flex/locale
  9. Go to [lcds-install-path]/samples/WEB-INF/flex/jars and copy everything. **
  10. Past the files copied into [lcds-install-path]/flex/jars **
  11. Go to flex builder, and edit the build-path.
  12. Add [lcds-install-path]/flex/libs as an SWC folder.
  13. Add [lcds-install-path]/flex/locale as an SWC folder.
  14. Add [lcds-install-path]/flex/locale/en_US/fds_rb.swc as an SWC
  15. And now your application should compile!
** - optional for now, may be needed for something in future, who knows?

If this doesn't work still, you need to take a break and hire someone smarter to help you out.

The reason I copied all the files to a custom location was that it will keep me aware of where I need to make changes in future and also might give some hint to Adobe Team to include a separate folder in the LCDS distribution that contains all the mandatory libraries.

Hope that help you my dumb-friends. If it doesn't you can mail me at remotemethod@gmail.com and I will try to help you out with some more "Flex for Dummies" tips if I can.

Here are some related links that might help:
http://www.adobe.com/devnet/coldfusion/articles/data_app.html

Wednesday, April 16, 2008

Pitfalls In Java Development and More

Hi guys, here is a super cool blog recently launched by my friends and colleagues at Pramati.

http://pitfalls.wordpress.com

The blog is named as Pitfalls in Java Development, but it doesn't limit the content or the description to just the pitfalls; there are amazingly new and refreshing facts about Java Technology and all its associated open source technologies.

You will also find quite a few interesting debates on DOs and NOT TO DOs in the Application Development world of Open Source and Java/J2EE. All of the authors on the blog are experts in their respective domains and technologies and share the most recent issues they encounter while working on their current assignments.

In less than two weeks since it was launched, it has reached a hit count of 3000 approx. Which in itself is an indication of how techies about the value of information shared by this blog. And to those of you for whom it matters, the CTO at Spring Source Adrian Colyer has already commented on one of the posts on this blog.

I am sure you are going to learn a lot from this single link. So check it out now!

Saturday, June 23, 2007

JavaScript 2.0 - A New Avatar

Java Script for objects: Brought to you by ECMA.

Now this is something that was pending for a long time now. Twelve years since the birth of JavaScript and no major or minor updates to the language. Imagine how much of value it must have offered to the entire web developer community to have survived in the software world without changing for twelve years.

As the creator of JavaScript and currently the CTO of Mozilla Foundation , Brendan Eich said,"It is not a revolution, just an evolution of existing capabilities." It sure has been long due now. Especially, with the AJAX and Web2.0 taking WWW to a different paradigm altogether. Making it essential that the foundation of the new web be stronger and reinforced with as much steel as possible.

I would be looking forward to see how it evolves. The primary challenges would be to keep it as simple as it has been and still provide an OO environment for building RIA.

Packaging and scoping are some of the mandatory requirements for the JavaScript 2.0 to keep it rolling. And another challenge is the ascertain that the JavaScript loaded on the browser is not a security risk for the computer, because the internet browsers, as we know them today, don't provide proper sandbox environment like a JVMs do.

There is a lot that would be expected out JS2.0 and I am sure, like before, it is going to deliver.

You can track the progress of JavaScript 2.0 or as the project Code name says ECMAScript from this link. ECMAScript

Wednesday, June 20, 2007

Torrent over RIA...Cascading Revolution!

Can Do: A New Paradigm for content sharing

A year and a half back a friend of mine, who is doing his research on biotechnology, explained to me a new way of sharing files that was taking heat and that could actually make things far more quicker in spite of the bandwidth variations across the internet.

Bit Torrent is a very innovative protocol designed to make file sharing over internet much easier and less bandwidth-intensive. Amazing technological advancement in the area of content distribution with shared bandwidth.

The concept of fragmenting the target files across a host of computers connected to the internet makes the entire idea of "high load on single server" obsolete. The connected computers distribute the fragments by downloading them from other computers and then making them available for upload for those computers that don't already have the fragment.

This enables sharing between a large number of peers possible without increasing the load drastically on any single machine. And thus making it far more faster than a normal download over an FTP or HTTP would take for the same file size.

The downloads and uploads however still remain bandwidth dependent as everything else is on internet but in this case the dependency never leads to a bottle neck. The flow is constant and the load shared therefore reducing the chances of having single point of failure. Bit Torrent also enables non-continuous downloads inherently because the continuity can never be assured over internet given the fluctuating nature of the bandwidth.

Desire: Ease of Usage and Friendliness

To avail the power of Bit Torrent based file sharing, you would normally require a client side application that helps you in performing download management tasks viz. Bandwith Allocation per download, prioritizing downloads, pausing and resuming, seeding etc.

And to those of you who use internet extensively, installing yet another application sounds to be an encumbrance. Organizing all the applications on your desktop, then updating versions, re-installation, firewall limitations etc. are some of the common problems one faces while using tools like Torrent clients.

How one wishes there was a way of putting all these applications on top of another layer of organization within your desktop that would manage all these issues, instead of your having to sit once every week and arrange stuff on your desktop manually.

Alternative: Desktop Rich Internet Application Platform

Having a RIA platform opens a great deal of opportunities for both developers and end-users. Developers find it easy to experiment with their ideas and offer their services over a customizable application development platform. End-users on the other hand benefit from a constantly growing community effort in bringing out function rich applications.

The RIA platforms and the desktop web has caught interest of major software vendors in the industry, to name a few Google and Adobe and they are in a race to offer these platforms out of their angelic desires to make the end user ever more equipped and enabled to leverage the strength of internet and web technologies.

Pramati, a relatively small fish in the huge ocean, on the other hand has already arrived with a solution that is simple, elegant and as powerful as your imagination. Dekoh in it's entirety has altogether different view about how the world to come will use internet.

As I have been talking about Dekoh in my previous posts, so I won't bother you with what Dekoh is. However, Dekoh can be used in places where no one could have ever imagined. Dekoh has evolved considerably in the past few months and its capabilities are growing by the day.

For a torrent service and client application all you need is a basic web server with trackers and clients that can communicate over the internet. Dekoh provides you with a personal webserver and there is a Central Application Server, both of these combined can add broader tracking facilities for Bit-Torrent files.

Dekoh architecture also enables you to work from behind the firewalls which means that it is possible that your IM services may be interrupted or your access to the internet may be limited but your downloads will never stop as long as you have Dekoh with you.

Wondering on these possibilities, the day is not far when you might actually hear about Torrent being available over Dekoh platform, making end-users' lives much more simpler and organized.

Torrent over a Desktop based RIA platform, in my opinion will make a killer combination and I will be following up on it more. You keep tuned in to know more.

Sunday, June 17, 2007

Google is Google after all...

Blogging has grown from a personal interest to a full time profession that can get you paid heavily. Weblogs are being used for Social Networking, Business Networking, Marketing, Advertising, Solicitation and what not. But what do you expect from a weblog of Google, not something that I found out recently.

All bloggers are burning their finger tips to make their presence felt over the internet. And then it happens all of a sudden that you come across blogs like these, http://googlegearsblog.com/2007/06/07/dekoh-this/ .

This makes you realize that there is someone ahead of you capitalizing on your efforts and getting further ahead. I don't feel there is anything unethical in this practice but it is a bit too much of a show off for Google. They don't even want to write their own blogs about their own products. They have created a mashup that pulls data from the weblogs that contains articles on Google or its products. Now that is cool and that is why "Google is Google after all."

The link above shows a post made out of my post in which I had mentioned Google Gears. This site is an auto-blog that crawls the web for blogs and other informational sites, filters out content that contains people's opinion about Google and its products, and posts it here, with no effort required whatsoever.

Using the Technorati's ping facility, this blog keeps updating itself regularly and pinging it to Technorati, making it hot on the tag cloud. Google has really gained a lot of headway through its search and related products and now this is another use, they have found, of their searching capabilities.

I am not sure whether they plan to do it as a practice for all their products or it is just an experiment for Google Gears, but it sure feels very unGoogle like to me.

At the same time, I can't deny the fact that this practice makes sure that blogs like mine get a fair chance for gaining visibility. This might even get me more hits and increase the chances of my opinion getting heard by a wider audience. So, in short even though I am not impressed by this blog by Google, I am still curious to see what it will mean for Google and the rest of us, eventually.