What should one not do in life ?

I really loved below points, you will never be sad if you apply these in your life, believe me.


  • Do Not Discuss People. Discuss ideas instead.
  • Do Not Be Jealous. Firstly, it is extremely meanly. Secondly, it makes you look miserable. Thirdly, this feeling has never made anybody happier, luckier or more successful.
  • Do Not Compare Yourself With Others. Live your own life and make sure it goes smoothly in the right direction.
  • Do Not Overwork. Hard work has nothing to do with productivity. Work smarter instead of working harder.
  • Do Not Be rude. Rudeness never shows your power but rather makes you look ridiculous and silly. Impress people with your politeness and let them respect you for that.
  • Do Not Be Impulsive. Every time you disagree with something do not make hasty conclusions or decisions. Give it a chance and let it settle down in your mind for a while. Soon you can notice how your opinion regarding that issue has changed.
  • Do Not Doubt Yourself Too Much. Embrace the truth. You are braver than you believe, smarter than you think and stronger than you seem. Go and get it!
  • Do Not Be Afraid To Act. Fear is a reason that paralyzes people and stops them from taking action. Overcome your fears and start acting confidently.
  • Do Not Spend Hours Surfing On Social Networks. Social networks are a great source of communication, interesting stories and funny pictures. But make sure you are not killing time from dawn till dusk there.
  • Do Not Lose Details. While being focused on big picture, do not forget about tiny details. They do really matter.
  • Do Not Lose Eye Contact. Develop a habit to look another person in his eyes while having a dialogue. It will let your partner be sure that you are listening carefully and you are totally involved.
  • Do Not Sacrifice Your Sleep. Go to bed on time and have a good night`s rest. Good sleep is crucial for your creativity and long-term productivity.
  • Do Not Lose Ideas. Always have a notepad with you. Every time you have an idea that pops up in your mind, take a minute to write it down or sketch it. Do not suppose that you will recall it later. They usually vanish.
  • Do Not Hang Out With Pessimistic People. There are already a lot of bad and ugly things in this beautiful world that every once in a while make you upset.
  • Do Not Lose Time Purposelessly. Spend every free minute you have with benefit. Read a book. Listen to podcast. Think. Dream. Act.
  • Do Not Forget To Exercise Regularly. Good, exhausting, intense workouts. This is what lets you stay in a good shape, abstract from the daily routine and devote time to yourself.
  • Do Not Postpone Anything. Especially the things that matter. The sooner you start moving toward your dreams the sooner you will enjoy the results of this journey.
  • Do Not Stop Studying. Knowledge is crucial. If you do not want to be left behind, you need to constantly improve your knowledge and acquire new skills.
  • Do Not Stop Smiling. Do it sincerely. Let your smile change the world.
  • Do Not Be Too Realistic. Leave some place for miracles. Believe in impossible and give weird ideas a chance.
  • Do Not Take People For Granted. Every single person in your life is worth appreciating.
  • Do Not Leave Any Reasons For Regret. Take action now in order not to regret about missed opportunities in the future.
  • Do Not Avoid Changes. Changes usually involve new opportunities, growth and development. Welcome them and let changes make your life more interesting and diverse.
  • Do Not Give Up Chasing Your Dreams. Commit to your dreams and make them come true.

Source : https://www.quora.com/What-should-one-not-do-in-life

Linux : View older version of an SVN file

In Linux, when you need to view older view of SVN file, you can check it using below command using terminal.

svn cat -r revisionnumber filename.php | less

You can view filename.php file in terminal using above command.

WordPress Allow Login With Email

By Default WordPress do not let you to login using Email. Here, you can modify this behavior. Just add below code in your active theme’s functions.php file (Maybe if you are using child theme, put it into child theme’s functions.php).

add_filter('authenticate', 'customAllowEmailLogin', 20, 3);
function customAllowEmailLogin( $user, $username, $password ) {
	if ( is_email( $username ) ) {
	    $user = get_user_by_email( $username );
	    if ( $user ) $username = $user->user_login;
return wp_authenticate_username_password( null, $username, $password );

Now you can login with your email into WordPress.
Please leave your comments if its working or not working for you.

How to change length of Excerpt in WordPress

As a WordPress developer, i needed to change the length of the excerpt.
You can add following function in your themes’s functions.php file.

if(!function_exist('new_excerpt_length') {
    function new_excerpt_length($length) { 
       return 100;
add_filter('excerpt_length', 'new_excerpt_length');

Above function will change the excerpt length to 100. (You can change that value as per your need).

Useful Full Forms

Below you can find some useful full forms.


PHP : Hypertext Preprocessor
PEAR : PHP Extension and Application Repository
Ajax : Asynchronous JavaScript and XML
SOAP : Simple Object Access Protocol
HTML : Hypertext Markup Language
CSS : Cascading Style Sheets
SQL : Structured Query Language
ANSI : American National Standards Institute
DBMS : Database Management System
RDBMS : Relational Database Management System
DDL : Data Definition Language
DML : Data Manipulation Language
GIF : Graphics Interchange Format
JPEG : Joint Photographic Experts Group
MPEG : Moving Picture Experts Group
PNG : Portable Network Graphics
AVI : Audio Video Interleaved
HTTP : Hypertext Transfer Protocol
W3C : World Wide Web Consortium
IETF : Internet Engineering Task Force
IRTF : Internet Research Task Force
APC : Alternative PHP Cache
APD : Advanced PHP debugger
SVN : Subversion (version control system)
PDO : PHP Data Objects
FTP : File Transfer Protocol
SFTP : Secure File Transfer Protocol
CGI : Common Gateway Interface
DOM : Document Object Model
JSON : JavaScript Object Notation
MSI : Microsoft Installer
XMPP : The Extensible Messaging and Presence Protocol
REST : Representational State Transfer
RSS : Really Simple Syndication
URL : Uniform Resource Locator
XML : Extensible Markup Language
SPAs : Single Page Applications


NEWS : North East West South
WHO : World Health Organization