• 06
    Jul / 2013
    Programming | | 2 Comments
    Mathematical expressions in the traditional algebraic notation can be calculated using an algorithm RPN (Reverse Polish Notation). In the first part of this article, I will show you how to implement a parser that converts the traditional algebraic form of mathematical expression to the RPN notation. In the second part of article, I will implement an algorithm for calculating the RPN expression and the architecture which allows for easy extend the the parser to support mathematical custom functions.
  • 04
    Jul / 2013
    no image
    Programming | | No Comments
    The view is responsible for the preparation of data for a given template and returning the requested page. What about if we need to generate dynamic content at the main template of our website? In this post I will show you, how to use custom template context processor to dynamically generate site navigation in the master template.