Monday, February 18, 2008
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, [...]
Saturday, February 9, 2008
Near Salisbury, in the county of Wiltshire in England, lies Stonehenge. Here are the photos :
Wednesday, February 6, 2008
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.
1
2
3
4
5
6
7
[...]
Here are the countries I’ve visited so far :