Tag: rizwan abbasi

  • An Introduction To jQuery

    jquery-logo

    What is jQuery?

    “A fast, small, and feature-rich JavaScript library. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers”. [Reference: jQuery.com]

    Basics

    jQuery focuses on queries and a query is simply a CSS selector which identifies a set of html elements within your document.

    Include jQuery

    You need to include jQuery in your file. You can either download file from jquery.com and host it on your server or use CDN (Content Delivery Network) to link the file. Follow the link below to copy the Google’s CDN link

    https://developers.google.com/speed/libraries/#jquery

    which looks like

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>

    Always place this link before the closing body tag of your html document

    Pass a css selector string

    Example:

    Select all h1 headings in our page

    $("h1");

    Select all paragraph tags in our page

    $("p");

    jQuery object

    (also known as jQuery result, set or selected elements)
    A jQuery function returns a jQuery object. “A set of document elements returned by jQuery function”
    Example

    var n = ("p");
    console.log(n);
    Output:
    [
    	p.intro,
    	p
    	p#note
    ]

    console.log function outputs to the developer’s console e.g, firebug and returned result is a jQuery object which is simply an array of html elements.

    console.log(n.length); //3

    will return the number of objects in an array.

    console.log(n[0]); //p.intro

    will return first item in the array.

    jQuery Methods

    Doing something interesting with a jQuery object

    $("p").css("color", "blue");

    Will change color of all of our paragraphs to blue using CSS method. Here we pass a “p” selector to our jQuery function and this returns an array of objects containing all our paragraph elements then using css method we change
    the color of all paragraph elements to blue.

    Change all paragraphs to red and italic

    /*
    //one way
    $("p").css("color", "red");
    $("p").css("font-stlye", "italic");
    
    //another way
    var p = $("p");
    p.css("color", "red");
    p.css("font-stlye", "italic");
    */
    //the efficient way, separate property and value by colon
    $("p").css(
    		  {
    			"color": "red",
    			"font-style": "italic"
    		  }
    );

    Change all h1 headings to blue and the text to “Hello”

    //chaining is used
    $("h1").css("color", "blue") . text("Hello");
    

     

     

  • Ghanttol (غنٹول)

    Ghanttol (غنٹول)

    Ghanttol (غنٹول) is the hindko name of a beautiful flower that naturally blossoms in wheat fields in district Mansehra. These landscapes are from Piranha (پڑھنہ), a beautiful village situated at the countryside of Mansehra city. Enjoy the view.

  • 7 Steps to Dive into Your Freelancing Career

    7 Steps to Dive into Your Freelancing Career

    freelancer-courtesy-mediabistrodotcom
    Courtesy: mediabistro.com

    1. Who is a freelancer?

    A freelancer is a person who is not devoted to a specific employer, company or boss for a long time. Moreover, a freelancer is a self-employed person and the analogy is somehow like “Be your own boss”. Freelancers charge their client hourly/daily based or project based. Now a days, freelancing refers to programmers, developers, writers and last but not least graphic designers.

    2. Top skills in demand

    Here are the top 20 skills that online businesses tried to find in 2015. [Courtesy: Upwork Blog]

    1. PHP Development
    2. Graphic Design
    3. Data Entry
    4. Content Writing
    5. Internet Research
    6. Javascript Development
    7. Web Design
    8. HTML5 Development
    9. Search Engine Optimization (SEO)
    10. Social Media Marketing
    11. Logo Design
    12. Virtual Assistant
    13. Lead Generation
    14. MySQL Administration
    15. Android App Development
    16. jQuery Development
    17. iOS App Development
    18. Email Marketing
    19. Customer Service
    20. Illustration

    3. Identify your niche

    It is the time to identify that whether you are a good programmer, a good designer, a good marketer or any other beginner/expert from the above list. Identify at least 1-2 skills from the list provided. If you’re interested in learning new skill/s, there are many online resources like Udemy available that offer free as well as paid video tutorial based courses to learn new skills.

    4. Market yourself

    Now market yourself and your skills. Start your portfolio website and start a blog so that people should know about you and your skills. Also, don’t forget to create/update your LinkedIn profile.

    5. Understanding the nature of freelance projects

    In a simple scenario, you have to find projects on freelancing websites and then bid on those projects for which you’re quite confident to complete successfully in time. The nature of freelance project may vary depending upon the online freelancing platform/website you’re using. Here in this blog post, I’ll discuss some common types of projects that are popular.

    1. Fixed price projects

    In fixed price projects, either client or you have to estimate the total cost of the project. If the cost mentioned in your bid is accepted by the client, then you’re obliged to successfully complete the project according to your proposed cost/budget. Fixed price projects are available at the popular freelancing platforms like UpWork, PeoplePerHour and Freelancer.

    1. Hourly projects

    In hourly projects, you’re paid on hourly basis. Once the hourly rate is agreed between you and client then the payment will be made in accordance to that rate. If you work 20 hours per week and your hourly rate is $25, then you’ll get $500 at the end of week.

    If you’re using UpWork for hourly project, then you have to download and install UpWork team app that will monitor and track your progress. This application will randomly take a snapshot of your desktop after every ten minutes slot.

    If you’re using PeoplePerHour, then you have to estimate the number of hours for a particular project.

    1. Hourlies/Gigs

    In the previous two type of projects, you have to find the project and bid on that project. This type of project is different in such a way that client will find you and contact you. PeoplePerHour and Fiverr currently offer such type of project. A very simple project of this nature would be “I can develop a simple PHP app for $500 in 5 days”. Now any client who will need a PHP app will contact you.

    6. Freelancing platforms

    Although, you can find many freelancing platforms but here are the most popular ones.

    UpWork.com (Merger of Odesk & Elance)
    PeoplePerHour.com
    Freelancer.com
    Fiverr.com

    Get yourself registered on these platforms, start bidding and earning.

    7. Things to remember

    • Communication is the key for a successful freelancer. Always communicate regularly with your client.
    • Do not commit what you can’t do, only commit what you can easily do.
    • Manage your time and don’t overburden yourself.
    • Keep growing your skills.
    • Getting your first project would be difficult but don’t lose the hope. Keep your rates low in the beginning, once you get few projects and your feedback score is good then you can easily raise your rate.

    Tie your laces now and use the 7 steps to dive into your freelancing career.

  • Lake Saif ul Malook, June 2014

    Lake Saif ul Malook, June 2014

    Lake Saif ul Malook(جھیل سیف الملوک), among the most beautiful lakes is also known as ‘Queen of Lakes’. It is situated in Naran valley, Mansehra district, KP province, Pakistan.

    Lake Saif ul Malook from the Gallery

    Neighborhood

    • Lulusar Lake
    • Dudipatsar Lake
    • Aansu Lake
    • Ratti Gali Lake