Archive for June, 2011


ActionScript 3 is an Object Oriented Programming language, and here access modifiers are used for handling declaration visibility. The common access modifiers in Object Oriented Programming are Public, Private and Protected, apart from this in AS3 new access modifier namespace is introduced. This is used when we want more control over who can access class items. A namespace is a context in which names are unique. There are three steps to gaining and sharing special access to items with namespaces. First, declare a new namespace. Second, determine what items belong in that namespace. For those items, use the namespace’s name as a visibility modifier instead of public, private, protected, or internal. Third, in code that needs special access to the namespaced item, open the namespace that we have created.

Flex framework is a very good example of using namespace. In Flex framework for handling internal data they used mx_internal namespace. There are so many variables are marked as mx_internal, these variables are available for developer whenever they use mx_internal namespace. As per Adobe mx_internal is a namespace used by the Flex framework to partition out functions and properties that may change in future releases of the Flex SDK. So before using mx_internal think closely on how to avoid using this, because mx_internal mark property which you are accessing will change in next release of framework. Although this is a very good feature by framework to exposing there internal function to developer, but this is advisable to use this as a reference only not for solving any requirement. In this post I am going to describe this risk area of using mx_internal.

I have simple usecase where I am using “mx:NumericStepper” component. As per requirement we need to provide a checkbox for controlling enable and disable of text input controls of “NumericStepper” component.

Editable Disable

There are no direct property are exposed for end user devleoper for taking a reference of text input controls of “NumericStepper”. In this case we use mx_internal for taking reference of text input. See the code below for reference.

Taking a reference of inputField using mx_internal This implementation will work fine if we not upgrading the flex framework for this application. As per Adobe’s clear statement this is an internal property and may be change in future release for framework version. So we can’t say this implementation will workable always. If you see the below code we are able to access the inputField properties using mx_internal, as this inputField properties is there in <mx> framework based NumericStepper component.

inputField are accessiable in <mx> based frework

But when we upgraded our framework and started using spark component then this properties is not more available and our implementation will go wrong. 

inputField is not available in spark controls

Although “mx_internal” may solve many problem but please take this as a reference and be aware that properties or functions defined under mx_internal may change in future versions of SDK.


The Big Blue celebrates its 100th anniversary and this is a gigantic achievements. The Big Blue is a popular name of IT giant IBM (International Business Machine). After this success story IT worlds are started looking the essence of survival in volatile IT industry. From the product providers to the service providers IBM is a witness of many changes in industry. I have also analyzed on this and found that the key of survivals are always ready to welcome changes. From this post I am trying to elaborate my observation. IBM started its IT line of business as a makers of typewriter because that era was for publishing market. Industry are changing frequently and there are demand of new technology are always in high. In every business changes IBM (Big Blue) always ready to adopt the changes. They quickly adopting the changes and become a leading electronic devices manufacturer. And on that time this company is a dominating force in commercial computing market. IBM analyzed the demand of data storage market after personal computer provider and enter into that domain also. As a data storage product providers IBM innovated Disk Drive, Floppy Disk, Magnetic Strip (we use that magnatic stripe in our credit/debit card). IBM gradually understand the demand of software and services market and sell their personal computer business to China’s Lenovo and jump into the software service industry. Nowadays Cloud computing is a popular jargon in IT industry and IBM invested huge on this area also. By adopting the changes IBM lead and survive last 100th years. As it celebrates its 100th anniversary, International Business Machines is a business that shows how innovation has accelerated, and how fast you have to move to stay ahead.

IBM Logo

Now we’re customer-led, we’re producing solutions rather than specific products to link together the complicated global infrastructure we find around us these days


Andy Stanford-Clark
CTO – IBM

In the same fashion of adapting changes, Apple also lead the IT market industry. Apple started IT  career from printing solution provider and then jump into popular MAC desktop development. When multimedia and music industry were enjoying technology changes Apple developed popular iPod music player. Everybody know the craze of using iPhone, Apple redefine the mobile industry and set a new benchmark for others. After setting a benchmark in mobile industry they enjoying the success of handheld device called iPad. This is not the end of story currently they are jump into the Could market and introduced much hyped iCloud services. They know the essence of adopting changes to surviving the industry. Apple is a dominating leader in their industry because of their believe in innovation and adaptation.

Microsoft is big name in industry but in some area they fail to set the benchmark in industry. Till now Microsoft not doing anything new they are more focused on their Windows OS and other older products line. They are not investing much on innovation and never adopting the changes of market. At present  Google and Facebook is doing good but they have to learn from Apple and IBM for how to adopt the market changes. Google and Facebook innovation growth are idle these days. Google is still much depended on their search engine and Ad insertion market. This is a time for Facebook also to introduced some new innovative idea to retain their user. As per recent survey Facebook losing their member this is not a good sign for this growing baby (report published by InsideFacebook).


Hi Friends,

I just read a book name “As A Man Thinketh” in one sitting because there is some magical power within they connect you till the end page. This is truly a masterpiece by James Allen and I am quite sure this will help you to build a foundation of your success. This book tell you how to connect with the power of thoughts, and this is based on HOW instead of WHAT.

Magical Power of Thinking. - sethskim.com

The power of human mind is incredible we only need to know how to utilize that and this book is the answer. This book is combination of powerful quote and passage. Now here I am going to share you my contemplation and snapshot of this book.

This book is a combination of these gems, collect as much you can:-

Thought And Character

The aphorism, "As a man thinketh in his heart so is he," not only embraces the whole of a man’s being, but is so comprehensive as to reach out to every condition and circumstance of his life. A man is literally what he thinks, his character being the complete sum of all his thoughts.

Act is the blossom of thought, and joy and suffering are its fruits; thus does a man garner in the sweet and bitter fruitage of his own husbandry.

Thought in the mind hath made us. What we are By thought we wrought and built. If a man’s mind hath evil thoughts, pain comes on him as comes the wheel the ox behind. If one endure in purity of thought joy follows him as his own shadow – sure.

Effect of Thought on Circumstances

A man’s mind may be likened to a garden, which may be intelligently cultivated or allowed to run wild; but whether cultivated or neglected, it must, and will, bring forth. If no useful seeds are put into it, then an abundance of useless weed seeds will fall therein, and will continue to produce their kind.

Man is buffeted by circumstances so long as he believes himself to be the creature of outside conditions. But when he realizes that he may command the hidden soil and seeds of his being out of which circumstances grow, he then becomes the rightful master of himself.

Effect of Thought on Health and the Body

The body is the servant of the mind. It obeys the operations of the mind, whether they be deliberately chosen or automatically expressed. At the bidding of unlawful thoughts the body sinks rapidly into disease and decay; at the command of glad and beautiful thoughts it becomes clothed with youthfulness and beauty.
Strong, pure, and happy thoughts build up the body in vigor and grace. The body is a delicate and plastic instrument, which responds readily to the thoughts by which it is impressed, and habits of thought will produce their own effects, good or bad, upon it.

Thought and Purpose

Until thought is linked with purpose there is no intelligent accomplishment. With the majority the bark of thought is allowed to "drift" upon the ocean of life. Aimlessness is a vice, and such drifting must not continue for him who would steer clear of catastrophe and destruction. They who have no central purpose in their life fall an easy prey to worries, fears, troubles, and self-pityings, all of which are indications of weakness. He who has conquered doubt and fear has conquered failure. His every thought is allied with power, and all difficulties are bravely met and wisely overcome. His purposes are seasonably planted, and they bloom and bring forth fruit which does not fall prematurely to the ground.

The Thought-Factor in Achievement

All that a man achieves and all that he fails to achieve is the direct result of his own thoughts. All achievements, whether in the business, intellectual, or spiritual world, are the result of definitely directed thought, are governed by the same law and are of the same method; the only difference lies in the object of attainment. He who would accomplish little must sacrifice little. He who would achieve much must sacrifice much. He who would attain highly must sacrifice greatly.

Visions and Ideals

The dreamers are the saviours of the world. As the visible world is sustained by the invisible, so men, through all their trials and sins and sordid vocations, are nourished by the beautiful visions of their solitary dreamers. The greatest achievement was at first and for a time a dream.The vision that you glorify in your mind, the Ideal that you enthrone in your heart – this you will build your life by, this you will become.

Serenity

Calmness of mind is one of the beautiful jewels of wisdom. It is the result of long and patient effort in self-control. Its presence is an indication of ripened experience, and of a more than ordinary knowledge of the laws and operations of thought.

Powerful quotes from this book

“Men are anxious to improve their circumstances, but are unwilling to improve themselves, they therefore remain bound.”

“A man is literally what he thinks, his character being the complete sum of all his thoughts.”

“Men do not attract what they want, but what they are.”

“Every action and feeling is preceded by a thought.”

“Right thinking begins with the words we say to ourselves.”

“You cannot travel within and stand still without.”

“Circumstance does not make the man, it reveals him to himself.”

“The soul attracts that which it secretly harbors, that which it loves, and also that which it fears. It reaches the height of its cherished aspirations. It falls to the level of its unchastened desires – and circumstances are the means by which the soul receives its own.”

 

Although the title of this post and the book is narrated for MAN, but this is recommended for all human being who want to utilize the power of thoughts. I love to hear from you on this post.

– With Peace & Love


In the course of migration from Flex3 project to Flex4 usually we faced common TypeError at runtime. These error are generally a type coercion failed error. The simple usecase of this is we are converting <mx:List> component to <s:List> component. Here we have an inline xml object for “imgList” and binding it to a <mx:List> component.

It was working fine but after changing the <mx:List> component into <s:List> we are faced runtime TypeError like this:

|TypeError: Error #1034: Type Coercion failed: cannot convert XMLList@284a62a9 to mx.collections.IList.

Runtime error
<s:List labelField=”@name” dataProvider=”{ imgList.image }”/>

Works fine
<mx:List labelField=”@name” dataProvider=”{ imgList.image}”/>

The xml object of imagelist is as such:
var imgList:XML = ‘<imagelist>
<image name=”Image 1” source=”assets/image_01.jpg”/>
</imagelist>’

The <mx:List> component could take a few different objects as dataproviders, but the <s:List> spark List is typed only for taking IList type of object. The fact that it’s named “List”, XMLList turned out to be a top level Flash object that doesn’t implement the mx.collection.IList interface, which is required for a data source to be qualified as a DataProvider. The commonly used classes that implement IList are ArrayCollection, ArrayList (curiously) and XMLListCollection.

So the solution of this is to we need to typecast dataprovider data object into IList type.
dataProvider=”{new XMLListCollection(imageList.image)}”

<s:List labelField=”@name” dataProvider=”{new XMLListCollection(XMLList(imageList.image))}”/>

For more information on collection and data provider check this page : http://livedocs.adobe.com/flex/3/html/help.html?content=about_dataproviders_2.html

P.S. – The code written in post are only for reference purpose.


I have a dream for the Web in which computers become capable of analysing all the data on the Web


Tim Berners-Lee, 1999
Inventor of the Web

Web world are moving from web1.0 to web2.0 and now we are ready to welcome web3.0. I have tried lot to find out the suitable definition of web3.0 and found definition is not confirmed or defined, so far there are several definitions on the web, but usually Web 3.0 is defined as a term, which has been coined with different meanings to describe the evolution of web. These include transforming the Web into a database, a move towards making content accessible by multiple non-browser applications, the leveraging of artificial intelligence technologies, the Semantic web, or the Geospatial Web.

Road Map of Web era

Road Map of Web Era

Now I want to describe these term with the help of example. Suppose you have decided to go to watch a movie and then dinner in your favourite restaurant. In this case your next step is booting up your system and open web browser and goes to Google for search for theatre, movie and restaurant information. All in these thing you have to spend specific time to get your desired information. But Web3.0 will make this task faster and easier. Instead of multiple searches, you might type a complex sentence or two in your Web3.0 browser, and the Web will do the rest. In our example, we can type "I want to see a funny movie and then dinner at good Chinese restaurant. What are my options?” The Web3.0 browser will analyse your responses, search the Internet for all possible answers, and then organize the results for you. When a computer understands what data means, it can do intelligent search, reasoning and combining. This makes our live easier and our personal computer (PC) becomes our personal assistant (PA). This next technology is used to make a more semantic web. As you search the Web, the browser learns what you are interested in. The more you use the Web, the more your browser learns about you and the less specific you’ll need to be with your questions. Eventually you might be able to ask your browser open questions like "where should I go for lunch?" Your browser would consult its records of what you like and dislike, take into account your current location and then suggest a list of restaurants.

The web is system of interlinked documents accessed over the internet. You can view web pages and use hyperlinks for navigate between them. This is Web1.0 and this is the largest source of information. Then after people started to share photos and videos over internet, interacting in social network, publish content in blogs, contributing in wikies, started us of tagging and RSS. This is a read and write web and called as Web2.0, and we are now in Web2.0 era. The problem in these concept the HTML contents describe only syntax not semantic. If computers can understand the meaning behind information then they can learn what we are interested in and they can serve help us better find what we want. This is really what the semantic web is all about, and this is Web3.0, a semantic web. Every language has its own syntax and semantics. By definition syntax is the study of grammar and semantic is the study of meaning. Syntax is how to say something and semantic is the meaning behind what you say. Today’s web is about documents and the semantic web is about things. It can recognize people, places, events, companies, products, movies etc. It can understand the relationships between things. Now the next step is embedding symmetrical annotation into the data. So the next question is how to embed symmetrical annotation into data? For this we available options are RDF (Resource Development Framework) and microformats. RDF is a w3c standard for describing resources in the Web.

The evolution of the current Web of "linked documents" to a Web of "linked data" is steadily gaining mindshare among developers, architects, systems integrators, users etc. Now its look like the dream of Tim Berners Lee is accomplished as he stated earlier in a late 90’s.