Monday, December 27, 2010
Kids rocks !!!
Question:What is the fullform of maths.
Answer: Mentally affected teachers harassing students.
---------------------------------------------------
Teacher :Tomorrow there will be a lecture on Sun.Everyone must attend it.
Raju:No ma'm! I will not be able to attend it.
Teacher :Why?
Raju:My mother will not allow me to go so far!!!
--------------------------------------------------
Teacher: What happened in 1869?
Student:Gandhi ji was born.
Teacher :What happened in 1873?
Student:Gandhiji was four years old.
---------------------------------------------------
Teacher: How old is ur father.
Sunny:As old as I am.
Teacher:How is it possible?
Sunny:He became father only after I was born. (1st Rank)
Wednesday, November 17, 2010
Precious words about Life!!
What is the life?
What is the purpose of life?
How to take up this one time chance to live this life?
Oh.. Man.. Is there any sample code to get rough idea about it (Life)?
Or can google about it?
No wonder, we are far away from real life.
We are not aware of it; even we’re not interested to get it into that.
We can title our current life style as “Mechanical Life”.
I got a chance to read, interesting and thought provoking lines
First, I was dying to finish my high school and start college
And then I was dying to finish college and start working
Then I was dying to marry and have children to grow old enough
So I could go back to work
But then I was dying to retire
And row I am dying..
And suddenly realized that “I forgot to live”
Please don’t let this happen to you
Appreciate your current situation
And enjoy each day.
In short:
To make money we lose our health, And then to restore our health we lose our money…
We live as If we are never going to die, And we die as if we never lived…..
By ..Old friend
Thursday, October 07, 2010
BluePrint!!. Got bored to search in Google :)
I am a flex developer and usually don’t wanna keep the syntax of all APIs (in and out) in mind. But I know the purpose of APIs in terms of which class should be more appropriate to which scenario.
How to get the syntax and piece of example?. There is a way as everybody knows GOOGLE. I am a lazy developer and got bored to search in google with right key word.
That’s where BluePrint comes. Yes, just install it, you can see syntax and example for all APIs without moving out of “Flex Builder/Flash Builder”!!. Click here to know more about BluePrint.
Developers (except meJ) should try to create some stuff that can help to create application without writing single line of code. Basically I am a lazy developerJ.
Thursday, September 16, 2010
Cup... Coffee.. Ultimate fundamental about life!!
When all the students had a cup of coffee in hand, the professor said: "If you noticed, all the nice looking expensive cups were taken up, leaving behind the plain and cheap ones. While it is normal for each of you to want only the best for yourselves, that is the source of your problems and stress. What all of you really wanted was coffee, not the cup, but you consciously went for the best cups and were eyeing each other's cups. Now if life is coffee, then the jobs, money and position in society are the cups. They are just tools to hold and contain Life, but the quality of Life doesn't change. Sometimes, by concentrating only on the cup, we fail to enjoy the coffee in it.".
So, don't let only the Cups drive you... Enjoy the Coffee!
Tuesday, August 10, 2010
Life After Death!!
Soul of mine and two of my friends had to come out of our bodies. We are flying together in some direction to reach some destination. Flying over wild, mountains and some kind of marvelous places are pleasant, and a quite enjoyable moment.
Reached some place where crowds of soul are waiting in queue. It is like queue in front of ration shop. It reminds me that we are still in boundaries of india. Somebody might have setup division, country wise.
Oh god.. I forgot to intimate my family about 10 lakhs of insured money that they can claim in case of my death!! I suppose to go and tell like, mom and dad don’t worry about your useless son and you have something really useful 10 lakhs of insured amount.
I can see my body surround by my family and relatives. Hey I am really looking cute now; it’s just like sleeping with smiley face. But I am not able to convey about that big money.
Back to queue. I receive a letter with a picture from my mom through one of known soul. I don’t know how it can be carried. But yes I am reading with full of tear. No words to express my feeling and how I am missing my mom and family. Message in letter is "I should come back and be with my mom". Yes I suppose to be there, since my family love me lots and needs lots of my support. But I couldn’t. I don’t know that who is the bloody separated soul from my body.
Hey here… Wow.. Wonderful!! In some distance, I can see the indoor stadium kind of place, and there are crowds of souls. Some kind of judgments is going on, after some time crew of souls gone up in flash. I think, that is yematharmaa playing with souls. I don’t care about my turn.
I can see some information about my previous birth on screen. I don’t know that they might be computerized due to maintain heavy population. Hey I was a doctor in my previous birth. I don’t think it carries wrong data :).
Words of mom's letter is running around my mind. I am more worrying about that how can I carry present birth’s information to next birth. So that I can find out my mom, hug her and say "Hi mom this is your son, back again!!"
I am thinking, how to stole information from yemen’s data warehouse and forward them to my gmail id. Oh god. I don’t know, how can I carry this username and password of gmail with me to my next birth?!
Oh man.. Alarm from my mobile.. My friend kicks my ass and say, hey how many time will you rest your alarm? Come on dude its 8.30 AM. Oh yeah I have to rush to office. Around 11.00 AM, I got a call from one of my friend whose soul was traveling with me. Something interesting, isn’t it? Hope, I will have continuation of this dream.
Monday, August 17, 2009
Stop Worrying And Start Living...
I want you to think of your life as an hourglass.There are thousands of grains of sand in the top of hourglass.They all pass slowly and evenly through the narrow neck in the middle.Nothing you or I could do would make more than one grain pass through the narrow neck without impairing the hourglass. we all are like this hourglass.
When we start in the morning, there are hundreds of tasks which we feel that we must accomplish that day,But If we do not take them one at a time and let them pass through the day slowly and evenly, as do grains of sand passing through the narrow neck of hourglass, then we are bound to wreck our own physical and mental structure.
You and I are standing this very second at the meeting-place of two eternities: the vast past that has endured for ever, and the future that is plunging on to the last syllable of recorded time. We can't possibly live in either of those eternities-no, not even for one split second. But, by trying to do so, we can wreck both our bodies and our minds. So let's be content to live the only time we can possibly
live. Stop Worrying And Start Living... :)
Wednesday, August 05, 2009
Keywords play major role on SEO
Keywords in URL Keywords in URLs help rank well on SE’s - e.g. - http://domainname.com/seo-services.html, where “SEO services” is the keyword phrase you attempt to rank well for. But if you don't have the keywords in other parts of the document, don't rely on having them in the URL.
Keyword density in document text 3-7 % density is best, 1-2 % for minor Keywords. Keyword density of for major keywords over 10% is suspicious and looks more like keyword stuffing, than a naturally written text.
Keywords in anchor text The anchor text or link label is the visible, clickable text in a hyperlink. The words contained in the Anchor text can determine the ranking that page will receive by search engines. Keywords in anchor text help inbound links as well as page ranking.
Keywords in headings ("H1", "H2", etc. tags) Headings Offers special clues to the search Engines -- H1, H2, H3 in HTML-ese. Since headlines often contain important hints to the content of the webpage, search engines take note of any keywords found here.
Keywords in the beginning of a document Also counts, though not as much as anchor text, title tag or headings. However, have in mind that the beginning of a document does not necessarily mean the first paragraph – for instance if you use tables, the first paragraph of text might be in the second half of the table.
Keywords in tags Spiders don't read images but they do read their textual descriptions in the tag, so if you have images on your page, fill in the tag with some keywords about them.
Keywords in metatags Less important, especially for Google. Yahoo! and MSN still rely on them, so if you are optimizing for Yahoo! or MSN, fill these tags properly. In any case, filling these tags properly will not hurt so do it.
Keyword proximity Keyword proximity measures how close in the text the keywords are. It is best if they are immediately one after the other (e.g. “dog food”), with no other words between them. For instance, if you have “dog” in the first paragraph and “food” in the third paragraph, this also counts but not as much as having the phrase “dog food” without any other words in between. Keyword proximity is applicable for keyword phrases that consist of 2 or more words.
Keyword phrases In addition to keywords, you can optimize for keyword phrases that consist of several words – e.g. “SEO services”. It is best when the keyword phrases you optimize for are popular ones, so you can get a lot of exact matches of the search string but sometimes it makes sense to optimize for 2 or 3 separate keywords (“SEO” and “services”) than for one phrase that might occasionally get an exact match.
Secondary keywords Optimizing for secondary keywords can be a golden mine because when everybody else is optimizing for the most popular keywords, there will be less competition (and probably more hits) for pages that are optimized for the minor words. For instance, “real estate new jersey” might have thousand times less hits than “real estate” only but if you are operating in New Jersey, you will get less but considerably better targeted traffic.
Keyword stemming For English this is not so much of a factor because words that stem from the same root (e.g. dog, dogs, doggy, etc.) are considered related and if you have “dog” on your page, you will get hits for “dogs” and “doggy” as well, but for other languages keywords stemming could be an issue because different words that stem from the same root are considered as not related and you might need to optimize for all of them.
Keywords Synonyms Optimizing for synonyms of the target keywords, in addition to the main keywords. This is good for sites in English, for which search engines are smart enough to use synonyms as well, when ranking sites but for many other languages synonyms are not taken into account, when calculating rankings and relevancy.
Keyword Mistypes Spelling errors are very frequent and if you know that your target keywords have popular misspellings or alternative spellings (i.e. Christmas and Xmas), you might be tempted to optimize for them. Yes, this might get you some more traffic but having spelling mistakes on your site does not make a good impression, so you'd better don't do it, or do it only in the metatags.
Keyword dilution When you are optimizing for an excessive amount of keywords, especially unrelated ones, this will affect the performance of all your keywords and even the major ones will be lost (diluted) in the text.
Keyword stuffing Any artificially inflated keyword density (10% and over) is keyword stuffing and you risk getting banned from search engines.
Wednesday, July 29, 2009
Hey do you know about robots.txt?!!!!
Robots.txt file is a text file (yea, the ones on notepad) that resides on your server, and controls a whole lot of features on your website (whatever platform it is built on). It's a simple text file in which there are a few lines of text, but it's very powerful that it can even decide whether your website should be shown on Google or not, what part of your website should be shown to the search engines (like Google, Yahoo and MSN).
What is a Robots.txt file technically?
In order to understand what robots.txt files are, you have to first understand what a Robot (the web one) is.
A robot - is technically a program from search engines like Google, Yahoo and MSN that are set out on the internet to do the job of finding out new websites, indexing them and gathering the right information about the website. They are sometime called "spiders", "crawlers" and even "bots".
Where do the Robots come from?
Robots are commonly set out by search engines like Google, Yahoo, MSN, Altavista, Ask.com and others. Mainly, these are web servers of the search engines, that are on the constant look out of information on the internet. And they gather information (which ultimately goes to the search engines index) by visiting new websites, gathering up new information from them, following links and calculating and analyzing a whole lot of information from them.
What do Robots do?
Robots mainly performs four types of tasks.
* Site Indexing - Which is more like taking a copy of a new website it finds and storing it in some location at the search engines servers. This is accomplished by scanning the documents on a website and mirroring them to temporary servers.
* Validates the site code - Which is more like comparing the website code to W3C standards and grading them according to accuracy.
* Link Checks - Which includes tracing all possible links (incoming and outgoing) from indexed websites, and calculating the sites grading factors such as authority, relevance etc.
What does a Robots.txt file do?
Robots.txt file gives commands to the visiting robots (on the website) to help them index and collect relevant information about the website.
It's more like the helpdesk, which will give all information, guidance and help to the visitors at an event about how to reach the venue, important places, time schedule, map etc.
The commands on the robots.txt file is completely configurable by the webmaster.
Using the right commands, a webmaster can decide everything related to search engines like what search engines are allowed into the website, what is the information available to them, what are the documents that are not available for the search engines and even pass information like how often are pages added to the website and how often should the robots visit them.
Where to spot the Robots.txt file?
The Robots.txt file is located at the root folder of your website. This is most often the _public-html or the http-docs folder. Root folder means the top most directory on the website that is accessible to the public.
It is critical to place the Robots.txt file in the root folder. Placing it elsewhere will not make it functional.
Why is Robots.txt file and Robots important to a webmaster?
Well, for a webmaster Robots.txt should be important because, it helps ensure better indexing of their websites, which means more information passed to search engines and thereby better search engine ranks for them.
It is possible for the webmaster to decide how their websites should be crawled, indexed and ranked by the search engines by the use of well-written Robots.txt files. So, it gives them complete (well almost) control over how a search engine "sees" their websites, which is very crucial.
How does a Robots.txt file look like?
User-agent: *
Allow: /searchhistory/
Disallow: /search
Disallow: /groups
Disallow: /images
Disallow: /catalogs
Disallow: /catalogues
Disallow: /news
Disallow: /nwshp
Allow: /news?btcid=
Disallow: /news?btcid=*&
Allow: /news?btaid=
Disallow: /news?btaid=*&
Disallow: /setnewsprefs?
Disallow: /index.html?
Disallow: /?
Disallow: /addurl/image?
Disallow: /pagead/
Disallow: /relpage/
If you like to see more Robots.txt files, just type in the domain name followed by the /robots.txt filename in the browser of any website you like, and if they are using a Robots.txt file, then it would show up.(Ex: www.google.com/robots.txt, www.yahoo.com/robots.txt)
Wednesday, August 01, 2007
ActionScriptBridge
Here is how jumpeye describes the ASB:
With the launch of the new Flash CS3 and ActionScript 3.0, Adobe created a gap, in terms of compatibility, between applications created using ActionScript 2.0 and ActionScript 3.0. This means that a Flash clip created using ActionScript 3.0 can load and play a clip created using ActionScript 2.0, but it will not have access to anything (variables, functions, objects) inside the AS2 clip.
ActionScriptBridge is a project that aims to fill the gap between AS2 and AS3. It gives the possibility for two Flash movies, one created using AS2 and the other using AS3, to communicate with one another (at least regarding function calls). This means that the AS3 clip will be able to call functions found in the AS2 clip loaded in it, and the AS2 clip will be able to call functions found in its’ parent, the AS3 clip. All this, by using two components: ASBContainer, for Flash CS3 and AS3, and ASBTerminal, for Flash MX 2004 or later and AS2.
You can see demo below.
Friday, July 27, 2007
AS3 namespace
The AS3 namespace provides a convenient mechanism for choosing between the two sets of properties and methods. If you do not use the AS3 namespace, an instance of a core class inherits the properties and methods defined on the core class's prototype object. If you decide to use the AS3 namespace, an instance of a core class inherits the AS3 versions because fixed properties are always preferred over prototype properties. In other words, whenever a fixed property is available, it is always used instead of an identically named prototype property.
You can selectively use the AS3 namespace version of a property or method by qualifying it with the AS3 namespace. For example, the following code uses the AS3 version of the Array.pop() method:
var nums:Array = new Array(1, 2, 3);
nums.AS3::pop();
trace(nums); // output: 1,2
Alternatively, you can use the use namespace directive to open the AS3 namespace for all the definitions within a block of code. For example, the following code uses the use namespace directive to open the AS3 namespace for both the pop() and push() methods:
use namespace AS3;
var nums:Array = new Array(1, 2, 3);
nums.pop();
nums.push(5);
trace(nums) // output: 1,2,5
ActionScript 3.0 also provides compiler options for each set of properties so that you can apply the AS3 namespace to your entire program. The -as3 compiler option represents the AS3 namespace, and the -es compiler option represents the prototype inheritance option (es stands for ECMAScript). To open the AS3 namespace for your entire program, set the -as3 compiler option to true, and the -es compiler option to false. To use the prototype versions, set the compiler options to the opposite values. The default compiler settings for Adobe Flex Builder 2 are -as3 = true and -es = false.
Monday, June 04, 2007
Google Gears: Enabling Offline Web Applications
Google Gears is an open source browser extension that lets developers create web applications that can run off-line.
Google Gears consists of three modules that address the core challenges in making web applications work off-line.
LocalServer
Cache and serve application resources (HTML, JavaScript, images, etc.) locally
Database
Store data locally in a fully-search able relational database
WorkerPool
Make your web applications more responsive by performing resource-intensive operations asynchronously
Applications that are more than just static files have data that is typically stored on the server. For the application to be useful off-line, this data must be accessible locally. The Database module provides a relational database for storing data. On the Architecture page you will find a discussion of strategies for designing the local storage that your application needs.
When an offline application reconnects, you will need to synchronize any changes made in the local database with the server. There are many different approaches to synchronizing data, and there is no single perfect approach. The Architecture page describes some strategies for synching.
More about Google Gears.Thursday, May 10, 2007
Hey folks!..Do you know what happening under the class?!
Two traits objects:
One traits object used to store information about static properties of the class
Another traits object used to store information about instance properties of the class and serves as primary mechanism for inheritence.
prototype object:
It is a special object that used to share state among all instances of the class.
Sunday, April 29, 2007
Flex 2.0.1 ComboBox with icon support.
Thursday, April 26, 2007
eval API for Flex™ 2
download here
Create Custom ContextMenu
var newMenu:ContextMenu = new ContextMenu();
newMenu.hideBuiltInItems();
this.menu = newMenu;
In this example, the specified event handler, menuHandler, enables or disables a custom menu item (using the ContextMenu.customItems array) based on the value of a Boolean variable named showItem. If false, the custom menu item is disabled; otherwise, it's enabled.
var showItem = true; // Change this to false to remove
var my_cm:ContextMenu = new ContextMenu(menuHandler);
my_cm.customItems.push(new ContextMenuItem("Hello", itemHandler));
function menuHandler(obj, menuObj) {
if (showItem == false) {
menuObj.customItems[0].enabled = false;
} else {
menuObj.customItems[0].enabled = true;
}
}
function itemHandler(obj, item) {
//...put code here...
trace("selected!");
}
this.menu = my_cm;
When the user right-clicks or Control-clicks the Stage, the custom menu is displayed.
Wednesday, April 25, 2007
Artemis
Artemis is a community focused project aimed at bringing external libraries
to the Flex / Flash environment. The goal of Artemis is to provide features in the
Flex / Flash desktop application domain that are not currently available. The Artemis
framework allows a developer to create their own custom libraries (currently written
in java with plans to support other languages) that integrate with a Flex / Flash
Apollo application. Developers will be encouraged to share Artemis libraries they’ve
built and discuss new features through this web site.
For Flex Developers:
Artemis provides a way for developers to collaborate on building extension to
theApollo framework. Nearly any java API can be encapsulated in an Artemis Library and
exposed to an Apollo application through the Artemis framework.
The Java Artemis Bridge developers have the capability of interfacing with
hardware on Bluetooth and other communication ports, are able to off load expensive
tasks like XSLT to the java process, and in the end let Flex do what Flex does
best: present an engaging and interactive user interface. No more hang ups in having
the Flash player fight for processing resource, an Artemis developer can tap into a
multi-threaded environment provided using java.
Saturday, March 24, 2007
"Joyent Slingshot " beer to ruby on rails community
Joyent Slingshot enables Rails to break free of the browser. It breaks down the wall between a Web application and a desktop application without losing what makes a Web application great: the ability to rapidly develop, deploy and update, now for desktop applications.
And for more details visit: official web site
Friday, March 23, 2007
Do you want prevent flex loader from start up your application?
Here's a really simple trick you can use to prevent the Flex loader from showing when you start up your application. All you have to do is hide the window, and show it when the Application is ready.
In MyApplication-app.xml:
"<"rootContent systemChrome="standard" transparent="false" visible="false">[SWF reference is generated]
"</"rootContent">"
This sets your application manifest to make the root window invisible. Then, you just make it visible when everything's ready:
In MyApplication.mxml:
"<"mx:MyApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="window.visible = true" ">"
Saturday, March 17, 2007
Can you specify data types of the elements of the array?!
[ArrayElementType("String")]
public var stringArray:Array = new Array();
......
[ArrayElementType("Number")]
public var numberArray:Array = new Array();
....
You have foure options to specify as a data type of [ArrayElementType("-- ")].There are String,Number,Class and Interface.I hope that it would be helpful.You may get more useful tips often.. who knows...
What is Metadata How can use on FLEX 2.0 ?
Metadata statements are associated with a class declaration, an individual data field, or a method. They are bound to the next line in the file. When you define a component property or method, add the metadata tag on the line before the property or method declaration.
In an ActionScript file, when you define component events or other aspects of a component that affect more than a single property, you add the metadata tag outside the class definition so that the metadata is bound to the entire class, as the following example shows:
// Add the [Event] metadata tag outside of the class file.
[Event(name="enableChange", type=flash.events.Event)]
public class ModalText extends TextArea
{
...
// Define class properties/methods
private var _enableTA:Boolean;
// Add the [Inspectable] metadata tag before the individual property.
[Inspectable(defaultValue="false")]
public function set enableTA(val:Boolean):void
{
_enableTA = val;
this.enabled = val;
// Define event object, initialize it, then dispatch it.
var eventObj:Event = new Event("enableChange");
dispatchEvent(eventObj);
}
}