40% off your First Order with GoDaddy.com!

Dec 30, 2009

MySQL: MySQL Password Reset


Are you looking at this page because you cannot access the mysql server installed on your pc/server when you were trying to see if it works well? Or do you receive error messages like the following?
ERROR 1045: Access denied for user: 'root@localhost' (Using password: YES)

To resolve this problem ,a fast and always working way is the "Password Resetting".


Following this procedure, you will disable access control on the MySQL server. All connexions will have a root access. It is a good thing to unplug your server from the network or at least disable remote access.

To reset your mysqld password just follow these instructions :

Stop the mysql demon process using this command:
sudo /etc/init.d/mysql stop

Start the mysqld demon process using the --skip-grant-tables option with this command:
sudo /usr/sbin/mysqld --skip-grant-tables --skip-networking &

start the mysql client process using this command:
mysql -u root

from the mysql prompt execute this command to reset/update your password:
SET PASSWORD FOR root@'localhost' = PASSWORD('password');

Dec 27, 2009

Linux: "dstat" Tool of the day

What is dstat? dstat is a versatile replacement for vmstat, iostat and ifstat.

Dstat allows you to view all of your system resources instantly. Eg, You can compare disk usage in combination with interrupts from your HDD controller, or compare the network bandwidth numbers directly with the disk throughput (in the same interval).

No blog post pimping a cool tool would be complete without the obligatory screen shot.

Customers for Life

Never Worry About Money Again
What is the purpose of a business? Every time I ask this question during a business seminar, the immediate answer that I get back is, "To make a profit."

The Real Purpose of A Business
But this answer is wrong. The purpose of a business is to create and keep a customer. If a business successfully creates and keeps customers in a cost-effective way, it will make a profit while continuing to survive and thrive. If, for any reason, a business fails to attract or sustain a sufficient number of customers, it will experience losses. Too many losses will lead to the demise of the enterprise.

Why Businesses Fail
According to Dun and Bradstreet, the single, most important reason for the failure of businesses in America is lack of sales. And, of course, this refers to resales as well as initial sales.

So your company's job is to create and keep a customer, and your job is exactly the same. Remember, no matter what your official title is, you are a salesperson for yourself and your company. And the best way to increase your value as a salesperson is to build your customer base.

Why Businesses Succeed
The two most important words to keep in mind in developing a successful customer base are Positioning and Differentiation.

Positioning refers to the way your customers think and talk about you and your company when you are not there. The position that you hold in the customer's mind determines all of his reactions and interactions with you. Your position determines whether or not your customer buys, whether he buys again and whether he refers others to you. Everything that you do with regard to your customer affects the way your customer thinks about you.

The Key to Competitive Advantage
Differentiation refers to your ability to separate yourself and your product or service from that of your competitors. And it is the key to building and maintaining a competitive advantage. This is the advantage that you and your company have over your competitors in the same marketplace - the unique and special benefits that no one else can give your customer.

Select Your Customers Carefully
When you begin to think about acquiring and keeping customers for life, you need to think about the particular types of customers for whom your competitive advantage is so important that they would be poorly served by using anyone else's product. You need to then emphasize again and again that the special features and benefits you offer are so important that they should not even think of going somewhere else. If, for any reason, you fail to do this, you may lose the customer and all the work you've done in building that relationship in the first place.

Dec 21, 2009

SEO: Tips is about Metatags understanding

Build a website or blog is not just posting article and leave it, in fact you need some help from search engine to make it famous and being rank well.

Today, most webmaster and blog owner is trying to learn as much as they can about SEO (Search engine optimization). It's difficult do deal with seo?

According to the new SEO blog that focus on learn SEO for beginner, explain that optimizing a website is about meta tags or html code structure.

The objective is manage the site to get index in major search engine lick yahoo, google and msn. beside meta tags we need to play around keyword and the most important is content for sure.

Dec 20, 2009

Unix: Filesystem hierarchy in Unix/Linux/OS X

Although it is one of the first chapters one read when starting with Linux/Unix, it is always confusing where should we put what when it comes to installing stuff on Linux/OS X computers.

I found a detailed reference Filesystem Hierarchy standard website.

Rails: Clearing Out Old Sessions

I got into the habit a while ago of setting up my websites to use ActiveRecord as a session store, this means that the session information for all the visitors to my website is placed in a table in my database. This may or may not be the best way to store sessions but it’s certainly faster than the filesystem and my VPS doesn’t really have the memory capacity for an ‘in memory’ store.

Anyway, one day I decided to perform some DB maintenance, check tables where okay etc, upon logging into the DB however I noticed that my sessions table had grown quite large as was coming up to 125,000 records, little did I realize that the sessions are persisted forever in the DB.

I didn’t think it was the best idea to keep all the session data so wrote the following script and put it in 'lib/tasks/session.rake':

This gave me a ‘session:prune’ rake task. The task removes all sessions older than 1 day from the sessions table. I then added a CRON job for in the following format:
  • 0 0 * * * cd /home/user/railsapp && rake RAILS_ENV=production session:prune > /dev/null 2>&1

The job above basically calls the ‘session:prune’ rake task at midnight every night.

The code in the task in MySQL specific but without a model representing the session table I couldn’t (or at least couldn’t think of a way) to make the code any more ruby-fied. In the event that you do have, or decide to create a session model the following code may work in your task (warning: untested);
Session.destroy_all("created_at" < (Time.now - 1.day))

Hope the above snippet solves at least one of your ActiveRecord session woes.

Pump Up Your Profits

There is a truism that 50 percent of advertising is wasted, but no one ever knows for sure which 50 percent it is. As a result, advertising budgets always seem higher than necessary. This problem persists in many areas of business today. Money is being wasted, but no one is exactly sure where and how it is happening.

Low Profits or No Profits
Many companies today are earning low profits or no profits because their costs of doing business are not coordinated with their sales. Many products and services are priced by people who are completely unaware of the real costs involved in bringing these products or services to the market. These mistakes in pricing are then buried in the overall operations and general revenues of the business.

Conduct a Profit Analysis on Every Product
One of the most important parts of the Turbostrategy process is for you to conduct a complete profit analysis on each product or service you sell. Very few companies have ever done this. But when you begin applying profit analysis in your company, you can often increase your profits dramatically.

High-Volume vs. High Profit Customers
As you examine these numbers, you will find that, in many cases, your biggest customers are not your most profitable customers, and your biggest selling products or services are not your most profitable ones either. You may find that your costs of doing business with some customers and with some products are so high that it is hardly worth the investment of people are resources. This can only be determined by taking a hard look at the numbers.

Focus on Cash Flow
You need to be your own turnaround specialist all the time, and most especially when business slows for any reason. To pump up your profits, you do a complete profit analysis on your business and move immediately to focus the energies of the company on those areas that represent the very best sources of net cash. This process requires that you continually analyze your business so that you know exactly the profitability of every product or service you sell in comparison with every other product or service you sell, right down to the penny.

From Most to Least Profitable
The fact is that with a little effort, every single product or service can be organized on a scale from the most profitable to the least profitable, both on a per item or per hour basis, and in net dollar amounts. There is always one that is more profitable than any other.

Determine Profitability
You begin your profit analysis by determining the exact gross sales revenues that you receive from a product or service after all subtractions for defects, returns, breakage, loss, wastage, and bad debts. Take every single deduction so that your gross dollar amount is completely accurate, and you are crystal-clear about the exact amount you are netting from sales.

Face the Bitter Truth
You will probably find that fully half of your product and service offerings are generating very little profit or even causing you to lose money with every sale. A turnaround specialist would immediately either raise the prices of the low-profit items or discontinue them altogether. You must do the same.

Dec 19, 2009

Cocktail: Strawberry Margarita

The Strawberry Margarita is possibly the most popular of the flavored Margarita varieties. This is understandable because it is delicious frozen cocktail. Given that it is blended, many people choose to go with frozen strawberries. While they do make a fine drink, a far superior cocktail can be find by starting with fresh strawberries, especially when they are in the prime season. Plus when you go with fresh you have leftovers for a quick and tasty garnish.

  • 1 1/2 oz tequila
  • 1 oz triple sec
  • 1 oz lime juice
  • 1/2 cup strawberries
  • 1 cup ice
  • fresh strawberry for garnish

  • Pour the ingredients into a blender.
  • Blend until smooth.
  • Pour the contents into a chilled margarita glass.
  • Garnish with a strawberry.

MySQL: Check If Table Exists

How to check if a table exists in the current MySQL database, through running a simple query.

Python: Check Credit Card "checksum"

The CardChecksum function returns 1 for valid cards and 0 for invalid cards, after performing a check using the Luhn algorithm which validates all major credit cards.

Python: Find the Greatest Common Divisor

Implement the Euclidean algorithm into a Python function in order to calculate the largest common divisor of two numbers.

Dec 18, 2009

Ubuntu: Install Thunderbird 3.0 on Ubuntu 9.10 (Karmic)

Mozilla’s email client Thunderbird 3 was released just a few days back. In the release page, however only the .tar file was available for Linux. In this post we will show you how to install Thunderbird 3 in Ubuntu 9.10 from the Mozilla PPA.

Add the Mozilla PPA in your source list using:
sudo add-apt-repository ppa:ubuntu-mozilla-daily/ppa

Update source list using:
sudo apt-get update

Install Thunderbird 3 using:
sudo apt-get install thunderbird-3.0

Dec 16, 2009

Ruby: Write A PDF File Using Ruby

Using the open source PDF::Writer library for Ruby to create PDF documents on the fly and save them on the server.

Ubuntu: Install Openshot on Ubuntu 9.10 (Karmic)

Openshot is a video editor for linux, is one of the best ones existing actually for linux. The news is that now has a PPA this mean easy install for Ubuntu users, but the big news is that the new version come with 30 new effects.

Add the OpenShot PPA in your source list using:
sudo add-apt-repository ppa:openshot.devellopers/ppa

Update source list using:
sudo apt-get update

Install OpenShot using:
sudo apt-get install openshot

Dec 15, 2009

Rails: Passenger versus safe_erb

Today I had some fun tracking down a weird problem with safe_erb. While everything worked fine running Mongrel in development mode, safe_erb complained about outputting tainted strings for every link generated by Rails’ link_to and URL helpers running on mod_rails in production mode.

Some digging around led me to the root of the problem - in production my app needs to live inside a subdirectory and so I used Passengers RailsBaseURI directive to tell it so. The value configured this way ends up tainted in AbstractRequest’s relative_url_root for some reason, which in turn makes every URL generated by Rails tainted.


This untaints the relative_url_root value if it matches the regexp. Place into application.rb or some file that is required during application startup to fix the problem. I’m still not sure whether this is a bug and if so, whose bug it is - should (if possible at all) mod_rails untaint this value in the first place, or is it a bug with Rails not escaping something somewhere?

The fact that URLs used with Rails’ form helpers didn’t yield safe_erb errors, but those supplied to link_to did makes me think that there’s at least some inconsistency in the way URLs are treated by Rails’ helpers.

Dec 13, 2009

Review Your Flight Options

Once you have become clear about who you are, what you want, and what your true goals are in each area of your life, you can begin to evaluate all the different routes by which you can reach your destination. Now you can determine the strategies and tactics that you can use to achieve your goals and arrive at your destination on schedule.

Develop Options Continually
One of the most important rules that I have ever learned is this: You are only as free as your well-developed options. Before you can plan your time and your life, you must be absolutely clear about both the hourly rate that you are earning today and the hourly rate that you want to earn in the future. Every hour that you spend on a low-value or no-value activity is costing you $25, $50, or more.

Determine the Highest and Best Use of Your Time
Whatever job you choose to take, company you choose to make with your money, or time you choose to spend on a particular activity, think it through carefully in advance and be certain that you are making the highest and best use of your time and resources.

Refuse to Settle
Abraham Maslow once wrote, "The story of the human race is the story of men and women selling themselves short." Many people, because of fear and timidity, settle for far less than they are truly capable of achieving. They stay in jobs they don't like. They stay in relationships that don't make them happy. They invest their money in things they don't understand and leave their money there long after they realize they've made a mistake. If you are not satisfied with any part of your life, with your current seat selection, remember that you can always pay a price to be free.

Ask for What You Want
In business and in your personal life, remember that every term or condition that you are ever offered has been decided by someone and can be changed by someone else. Whether this involves the pay and conditions of a job, the terms of a contract, the costs of products or services, rental or lease rates of offices or equipment, or bank terms for loans of credit, if you are not happy for any reason, don't be reluctant to ask for something different.

Cast a Wide Net
The rule with ideas is this: Quality is a function of quantity. This means that the more ways you achieve your goal that you consider before you embark on your journey, the better will be the quality of the choice you make. Cast a wide net. Don't fall in love with the first idea that occurs to you. You must continually remind yourself that emotions distort evaluations. This means that the more emotional you become about a course of action at the beginning, the less able you will be to make the best decisions and determine the best way to reach your destination.

Cocktail: Tequila Fuego

Traditional Mexican flavors highlight your favorite premium tequila in this spicy shot. Serves one.

  • 1 1/2 oz premium tequila
  • 1 teaspoon hot chile sauce
  • 1 teaspoon lime juice
  • 1 dash onion powder
  • 1 lime wedge
  • kosher salt
  • 1 jalapeno ring

Use lime wedge to moisten 1/2 the brim of the shooter glass. Dip the moistened brim in salt. In a shaker or a glass, mix the lime juice, tequila, onion powder and hot chile sauce. Blend well. Pour the mixture into the shot glass and garnish the edge with a jalapeno ring.

Follow the shot with the lime wedge.

Dec 9, 2009

Ruby: Extended Euclidean Algorithm Function

A function for finding the modular multiplicative inverse, based on an extended version of the Euclidean algorithm.

Dec 7, 2009

Mounting an ISO Image as a Filesystem

This is great, if you don’t have the DVD hardware, but need to get the data.
The following show an example of mounting the Fedora core 7 DVD as a file.

# mkdir /iso
# mount -o loop -t iso9660 /FC7-i386-DVD.iso /iso

Or to mount automatically at boot, add the following to “/etc/fstab”

/FC7-i386-DVD.iso /iso iso9660 ro,loop 0 0

Dec 6, 2009

Become Everything You Are Capable of Becoming

The turning point in my life came when I discovered the law of cause and effect, the great law of the universe, and human destiny. I learned that everything happens for a reason. I discovered that success is not an accident. Failure is not an accident, either. I also discovered that people who are successful in any area usually are those who have learned the cause-and-effect relationship between what they want and how to get it.

Determine Your Personal Growth and Development Values
To realize your full potential for personal and professional growth and development, begin with your values as they apply to your own abilities. As you know, your values are expressed in your words and actions.

You can tell what your values are by looking at what you do and how you respond to the world around you. Your values are the root causes of your motivations and your behaviors.

Clarify Your Personal Growth and Development Vision
Create a long-term vision for yourself in the area of personal growth. Project forward five or ten years and imagine that you are developed fully in every important part of your life. Idealize and see yourself as outstanding in every respect. Refuse to compromise on your personal dreams.

Set Goals for Your Personal Growth and Development
Now take your vision and crystallize it into specific goals. Here is a good way to start. Take out a piece of paper and write down ten goals that you would like to achieve in the area of personal and professional development in the months and years ahead. Write in the present tense, exactly as if you were already the person you intend to be.

Determine exactly what you want to be able to do. Decide who you want to become. Describe exactly what you will look like when you become truly excellent in your field and in your personal life.

Upgrade Your Personal Knowledge and Skills
Set specific measures for each of your goals. If your goal is to excel in your field, determine how you will know when you have achieved it. Decide how you can measure your progress and evaluate your success.

Perhaps you can use as a measure the number of hours you study in your field each week. Perhaps you can measure the number of books you read or the number of audio programs you listen to. Perhaps you could measure your progress by the number of sales you make as the result of your growing skills.

Develop Winning Personal Growth and Development Habits
Select the specific habits and behaviors you will need to practice every day to become the person you want to become. These could be the habits of clarity, planning, thoroughness, studiousness, hard work, determination, and persistence.

Cocktail: Refreshing Lime Margaritas

Perfect on a hot summer day or an evening with friends. You’ll make this recipe over and over again!

  • 1 oz tequila
  • 1/2 oz Triple Sec
  • 1 oz lime juice, fresh squeezed
  • 1/2 teaspoon Sugar
  • kosher Salt (optional)
  • lime wedge (optional)
  • crushed ice or ice cubes

If you’re going to salt the glass, take your lime wedge or a bit of triple sec and rub around edge of glass. Turn upside down and press rim into salt.

For the drink- Shake the tequila, triple sec, lime juice and sugar in a shaker (or stir vigorously with a spoon) and pour over ice. Or you can blend it in a blender if you prefer it. Garnish with lime wedge and enjoy!

Dec 2, 2009

Ruby: Strip HTML tags using Ruby

The StripHtml function strips all the HTML tags in the passed string but preserves the ones specified in the PreserveTags array.

Nov 29, 2009

The Need to Lead

The greatest need we have today, in every area, is for men and women to practice the values of integrity, discipline, responsibility, courage, and long time perspective, both as individuals and in their families. These are the key qualities of leadership.

Our society needs leaders at all levels who practice the principles that lead to long-term success. Especially, we need people in positions of authority and political power to support and encourage others, whose lives and work they influence, to develop character and resist the tendency to act expediently in ways that are harmful to themselves and others.

Everyone needs to take "The Values Pledge," to live by it, and then encourage others to live by it. It is only the solid bulwark of character, based on values, virtues, long-term thinking, and the accurate assessment of secondary consequences that can curb and mitigate the destructive influences and behavior of the Expediency Factor (the E-Factor)

Live In Truth
The philosopher Immanuel Kant postulated what he called "The Universal Maxim." He suggested that "you should live your life as though your every act were to become universal law for all people." The very best judge of truth for you is to ask, "Is it true for me?" If everyone was to be encouraged to live their life as though your every act were to become universal principle for all others, most government policies and programs would be abolished overnight. The fact is, that the only way that many "something for nothing" ideas in government and society can be put forward is with the hope that most people will not take advantage of them.

Think about it. What if everyone were to go on welfare? What if everyone were to apply for every government program that was available to them? What if everyone dedicated themselves to doing the very least amount of work that they could get away with? What if everyone began spending all their time trying to get free money from anywhere that it might be available?

Four Questions to Stay on Track
There are four questions that you can ask and answer every day to keep yourself on track in each part of your life. First, ask yourself; "What kind of a world would this be if everyone in it was just like me?"

When you ask and answer this question honestly, you will admit that if everyone in the world was just like you, this would probably not be the best of all possible worlds. Look inside yourself and think about some of the things that you could change or do differently to become a better "citizen of the world."

The second question you can ask is, "What kind of a country would America be, if everyone in it was just like me?"

This is perhaps the most important question that we can ask and answer for ourselves. If everyone in America did the same thing that you did, every single day, would America be better, happier, healthier, and a more prosperous democracy? If not, what are some of the changes that you could make in your behaviors that would make America a better place?

The third question you can ask is, "What kind of a company would my company be if everyone in it was just like me?"

If you are honest with yourself, you will see different things that you could do to become a more valuable and important contributor to your company. Perhaps you should start a little earlier, work a little harder or stay a little later. Perhaps you could volunteer for more assignments, or upgrade your knowledge and skills as they relate to your job. How could you become the very best person you could possibly become at your work?

The final question, and perhaps the more important, is, "What kind of family would my family be if everyone in it was just like me?"

If everyone in your family behaved the way you do, and treated everyone else the way you treat them, would your family be a warmer, happier, and more loving group of people? What could you do, starting today, to be a better family member?

Take the High Road
The true mark of the superior person is that he sets high standards for himself, and refuses to compromise those standards for any reason. He sees himself as a role model for others. He behaves at all times as if everyone was watching, even when no one is watching.

The truly superior person does not give into forces of expediency. He does not seek something for nothing. He refuses to take anything to which he is not entitled. He insists upon earning everything he gets. He practices the Golden Rule and treats everyone the way he would like to be treated himself. He sets high standards for himself and continually strives to meet those standards. If everyone in America were to take the pledge below, this would be a better country in every way.

Rails: 301 Redirects

A 301 redirect is a permanent redirect, which tells the search engines to index the redirected to URL rather than the current URL.

You can use this when migrating from legacy content management systems, or to make sure that you only have 1 URL per page.

With the folloing code in your controller, Rails makes it easy:

Nov 25, 2009

Ruby: Check if an URL is available

This little Ruby function will check if an URL is available (response code 200). It will return true if the return code is 200 (success), false if any other code is returned, such as 404 (not found.)

Nov 22, 2009

Where to Put Your Money Conservatively

There are three places (besides savings accounts) where you can park your savings that will give you high degrees of safety and liquidity: money market accounts, certificates of deposit (CDs), and government saving bonds.

Money Market Accounts
Money market accounts are available at your bank and pay a higher rate of interest than savings accounts. They are also quite competitive, so you should shop around and look at what different banks offer. As soon as your savings account balance exceeds $1,000, move that money into a money market account at a higher rate of interest.

Certificates of Deposit
Another savings instrument that you may consider is a certificate of deposit (CD). These are issued by banks, savings and loans, and other financial institutions for periods of time ranging from 30 days up to 10 years. The longer you lock up your money in a CD, the higher the interest rate you will receive.

The weakness with CDs is that if you need your money back before the date of maturity there are often severe penalties. You should find out what they are before you purchase a CD in the first place. CDs pay higher interest rates than money market accounts, and are safe places to put your savings. Nonetheless, they are not as flexible as the third option, which is a government savings bond.

Government Savings Bond
Government savings bonds are the most conservative of investments. They are safe and secure, and they pay reasonable rates of interest. They are easily negotiable into cash if you need the money back at any time. They're backed by the full credit of the issuing government. In other words, you cannot lose money on a government savings bond unless the entire country goes broke.

Invest your Savings
These three types of investments are perfect places for you to invest your three to six months of savings. You will get the highest return possible with absolute security and safety principle.

Nov 18, 2009

Ruby: Mask all Credit Card Digits but Last Four

Mask all the credit card number digits with asterisks except the last 4, for security purposes. The function works for all types of cards (Visa, MasterCard, Amex, Discovery, etc.)

Nov 15, 2009

The Power of Leverage

Studying and practicing the principles of effective delegation have given you the foundation necessary to exploit the power of leverage. We will now examine other forms of this key tool of professional and business success. Each of the seven forms of leverage can help you expand the reach of your own talents and strengths. Each involves building on the work, talents, experiences, and contacts of other people.

Leveraging Other People's Energy
The most productive people make sure they have time for the few things that give them the highest payoff by routinely seeking to delegate or outsource their lower-value activities.

Leveraging Other People's Knowledge
Applying one simple piece of key knowledge to your situation can make a world of difference in the result you achieve. Finding and applying knowledge from another source can spare you tremendous amounts of money and labor. Follow the lead of successful people and scan books, magazines, tapes, articles, and conferences for ideas and insights you can use to help you achieve your goals faster.

Leveraging Other People's Money
Knowing how and when to take advantage of other people's money—by borrowing or otherwise tapping into other people's financial resources—empowers you to achieve things that would be beyond your reach if you relied solely on your own resources. Seek out opportunities to borrow and invest, achieving returns in excess of the cost of the borrowed funds. Among the many sources for funds, consider, for example, chartered banks, savings and loan associations, venture capitalists, and public and private offerings of securities.

Leveraging Other People's Successes
Study the successes that other people and companies have achieved to gain insights into their challenges and solutions. Most successful people have paid their dues in terms of money, energy, commitment, and even failure to arrive at the top of their fields. Learn from their experiences.

Leveraging Other People's Failures
As Benjamin Franklin said, "Man can either buy his wisdom or borrow it. By buying it, he pays full price in personal time and treasure. By borrowing it, he capitalizes on the lessons learned from the failures of others." Listen carefully to the stories of truly successful people. Those who genuinely wish to support you will share with you their failures as well as their successes.

Leveraging Other People's Ideas
A single good idea, developed with passion and commitment, can give birth to a fortune. The greater your exposure to a range of ideas—gained through reading, studying, interaction, and experimentation—the greater the chance you will come across one that will lead you to enduring success.

Leveraging Other People's Contacts of Other People's Credibility
Everyone you know has friends, acquaintances, and professional contacts. Many of these people can make a positive impact on your career or business. Among all the people you know or are connected to in some way, who might open doors for you?

Nov 8, 2009

Keeping Your Sales Funnel Full

Professional selling has three stages, which have been the same throughout history. They are prospect, present, and follow up. These three phases constitute the three parts of the "sales funnel." If your sales and income are down, it is because you are not prospecting enough, presenting enough, or following up and closing enough. The way to increase your sales is usually for you to increase the quality or quantity of your activities in one or more of these areas.

Imagine Your Funnel
Imagine the basic sales model as a funnel. At the top of the funnel, you put in prospects. You have to call on a certain number of people, or suspects, to get a certain number of prospects. This number varies depending on the market, your product or service, your individual skills in prospecting, advertising, and many other factors.

The second part of the sales funnel is presenting. There is a direct ratio between the number of people you call on initially and the number of people who will agree to meet with you. Let us say, for example, that you have to call on twenty prospects to get five presentations. This would give you a ratio of 20 to 5 for your prospecting activities. Selling is very much a numbers game.

Follow Up and Close
In the third part of the sales funnel you have following up and closing. Let us say that you have to follow up with two prospects to get one sale. What this means is that you have to put twenty prospects in the top of the funnel to get one sale out of the bottom of the funnel, a ratio of 20 to 1. The rule therefore is this "keep your funnel full."

Prospecting Power
The definition of a good prospect is "Someone who can and will buy and pay within a reasonable period of time." Do not waste your precious selling time with nice people who do not have the authority, money, or ability to buy from you. Think continually about your personal income, and always be sure that the person you are talking to can contribute to that income soon enough to justify the time you are investing in him or her.

Qualities of a Good Prospect
  • The prospect has a genuine need that your product/service can fill.
  • The prospect is friendly toward you and have a favorable impression of your company and industry.
  • The prospect is willing and able to make a buying decision in the near future.
  • The prospect is a good potential source of further sales and referrals.

Qualities of Poor Prospects
  • The prospect has no money or need for your product or service.
  • The prospect is critical of you, your company, or your product.
  • The prospect immediately haggles and complains about your price.
  • The prospect is indecisive about purchasing from you or anyone.

Nov 1, 2009

The Law of Planning

Every minute spent in planning saves ten minutes in execution. The purpose of strategic planning in a corporation is to reorganize and restructure the activities and resources of the company so as to increase the “return on equity,” or return on the money invested and working in the company. The purpose of “personal strategic planning” is for you to increase your “return on energy,” the return on the mental, emotional, physical, and spiritual capital you have invested in your life and career.

Every Minute
Every minute that you spend planning your goals, your activities, and your time in advance saves ten minutes of work in the execution of those plans. Therefore, careful advance planning gives you a return of ten times, or 1,000 percent, on your investment of mental, emotional, and physical energy.

10-12 Minutes
It takes only about 10-12 minutes for you to make up a plan for your day. This investment of 10-12 minutes will save you time of approximately two hours per day, or a 25 percent increase in productivity and performance, in ROE, from the first day that you begin planning your day in advance.

Time Planner
The key to personal efficiency is for you to use a good time planner. Virtually any planner will work if you will discipline yourself to use it as the core of your time management system. Today, Palm Pilots and personal digital assistants (PDA), in combination with personal computers, can enable you to plan your time with greater efficiency than has ever been possible.

Master List
Begin with a master list as the foundation of your time planning system. Write down everything that you can think of that you will need to do for the indefinite future. As new ideas, goals, tasks, and responsibilities arise; write them down on your master list. Don't trust them to memory. Plan each month in advance by transferring the appropriate items from your master list to your monthly list. This is best done the last week of each month. Plan each week in advance by transferring items from your monthly list to your weekly list. This is best done the weekend before.

Plan Everything in Detail
Plan every project, meeting, and goal in detail, before you begin. The very act of planning forces you to think better and more accurately about everything you do. The more you think about and plan something on paper, the faster and more efficiently you will accomplish it when you start work.

Regular Planning
Regular planning assures that you spend more time on activities of higher value. This increases effectiveness and your efficiency in everything you do. Perhaps, the most important rule of all if for you to "think on paper!"

Oct 25, 2009

As Within, So Without

Aristotle said that the ultimate aim or purpose or human life is to achieve your own happiness. You are the very happiest when what you are doing on the outside is congruent with your values on the inside. When you are living in complete alignment with that which you consider to be good, right, and true, you will automatically feel happy and positive about yourself and your world.

Know What You Really Want
Stephen Covey once said, "Be sure that, as you scramble up the ladder of success, it is leaning against the right building." Many people work hard to achieve goals that they think they want only to find, at the end of the day, they get no joy or satisfaction from their accomplishments. They ask, "Is this all there is?" This occurs when the outer accomplishment is not in harmony with your inner values. Don't let this happen to you.

Trust Your Intuition
Self-trust is the foundation of greatness. Self-trust comes from listening to your intuition, to your "still, small voice" within. Men and women begin to become great when they begin to listen to their inner voices and absolutely trust that they are being guided to a higher power each step of the way. Living in alignment with your true values is the royal road to self-confidence, self-respect, and personal pride. In fact, almost every human problem can be resolved by returning to values.

Watch Your Behavior
How can you tell what your values really are? The answer is simple. You always demonstrate your true values in your actions and especially your actions under pressure. Whenever you are forced to choose between one behavior and another you will always act consistent with what is most important and valuable to you at that moment. Values, in fact, are organized in a hierarchy. You have a series of values, some of them very intense and important and some of them weaker and less important. One of the most important exercises you can engage in to determine who you really are and what you really want is to organize your values by priority. Once you are clear about the relative important of your values, you can then organize your outer life so that it is in alignment with them.

Determine Your Hearts Desire
The spiritual teacher Emmet Fox wrote about the importance of discovering your "hearts desire." What is your hearts desire? As a friend of mine asks, "What do you want to be famous for?" What words would you like people to use to describe you when you are not there? What would you like someone to say about you at your funeral? What kind of reputation do you have today? What kind of reputation would you like to have sometime in the future?

Your Past is Not Your Future
Many people had difficult experiences growing up. They fell on hard times and became associated with the wrong people. Some were convicted and sent to prison for crimes. But at a certain point in life, they decided to change. They thought seriously about what kind of person they wanted to be known as, and thought of, in the future. They decided to change their lives by changing the values that they lived by. By making these decisions and sticking to them, they changed their lives. Remember, it doesn't matter where you're coming from; all that really matters is where you're going.

Oct 18, 2009

How to Charm Anyone

Psychologists tell us that the core of personality is self-esteem. This has best been defined as "how much you like yourself." Your self-esteem is the sum total of how important and valuable you feel you are at any moment.

The Secret of Charm
The deepest craving of human nature is the need to feel valued and valuable. The secret of charm is therefore simple: make others feel important.

Five Ways to be Charming
  • Acceptance. The greatest gift you can give other people is the attitude of "unconditional positive regard." That is you accept them in their entirety, without limitation. You never criticize or find fault. You are totally accepting of everything about them. This is the starting point of being charming.
  • Appreciation. Whenever you express appreciation to others for something they have done, small or large, their self-esteem increases. They feel more competent and capable. Their self-image improves and their self-respect soars. And how do you trigger this wonderful feeling in others? It is simple. You say "thank you" on every occasion, for any large or small reason.
  • Approval. It is said that "babies cry for it, men die for it." Throughout life, all humans have a deep subconscious need for approval of their actions and accomplishments. No amount of approval ever satisfies for long. The need is ongoing, like the need for food and rest. People who continually seek opportunities to express approval are welcome wherever they go. Perhaps the best definition of approval is "praise." Just remember, whenever you praise other people for something they have done, their self-esteem is elevated.
  • Admiration. As Abraham Lincoln said, "Everybody likes a compliment." When you give people a genuine, sincere compliment about a trait, possession, or accomplishment, they automatically feel better about themselves. They feel acknowledged and recognized. They feel valuable and important. They like themselves more, and they like you more. Compliment a person on an article of clothing. Compliment someone on a trait, like punctuality or persistence. Compliment for small things as well as large.
  • Attention. This is perhaps the most important quality of all. It is the most powerful behavior for building self-esteem and is the key to instant charm. The more closely you pay attention to other people, the more valuable and important they will feel they are, and the more they will like you.

Oct 11, 2009

Five Factors That Banks Look For

There are five factors that banks look for before making a loan to you, or any businessperson. These are called the "five C's" of lending or borrowing. You must be prepared to demonstrate all five when you approach a bank for a loan.

1. Collateral.
First, banks look for collateral. What assets are you going to put up to cover the loan? Collateral is something that can be sold for cash fairly quickly to repay the bank in case your business is not successful.

2. Character.
Banks look for character. What is your previous track record with regard to loans? What kind of character do you have, in terms of honesty and dependability? Who knows you? Who will vouch for you?

3. Credit Rating.
Banks look at your current credit rating. How much money have you borrowed and repaid in the past? How good is your credit history today? Your credit rating is a very precious thing that follows you wherever you go. I have known many people whose entire adult lives have been ruined because they have been sloppy or indifferent with their credit. They have failed to make credit card payments, utility payments, or rent payments when they were due. In one or more of these cases, they have been reported to a national credit bureau. This negative credit rating has then dogged them for as long as 10 years, wherever they went, anywhere in the country. Don't let this happen to you.

4. Capital.
Banks want to know the amount of capital you have. How much of your own money are you willing to invest? This is a measure of how deeply committed you are to the success of the enterprise.

5. Confidence.
The last factor that banks use to determine whether to lend you money is their level of confidence in you. In the final analysis, the individual banker must have confidence that you are the kind of person who is going to succeed in the business that he or she is lending you money to start of build.

Banking Relationships Mature over Time
Borrowing money from banks is a progressive series of financial transactions that develop over time. When you first attempt to borrow money, most banks will want $5 worth of collateral, personal investments, and other assets for every $1 that they will lend you. They will also want personal guarantees that extend beyond bankruptcy, should you declare it. But after a bank has several years of experience with you and comes to know and trust you, its lending requirements decline, step by step.

Oct 4, 2009

The Four Principles of Marketing Strategy

There are four principles to effective marketing strategy. Each of these principles must be thought through carefully and then continually revisited as the business grows and changes. Any changes in any one of these areas can have an enormous impact on the sales of profitability of the business.

Principle One: Specialization
You must decide in exactly which area of your product or service market you are going to specialize. You cannot be all things to all customers. Too many businesses make the mistake of trying to offer too many products or services to too many types of customers at too many prices in too many ways. This is not the way to wealth.

Principle Two: Differentiation
This is perhaps the most important strategic marketing principle of all. All business success requires a differentiation of some kind. All business success requires that you be both different from and better than you competitors in some clear, distinct way.

Who is your competition? Why doesn't your ideal customer buy from you? Why does your ideal customer buy from your competitor? What value does your ideal customer see in buying from your competitor that he or she does not see in buying from you? What could you do to offset this perception?

The only hope you have in acquiring customers is to focus most of your time and attention on determining exactly who they are, where they are, and what you have to do to get them to buy from you rather than from someone else.

Principle Three: Segment Your Market
If you offer more than one product or service, you will have to divide your potential customers into separate market segments.

You will then have to identify the characteristics and qualities of prospective customers in each of these segments in order to advertise and sell to them effectively.

Principle Four: Concentration
Once you have applied the principles of specialization, differentiation, and segmentation to your products and services, and to your customers and markets, you now have to concentrate your limited resources.

You have to focus your time, energy, and money on those prospective customers that you have identified who are the most likely to buy from you the soonest.

Sep 27, 2009

Win-Win or No Deal

In successful negotiation, both parties should be fully satisfied with the result and feel that they have each "won" or no deal should be made at all. Consistent with your determination to enter into agreements that preserve long-term relations between the parties, you should always seek an outcome that satisfies both. Remember, you always reap what you sow. Any settlement or agreement that leaves one party dissatisfied will come back to hurt you later, sometimes in ways that you cannot predict.

Tough Negotiating
A very tough negotiator told me proudly about a hard deal he had wrung out of a national organization for the distribution of his company's products. He had demanded and threatened and negotiated an agreement that paid him considerably more, both in up-front payments and in percentages of sales, than any of the other clients for which his company distributed.

The businessman had negotiated a deal that was a "win-lose," with him winning and the other losing. But those on the losing side had no incentive to fulfill the implied commitment to market the products. They had no real incentive to go forward with this person again, you should be clear in advance that you are committed to reach a solution that is satisfactory to both. If it does no entail a win for both parties, you should simply refuse to make any deal at all.

When you are determined to achieve a win-win solution to a negotiation, and you are open, receptive, and flexible in your discussions, you will often discover a third alternative that neither party had considered initially but that is superior to what either of you might have thought of on your own.

Make Yourself Clear
Once you have decided that you are only going to agree to a settlement that is satisfactory to both parties, this doesn't mean that you have to accept any arrangement that you consider best. With your values and your intentions clear, you are now in a position to utilize every strategy and tactic available to you to get the very best deal for both of you—one that assures that you both end up happy with the arrangement.

Sep 22, 2009

How RAID 6 works?

RAID 6 is designed for tolerating two simultaneous HDD failures by storing two sets of distributed parities. Apparently the complex mechanism is likely to compromise data rate in and out of the system. With direct support from Intel IOP, Enhance has enabled RAlD 6 in both DAS series and iSCSI series with minimal performance hit. RAlD 6 significantly enhances the reliability of the new EnhanceRAID family even both are built upon low-cost high capacity SATA drives.

RAID 6 is designed for tolerating two simultaneous HDD failures by storing two sets of distributed parities. Apparently the complex mechanism is likely to compromise data rate in and out of the system. With direct support from Intel IOP, Enhance has enabled RAlD 6 in both DAS series and iSCSI series with minimal performance hit. RAlD 6 significantly enhances the reliability of the new EnhanceRAID family even both are built upon low-cost high capacity SATA drives.

  • Designed for tolerating two simultaneous HDD failures by storing two sets of distributed parities.

  • For RAID 6, one needs a more complex system with a method for encoding, as well as XOR calculations. For that, one really needs hardware acceleration, otherwise the performance suffers.
  • Uses 2 drives for parity

Recommended Configuration
  • Disk array consists of 12 disks or more

Recommended Solutions
  • Desktop: EnhanceRAID T8
  • Rackmount: EnhanceRAID R14; UltraStor RS16

Sep 20, 2009

Manage Your Time Well

To achieve all your goals and become everything you are capable of becoming you must get your time under control. Psychologists generally agree that a "sense of control" is the key to feelings of happiness, confidence, power, and personal well-being. And a sense of control is only possible when you practice excellent time management skills.

Choices and Decisions
If the front side of the coin of success is the ability to set clear goals for yourself, then the flip side of the same coin is the ability to get yourself organized and work on your most valuable tasks, every minute of every day. Your choices and decisions have combined to create your entire life to this moment. To change or improve your life in any way, you have to make new choices and new decisions that are more in alignment with who you really are and what you really want.

The Right Thing to Do
The only way that you can determine that is right or wrong, more or less important, high or low priority is by first determining your aim or goal at that particular moment. From that point forward, you can divide all your activities in to "A" activities or "B" activities. An "A" activity is something that moves you toward your goal, the faster and more directly the better. A "B" activity is an activity that does not move you toward a goal that is important to you.

Begin with a List
The basic tool of time management is a list, organized by priority, and used as a constant tool for personal management. The fact is that you can't manage time; you can only manage yourself. That is why time management requires self-discipline, self-control, and self-mastery. Time management requires that you make the best choices and decisions necessary to enhance the quality of your life and work. Then you follow through on your decisions.

Use Advance Planning
Begin today to plan every week in advance, preferably the Sunday before the workweek begins. Plan every day in advance, preferably the night before. When you make a list of everything you have to do the following day, your subconscious mind works on that list all night long. When you wake up in the morning, you will often have ideas and insights to help you accomplish the items on your list.

Separate the Urgent from the Important
In the process of managing your time, you must separate the urgent tasks from the important ones. Urgent tasks are determined by external pressures and requirements. You must do them immediately.

Sep 13, 2009

Achieving Personal Excellence

Personal excellence is perhaps the most important of all invisible and intangible assets that you can acquire. Achieving personal excellence in your business or industry requires lifelong dedication. But once you get into the top 10 percent of your field, you will be one of the highest paid people in the country. You will enjoy the respect and esteem of the people around you. You will be able to live your life the way you want to live it. You will enjoy high levels of self-esteem, self-respect, and personal pride.

Build Your Intellectual Assets
Each person has or can acquire three forms of intellectual capital. These require an investment of study and hard work, but they pay off in higher income for the rest of your life. The first type of intellectual capital you can acquire consists of your core knowledge, skills, and abilities. These are the result of education, experience, and training. They determine how well you do your job and the value of your contribution to your business.

Build Your Internal Knowledge
The second form of intellectual capital that you posses is your knowledge of how your business operates internally, in comparison to that of your competitors or any other business. Each business develops a series or systems, procedures, methods, techniques, and strategies to market, sell, produce, deliver products and services, and satisfy customers. Each business has internal systems for accounting, administration, and financial controls. These systems take many years to develop and considerable time for a new person to learn. A person who knows and understands these systems intimately has a form of intellectual capital that is difficult for the company to replace.

Build Your Ability to Get Results
The third form of intellectual capital that you possess, and that is perhaps the key determinant of your earning ability, is your knowledge and understanding of how you can get financial results in a competitive market. This includes your knowledge of your products and services and how to sell them. It includes your knowledge of customers and suppliers and how to deal with them. It embraces your familiarity with bankers, lawyers, accountants, and government officials and how to interact with them effectively. This form of intellectual capital may take years to build, and it is extremely valuable to your organization. You first responsibility to yourself is to develop your earning ability to a high level. You do this by continually increasing your intellectual capital, by upgrading your ability to do your job, by becoming a valuable part of your organization, and by getting more and better financial results for your organization.

Sep 6, 2009

The Law of Superb Execution

Leaders are committed to excellent performance of the business task at hand, and to continuous improvement. A leader is the person who chooses the area of excellence for his or her team. A leader knows that excellence is a journey, not a destination. Leaders are committed to being the best in everything they do. They constantly strive to be better in their key result areas. They compare themselves with people, organizations, and products or services that are better than they are, and they are continually improving.

Standards of Excellence
Leaders set standards of excellence for everyone who reports to them. They are ruthless about weeding out incompetence and poor performance. Leaders demand quality work and insist that people do their jobs well. The leader sets the standard of excellence. No one, or no part of the organization, can be any better than the standard that the leader represents and enforces. For this reason, leaders are committed to personal excellence in everything they do.

Leaders are Learners
Leaders are learners, continually striving to be better in their work and personal lives. They read, take additional courses and seminars, and listen to audio programs in their cars. They attend conventions and association meetings, go to the important sessions, and take good notes. They are committed to learning and growing in every area where they feel they can make an even more valuable contribution to their work.

Inspiring People
People are most inspired when they feel they are working for an organization in which excellence is expected. The very best way to motivate and inspire others is for you to announce your commitment to being the best in your field or industry. Then, continually benchmark your performance and the performance of your organization against the very "best in class" in your business.

Core Competencies
Leaders identify their core competencies, the vital tasks they do that are responsible for them being in business. They continually look for ways to upgrade these core competencies to assure that they maintain a competitive edge in the marketplace. Leaders think about the future and identify the core competencies that will be required for success in the years ahead. They then develop plans to acquire those core competencies well before they will be needed to compete effectively in the marketplace of tomorrow.

Aug 30, 2009

Wealth Creation Strategies

What People Need
Wealth creation occurs when you produce a product or service that people want and need and are willing to pay for at a price that is in excess of your total cost of producing that product or service. The key to business success has always been the same, find a need and fill it. We all earn our livings by serving other people in some way. Your business goal is to find out what people really want and need, and then give it to them better and faster than anyone else.

Secrets of Market Leadership
Hundreds of companies have been studied to discover the secrets of market leadership. There are three secrets. The first one is Operational Excellence—the company has developed the ability to produce its products and services at a cost substantially lower than its competitors. The second is Customer Intimacy—the company develops a close relationship with its customers based on excellent knowledge of the customer's business. Thirdly, there is Technological Superiority—the company offers a product or service that is superior to that of its competitor.

Additional Value
There are several strategies that you can follow to create additional value for your customers and additional wealth for yourself. Improve your product or service in some way so that it is better than that of your competitors, at the same or at a lower price. Produce or deliver your product or service faster than your competitors. Produce your product or service cheaper than your competitors, maintaining or increasing your level of quality. Offer better follow-up and support services to go along with your product or service than your competitors. Make your product easier to acquire and more readily available than your competitors. Make your prices and terms more attractive and convenient than your competitors. Include additional products and services with your offerings, at the same price.

Your reputation in the marketplace determines how much you can sell, and the prices you charge. The friendliness of your staff and the ease of doing business with you is a key part of your reputation. Your credibility with your customers, the degree to which they see you as trustworthy and dependable is a key value to your customers. Selling to an individual customer requires an impeccable reputation and a focus on the improvement your product or service makes in their lives. What does your product achieve for your customer? What does your product help your customer to avoid? What does your product help your customer to preserve? How does your product help your customer to get better results in his life?

Aug 23, 2009

Developing a Powerful Sales Personality

Becoming excellent in closing sales is an inside job. It begins within you. In sales, your personality is more important than your product knowledge. It is more important than your sales skills. It is more important than the product or service that you are selling. In fact, your personality determines fully 80 percent of your sales success.

Take Charge of Your Life
The biggest mistake you can make is to ever think that you work for anyone but yourself. From the time you take your first job until the day you retire, you are self employed. You are the president of your own entrepreneurial corporation, selling your services into the marketplace at the highest price possible. You have only one employee—yourself. Your job is to sell the highest quality and quantity of your services throughout your working life.

View Yourself as Self-Employed
In a study done in New York some years ago, researchers found that the top 3 percent of people in every field looked upon themselves as self-employed. They treated the company as if it belonged to them personally. They saw themselves as being in charge of every aspect of their lives. They took everything that happened to their company personally, exactly as if they owned 100 percent of the stock.

Winners Versus Losers
The difference between winners and losers is quite clear. Winners always accept responsibility for their actions. Losers never do but instead always have some kind of explanation for why they are doing poorly.

Don't Waste Time
The average salesperson today wastes a fully 50 percent of his or her working time. According to research, he comes in a little later, works a little slower, and leaves a little earlier. He spends most of his working time in idle chitchat with coworkers, personal business, reading the paper, drinking coffee, and surfing the internet. Winners arrive a little earlier, work a little harder, and stay a little later.

Develop Empathy and Understanding
Top salespeople have high levels of empathy, i.e., they really care about their customers. Ambition, the desires to achieve, combined with empathy, the genuine caring for the well-being of your customers, are the twin keys to top sales performance. A person with empathy makes every effort to get inside the mind and heart of the customer and to understand his situation and needs.

Keep Your Word
Top-selling salespeople are impeccably honest with themselves and with others. There is no substitute for honesty in selling. Earl Nightingale once said, "If honesty did not exist, it would have to be invented as the surest way of getting rich."

Do What you Love to Do
One of the secrets of success in selling is for you to do what you love to do. Top salespeople love what they are selling. They believe in it passionately. They will defend it and argue over it. They will talk about it day and night. When they go to bed, they think about their product. When they wake up in the morning, they can hardly wait to talk to prospects about it. Look at the top salespeople in the very best companies, and you'll find that these people are fanatical, about their products and services.

Aug 18, 2009

How to Install Ruby on Rails on Ubuntu 9.04 (Jaunty Jackalope)

Few of my friends have started to learn Ruby on Rails recently. According to my point of view, Windows is not a suitable and enjoyable environment for RoR development. So, I recommended them to start with Ubuntu. Most of them have installed Ubuntu 8.10 and 9.04. So, I wish to write a small guide to setup the Ruby on Rails environment on Ubuntu 8.10 and 9.04.

Ruby installation

First we need to update the repositories.
sudo apt-get update

It’s always a best practice to upgrade the system.
sudo apt-get dist-upgrade

This installation will take few minutes and also require approximately 100 MB disk space.

Now that we are up to date. Let’s start install the RoR recipices. We need following Rails prerequisites.
  • ruby - An interpreter of object-oriented scripting language Ruby
  • ri - Ruby Interactive reference
  • rdoc - Generate documentation from ruby source files
  • irb - Interactive Ruby
sudo apt-get install ruby ri rdoc irb libopenssl-ruby ruby-dev

Ruby Gem installation

Next we need to install the Ruby gem package manager. You can download the latest Ruby gems by following link.


Download and extract the files. (By the time I’m writing this tutorial the latest version is 1.3.5)
tar xvzf  rubygems-1.3.5.tgz
cd rubygems-1.3.5
sudo ruby setup.rb

Once it’s done you can delete the .tgz file and rubygems directory.
cd ..
rm -r rubygems-1.3.5 rubygems-1.3.5.tgz

Next we need to create a set of simlinks. Otherwise it will be a tedious task to type commands with the version (1.8). For an example if we need to call the gem command we’ve to type gem1.8. I don’t prefer that. Hope you too. So, let’s create the necessary simlinks.
sudo ln -s /usr/bin/gem1.8 /usr/local/bin/gem
sudo ln -s /usr/bin/ruby1.8 /usr/local/bin/ruby
sudo ln -s /usr/bin/rdoc1.8 /usr/local/bin/rdoc
sudo ln -s /usr/bin/ri1.8 /usr/local/bin/ri
sudo ln -s /usr/bin/irb1.8 /usr/local/bin/irb

Rails Installation

Now we can install Rails using gem.
sudo gem install rails

Server Installation

Rails by default comes with the WEBrick server. But most Rails developers prefer the Mongrel server. If you satisfied with WEBrick you can skip this step, else type the following command to install Mongrel server.
sudo gem install mongrel

Database Installation

Rails 2.3 shipped with SQLite3 as it’s default database instead of MySQL. You can install SQLite3 libraries by following commands.
sudo apt-get install sqlite3 swig libsqlite3-ruby libsqlite3-dev
sudo gem install sqlite3-ruby

If you prefer MySQL,
sudo apt-get install mysql-client libmysqlclient15-dev
sudo gem install mysql

Create Ruby on Rails App

Now that we have completed everything successfully. You can create your new Ruby on Rail applicaion by following command.
rails test_app

If you need MySQL supported applicaion you need to specify as follows
rails test-app -d mysql

Run the app
cd test_app

navigate you browser to http://localhost:3000

Aug 16, 2009

The Law of Competence

You can increase your efficiency and your effectiveness by becoming better and better at your key tasks. One of the most powerful of all time management techniques is for you to get better at the most important things you do. Your core competencies, your key skill areas, the places where you are absolutely excellent at what you do, are the key determinants of your productivity, your standard of living, and the level of achievement you reach in your field.

Work Excellence
The market pays excellent rewards only for excellent work. You are therefore successful to the degree to which you do more things better than the average person. Your great responsibility in life is to determine what things you can and should do very well and then develop a plan to become very, very good in those vital areas.

Key Question
Here is the key question: What one skill, if you developed and did it in an excellent fashion, would have the greatest positive impact on your career? Your weakest important skill sets the height at which you can use all your other skills. Be honest with yourself. What is your limiting skill? What is the one skill that determines the speed at which you complete your major tasks and achieve your goals? What is the one skill, the lack of which may be holding you back?

Pareto Principle
The Pareto Principle, the 80/20 Rule, applies to those skills that are limiting to your success. Eighty percent of the reasons you are not moving ahead as fast as you want is explained by the 20 percent of skills and abilities that you lack. This rule also says that 80 percent of your limits in life are contained within yourself. Eighty percent of the reasons you are not achieving your goals as quickly as you want is because of the lack of a particular skill, ability, or quality within yourself.

Look Within Yourself
The underachiever always looks for the reasons for his or her problems in the outer world. The high achiever looks within. The high-achieving person always asks, what is it in me that is holding me back? Successful people look into themselves for the answers to their questions and for the solutions to their problems. Unsuccessful people always look outside. Who do you think finds the solutions first?

Ask Others to Evaluate
Ask people around you to evaluate you in your critical skill areas on a scale of one to ten. The more accurate you can be about this exercise, the easier it will be for you to focus on the one or two skill areas that help you the most.

Aug 8, 2009

Create Your Personal Strategic Plan

Your success in life is determined, to a large extent by your ability to think, plan, decide, and take action. The stronger your skills are in each of these areas, the faster you will achieve your goals and the happier you will be with your life and career. Personal strategic planning is the tool that takes you from wherever you are to wherever you want to go.

Difference between Train and Plane
The difference between people who use strategic planning to organize and direct their lives and those who do not is like the difference between taking a train and taking a plane. Both will get you from point A to point B, but the plane—personal strategic planning—will get you there much faster and without frequent stops.

Systematic Way of Thinking
Skill in personal strategic planning is not something you are born with, like eye color or perfect pitch. It is a systematic way of thinking and acting and is, therefore, something you can learn, like riding a bike or changing a tire. With practice, you can master the many different elements that make up this key skill, and you will get into the rhythm of thinking and acting strategically for the rest of your life. When you do acquire rhythm, you will realize extraordinary results. Your life and career will take off, and the sky is truly the limit.

Save Time and Money
Why is strategic planning and thinking so helpful? The answer is simple: it saves you an enormous amount of time and money. When you review and analyze key strategic questions of concepts of your career or business, you find yourself focusing on the critical tasks necessary to achieve your goals. At the same time, you stop doing those things that keep you from achieving success. You do more of the right things and fewer things that get and keep you off track. You set performance goals for people and projects. You become skilled at measuring and tracking results. You move into the express lane in both work and life.

Design Your Life and Career
Your goals in personal strategic planning are similar. The key difference is that rather than improving your return on equity, your planning efforts will allow you to realize a greater return on energy. You might say that personal strategic planning will increase your return on life. A business measures its equity in terms of financial capital. On the other hand, you measure your personal equity in terms of your own human capital. Your personal equity consists of the physical, emotional, and mental energies you are able to invest in your career. Set a goal of achieving the very highest return possible on the investment of your energies.

Critical Question
Ask yourself this critical question: What is it that I do especially well? Examine the areas where you excel or are clearly superior to others in your field. You need to know what you can claim as your personal competitive advantage. This is the lifeblood of personal strategic planning. Your success is tied directly to how excellent you become at the most important part of your work.