Category: Code

How to Parse Namespaces using the Python RSS Parser?

In the last tutorial, we learned about how to build a Python based RSS Parser. Continuing that conversation and building on that tutorial, let’s now look at parsing Namespaces and Namespace specific elements. Getting Ready For the purpose of this tutorial, we will use the WhizRssAggregator.py file that we created in the previous tutorial. Parsing ...

How to build a RSS Parser in Python?

RSS is a way to distribute content on your website or meta-tag assets and distribute them to various platforms like Apple News, iTunes, Flipboard, and scores of other similar platforms. Owing to its support to perform Big-Data, Natural Language Processing, and simplicity Python has emerged as a popular programming language. This tutorial helps you build ...

Specifying a Python Version for Cloud Foundry

When you use Cloud Foundry to build Python based solutions like Django, you end up running into the issue of Python versions. By default Cloud Foundry, defaults the Python version to 2.7.11. Between version 2.7.11 and the latest 3.5.x, Python has made a lot of changes and even simple string processing functions could potentially error ...

Model Inheritance in Python Django

Amongst, other things, Django as a powerful framework allows you to directly map your object-oriented models to a database table structures and in doing so also builds relationships in the backend. A big part of object-oriented programming is Inheritance and the tutorial below demonstrates how to create 1:1 relationship between models. Basic Background Let’s assume that ...

Python Django Buildpack for Cloud Foundry

Django is a powerful python framework to rapidly create apps. This post provides you with a buildpack that will help you accelerate the Django framework installation on cloudfoundry. This post assumes the following: You have created an app using the cf tools You have created a postgres database service using the cf tools You have bound ...

Prevent hyperlink events from CSS3

Ever wondered if it possible to prevent a hyperlink from executing (i.e.) launch a new web page, a new window, display a HTML page, or simply prevent anything from happening when a link is clicked? It is possible using CSS3. All you have to do is add the following CSS3 declaration for the anchor <a> tag. a { pointer-events: ...

CSS3 Columns and WebPage Pagination

The traditional HTML4/CSS/JavaScript were not conducive to laying out webpages into columns. Converting content to columns in webpages was traditionally accomplished using the table, tr, td tags or by combining div, span, and other tags in the context of a predefined webpage layout logic.This worked well until we started seeing emergence of laptops with different ...