- if a represents we have to display as apple
- Null represents display as NA
- others display as it is.
Java,Android,Flex,Mobile,Java ME, Web Services Tips
Sunday, June 29, 2014
MYSQL SELECT CASE
Friday, June 21, 2013
JIRA 5.2 Essentials
http://www.packtpub.com/jira-5-2-essentials/book
Saturday, March 30, 2013
Five Tips from GMAC on Using GMATPrep® v2.2 to Study More Effectively
- The Summary Report brings together results from multiple practice sessions to help you evaluate percentage correct and average difficulty.
- The Performance by Type report allows you to drill down and evaluate results by question type and difficulty.
- How You Managed Your Time helps you understand whether you are on track to complete the GMAT exam in time or if you need to work on your pacing.
Thursday, November 15, 2012
Gmail Advanced Search
Using advanced search
| OPERATOR | DEFINITION | EXAMPLES |
|---|---|---|
| FROM: | Used to specify the sender | Example: from:amy Meaning: Messages from Amy |
| TO: | Used to specify a recipient | Example: to:david Meaning: All messages that were sent to David (by you or someone else) |
| SUBJECT: | Search for words in the subject line | Example: subject:dinner Meaning: Messages that have the word "dinner" in the subject |
| OR | Search for messages matching term A or term B* *OR must be in all caps | Example: from:amy OR from:david Meaning: Messages from Amy or from David |
| - (HYPHEN) | Used to exclude messages from your search | Example: dinner -movie Meaning: Messages that contain the word "dinner" but do not contain the word "movie" |
| LABEL: | Search for messages by label* *There isn't a search operator for unlabeled messages | Example: from:amy label:friends Meaning: Messages from Amy that have the label "friends" Example: from:david label:my-family Meaning: Messages from David that have the label "My Family" |
| HAS:ATTACHMENT | Search for messages with an attachment | Example: from:david has:attachment Meaning: Messages from David that have an attachment |
| LIST: | Search for messages on mailing lists | Example: list:info@example.com Meaning: Messages with the words info@example.com in the headers, sent to or from this list |
| FILENAME: | Search for an attachment by name or type | Example: filename:physicshomework.txt Meaning: Messages with an attachment named "physicshomework.txt" Example: label:work filename:pdf Meaning: Messages labeled "work" that also have a PDF file as an attachment |
| " " (QUOTES) | Used to search for an exact phrase* *Capitalization isn't taken into consideration | Example: "i'm feeling lucky" Meaning: Messages containing the phrase "i'm feeling lucky" or "I'm feeling lucky" Example: subject:"dinner and a movie" Meaning: Messages containing the phrase "dinner and a movie" in the subject |
| ( ) | Used to group words Used to specify terms that shouldn't be excluded | Example: from:amy (dinner OR movie) Meaning: Messages from Amy that contain either the word "dinner" or the word "movie" Example: subject:(dinner movie) Meaning: Messages in which the subject contains both the word "dinner" and the word "movie" |
| IN:ANYWHERE | Search for messages anywhere in Gmail* *Messages in Spam and Trashare excluded from searches by default | Example: in:anywhere movie Meaning: Messages in All Mail, Spam, and Trash that contain the word "movie" |
| IN:INBOX IN:TRASH IN:SPAM | Search for messages in Inbox,Trash, or Spam | Example: in:trash from:amy Meaning: Messages from Amy that are in Trash |
| IS:IMPORTANT LABEL:IMPORTANT | Search within messages thatPriority Inbox considers important. | Example: is:important from:janet Meaning: Messages from Janet that were marked as important byPriority Inbox |
| IS:STARRED IS:UNREAD IS:READ | Search for messages that are starred, unread, or read | Example: is:read is:starred from:David Meaning: Messages from David that have been read and are marked with a star |
| HAS:YELLOW-STAR HAS:RED-STAR HAS:ORANGE-STAR HAS:GREEN-STAR HAS:BLUE-STAR HAS:PURPLE-STAR HAS:RED-BANG HAS:ORANGE-GUILLEMET HAS:YELLOW-BANG HAS:GREEN-CHECK HAS:BLUE-INFO HAS:PURPLE-QUESTION | Search for messages with a particular star | Example: has:purple-star from:David Meaning: Messages from David that are marked with a purple star |
| CC: BCC: | Used to specify recipients in thecc: or bcc: fields* *Search on bcc: cannot retrieve messages on which you were blind carbon copied | Example: cc:david Meaning: Messages that were cc-ed to David |
| AFTER: BEFORE: OLDER: NEWER: | Search for messages sent during a certain period of time (using the date format yyyy/mm/dd) | Example: after:2004/04/16 before:2004/04/18 Meaning: Messages sent between April 16, 2004 and April 18, 2004.* *More precisely: Messages sent after 12:00 AM (or 00:00) April 16, 2004 and before April 18, 2004. |
| OLDER_THAN NEWER_THAN | Similar to older and newer, but allows relative dates using d, m, and y for day, month, and year | Example: newer_than:2d Meaning: Finds messages sent within the last two days. |
| IS:CHAT | Search for chat messages | Example: is:chat monkey Meaning: Any chat message including the word "monkey." |
| DELIVEREDTO: | Search for messages within a particular email address in the Delivered-To line of the message header | Example: deliveredto:username@gmail.com Meaning: Any message with username@gmail.com in the Delivered-To: field of the message header (which can help you find messages forwarded from another account or ones sent to an alias). |
| CIRCLE: | Search for messages that were sent from someone who you added to a particular Google+ circle | Example: circle:friends Meaning: Any message that was sent by a person in your "Friends" circle. Examples: circle:"soccer friends (team blue)" or circle:"my \"fab four\"" Notes: For circle names that include a space, parentheses, curly brackets, or vertical bar, add quotes around the name. For names that include quotes, add a back slash immediately before the quotes. |
| HAS:CIRCLE | Search for all messages that were sent from someone who you added to your Google+ circles | Example: has:circle Meaning: Any message that was sent by a person in any of your circles. |
| SIZE: | Search for messages larger than the specified size in bytes | Example: size:1000000 Meaning: All messages larger than 1MB (1,000,000 bytes) in size. |
| LARGER: SMALLER: | Similar to size: but allows abbreviations for numbers | Example: larger:10M Meaning: All messages of at least 10M bytes (10,000,000 bytes) in size. |
| + (PLUS SIGN) | Match the search term exactly | Example: +unicorn Meaning: Finds messages containing “unicorn” but not “unicorns” or “unciorn” |
| RFC822MSGID: | Find a message by the message-id header | Example:rfc822msgid:20050329231145.62086.mail@mail.emailprovider.com Meaning: Locates the exact message with the specified SMTP1message-id. Learn more about headers. |
| HAS:USERLABELS HAS:NOUSERLABELS | Search for messages that have and have not had labels that you created applied to them. NOTE: Gmail applies labels to individual messages, not to conversation threads. | Example: has:nouserlabels Meaning: Finds all messages without any of your own labels (excludes automatic labels like inbox, spam, and trash). Since Gmail applies labels to individual messages, you might see results that appear to have labels; in this case, another message in the same conversation thread has had a label applied to it. |
- SMTP: SMTP (Simple Mail Transfer Protocol) is a set of standard Internet procedures by which two email providers (ex. Gmail, Yahoo Mail), transfer email messages to one another’s mail servers.
Tuesday, November 6, 2012
Connecting Computers with the human brain-The IET Pinkerton Lecture 2012
Date: Friday 23rd November 2012 @ 5:00 PM
Venue: Infosys Convention Centre, Electronics City Hosur Road Bengaluru
Organised by India Region
Institution of Engineering and Technology (IET) is organizing a Lecture at Infosys Campus on the topic ‘Connecting Computers with the human brain' by Prof.Kevin Warwick (University of Reading, UK) on November 23,2012. The lecture is hosted by Mr.Narayana Murthy and it is a Free lecture, we are expecting 1500 participants from industry and academia. Please find the following link for more details:
http://conferences.theiet.org/pinkerton/index.cfm
Wednesday, June 27, 2012
Technical Tips-1 About Java Version
To Check the Java Version in Your System Run The Following Command in Command Line or Terminal
java -version java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) Server VM (build 20.1-b02, mixed mode) |
Notes:
Hotspot Virtual Machine
Both the client and server Hotspot compilers are included in the Java Runtime Environment.
By default the client compiler is enabled, but for intense server-side applications, you can run the server compiler with the -server runtime option. The Hotspot virtual machine normally runs in a mixed mode, as seen in the -version output. Mixed mode means Hotspot dynamically compiles Java bytecodes into native code when a number of criteria have been met, including the number of times the method has been run through the interpreter. Mixed runtime mode normally results in the best performance.
About Linux Threads
One major difference between developing on Linux from other Unix operating systems is the system threads library. In Java 2 releases prior to 1.3, the Java virtual machine uses its own threads library, known as green threads, to implement threads in the Java platform. The advantage here is that green threads minimize the Java virtual machine's exposure to differences in the Linux threads library and makes the port easier to complete. The downside is that using green threads means system threads on Linux are not taken advantage of and so the Java virtual machine is not scalable when additional CPUs are added.
In Java 2 Release 1.3, the Hotspot virtual machine uses system threads to implement Java threads. Because Linux threads are implemented as a cloned process, each Java thread shows up in the process table if you run the ps command. This is normal behavior on Linux.
java -jar Notepad.jar ps -eo pid,ppid,command PID PPID COMMAND 11667 28367 /usr/java/jdk1.3/bin/i386/native_threads/java -jar Notepad.jar 11712 11667 /usr/java/jdk1.3/bin/i386/native_threads/java -jar Notepad.jar 11713 11712 /usr/java/jdk1.3/bin/i386/native_threads/java -jar Notepad.jar 11714 11712 /usr/java/jdk1.3/bin/i386/native_threads/java -jar Notepad.jar 11715 11712 /usr/java/jdk1.3/bin/i386/native_threads/java -jar Notepad.jar 11716 11712 /usr/java/jdk1.3/bin/i386/native_threads/java -jar Notepad.jar 11717 11712 /usr/java/jdk1.3/bin/i386/native_threads/java -jar Notepad.jar 11718 11712 /usr/java/jdk1.3/bin/i386/native_threads/java -jar Notepad.jar 11722 11712 /usr/java/jdk1.3/bin/i386/native_threads/java -jar Notepad.jar 11723 11712 /usr/java/jdk1.3/bin/i386/native_threads/java -jar Notepad.jar 11724 11712 /usr/java/jdk1.3/bin/i386/native_threads/java -jar Notepad.jar 11726 11712 /usr/java/jdk1.3/bin/i386/native_threads/java -jar Notepad.jar |
In the above listing, the process ID 11712 shown in the left-most PID column is the invoked Java virtual machine. The other processes that show process ID 11712 in the PPID column have process ID 11712 as their parent process. These children to process ID 11712 are Java threads implemented by the Linux system threads library. Each Linux thread is created as a process clone operation, which leaves the scheduling of threads to be a task of the process scheduler.
By comparison, on Solaris the Java threads are mapped onto user threads, which in turn are run on Lightweight processes (LWP). On Windows the threads are created inside the process itself. For this reason, creating a large number of Java threads on Solaris and Windows today is faster than on Linux. This means you might need to adjust programs that rely on platform-specific timing to take a little longer on startup when they run on Linux.
Thanks
http://java.sun.com/developer/technicalArticles/Programming/linux/
Technical Tips-1 About Java Version
java -version java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) Server VM (build 20.1-b02, mixed mode) |
-server runtime option. The Hotspot virtual machine normally runs in a mixed mode, as seen in the -version output. Mixed mode means Hotspot dynamically compiles Java bytecodes into native code when a number of criteria have been met, including the number of times the method has been run through the interpreter. Mixed runtime mode normally results in the best performance.About Linux Threads
ps command. This is normal behavior on Linux.java -jar Notepad.jar ps -eo pid,ppid,command PID PPID COMMAND 11667 28367 /usr/java/jdk1.3/bin/i386/native_threads/java -jar Notepad.jar 11712 11667 /usr/java/jdk1.3/bin/i386/native_threads/java -jar Notepad.jar 11713 11712 /usr/java/jdk1.3/bin/i386/native_threads/java -jar Notepad.jar 11714 11712 /usr/java/jdk1.3/bin/i386/native_threads/java -jar Notepad.jar 11715 11712 /usr/java/jdk1.3/bin/i386/native_threads/java -jar Notepad.jar 11716 11712 /usr/java/jdk1.3/bin/i386/native_threads/java -jar Notepad.jar 11717 11712 /usr/java/jdk1.3/bin/i386/native_threads/java -jar Notepad.jar 11718 11712 /usr/java/jdk1.3/bin/i386/native_threads/java -jar Notepad.jar 11722 11712 /usr/java/jdk1.3/bin/i386/native_threads/java -jar Notepad.jar 11723 11712 /usr/java/jdk1.3/bin/i386/native_threads/java -jar Notepad.jar 11724 11712 /usr/java/jdk1.3/bin/i386/native_threads/java -jar Notepad.jar 11726 11712 /usr/java/jdk1.3/bin/i386/native_threads/java -jar Notepad.jar |
11712 shown in the left-most PID column is the invoked Java virtual machine. The other processes that show process ID 11712 in the PPID column have process ID 11712 as their parent process. These children to process ID 11712 are Java threads implemented by the Linux system threads library. Each Linux thread is created as a process clone operation, which leaves the scheduling of threads to be a task of the process scheduler.Tuesday, June 5, 2012
Growth of Mobile Internet Traffic
People are increasingly using their phones to access the Internet. New information on 2012 Internet trends via KPCB shows that mobile Internet traffic has increased ten-fold in less than three years–from 1% of Internet traffic at the end of 2009 to 10% in May 2012.
Thursday, April 5, 2012
Google's Project Glass





If you think texting while walking is dangerous, just wait until everyone starts wearing Google's futuristic, Internet-connected glasses.
While wearing a pair, you can see directions to your destination appear literally before your eyes. You can talk to friends over video chat, take a photo or even buy a few things online as you walk around.
These glasses can do anything you now need a smartphone or tablet computer to do -and then some.
We think technology should work for you—to be there when you need it and get out of your way when you don't.
A group of us from Google[x] started Project Glass to build this kind of technology, one that helps you explore and share your world, putting you back in the moment. We're sharing this information now because we want to start a conversation and learn from your valuable input. So we took a few design photos to show what this technology could look like and created a video to demonstrate what it might enable you to do.
Please follow along as we share some of our ideas and stories. We'd love to hear yours, too. What would you like to see from Project Glass?
Google said" We believe technology should work for you — to be there when you need it and get out of your way when you don't. A team within our Google[x] group started..."
Wednesday, March 14, 2012
Business Icons who Faced Utter Failure
When we talk about success, we tend to measure it with how wealthy a person is or what is the turnover of his business, but we forget to mention their business blunders which made them face failures. After all they say, "He who never made a mistake, never made a discovery". It is not a surprising fact that even successful people suffered failure in their ways of prosecuting things. But resurrecting these mistakes and trying hard have made them successful. Here are few entrepreneurs who made a splendid come back after facing utter failures.
Henry Ford
Company: Ford Motor Co.
Henry Ford is the founder of Ford Motor Company. In his early career, he started Detroit Automobile Co. in 1899, and arranged financers to back up the company. But the company dissolved within two years that is in 1901. Its produced cars were of low quality and were too posh for an average consumer.
Henry then decided to develop a new and much better automobile quality design, after this debacle. He hit the jackpot by making the Model T automobile, which is a well-made and low priced car. This revolutionized the transportation industry. Gradually his factories were able to meet the demands of Model Ts, which made it the most successful car in the history of automobile.
He says, "Whether you think you can, or you think you can't - you're right. Building a brand requires more than just building a good product".
Dame Anita Roddick
Company: The Body Shop
Dame Anita Roddick is the founder of 'The Body Shop', a well known cosmetic brand. She opened the Body Shop in Brighton, U.K., with the aim of making an income for herself, but started her business with truth rather than hype. Two of her neighboring funeral parlors objected to her brand name initially.
Anita fought back by suggesting to one of the local newspaper, that 'she was a women entrepreneur under siege'. This whole chaos fetched publicity and brought traffic to her store. Since then, she is doing very well and has more than 700 branches of 'Body Shop' stores.
Anita says, "If you think you're too small to have an impact, try going to bed with a mosquito. Don't let minor setbacks throw you off course."
Frederick W. Smith
Company: Federal Express (now FedEx Corp.)
Fredrick W. Smith is the founder of the Federal Express, which is the first overnight express delivery company in the world, whose tag line was "We live to deliver". In order to live up to his tagline, he started an electronic delivery system in 1984, called Zapmail, to compete fax machines. But this did not fetched customers well and ended with a loss of ₨17,508.84 million in 2 years.
Fredrick understood this business strategy a bit later, of acknowledging failures, avoiding bad ideas and to move on positively. He completely focused on his delivery business and successfully generated more than ₨1,750.88 billion revenue within 2010.
One of his most famous quotes is "Leaders get out in front and stay there by raising the standards by which they judge themselves and by which they are willing to be judged." He says, "(You should) be willing to acknowledge failure, abandon bad ideas and move on."
Walt Disney
Company: The Walt Disney (now Disney)
Walt Disney founded 'Walt Disney' production along with his brother. This cartoon animation company encountered several major financial setbacks in the late 1920s and 1930s, such as losing rights to the popular 'Oswald' the 'Lucky Rabbit' character. All this lead the company into a debt of ₨200.1 million by the early 1930s.
With a bare cash and finance to back the company, Disney pictures released "Snow White and the Seven Dwarfs" in 1938. It became a blockbuster film which ultimately pulled out the company from bankruptcy. Then Walt Disney eventually built the 'Walt Disney Studios' in Burbank, California.
Walt says, ""You may not realize it when it happens, but a kick in the teeth may be the best thing in the world for you. One killer idea can quickly make up for a series of flops".
Steve Jobs
Company: Apple Computer
Not to mention, Steven Paul Jobs co-founded Apple. He was forced to resign from Apple in 1985, after which he spent several years to build NeXT, a computer workstation for educators, which eventually became his comeback to Apple.
Because of NeXT's high price tag and reports of numerous bugs, its sale never materialized. Apple then announced and bought NeXT in 1996, and brought back Jobs to the company as interim CEO. This became a great turnover for the company with the success of iPod and iPad, which ultimately brought Apple in the list of most successful Fortune 500 companies of the past decade.
Steve said, "You can't just ask customers what they want and then try to give that to them. By the time you get it built, they'll want something new. Having the right resources and people around you makes a big difference".
Bill Gates
Company: Microsoft Corporation
Bill Gates along with Paul Allen started Traf-O-Data while being at high-school. Traf-O-Data was a computer business which could automatically read paper tapes from traffic counters for local governments. Regrettably, it became obsolete as the Washington state government decided to tabulate the tapes for free.
After this debacle, they got t learn how to write software for a computer. They later created Micro-Soft as a startup business, which is super successful now.
After succeeding he said, "You can learn a lot from failed endeavors. Success is a lousy teacher. It seduces smart people into thinking they can't lose."
Harland David Sanders
Company: Kentucky Fried Chicken (now KFC)
Sanders was more famous as 'Colonel Sanders'. He was more popular for his chicken fast food at Kentucky Fried Chicken, a food chain. But in 1955, he was in deep debt, which made him sell his two decade old restaurant. After settling all his debts, he was completely broke.
He had already started franchising his chicken restaurant concept by then. He started seeking franchises and within five years had 190 franchisees and 400 Kentucky Fried Chicken locations, and the rest is history.
He used to say, "Feed the poor and get rich or feed the rich and get poor. It may not be the idea that's unsuccessful; it may be the execution strategy".
Mary Kay Ash
Company: Mary Kay Cosmetics
In 1963, Ash resigned from Stanley Home Products after working for 25 years there. She did so out of frustration, as the firm overlooked her promotions. Even the men, whom she used to train, used to get through the rank. She started writing a book upon women's business plan, but soon realized, it was meant for her.
So she started her own business – Mary Kay Cosmetics. Out of rage to prove the world of a women's will power, she ended up doing the cosmetics business well. The company made₨125.06 billion profit worldwide in 2009.
Ash believes in the fact that, "For every failure, there's an alternative course of action. You just have to find it. When you come to a roadblock, take a detour. Some of the best business ideas come out of personal experience".
Dave Thomas
Company: Wendy's
He founded Wendy's, in 1982, which is a fast-food chain specializing in hamburgers. After 13 years, he retired from Wendy's which annoyed many customers as the breakfast menu unimpressed them. The firm's revenue started to go down.
Out of his semi-retirement, Thomas came into the picture and acted as the company's spokesperson in its advertisements. It worked as wonder and the company was able to stand up again.
He says, "Take care of your business and your business will take care of you". For him, "Having a strong leader at the helm can make a world of difference in the success or failure of a company".


