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)