Thursday, September 6, 2007

Search Engine Optimization - An Overview for Design/Layout

  1. Design the pages of site using straightforward HTML. If you decide to use frames, make sure you understand the consequences of this when you come to submit your site to search engines. When search engines index page, they have a very different view of site than any of the visitors will have.
  2. Test your site with different browsers [IE 6.0 and higher, FF 1.0 and higher, Safari, Lynx] and at different resolutions [1024x786, 1280x600, 1280x720, 1260 x 800] to ensure compatibility.
    - Lynx is a Text Only browser. Use Lynx to examine the website, because most search engine spiders see your site much as Lynx would. If features such as JavaScript, cookies, session IDs, frames, DHTML, or Flash keep you from seeing all of site in a text browser, then search engine spiders may have trouble crawling the site.
  3. Make a site with a clear hierarchy and text links. Every page should be reachable from at least one static text link.
  4. Offer a site map to users with links that point to the important parts of your site. If the site map is larger than 100 or so links, break the site map into separate pages.
  5. Create a useful, information-rich site, and write pages that clearly and accurately describe content.
  6. Think about the words users would type to find pages, and make sure that site actually includes those words within it.
  7. Don't go overboard with graphics - use them sparingly and optimize them to reduce user download times.
  8. Try to use text instead of images to display important names, content, or links. The crawler doesn't recognize text contained in images.
  9. Make sure that TITLE tags and ALT attributes are descriptive and accurate.
  10. Check for broken links and correct HTML.
  11. If you decide to use dynamic pages (i.e., the URL contains a "?" character), be aware that not every search engine spider crawls dynamic pages as well as static pages. It helps to keep the parameters short and the number of them few.
  12. URL Rewriting — Make your URLs change from dynamic ones (e.g. www.your-website.com/index.php?p=courses) to static-looking ones (e.g., www.your-website.com/courses/). This is important for search engines, not only because static URLs are better than dynamic URLs, but because when someone links to your site with the URL as the link text those keywords are counted as link text.
  13. Keep the links on a given page to a reasonable number (fewer than 100).
  14. Keep the text that needs to be indexed outside of images. For example, if you want your company name or address to be indexed, make sure it is displayed on your page outside of a company logo.
  15. Don't host site in a separate country from core target market.

Things to Avoid

  • Overuse or repetition of keywords
  • Use of keywords that do not relate to the content of the site
  • Use of fast meta refresh
  • Use of colored text on same-color background
  • Duplication of pages with different URLs
  • Use of different pages that bridge to the same URL
  • Irrelevant words in an attempt to increase a page's keyword density. This includes stuffing ALT tags that users are unlikely to view.
  • Using hidden text or links in the pages. You should use only text and links that are visible to users.

Thursday, August 30, 2007

Management Lessons - Part II

Scene 6
The secret is finally revealed. On the first day God created the cow. God said, "You must go to field with the farmer all day long and suffer under the sun, have calves and give milk to support the farmer. I will give you a life span of sixty years." The cow said, "That's a kind of a tough life you want me to live for sixty years. Let me have twenty years and I'll give back the other forty." and God agreed.

On the second day, God created the dog. God said, "Sit all day by the door of your house and bark at anyone who comes in or walks past. I will give you a life span of twenty years." The dog said, "That's too long to be barking. Give me ten years and I'll give back the other ten." so God agreed.

On the third day God created the monkey. God said, "Entertain people, do monkey tricks, make them laugh. I'll give you a twenty year life span." Monkey said, "How boring, monkey tricks for twenty years? I don't think so. Dog gave you back ten, so that's what I'll do too, okay?" and God agreed again.

On the fourth day God created man. God said, "Eat, sleep, play, enjoy & worship god. Do nothing, just enjoy & worship god. I'll give you twenty years." Man said, "What? Only twenty years? No way, man. Tell you what, I'll take my twenty, and the forty cow gave back, and the ten dog gave back and the ten monkey gave back. That makes eighty, okay?" "Okay," said God. "You've got a deal."

Management Lesson:
So that is why for the first twenty years we eat, sleep, play, enjoy and do nothing; for the next forty years we slave in the sun to support ourfamily; for the next ten years we do monkey tricks to entertain our grandchildren; and for the last ten years we sit in front of the house and bark at everybody. In all these stages, we forget to worship god for his grace on us.

Scene 7
When the body was first made, all the parts wanted to be Boss. The brain said, "I should be Boss because I control the whole body's responses and functions."
The feet said, "We should be Boss as we carry the brain about and get him to where he wants to go." The hands said, "We should be the boss because we do all the work and earn all the money."

And so it went on and on with the heart, the lungs and the eyes until finally the a**hole spoke up. All the parts laughed at the idea of the a**hole being the Boss. So the a**hole went on strike, blocked itself up and refused to work. Within a short time the eyes became crossed, the hands clenched, the feet twitched, the heart and lungs began to panic and the brain fevered. Eventually they all decided that the a**hole should be the Boss, and so the motion was passed. All the other parts did all the work while the Boss just sat and passed out the shit!

Management Lesson:
You don't need brains to be a Boss - any a**hole will do.

Scene 8
A man is getting into the shower just as his wife is finishing up her shower when the doorbell rings. After a few seconds of arguing overwhich one should go and answer the doorbell, the wife gives up, quickly wraps herself up in a towel and runs downstairs. When she opens the door, there stands John, the next-door neighbour.
Before she says a word, John says, "I'll give you $1000 to drop that towel that you have on"
After thinking for a moment, the woman drops her towel and stands naked in front of John. After a few seconds, John hands her $1000 and leaves.
Confused, but excited about her good fortune, the woman wraps back up in the towel and goes back upstairs. When she gets back to the bathroom, her husband asks from the shower,
"Who was that?"
"It was John the next door neighbour," she replies.
"Great," the husband says, "did he say anything about the $1000 he owes me?"

Management Lesson:
If you share critical information pertaining to credit and risk in a timely fashion with your stakeholders, you may be in a position toprevent avoidable exposure.

Scene 9
A sales rep, an administration clerk and the manager are walking to lunch when they find an antique oil lamp. They rub it and a Genie comes out in a puff of smoke.
The Genie says, "I usually only grant three wishes, so I'll give each of you just one."
"Me first! Me first!" says the admin clerk "I want to be in the Bahamas, driving a speedboat, without a care in the world." Poof! She's gone.
In astonishment, "Me next! Me next!" says the sales rep. "I want to be in Hawaii, relaxing on the beach with my personal masseuse, an endlesssupply of pina coladas and the love of my life." Poof! He's gone.
"OK, you're up," the Genie says to the manager.
The manager says, "I want those two back in the office after lunch."

Management Lesson:
Always let your boss have the first say.

Scene 10
A priest was driving along and saw a nun on the side of the road, he stopped and offered her a lift, which she accepted. She got in and crossed her legs, forcing her gown to open and reveal a lovely leg. The priest had a look and nearly had an accident.
After controlling the car, he stealthily slid his hand up her leg. The nun looked at him and immediately said, "Father, remember Psalm 129?" The priest was flustered and apologized profusely. He forced himself to remove his hand.

Changing gear, he let his hand slide up her leg again. The nun once again said, "Father, remember Psalm 129?" Once again the priest apologized "Sorry sister but the flesh is weak."

Arriving at the convent, the nun got out gave him a meaningful glance and went on her way. On his arrival at the church, the priest rushed to retrieve a bible and looked up Psalm 129.

It Said, "Go forth and seek, further up, you will find glory."

Management Lesson:
Always be well informed in your job, or you might miss a great opportunity.

Management Lessons

Scene 1
A crow was sitting on a tree, doing nothing all day. A small rabbit saw the crow, and asked him, "Can I also sit like you and do nothing all day long?
The crow answered: "Sure, why not." so, the rabbit sat on the ground below the crow, and rested.
All of a sudden, a fox appeared, jumped on the rabbit and ate it.
Management Lesson:
To be sitting and doing nothing, you must be sitting very, very high up.

Scene 2
A turkey was chatting with a bull. "I would love to be able to get to the top of that tree," sighed the turkey, "but I haven't got the energy. "Well, why don't you nibble on some of my droppings?" replied the bull. "They're packed with nutrients."

The turkey pecked at a lump of dung and found that it actually gave him enough strength to reach the first branch of the tree.The next day, after eating some more dung, he reached the second branch. Finally after a fourth night, there he was proudly perched at the top of the tree.

Soon he was promptly spotted by a farmer, who shot the turkey out of the tree.
Management Lesson:
Bullshit might get you to the top, but it won't keep you there.

Scene 3
A little bird was flying south for the winter. It was so cold, the bird froze and fell to the ground in a large field.

While it was lying there, a cow came by and dropped some dung on it.As the frozen bird lay there in the pile of cow dung, it began to realize how warm it was. The dung was actually thawing him out! He lay there all warm and happy, and soon began to sing for joy. A passing cat heard the bird singing and came to investigate.

Following the sound, the cat discovered the bird under the pile of cow dung, and promptly dug him out and ate him!
Management Lesson:
  • Not everyone who drops shit on you is your enemy.
  • Not everyone who gets you out of shit is your friend.
  • And when you're in deep shit, keep your mouth shut!
Scene 4
The boy rode on the donkey and the old man walked. As they went along, they passed some people who remarked "it was a shame the old man was walking and the boy was riding". The man and boy thought maybe the critics were right, so they changed positions.

Later, they passed some people that remarked, "What a shame, he makes that little boy walk."They decide d they both would walk! Soon they passed some more people who thought they were stupid to walk when they had a decent donkey to ride. So the both rode the donkey! Now they passed some people that shamed them by saying "how awful to put such a load on a poor donkey". The boy and man said they were probably right so they decided to carry the donkey.

As they crossed a bridge, they lost their grip on the animal and he fell into the river and drowned.
Management Lesson:
If you try to please everyone, you will eventually lose your ass.

Scene 5
Once three government ministers Mr. ABC, Mr. PQR and Mr. XYZ were travelling in an autorickshaw. They met with an accident and all three of them died. Lord of death was waiting for this moment at the doorstep of death.
He asks ABC and PQR to go to HEAVEN. But, for XYZ, he had already decided that he should be sent to HELL.XYZ is not at all happy with this decision. He asks the load of death as to why this discrimination is being made. All the three of them had served the public. Similarly, all took bribes, all misused public positions, etc. Then why the differential treatment?He felt that there should be a formal test or an objective evaluation before a decision is made; and should not be just based on opinion or pre conceived notions.

Lord of Death agrees to this and asks all the three of them to appear for an English test. ABC is asked to spell "INDIA" and he does it correctly. PQR is asked to spell "ENGLAND" and he too passes. It is XYZ's turn and he is asked to spell "CZECHOSLOVAKIA".
XYZ protests that he doesn't know English. He says this is not fair and hat he was given a tough question and thus forced to fail with false intent.

Lord of Death then agrees to conduct a written test in Hindi (to give another chance assuming that XYZ should at least feel that Hindi would provide an equal platform for all three).ABC is asked to write "KUTTA BOLA BHOW BHOW". He writes it easily and passes. PQR is asked to write "BILLI BOLI MYAUN MYAUN". He too passes. XYZ is asked to write "BANDAR BOLA GURRRRRR....." Tough one. He fails again. He is extremely unhappy.

Having been a student of history (which the other two weren't), he now requested for all the 3 to be subjected to a test in history. Lord of Death says 'OK', but this would be the last chance and that he would not take any more tests.ABC is asked: "When did India get Independence?". He replied "1947" and passed. PQR is asked "How many people died during the independence struggle?". He gets nervous. Lord of Death asked him to choose from 3 options: 100,000 or 200,000 or 300,000. PQR catches it and says 200,000 and passes. It's XYZ's turn now.

Lord of Death asks him to give the Name and Address of each of the 200,000 who died in the struggle. XYZ accepts defeat and agrees to go to HELL.
Management Lesson:
"IF YOUR MANAGEMENT HAS DECIDED TO SCREW YOU, THERE IS JUST NO ESCAPE"

Wednesday, July 25, 2007

Web 2.0 Design Principles

Hello All,

In this post i would like to discuss about Web 2.0 design principles. Comments and Suggestions are welcomed. As per our session on Web 2.0 the fundamentals of design are:
1. Website should be compatible with Google A rated browsers. [e.g. IE 5.5 and above, FF 1.0 and above, opera, and safari]

2. Fluidity [Crtl + (+), Crtl + (-)] should increase the font size. Firefox displays it correctly.
a. Use em units rather than px units while specifying font size in CSS.
b. Font size should be between 11 to 13 units
c. Non IE Browser: X/13 em
d. IE Browser: X/13 * 0.9759 em
e. Use lesser images.
f. Avoid tables, instead use divs
g. Change in screen resolution shouldn’t break up the page layout.

3. Simplicity
a. Areas of action should be clearly evident. Each website has some goals and each web page has some purpose, these should be clearly evident.
b. Central align pages, with simple straight fonts.
c. 2-3 Columns max, bottom of the page can have more columns
d. Central Column should have main content, which actually emphasize on the purpose of the page.
e. Top section should be clearly separated, i.e. making the top area for branding and navigation.
f. Make it more visible by putting on vibrant colors.
g. Colors used should be soothing to eyes neither too flashy nor too dull.
h. Navigation should be clearly shown by bands, bold clear fonts.
i. Separate navigational links from normal text, this includes for inline hypertexts too.
j. Hyperlinks should be in different color and size, may be putting a highlight color is also feasible.

4. Logos
a. Logo should be clear and sharp, emphasizing the statement.
b. Logo should work in its own words in a visual way.
c. Color combination should be visible on any background. Remember, that same logo can be used for any purpose, be it printed page or web.
d. Lingo’s and statements in bigger text.

5. Main Introduction
a. Headlines in different fonts and colors.
b. Use color gradients and reflections (glassy effect, water droplets, shiny surface etc.)
c. Icons should be big and catchy.
d. Rounded Corners on the images and page

These are few of the design principles that are used for Web 2.0 compatible web page design. Please share your views and comments on this.

Friday, June 8, 2007

My Trip To Reno (The Biggest Little City in the World)


My trip to Reno....


RENO ... The Biggest Little City in the World.
More on this Soon..!!!

Random Password Generator

PHP Script to Generate Random Password
Here is the script to generate a random 8 character length password. You can change the length to suit your needs.
/************Code*************************************/
/*** This fucnction takes one argument i.e. "abcdef...xyz123..90" and
* returns a random character
**
* $length = strlen($string);
* $postion=mt_rand(0,($length -1));
* //print("Rand_Character Function:($string[$postion])
");
* return ($string[$postion]);
*

** @param string $string
* @return Random Character
*/
function random_char($string)
{
$length = strlen($string);
$postion=mt_rand(0,($length -1));
return ($string[$postion]);
}
/*** This function takes two arguments the Characters String (e.g. "abcdef...xyz123..90")
* and length of the string (Password) to be created.
** @param string $charset_string
* @param integer $length
* @return string password
*/
function random_string($charset_string, $length)
{
$return_string = "";
for($i=0;$i<$length;$i++)
{
$return_string = $return_string.random_char($charset_string);
}
return ($return_string);
}
mt_srand((double)microtime()*1000000);
$charset = "abcdefghijklmnopqrstuvwxyz1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ";
$password_string =random_string($charset,8);
//Change the number 8 to the length of password you want to.
?>