Thursday, 12 November 2020

Self Improvement


 Its been 8 years in Software Industry. Since staying in the same project for long time I have lost touch with current trend and technology stack world is following. It is time to wake up and learn new things learn new experiences.

I know I am not the only one, there are many living in their comfort zone not moving, not growing and not even thinking. I hope and believe this post he
lp to improve and move in life.

There are many things I am trying, want to share my journey hence started writing blogs again. Hope this will help many or if it helps at least one, I would be grateful.

Below are the few things I am trying will keep updating each one in a different post. For now here is the list that I am trying.

  1. Reading
  2. Exercise 
Reading:
Initially I started reading self motivated books, they helped me a lot. currently while writing this blog, I am reading 'Atomic Habits'. This is revealing how little thinking process and a habit can change our character. 
I believe reading is a kind of meditation, we can imagine the things, it will improve our brain imagination, mind creativity and everything. Our body habituate to easy things, we watch videos than reading books. watching videos limit our imagination, it will show what a Movie or Film Direction Imagination is. We need to start seeing our own imaginations, reading helps to do that. we can imagine things and imagination has no limit.

Exercise:
Being fitness freak, I have been occasionally doing workouts. It is helping me to keep my body in shape and not to be lazy. We don't believe we will be active based on the diet we are taking. If we keep on taking sugar diet we will become lazy daily. We need to be Hungry every time. Only Hungry man go outside and hunt for the food. We should be Hungry all time not filled bellies every time.


Thank you for reading till the End. Apologies for all the grammatical or any mistakes during this post. Will keep updating and try to have a post in a week.



Wednesday, 22 February 2012

How to include JQuery in to a Web Page?

This will guide you to include JQuery into your webpage.
 There are Mainly 2 steps to include JQuery into your webpage.
  1. Including JQuery Library file.
  2. Appending our code to the page.
1. Including Jquery Library File:

There are two ways to include Jquery library files into our webpage.
One is to import Jquery library into your location from here and include JQuery library file  to your webpage as followes

<script src = "jquery.js" type = "text/javascript"></script>

Another way is to directly host the  library file location into your web page. Google is providing this facility to include the link directly without downloading Jquery Library file. This we call as Content Delivery Networks(CDN).  Which shown as followes,

2. Appending our code to the page:

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script>

Simply it is not enough to say JQuery is appended to our webpage it is done. It is wrong. We need to write our own stuff for appropriate events in our webpage.
To include our stuff either we can go for Embedded script style or External Script style

Embedded Script

In Embedded Script style we write all our stuff in the same web page as followes

$(document).ready(function(){
            //your stuff goes here........
});

External Script

In External Script style we write all our stuff in separe JavaScript file and we include that file into our web page as followes

<script type = "text/javascript" src = "custom.js"></script>

Here "custom.js" is our own created file which contains all JQuery stuff that we want to apply for our webpages.