Monday, 21 May 2012

Habits of Truly Memorable People

1. Don't see. Do:
    Spend your life doing instead of watching. Cool things will happen. Cool things are a lot more interesting and a lot more memorable.

2. Do something unusual:
  • We like to think we're unique, so occasionally do something different. Whatever you do, the less productive and sensible it is, the better. Your goal isn't to accomplish something worthwhile; the goal is to collect experiences.
  • Experiences, especially unusual experiences, make your life a lot richer and way more interesting
3. Embark on a worthless mission.
  •     You're incredibly focused, consistently on point, and relentlessly efficient. You're also really, really boring.
  •     Pick something it doesn't make sense to do a certain way and do it that way. You'll remember it forever—and so will other people.
4. Embrace a cause.
    People care about—and remember—people who care.

5. Let other people spread the word.
  •     People who brag are not remembered for what they've done; they're remembered for the fact they brag.
  •     Do good things and other people will find out. The less you say, the more people remember.
6. Get over yourself.
  •     Stop trying to seem perfect. Accept your faults. Make mistakes. Hang yourself out there. Try and fail.
  •     Then be gracious when you fail.
  •     When you do, people will definitely remember you because people who are willing to fail are rare... and because people who display grace and humility, especially in the face of defeat, are incredibly rare.

Thursday, 12 April 2012

zettabyte?


One zettabyte = 1,000 exabytes
One exabyte   = 1,000 petabytes. One petabyte  = 1,000 terabytes.
One terabyte  = 1,000 gigabytes.

Cisco sees inevitable endpoint of the growth in video traffic online by 2015.

Find the below image to find the internet traffic in 2015.

Inline image 2


Saturday, 7 April 2012

formal email letter

1. Understand your purpose.

Why are you writing? What do you want the reader to do after reading your letter? Do you want to change her mind or convince him to take a specific action? Are you seeking forgiveness? Do you mean to complain about bad service or a faulty product? Are you trying to get hired? What's the "ask"?

Once you know this, you can — and should — cut everything out that doesn't serve that purpose.

2. Identify your audience.

Knowing your audience helps you choose your language and target your ideas more precisely.  Don't use jargon that your reader won't understand.

3. Keep it short.

Most of us endure a constant flood of written communications, and we have a limited amount of time to spend reading it. You therefore have a better chance of being read if you keep your letter to one page. A multi-page letter with long paragraphs and complex sentences looks overwhelming. The busy reader will be tempted to set it aside for when she has more time—and she might never get around to picking it up again. Use short paragraphs, short sentences, short words.

4. Use simple language.

It's the writer's job to be understood. Even if your audience is highly educated, you should avoid big words and long, complex sentences. People aren't stupid; they're busy. Make our job easier, and we're more likely to give your letter the attention it deserves. Formal writing does not require the use of big words. Don't try to sound sophisticated; try to be clear. Use "ask" instead of "request." Say "buy" instead of "purchase." Instead of "enclosed herewith please find," just say, "I've enclosed" or "Here is. . . ."

5. Lead with the most important point.

As journalists say, don't bury your lead. Find a way to open with the idea or information that you most want your reader to focus or act on. The first paragraph might be the only one he reads, so don't hide the "ask" in the last paragraph.

6. Follow the rules.

There are rules for formatting a business letter. You ignore them at your peril.

7. Proofread. Then proofread again.

No matter how grammatically gifted you are, errors and typos can creep in. When you think you've finished writing, read your piece slowly and attentively, watching for those typos. Don't trust spellcheck. If possible, print a hard copy of your letter and read it—out loud—with a pen in hand, marking those typos, awkward sentences, confusing lines. If it's really important, have somebody else read it and let you know if you've missed something.

8. Let it cool before sending.

Especially if you are writing to persuade or complain, you probably are motivated by some pretty strong feelings. Absolutely write your first draft in the white-hot heat of passion. Express your feelings. Get it all on paper. But then . . . before you print and sign, or hit send, walk away for awhile. Go do something else. Let that heat of passion cool. Then come back and re-read what you've written. Is it fair? Is it smart? Is it true? Is it kind? Would you regret having it read on television, in front of your boss and your grandmother? Make the changes that seem appropriate after your emotions have settled.

Then, and only then, hit send.


Sunday, 25 March 2012

10 Questions ?

When you begin any project, are trying to make a change in your life, or are faced with a difficult undertaking, the best way to improve your result is to ask the important questions first. If you are working as part of a team, some questions may need to be asked of others. When working towards an individual goal, you will be the one giving the answers

Inline image 1

Ask, ask, ask — until you're confident that you have a firm understanding. Don't wait until you're stuck and spinning your wheels. Ask the questions and find the answers first!
 
"Quality questions create a quality life. Successful people ask better questions, and as a result, they get better answers"

Questions ?

Why am I doing this?

It's important to understand the reason behind anything you undertake. Whether it's a goal, task, habit, or project, "why am I doing this?" should be the first question you ask yourself. Understanding the reason behind the actions can be a tremendous motivator.

What is the desired outcome?

Without being clear about the desired result, you can't plan how to get there. Identify what you're trying to accomplish and exactly what that will look like. Clarity is key. Vague targets are rarely attained. Defined and tangible objectives have much greater success.

When is the deadline and are there periodic checkpoints?

Know when the action or project needs to be complete. Be aware of any phases or interim deadlines along the way. If you know how much time you have to work with, you can better plan backwards and set aside the necessary amount of time.

What is my role?

Understanding your role is crucial. Are you the leader or a worker bee? Are you a researcher or a communicator? Are you a team coordinator or planner? It's important to know which role you play so you can align your actions. If it is an individual undertaking, then you are most likely all of the above.

Who is responsible or accountable for which tasks or projects?

This is related your role, but in a more specific and tangible way. Determine which specific tasks you are personally responsible for. Know who maintains accountability. Perhaps you are the one whom others are accountable. Define your responsibilities.

Do I have metrics or some form of measurement?

Establish a measurement of success, so that progress can be determined. If metrics are set by someone else, know what they are and if there is any flexibility.

What are the possible roadblocks or obstacles?

We almost always encounter snags along the way to completion. However, difficulties can more easily be overcome if we can prepare for them. It's not always possible to prepare, complications by their very nature, are frequently unforeseen, but if you at least try to anticipate potential setbacks, they can often be resolved quickly.

What are the available resources?

Be aware of what resources are available. Be cognizant of the number of people involved or accessible to you and their skills. Be honest about the amount of time that can be committed. Also, understand if there are financial constraints.

How important is this project or task?

The importance of any goal or project determines how much attention and effort it deserves. Higher priority items get moved to the top of the list, while less crucial tasks can often be pushed back. If a project affects the profitability of a business or the health and well-being of an individual, it usually gets top priority.

What can I do to be more effective?

Develop strategies to help you be more efficient and productive. Improve the quality of your work by utilizing useful and effective tools. Better organizational skills greatly enhance effectiveness.

"Learn to be resourceful"


 

Saturday, 24 March 2012

Linux OS is wrong. It is ....

Journey of GNU project and FSF:

Opensource was started specially to reject the ideas that every individual stand for. It is mainly a journey of freedom.
Let's find more in detail about GNU and FSF(Free Software Foundation):

When it comes to Free Software Foundation, there can be no one as assertive as Richard M Stallman.He knew from his experience that free software was a good way of life, when he was working at the MIT Artificial Intelligence in 1970s. The lab was part of free software community. Software's used were very rare exceptions, and was free. A lot of it had been written by Stallman and developers. They were able to fix things that was bothering people.


Inline image 3


In 1971, he was hired by a lab. Lots of operating systems were free. But, by the end of 1980s, free software had become rare. Proprietary software was the norm everywhere--and then in the early 80s, our community died, and he was dropped into proprietary world. He refused to live that way, making all his efforts for you.

1983, launched Free Software movement, with the goal to make it possible to use computers and have freedom. So wanted to have an operating system that was free. They had PDP10, which became obsolete in 80s; so all software was absolete too. All other computer systems with software was proprietary.

Stallman decided to plan UNIX-like OS that would be entirely free software. Hence he named as GNU which means GNU is Not Unix.

1980s, lot of work was done for UNIX-like OS, which has hundred of components. Few components were found from somebody else who wrote for different purpose, and were free software. other components we had to develop. CSRG(Computer Systems Research Group) at Berkeley had written a code to change UNIX, but their was mixed in AT&T's and so was propritery. Stallman suggested them to write separate software and release it freely, later can be used into GNU system.

Inline image 2


1992, GNU was complete system, but one essential component was missing, kernel. So started to develop in 1990, which gave it somewhat character of a research project, taking six years to get a test version. 1992, Linux Torvalds, who had a proprietary kernel called Linux kernel, decided to make it free. The combination of the Linux kernel with the rest of the GNU system made a complete OS, which was basically GNU, but also contained Linux.

So calling Linux OS is wrong, it is GNU/Linux.

Productive Leader

Lead without title:

When it comes to self leadership it's about taking control and responsibility for your own circumstances. It's about stepping forward, instead of stepping back. It's about raising your hand and not staying in the background. If everyone were to step up and take responsibility the world would be a better place.

Leadership and productivity:

For me Leadership and Productivity are very closely linked. Productivity is synonymous with getting things done but what few people consciously realize is that it is also synonymous with creativity; and these two elements are essential for effective leadership. We all know that to achieve anything in life we need to get things done but if we are merely to complete tasks as they come our way this will amount to nothing. We need time for creative and strategic thinking. The most effective leaders are those who have the vision to make the world a better place and have the means through being highly productive to get the job done.

Here are 9 suggested habits that can help you become a more productive leader whether you have a title or not.

1. Have a clear Vision

Having a crystal clear vision of what you want to achieve which is communicated clearly to all involved will ensure the commitment and motivation are present to achieve the goal.

2. Have a Workflow System

A workflow system will allow you to work effectively and creatively by freeing up time to do the work the matters.Understanding the most effective flow of work will ensure that work is not duplicated or distractions don't interfere with the work that matters.

3. Take Responsibility

Take responsibility for all of your actions and behaviours. Eliminate any victim behavior, Remember that you are the master of your fate.

4. Work Your Body

All of the worlds high achievers work out regularly, Obama, Bush, Branson, all know the benefits of regular exercise for stamina, for performance and for productivity. It is one of the best habits you can adopt to become more productive. The extra energy that you gain from working out along with the de-stressing effect will enhance your productivity and performance more than any other habit.

5 Relax Your Body

Along with exercise the body needs rest, relaxation and plenty of sleep to perform at its best. Meditation and Yoga can also help to relax and de-stress the body.

6. Value your Time

Delegate, outsource and share your work.

"Only do what only you can do."

Your time is too precious to waste so only use it to do the work that no one else can do for you.

7. Become a good Listener

If you lead other people it is essential to listen well but you will also find that if you listen well it can make you more productive by eliminating duplication of work or misunderstandings that can lead to unessential work being completed.

8. Be the best you can be

Always do your best and you will have no regrets. Success doesn't come to those who sit and wait, it is necessary to work towards your vision. Engage with your vision, keep taking action.

"Nothing will work unless you do."

9. Make time for Thinking


In order to excel at what you do, You must make time for thinking. Creative thinking and strategic thinking. This is one of the biggest mistakes people in business make. They are too busy with day to day tasks that they forget to plan, to innovate, to dream. And without these factors there will never be growth or involvement, simply stagnation.

Friday, 23 March 2012

Advance Linux File Permissions

In this article, we discuss about the SUID, SGID, and sticky bit.

when you look around in your file system you see 's' and 't' bit. These are the special file permissions for the files.
[sunil@server ~]$ ls -ld /tmp
drwxrwxrwt 6 root root 4096 Mar 23 07:14 /tmp

[sunil@server ~]$ which passwd
/usr/bin/passwd

[sunil@server ~]$ ls -l /usr/bin/passwd
-rwsr-xr-x 1 root root 22960 Jul 17  2006 /usr/bin/passwd

When special mode of the file needs to set, then we use below values;
SUID=4
SGID=2
Sticky bit=1

Let us discuss, in detail

SUID(Set-User-Id):

when user executes a file, the process by default has the same permissions as the user. In other words process inherits his default group and user identifications.
By setting SUID, process doesn't use the user's identification but the user identification of the file owner.

[sunil@server ~]$ ls -l /etc/passwd /etc/shadow /usr/bin/passwd
-rw-r--r-- 1 root root  1725 Mar 23 07:27 /etc/passwd
-r-------- 1 root root  1214 Mar 23 07:27 /etc/shadow
-rwsr-xr-x 1 root root 22960 Jul 17  2006 /usr/bin/passwd

From above we observe that 'passwd' is readable by all, but shadow is un-readable by group and other users.
Normal user wants to change the password, he can by running /usr/bin/passwd which have a special permission mode that lets users update sensitive system files like /etc/shadow --something they can't do directly with an editor. True fact of 'passwd ' command.

[sunil@server ~]$ ls -ld /usr/bin/passwd
-rwsr-xr-x 1 root root 22960 Jul 17  2006 /usr/bin/passwd

Observe letter 's' which is SUID, which sets a process have the privileges of the owner of the file during running instance.
Thus when a non privileged user executes passwd, the effective UID of the process is not the user's, but of root's.

[sunil@server ~]$ id -a
uid=502(sunil) gid=502(sunil) groups=502(sunil)

Take a look at below script.

[sunil@server ~]$ cat reids.pl
#!/usr/bin/perl
# printing Real UID
print "RUID: $<\n";
# printing Real GID
print "RGID: $(\n";
# printing Effective UID
print "EUID: $>\n";
# printing Effective GID
print "EGID: $)\n";

The file is owned by sunil, and observe file permissions.

[sunil@server ~]$ ls -l reids.pl
-rwxrwxr-x 1 sunil sunil 187 Mar 23 07:56 reids.pl

When you run the script you will see that the process that runs it gets your user-ID and your group-ID:
[sunil@server ~]$ ./reids.pl
RUID: 502
RGID: 502 502
EUID: 502
EGID: 502 502

Now changing owner ship to another user.
[root@server ~]# chown gee /home/sunil/reids.pl

[root@server ~]# ls -l /home/sunil/reids.pl
-rwxrwxr-x 1 gee sunil 200 Mar 23 07:32 /home/sunil/reids.pl

Running script again,
[sunil@server ~]$ ./reids.pl
RUID: 502
RGID: 502 502
EUID: 502
EGID: 502 502

Output of the program depends only on the user that runs it and not the one who owns the file.

SUID permission:

[root@server ~]# chmod 4775 /home/sunil/reids.pl

[root@server ~]# ls -l /home/sunil/reids.pl
-rwsrwxr-x 1 gee sunil 187 Mar 23 07:56 /home/sunil/reids.pl

Once 's' bit is set, file is executed under the UID of the user that owns the file rather than user who is ececuting the file.
so, even when sunil runs the file, EUID=103 which is not sunil's.

[sunil@server ~]$ ./reids.pl
RUID: 502
RGID: 502 502
EUID: 503
EGID: 502 502

SGID(Set-Group-Id):

Similar to SUID, except that a program with SGID set allows the user to have the same power as the group.
Created two users(sunil,gee), who shares a common directory(/admin) with write permission, with group ownership(admin).
[root@server ~]# groupadd admin
[root@server ~]# chgrp admin /admin/
[root@server ~]# mkdir /admin
[root@server ~]# chmod 775 /admin/

[sunil@server ~]$ ls -ld /admin/
drwxrwxr-x 2 root admin 4096 Mar 23 08:27 /admin/

Adding, users to admin share.
[root@server ~]# usermod -G admin sunil
[root@server ~]# usermod -G admin gee

Login with sunil credentails and create file in /admin directory.
[sunil@server admin]$ pwd
/admin

[sunil@server admin]$ ls -l
total 0
-rw-rw-r-- 1 sunil sunil 0 Mar 23 08:39 sun-beforesgid

Login with user gee and create a file in /admin directory.

[gee@server admin]$ pwd
/admin

[gee@server admin]$ ls -l
total 0
-rw-rw-r-- 1 gee   gee   0 Mar 23 08:40 gee-beforesgid
-rw-rw-r-- 1 sunil sunil 0 Mar 23 08:39 sun-beforesgid

SGID bit is not set, when files are created in /admin, the group for the file is user's primary GID.
Setting SGID bit, and login as sunil and create file.

[root@server ~]# chmod 2775 /admin/
[root@server ~]# ls -ld /admin/
drwxrwsr-x 2 root admin 4096 Mar 23 08:27 /admin/

[sunil@server admin]$ ls -l
total 0
-rw-rw-r-- 1 gee   admin 0 Mar 23 08:41 gee-aftersgid
-rw-rw-r-- 1 gee   gee   0 Mar 23 08:40 gee-beforesgid
-rw-rw-r-- 1 sunil admin 0 Mar 23 08:41 sun-aftersgid
-rw-rw-r-- 1 sunil sunil 0 Mar 23 08:39 sun-beforesgid

Notice the group ownership for " *-aftersgid ". It inherits group permission from the parent directory
"Enabling SGID on a directory is extremely useful when you have a group of users with different primary groups working on the same set of files."

Sticky bit:

Everyone can read,write and access the directory.The 't' indicates that only the user (root and owner of the directory,of course) that created a file in this directory can delete that file.

One user could remove another user's file
Eg:
[sunil@server admin]$ ls -l
-rw-rw-r-- 1 gee   admin 0 Mar 23 08:41 gee-aftersgid
-rw-rw-r-- 1 gee   admin 0 Mar 23 08:48 gee-afterstickybit
-rw-rw-r-- 1 gee   gee   0 Mar 23 08:40 gee-beforesgid
-rw-rw-r-- 1 gee   admin 0 Mar 23 08:48 gee-beforestickybit
-rw-rw-r-- 1 sunil admin 0 Mar 23 08:41 sun-aftersgid
-rw-rw-r-- 1 sunil admin 0 Mar 23 08:48 sun-afterstickybit
-rw-rw-r-- 1 sunil sunil 0 Mar 23 08:39 sun-beforesgid
-rw-rw-r-- 1 sunil admin 0 Mar 23 08:48 sun-beforestickybit

[sunil@server admin]$ rm gee-beforestickybit
[sunil@server admin]$ ls gee-beforestickybit
ls: gee-beforestickybit: No such file or directory
[sunil@server admin]$

Sunil was able to remove file. In order to prevent we use sticky bit.

[root@server ~]# chmod +t /admin/
[sunil@server ~]$ ls -ld /admin
drwxrwsr-t 2 root admin 4096 Mar 23 08:27 /admin/

Here it throws the below error, while removing the file.
[sunil@server admin]$ rm gee-afterstickybit
rm: cannot remove `gee-afterstickybit': Operation not permitted

Hope by this article you would have understood about the importance of advance linux file permissions.