Believing everybody is dangerous,
but believing nobody is more dangerous
- Abraham Lincoln
Believing everybody is dangerous,
but believing nobody is more dangerous
- Abraham Lincoln
Everyone thinks of changing the world,
but no one thinks of changing himself
- Leo Tolstoy
I will not say I failed 1000 times, I will say
that I discovered 1000 ways that can cause failure.
Thomas Alva Edison
If we cannot love the person whom we see,
how can we love God, whom we can not see.....
- Mother Therasa
If you win, you need not have to explain...
If you lose, you should not be there to explain!
-Adolf Hitler
Never break four things in our life Trust, Relation, Promise & Heart
because when they break, they don't make noise but pains lot
- Charles Dickens
If someone feels that they had never made a mistake in their life,
then it means they had never tried a new thing in their life.
- Albert Einstein
In a day, you don't come across any problem
you can be sure that you are travelling in a wrong path
- Swami Vivekananda
If you judge people you do not have time to love them
- Mother Therasa
Know more than the other
Work more than the other
Expect less than the other
- William Shakespear
Implement business logic with the Drools rules engine
Use a declarative programming approach to write your program's business logic
Using a rules engine can lower an application's maintenance and extensibility costs by reducing the complexity of components that implement complex business logic. This updated article shows you how to use the open source Drools rules engine to make a Java™ application more adaptive to changes. The Drools project has introduced a new native rule expression language and an Eclipse plug-in, making Drools easier to use than ever before.
Most of the complexities that requirements impose on today's software products are behavioral and functional, resulting in component implementations with complex business logic. The most common way to implement the business logic in a J2EE or J2SE application is to write Java code that realizes the requirements document's rules and logic. In most cases, this code's intricacy and complexity makes maintaining and updating the application's business logic a daunting task, even for experienced developers. And any change, however simple, incurs recompilation and redeployment costs.
A rules engine helps you resolve (or at least reduce) the issues and difficulties inherent in the development and maintenance of an application's business logic. You can think of a rules engine as a framework for implementing complex business logic. Most rules engines let you use declarative programming to express the consequences that are valid given some information or knowledge. You can concentrate on facts that are known to be true and their associated outcomes — that is, on an application's business logic.
Several rules engines are available, including commercial and open source choices. Commercial rules engines usually let you express rules in a proprietary English-like language. Others let you write rules using scripting languages such as Groovy or Python. This updated article introduces you to the Drools engine and uses a sample program to help you understand how to use Drools as part of your business logic
Drools is an open source rules engine, written in the Java language, that uses the Rete algorithm to evaluate the rules you write (see Resources). Drools lets you express your business logic rules in a declarative way. You can write rules using a non-XML native language that is quite easy to learn and understand. And you can embed Java code directly in a rules file, which makes the experience of learning Drools even more attractive. Drools also has other advantages. It is:
http://www.ibm.com/developerworks/java/library/j-drools/
Reference Sites:
http://en.wikipedia.org/wiki/Drools
http://java-source.net/open-source/rule-engines/drools
http://java-source.net/open-source/rule-engines
http://www.jboss.org/drools/documentation.html
http://downloads.jboss.com/drools/docs/4.0.7.19894.GA/html_single/index.html#d0e65
http://downloads.jboss.com/drools/docs/4.0.7.19894.GA/html/index.html
http://blog.athico.com/2007/11/how-big-is-too-big.html
http://www.onjava.com/pub/a/onjava/2005/08/03/drools.html?page=1
SAVE ENERGY • SAVE MONEY • REDUCE GREENHOUSE GASES
SIX SIMPLE THINGS EVERYONE CAN DO:
DURING EACH DAY
1. Enable Energy Star or Power Management features on your computer where feasible.
Help save $140,000 and 560,000 kg of carbon dioxide per year by activating Energy Star or power management features on your computer. Energy Star puts the computer into sleep mode after a period of inactivity and is generally activated through screen saver setting panels.
2. Turn off the lights when a room is not in use for more than 5 minutes or if there is sufficient daylight.
It is a myth that fluorescent tubes use so much energy upon start-up that it is not worth switching them off.
AT THE END OF EACH DAY
3. Turn OFF :
• The lights - Few buildings have automatic systems that turn off lights.
• Your computer - If that computer or monitor light is on, it is still using power!
• Your monitor
• Laptops at the powerpoint
• Nearby photocopiers - Measurements have found that many photocopiers and
• Nearby printers - printers save little energy when in "power saver" mode.
WHEN WORKING AFTER HOURS
4. Light only your area (and access areas).
Light switches should activate selected areas only. Diagrams representing the selected areas should be easy to understand, clearly visible and mounted next to or near the switches in question.
5. Minimise air conditioner use. This one action can make a big difference.
6. Don't leave lights and equipment running once you have left the building.
Most after hours lighting and air conditioning switches can be used to turn equipment off as well as on.
Everyone can have an impact. By doing these simple things, together we can reduce the energy use by 5% ($1.5 million pa) and carbon dioxide emissions by 6 million kilograms every year.
Top Replies by Programmers when their programs don't work :
This story is about a man who once upon a time was selling Hotdogs by the
roadside. He was illiterate, so he never read newspapers. He was hard of
hearing, so he never listened to the radio. His eyes were weak, so he never
watched television. But enthusiastically, he sold lots of hotdogs. He was
smart enough to offer some attractive schemes to increase his sales. His
sales and profit went up. He ordered more a more raw material and buns and
sold more. He recruited more supporting staff to serve more customers. He
started offering home deliveries. Eventually he got himself a bigger and
better stove. As his business was growing, the son, who had recently
graduated from college, joined his father.
Then something strange happened.
The son asked, "Dad, aren't you aware of the great recession that is coming
our way?" The father replied, "No, but tell me about it." The son said,
"The international situation is terrible. The domestic situation is even
worse. We should be prepared for the coming bad times."
The man thought that since his son had been to college, read the papers,
listened to the radio and watched TV. He ought to know and his advice
should not be taken lightly.. So the next day onwards, the father cut down
the his raw material order and buns, took down the colourful signboard,
removed all the special schemes he was offering to the customers and was no
longer as enthusiastic. He reduced his staff strength by giving layoffs.
Very soon, fewer and fewer people bothered to stop at his Hotdog stand. And
his sales started coming down rapidly and so did the profit. The father
said to his son, "Son, you were right. We are in the middle of a recession
and crisis. I am glad you warned me ahead of time."
Moral of the Story: Its all in your MIND! And we actually FUEL this
recession much more than we think.