Today I stumbled upon two "insignificant" issues which I have faced before but it took reasonable amount of time to "re-discover" the solution. One good way of "not forgetting" quick solution to known problems is blogging about them.
Issue #1
After generating the JAX RPC client artifacts for consuming a service I was getting an error: java.lang.UnsupportedClassVersionError. This exception can occur when the source is built targeting a JDK(in my case JDK 1.5) that is not supported by the JDK(JDK 1.4) attempting to run it.
I simply added one attribute 'source = "1.4"' in the <javac> tag of the ant script which is used to generate and compile the artifacts and that solved the problem.
Issue #2
I am using CCRC 7.1 as the source control tool for my project.
I was having a perfect eclipse workspace and suddenly one of the project module started complaining :
'Internal error - the selected file is a system file that cannot be modified. It will be hidden.'
It does appear because it automatically copies the CCRC internal file .copyarea.db in the bin (build target) directory which confuses the build process.
The solution:
1. In Window-> Preferences menu, go to Java -> Compiler -> Building item.
2. Expand the Output folder and add .copyarea.db to the Filtered Resources of the output folder. My edit field looked like this: *.launch, .copyarea.db
3. Remove the .copyarea.db files from your java build output directories such as /<project>/bin/ and /<project>/build.
4. Refresh and rebuild each project that is displaying this error.
Now we can talk about productivity :)
Tuesday, July 6, 2010
Wednesday, May 19, 2010
Select trigger in Oracle DB using Fine Grained Auditing.
Well, as it goes that triggers can only be written on DML and never on select statements: very true but it seems like using "Fine Grained Auditing" functionality of the DBMS_FGA package, it is possible to create trigger like functionality for select statements.
I was searching for similar concepts for a project which requires the count of every row which has been queried be increased. And I stumbled upon this: FGA. Though I didn't quite use this and did a work around but it sounds fun.
I was searching for similar concepts for a project which requires the count of every row which has been queried be increased. And I stumbled upon this: FGA. Though I didn't quite use this and did a work around but it sounds fun.
Friday, January 15, 2010
Surya Grahan
For the first time in my life, I saw a solar eclipse with a goggles today.
It was, in one word, awesome. The corona was looking like a golden ring of fire. I was feeling that if it is not divine revelation then what is. The special things about this eclipse:
1. It is one of the longest duration annular eclipse, the duration of which won't be exceeded in a thousand years(till Dec, 3043).
2. I fasted till the eclipse ended(No, I'm not that religious; just to bring a difference to daily routine)
After the eclipse, I was damn hungry and ate like a glutton.
Being a devoted Einstein fan, I remembered that taken during one of the longest solar eclipse of the 20th century, the British scientist Arthur Stanley Eddington's photographs played a vital role in proving the theory of relativity.
It was, in one word, awesome. The corona was looking like a golden ring of fire. I was feeling that if it is not divine revelation then what is. The special things about this eclipse:
1. It is one of the longest duration annular eclipse, the duration of which won't be exceeded in a thousand years(till Dec, 3043).
2. I fasted till the eclipse ended(No, I'm not that religious; just to bring a difference to daily routine)
After the eclipse, I was damn hungry and ate like a glutton.
Being a devoted Einstein fan, I remembered that taken during one of the longest solar eclipse of the 20th century, the British scientist Arthur Stanley Eddington's photographs played a vital role in proving the theory of relativity.
Tuesday, July 21, 2009
Getting the cookies in Mozilla Firefox browser with SQLite.
Well, to start with, Mozilla Firefox browser doesn't store the cookies in some folders like IE6 does(even previous versions of firefox) rather it uses SQLite and keeps them in local databases.
If you like to see the cookies you should have the SQLite program to access SQLite databases. Get one from here. The zip file, upon extracting, will yield sqlite3.exe.
Now you have to know where the Mozilla Firefox installs itself by default. If you are using Windows XP/Vista, type %APPDATA%\Mozilla\Firefox\Profiles in the Run command and press enter. It should take you to your Mozilla Firefox installation home. You will see a folder named aoxoXXXX.default. Go into that and copy sqlite3.exe there. Now from the command prompt start the sqlite3.exe but before that confirm that the cookies.sqlite file is present in the directory.
This will fetch all the cookies from your browser.
Happy Hacking.
Stay Hungry. Stay Foolish.
If you like to see the cookies you should have the SQLite program to access SQLite databases. Get one from here. The zip file, upon extracting, will yield sqlite3.exe.
Now you have to know where the Mozilla Firefox installs itself by default. If you are using Windows XP/Vista, type %APPDATA%\Mozilla\Firefox\Profiles in the Run command and press enter. It should take you to your Mozilla Firefox installation home. You will see a folder named aoxoXXXX.default. Go into that and copy sqlite3.exe there. Now from the command prompt start the sqlite3.exe but before that confirm that the cookies.sqlite file is present in the directory.
$ sqlite3 cookies.sqlite
To find out what tables are there in the db file use:
sqlite> select * from sqlite_master;
table|moz_cookies|moz_cookies|2|CREATE TABLE moz_cookies (id INTEGER PRIMARY KEY
, name TEXT, value TEXT, host TEXT, path TEXT,expiry INTEGER, lastAccessed INTEG
ER, isSecure INTEGER, isHttpOnly INTEGER)
This shows there is a table named moz_cookies. To get all the cookies, type in:sqlite> select * from moz_cookies;
This will fetch all the cookies from your browser.
Happy Hacking.
Stay Hungry. Stay Foolish.
Tuesday, January 15, 2008
"A Passing Thought"
Hi Friends,
Hope you all are doing great and wish that you all will achieve greater feats.
I was feeling a bit down this morning and was trying to find out some way to elevate my mood.
What I felt after pondering over for sometime that its not that important how low you may feel at any given point of time, how much you demean yourselves, etc.
But what really matters is how high you can take yourself from that point on and what good things you do in that "winged" period and how long you can stretch yourself and keep yourself in that situation of "absolute bliss". Life is all about creation and destruction. How much you have destroyed will start losing its scary appeal when you start pondering upon how much you have created and what more things can you and will you create. All creations should be preceded by a big destruction. To me atleast this seems to be as natural. If we look at the creation of the present universe it was preceded by one big bang which looked like destruction but was, rather, the greatest creation in disguise. The lesson is that we need to carry on and keep things in shape while they are real hot because we won't get opportunity to shape them up once they cool down and the outcome will be a great creation once everything cools down. I think the mistake we(rather I) do is we forget our job to shape things up while they are hot and start worrying and give birth to doubts like whether they are really going to cool down and sometimes start believing firmly that they are never going to cool down. But is that possible? We(I) need to ask ourselves(myself) seriously.
Apart from that, I have decided to sign off all my blogs in the words of Jobs which he, himself , has taken from, in his words, "Paperback Google".
Stay hungry. Stay foolish.
Hope you all are doing great and wish that you all will achieve greater feats.
I was feeling a bit down this morning and was trying to find out some way to elevate my mood.
What I felt after pondering over for sometime that its not that important how low you may feel at any given point of time, how much you demean yourselves, etc.
But what really matters is how high you can take yourself from that point on and what good things you do in that "winged" period and how long you can stretch yourself and keep yourself in that situation of "absolute bliss". Life is all about creation and destruction. How much you have destroyed will start losing its scary appeal when you start pondering upon how much you have created and what more things can you and will you create. All creations should be preceded by a big destruction. To me atleast this seems to be as natural. If we look at the creation of the present universe it was preceded by one big bang which looked like destruction but was, rather, the greatest creation in disguise. The lesson is that we need to carry on and keep things in shape while they are real hot because we won't get opportunity to shape them up once they cool down and the outcome will be a great creation once everything cools down. I think the mistake we(rather I) do is we forget our job to shape things up while they are hot and start worrying and give birth to doubts like whether they are really going to cool down and sometimes start believing firmly that they are never going to cool down. But is that possible? We(I) need to ask ourselves(myself) seriously.
Apart from that, I have decided to sign off all my blogs in the words of Jobs which he, himself , has taken from, in his words, "Paperback Google".
Stay hungry. Stay foolish.
Wednesday, July 25, 2007
Steve jobs 10 best quotes
I took this from another site. I found the article interesting.
This man with boundless energy and charisma is also a master of hype, hyperbole and the catchy phrase. And even when he’s trying to talk normally, brilliant verbiage comes tumbling out.
Here’s a selection of some of the most insanely great things he said, golden lessons to help you succeed in life, Jobs-style:
1. Steve Jobs said: “Innovation distinguishes between a leader and a follower.”
Innovation has no limits. The only limit is your imagination. It’s time for you to begin thinking out of the box. If you are involved in a growing industry, think of ways to become more efficient; more customer friendly; and easier to do business with. If you are involved in a shrinking industry – get out of it quick and change before you become obsolete; out of work; or out of business. And remember that procrastination is not an option here. Start innovating now!
2. Steve Jobs said: “Be a yardstick of quality. Some people aren’t used to an environment where excellence is expected.”
There is no shortcut to excellence. You will have to make the commitment to make excellence your priority. Use your talents, abilities, and skills in the best way possible and get ahead of others by giving that little extra. Live by a higher standard and pay attention to the details that really do make the difference. Excellence is not difficult - simply decide right now to give it your best shot - and you will be amazed with what life gives you back.
3. Steve Jobs said: “The only way to do great work is to love what you do. If you haven’t found it yet, keep looking. Don’t settle. As with all matters of the heart, you’ll know when you find it.”
I’ve got it down to four words: “Do what you love.” Seek out an occupation that gives you a sense of meaning, direction and satisfaction in life. Having a sense of purpose and striving towards goals gives life meaning, direction and satisfaction. It not only contributes to health and longevity, but also makes you feel better in difficult times. Do you jump out of bed on Monday mornings and look forward to the work week? If the answer is ‘no’ keep looking, you’ll know when you find it.
4. Steve Jobs said: “You know, we don’t grow most of the food we eat. We wear clothes other people make. We speak a language that other people developed. We use a mathematics that other people evolved… I mean, we’re constantly taking things. It’s a wonderful, ecstatic feeling to create something that puts it back in the pool of human experience and knowledge.”
Live in a way that is ethically responsible. Try to make a difference in this world and contribute to the higher good. You’ll find it gives more meaning to your life and it’s a great antidote to boredom. There is always so much to be done. And talk to others about what you are doing. Don’t preach or be self-righteous, or fanatical about it, that just puts people off, but at the same time, don’t be shy about setting an example, and use opportunities that arise to let others know what you are doing.
5. Steve Jobs said: “There’s a phrase in Buddhism, ‘Beginner’s mind.’ It’s wonderful to have a beginner’s mind.”
It is the kind of mind that can see things as they are, which step by step and in a flash can realize the original nature of everything. Beginner’s mind is Zen practice in action. It is the mind that is innocent of preconceptions and expectations, judgements and prejudices. Think of beginner’s mind as the mind that faces life like a small child, full of curiosity and wonder and amazement.
6. Steve Jobs said: “We think basically you watch television to turn your brain off, and you work on your computer when you want to turn your brain on.”
Reams of academic studies over the decades have amply confirmed television’s pernicious mental and moral influences. And most TV watchers know that their habit is mind-numbing and wasteful, but still spend most of their time in front of that box. So turn your TV off and save some brain cells. But be cautious, you can turn your brain off by using a computer also. Try and have an intelligent conversation with someone who plays first person shooters for 8 hours a day. Or auto race games, or role-playing games.
7. Steve Jobs said: “I’m the only person I know that’s lost a quarter of a billion dollars in one year…. It’s very character-building.”
Don’t equate making mistakes with being a mistake. There is no such thing as a successful person who has not failed or made mistakes, there are successful people who made mistakes and changed their lives or performance in response to them, and so got it right the next time. They viewed mistakes as warnings rather than signs of hopeless inadequacy. Never making a mistake means never living life to the full.
8. Steve Jobs said: “I would trade all of my technology for an afternoon with Socrates.”
Over the last decade, numerous books featuring lessons from historical figures have appeared on the shelves of bookstores around the world. And Socrates stands with Leonardo da Vinci, Nicholas Copernicus, Charles Darwin and Albert Einstein as a beacon of inspiration for independent thinkers. But he came first. Cicero said of Socrates that, “He called philosophy down from the skies and into the lives of men.” So use Socrates’ principles in your life, your work, your learning, and your relationships. It’s not about Socrates, it’s really about you, and how you can bring more truth, beauty and goodness into your life everyday.
9. Steve Jobs said: “We’re here to put a dent in the universe. Otherwise why else even be here?”
Did you know that you have big things to accomplish in life? And did you know that those big things are getting rather dusty while you pour yourself another cup of coffee, and decide to mull things over rather than do them? We were all born with a gift to give in life, one which informs all of our desires, interests, passions and curiosities. This gift is, in fact, our purpose. And you don’t need permission to decide your own purpose. No boss, teacher, parent, priest or other authority can decide this for you. Just find that unique purpose.
10. Steve Jobs said: “Your time is limited, so don’t waste it living someone else’s life. Don’t be trapped by dogma - which is living with the results of other people’s thinking. Don’t let the noise of other’s opinions drown out your own inner voice. And most important, have the courage to follow your heart and intuition. They somehow already know what you truly want to become. Everything else is secondary.”
Are you tired of living someone else’s dream? No doubt, its your life and you have every right to spend it in your own individual way without any hurdles or barriers from others. Give yourself a chance to nurture your creative qualities in a fear-free and pressure-free climate. Live a life that YOU choose and be your own boss."
"His accomplishments and character helped define a generation and change the world. He is co-founder of the fairytale company we now know as Apple Computers. And he is the visionary of the personal computers world that led the entire computer hardware and software industry to restructure itself.
This man with boundless energy and charisma is also a master of hype, hyperbole and the catchy phrase. And even when he’s trying to talk normally, brilliant verbiage comes tumbling out.
Here’s a selection of some of the most insanely great things he said, golden lessons to help you succeed in life, Jobs-style:
1. Steve Jobs said: “Innovation distinguishes between a leader and a follower.”
Innovation has no limits. The only limit is your imagination. It’s time for you to begin thinking out of the box. If you are involved in a growing industry, think of ways to become more efficient; more customer friendly; and easier to do business with. If you are involved in a shrinking industry – get out of it quick and change before you become obsolete; out of work; or out of business. And remember that procrastination is not an option here. Start innovating now!
2. Steve Jobs said: “Be a yardstick of quality. Some people aren’t used to an environment where excellence is expected.”
There is no shortcut to excellence. You will have to make the commitment to make excellence your priority. Use your talents, abilities, and skills in the best way possible and get ahead of others by giving that little extra. Live by a higher standard and pay attention to the details that really do make the difference. Excellence is not difficult - simply decide right now to give it your best shot - and you will be amazed with what life gives you back.
3. Steve Jobs said: “The only way to do great work is to love what you do. If you haven’t found it yet, keep looking. Don’t settle. As with all matters of the heart, you’ll know when you find it.”
I’ve got it down to four words: “Do what you love.” Seek out an occupation that gives you a sense of meaning, direction and satisfaction in life. Having a sense of purpose and striving towards goals gives life meaning, direction and satisfaction. It not only contributes to health and longevity, but also makes you feel better in difficult times. Do you jump out of bed on Monday mornings and look forward to the work week? If the answer is ‘no’ keep looking, you’ll know when you find it.
4. Steve Jobs said: “You know, we don’t grow most of the food we eat. We wear clothes other people make. We speak a language that other people developed. We use a mathematics that other people evolved… I mean, we’re constantly taking things. It’s a wonderful, ecstatic feeling to create something that puts it back in the pool of human experience and knowledge.”
Live in a way that is ethically responsible. Try to make a difference in this world and contribute to the higher good. You’ll find it gives more meaning to your life and it’s a great antidote to boredom. There is always so much to be done. And talk to others about what you are doing. Don’t preach or be self-righteous, or fanatical about it, that just puts people off, but at the same time, don’t be shy about setting an example, and use opportunities that arise to let others know what you are doing.
5. Steve Jobs said: “There’s a phrase in Buddhism, ‘Beginner’s mind.’ It’s wonderful to have a beginner’s mind.”
It is the kind of mind that can see things as they are, which step by step and in a flash can realize the original nature of everything. Beginner’s mind is Zen practice in action. It is the mind that is innocent of preconceptions and expectations, judgements and prejudices. Think of beginner’s mind as the mind that faces life like a small child, full of curiosity and wonder and amazement.
6. Steve Jobs said: “We think basically you watch television to turn your brain off, and you work on your computer when you want to turn your brain on.”
Reams of academic studies over the decades have amply confirmed television’s pernicious mental and moral influences. And most TV watchers know that their habit is mind-numbing and wasteful, but still spend most of their time in front of that box. So turn your TV off and save some brain cells. But be cautious, you can turn your brain off by using a computer also. Try and have an intelligent conversation with someone who plays first person shooters for 8 hours a day. Or auto race games, or role-playing games.
7. Steve Jobs said: “I’m the only person I know that’s lost a quarter of a billion dollars in one year…. It’s very character-building.”
Don’t equate making mistakes with being a mistake. There is no such thing as a successful person who has not failed or made mistakes, there are successful people who made mistakes and changed their lives or performance in response to them, and so got it right the next time. They viewed mistakes as warnings rather than signs of hopeless inadequacy. Never making a mistake means never living life to the full.
8. Steve Jobs said: “I would trade all of my technology for an afternoon with Socrates.”
Over the last decade, numerous books featuring lessons from historical figures have appeared on the shelves of bookstores around the world. And Socrates stands with Leonardo da Vinci, Nicholas Copernicus, Charles Darwin and Albert Einstein as a beacon of inspiration for independent thinkers. But he came first. Cicero said of Socrates that, “He called philosophy down from the skies and into the lives of men.” So use Socrates’ principles in your life, your work, your learning, and your relationships. It’s not about Socrates, it’s really about you, and how you can bring more truth, beauty and goodness into your life everyday.
9. Steve Jobs said: “We’re here to put a dent in the universe. Otherwise why else even be here?”
Did you know that you have big things to accomplish in life? And did you know that those big things are getting rather dusty while you pour yourself another cup of coffee, and decide to mull things over rather than do them? We were all born with a gift to give in life, one which informs all of our desires, interests, passions and curiosities. This gift is, in fact, our purpose. And you don’t need permission to decide your own purpose. No boss, teacher, parent, priest or other authority can decide this for you. Just find that unique purpose.
10. Steve Jobs said: “Your time is limited, so don’t waste it living someone else’s life. Don’t be trapped by dogma - which is living with the results of other people’s thinking. Don’t let the noise of other’s opinions drown out your own inner voice. And most important, have the courage to follow your heart and intuition. They somehow already know what you truly want to become. Everything else is secondary.”
Are you tired of living someone else’s dream? No doubt, its your life and you have every right to spend it in your own individual way without any hurdles or barriers from others. Give yourself a chance to nurture your creative qualities in a fear-free and pressure-free climate. Live a life that YOU choose and be your own boss."
Wednesday, July 4, 2007
Nascent Idea.
An idea that is just born, that is nascent, has a great power inherently. Now if it gets the power of a dream then it becomes a force so strong that can change the world. Sounding absurd? Not a surprise. Every great idea gets the tag of being absurd and lunatic in the beginning and it continues to be marked so until it is realized. So if an idea which is deemed as great and is in its nascent stage then it becomes a responsibility to realize it. Responsibility is like the frame which holds a great piece of artwork.
Subscribe to:
Posts (Atom)