Skip to content

Monthly Archives: February 2008

Using YAML in Python

YAML, which stands for ‘YAML Ain’t Markup Language’, is basically XML without < and > . This makes it very readable. Additionally, in dynamic languages such as Python, the data in the file will be loaded as a Python data structure. Here’s an example file : http://www.infoworld.com/rss/news.xml: (1970, 1, 1, 1, 0, 0, 3, 1, […]

Stonehenge

Near Salisbury, in the county of Wiltshire in England, lies Stonehenge. Here are the photos :

Creating PDFs using Python

ReportLab has a library for generating PDFs from Python. The following example will show how a PDF can be created using this library. The PDF will contain a title and a table. The first part of the script imports a few of the reportlab objects and sets up a few variables for stuff like titles. […]

Countries visited

Here are the countries I’ve visited so far :