Tech and travel

Posts

Creating PDFs using Python

2008-02-06

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. from reportlab.platypus import * from reportlab.rl_config import defaultPageSize import reportlab.lib.colors from reportlab.lib.units import inch PAGE_HEIGHT=defaultPageSize[1] Title = "Bill"

Countries visited

2008-02-04

Here are the countries I’ve visited so far :

Qatar

2008-02-02

I spent some time in Qatar for work. Here are the photos:

My hotel

My hotel

GTD Links

2008-01-31

These are some GTD programs for the Mac : http://bargiel.home.pl/iGTD/ http://www.omnigroup.com/applications/omnifocus/

A spreadsheet with Python functions

2008-01-23

Resolver is a spreadsheet, running on .Net, in which you can write functions in Python. An example is : for row in workbook["Sheet1"].Rows: if (row["Gross Price"] > 25 and row is not workbook["Sheet1"].HeaderRow): row.BackColor = Color.PeachPuff This is run after a change is made to the spreadsheet. The code loops over all the rows in the first worksheet. If the “Gross Price” column is bigger than 25 and the row is not part of the header row, then the background colour of the row is set to PeachPuff.

Copyright (c) 2024 Michel Hollands