Saturday, April 30, 2011

Conditional tags in blogger

  please read this before going down ----- how-to-put-widget-on-specific-page-of-your-blog

Conditional tags in blogger are used to tell browsers what to do in certain conditions. For example, when we use:

<b:if cond='data:blog.pageType == &quot;item&quot;'>
Hello world
<b:else/>
Goodbye Cruel World
</b:if>
It gives the browser the condition that when it’s an item (post) page then show “Hello world” otherwise, for every other pages show “Goodbye Cruel World”. Interesting, isn’t it.

A conditional tag comes handy when you are designing your Blogger blogs and customizing it from the scratch to take it to the next level. But first you need to know how many types of pages are there in Blogger and then how to use the conditional tags respective to that type of page. In this tutorial I will try to cover most of it, so let’s start.

Type of Pages in Blogger and Conditional Tags For It

1. Item Page
Item page refers to the individual post pages. It’s the page when you click the tile of the post or the read more link in blogger to read the full post. The conditional tag:
<b:if cond='data:blog.pageType == &quot;item&quot;'>
Hello World
</b:if>

Kinds of Computer Languages


  • Imperative
    • Specifies how a computation is to be done.
    • Examples: C, C++, C#, Fortran, Java
  • Declarative
    • Specifies what computation is to be done.
    • Examples: Haskell, ML, Prolog
  • von Neumann
    • One whose computational model is based on the von Neumann architecture.
    • Basic means of computation is through the modification of variables (computing via side effects).
    • Statements influence subsequent computations by changing the value of memory.
    • Examples: C, C++, C#, Fortran, Java
  • Object-oriented
    • Program consists of interacting objects.
    • Each object has its own internal state and executable functions (methods) to manage that state.
    • Object-oriented programming is based on encapsulation, modularity, polymorphism, and inheritance.
    • Examples: C++, C#, Java, OCaml, Simula 67, Smalltalk



    • Scripting
      • An interpreted language with high-level operators for "gluing together" computations.
      • Examples: AWK, Perl, PHP, Python, Ruby
    • Functional
      • One whose computational model is based on the recursive definition of functions (lambda calculus).
      • Examples: Haskell, Lisp, ML.
    • Parallel
      • One that allows a computation to run concurrently on multiple processors.
      • Examples
        • Libraries: POSIX threads, MPI
        • Languages: Ada, Cilk, OpenCL, Chapel, X10
        • Architecture: CUDA (parallel programming architecture for GPUs)
    • Domain specific
      • Many areas have special-purpose languages to facilitate the creation of applications.
      • Examples
        • YACC for creating parsers
        • LEX for creating lexical analyzers
        • MATLAB for numerical computations
        • SQL for database applications
    • Markup
      • Not programming languages in the sense of being Turing complete, but widely used for document preparation.
      • Examples: HTML, XHTML, XML

    Transformers 3 Dark of the Moon Teaser Trailer - Official (HD)










    Harry Potter and the Deathly Hallows Part 2




    Description: The end begins as Harry, Ron, and Hermione go back to Hogwarts to find and destroy Voldemort's final horcruxes, but when Voldemort finds out about their mission, the biggest battle begins and life as they know it will never be the same again.
    Related Titles: Harry Potter and the Deathly Hallows: Part 2
    Related Names:Michael Gambon, Jim Broadbent, Michelle Fairley, Alan Rickman, Miranda Richardson, Emma Thompson, Jamie Campbell Bower, Julie Walters, Tom Felton, Bonnie Wright, Natalia Tena, Ralph Fiennes, Domhnall Gleeson, Ciarán Hinds, Evanna Lynch, J.K. Rowling, Simon McBurney, Peter Mullan, Gary Oldman, David Yates, Steve Kloves, Jason Isaacs, James Phelps, Nick Moran, Robbie Coltrane, Toby Regbo, Helen McCrory, Clémence Poésy, Timothy Spall, David Thewlis, Warwick Davis, Rupert Grint, Emma Watson, Dave Legeno, Maggie Smith, John Hurt, Oliver Phelps, David Bradley, Kelly Macdonald, Helena Bonham Carter, Daniel Radcliffe

    TeamViewer

    TeamViewer (full version)