- A man is great by deeds, not by birth. - Chanakya
- A person should not be too honest. Straight trees are cut first and honest people are screwed first. - Chanakya
- As a single withered tree, if set aflame, causes a whole forest to burn, so does a rascal son destroy a whole family. - Chanakya
- A good wife is one who serves her husband in the morning like a mother does, loves him in the day like a sister does and pleases him like a prostitute in the night. - Chanakya
- A man is born alone and dies alone; and he experiences the good and bad consequences of his karma alone; and he goes alone to hell or the Supreme abode. - Chanakya
- As long as your body is healthy and under control and death is distant, try to save your soul; when death is imminent what can you do? - Chanakya
- As soon as the fear approaches near, attack and destroy it. - Chanakya
- Before you start some work, always ask yourself three questions - Why am I doing it, what the results might be and will I be successful. Only when you think deeply and find satisfactory answers to these questions, go ahead. - Chanakya
- Books are as useful to a stupid person as a mirror is useful to a blind person. - Chanakya
- Do not be very upright in your dealings for you would see by going to the forest that straight trees are cut down while crooked ones are left standing. - Chanakya
- Do not keep company with a fool for as we can see he is a two-legged beast. Like an unseen thorn he pierces the heart with his sharp words. - Chanakya
- Do not reveal what you have thought upon doing, but by wise council keep it secret being determined to carry it into execution. - Chanakya
- Education is the best friend. An educated person is respected everywhere. Education beats the beauty and the youth. - Chanakya
- Even if a snake is not poisonous, it should pretend to be venomous. - Chanakya
- God is not present in idols. Your feelings are your god. The soul is your temple. - Chanakya
- He who is overly attached to his family members’ experiences fear and sorrow, for the root of all grief is attachment. Thus one should discard attachment to be happy. - Chanakya
- He who lives in our mind is near though he may actually be far away; but he who is not in our heart is far though he may really be nearby. - Chanakya
- If one has a good disposition, what other virtue is needed? If a man has fame, what is the value of other ornamentation? - Chanakya
- It is better to die than to preserve this life by incurring disgrace. The loss of life causes but a moment's grief, but disgrace brings grief every day of one's life. - Chanakya
- Never make friends with people who are above or below you in status. Such friendships will never give you any happiness. - Chanakya
- Wise man! Give your wealth only to the worthy and never to others. The water of the sea received by the clouds is always sweet. - Chanakya
- Once you start a working on something, don't be afraid of failure and don't abandon it. People who work sincerely are the happiest. - Chanakya
- One whose knowledge is confined to books and whose wealth is in the possession of others can use neither his knowledge nor wealth when the need for them arises. - Chanakya
- Purity of speech, of the mind, of the senses, and of a compassionate heart is needed by one who desires to rise to the divine platform. - Chanakya
- Test a servant while in the discharge of his duty, a relative in difficulty, a friend in adversity, and a wife in misfortune. - Chanakya
- The biggest guru-mantra is: never share your secrets with anybody. It will destroy you. - Chanakya
- The earth is supported by the power of truth; it is the power of truth that makes the sun shine and the winds blow; indeed all things rest upon truth. - Chanakya
- The fragrance of flowers spreads only in the direction of the wind. But the goodness of a person spreads in all direction. - Chanakya
- The happiness and peace attained by those satisfied by the nectar of spiritual tranquility is not attained by greedy persons restlessly moving here and there. - Chanakya
- The life of an uneducated man is as useless as the tail of a dog which neither covers its rear end, nor protects it from the bites of insects. - Chanakya
- The one excellent thing that can be learned from a lion is that whatever a man intends doing should be done by him with a whole-hearted and strenuous effort. - Chanakya
- The serpent, the king, the tiger, the stinging wasp, the small child, the dog owned by other people, and the fool: these seven ought not to be awakened from sleep. - Chanakya
- The wise man should restrain his senses like the crane and accomplish his purpose with due knowledge of his place, time and ability. - Chanakya
- The world's biggest power is the youth and beauty of a woman. - Chanakya
- There is no austerity equal to a balanced mind, and there is no happiness equal to contentment; there is no disease like covetousness, and no virtue like mercy. - Chanakya
- There is poison in the fang of the serpent, in the mouth of the fly and in the sting of a scorpion; but the wicked man is saturated with it. - Chanakya
- There is some self-interest behind every friendship. There is no friendship without self-interests. This is a bitter truth. - Chanakya
- Treat your kid like a darling for the first five years. For the next five years, scold them. By the time they turn sixteen, treat them like a friend. Your grown up children are your best friends. - Chanakya
- We should not fret for what is past, nor should we be anxious about the future; men of discernment deal only with the present moment. - Chanakya
- Whores don't live in company of poor men, citizens never support a weak company and birds don't build nests on a tree that doesn't bear fruits. - Chanakya
Failure to complete any task within the allocated time and budget proves the task was more difficult than expected and requires promotion for those in charge.
Thursday, July 3, 2008
Chanakya Niti & Quotes
Understanding File Permissions in Linux Systems
Understanding File Permissions in Linux Systems
Every file or directory in the Linux file system contains settings for who can read, write or execute the file. These settings are called permissions. Each file or directory is assigned to a specific user and group.
Permissions
Each file or directory has three security groups,
• Owner (Each file or directory has a specific owner or creator)
• Group Access (Each file or directory is assigned to a specific group)
• All Others (If a user is not the owner or is not assigned to the group, those are considered as others)
Each security group has 3 flags that control the access status
Flag 1 = read Flag 2= write Flag 3 = execute
They are listed as 'rwx' or a "-" if the access is turned off.
To view the permissions, you use the ls -l or ll command.
For each file or directory listed, you will see the permissions, owner and group name, and file or directory name.
Examples
-rwxrwxrwx read, write and executable for owner, group and all others
-rwxrwx--- read, write and executable for owner, group only
-rwx------ read, write and executable for owner only
-rw-rw-rw read and write for owner, group and all others
-rwxr-xr-x read, write and executable by owner, only read and executable by group and others
-rw-r--r- read and write by owner, read only for group and all others
Changing Permissions - chmod -
Use “chmod” to change the permissions.
Options:
u, g, o or all Whose permission you are changing: user, group, other or all
+ or - Type of change: add permission or subtract permission combination of
r , w or x which permission you are changing: read, write or execute
file or directory name of file or directory to change
Examples
chmod go-w testFile remove write access for group and others for the file ‘testFile’
chmod go+rw file1 file2 add read and write access for group and others for files 'file1' and 'file2'
chmod ugo+rwx testFile1 add read, write and execute for everyone for 'testFile1'.
Changing Owner - chown -
Use “chown” to change the owner of a file or directory.
Command: chown username
Example: To change the owner of 'file1' and 'file2' to the user 'chinmay'
chown chinmay file1 file2
Changing Group - chgrp -
Use “chgrp” to change the group of a file or directory.
Command: chgrp groupname
Example: To change the group of 'testFile1' and 'testFile2' to the group 'development'
chgrp development testFile1 testFile2
Tuesday, June 10, 2008
Mt. Kangchenjunga Range, Sikkim
Location: Dok-La, Altitude: 16,400 feets above sea level
Temperature: -3 degree celcius
Climate: Clear Sun, Windy
Mt. Kangchenjunga is the third highest mountain in the world (after Mount Everest and K2) with an altitude of 8,586 metres (28,169 feet).The second highest peak in Nepal. Kangchenjunga translated means "The Five Treasures of Snows", as it contains five peaks, four of them over 8,450 metres. Three of these five peaks (main, central, and south) are on the border of North Sikkim district of Sikkim, India and Taplejung District of Nepal, while the other two are completely in Taplejung District.
Read more on this at http://en.wikipedia.org/wiki/Kanchenjunga
Thursday, September 6, 2007
Search Engine Optimization - An Overview for Design/Layout
- 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.
- 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. - Make a site with a clear hierarchy and text links. Every page should be reachable from at least one static text link.
- 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.
- Create a useful, information-rich site, and write pages that clearly and accurately describe content.
- Think about the words users would type to find pages, and make sure that site actually includes those words within it.
- Don't go overboard with graphics - use them sparingly and optimize them to reduce user download times.
- Try to use text instead of images to display important names, content, or links. The crawler doesn't recognize text contained in images.
- Make sure that TITLE tags and ALT attributes are descriptive and accurate.
- Check for broken links and correct HTML.
- 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.
- 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.
- Keep the links on a given page to a reasonable number (fewer than 100).
- 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.
- 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
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
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!
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
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.