Andrew, my eldest son, was enrolled in a competition recently by his school. The competition is called the $20 boss, and is run by the National Australia Bank, which is one of the largest banks around here. The basic idea is that the bank loans each of the students $20, with which they start a business. The goal is to make a profit, with the bank expecting to be returned $21. 10% of money over that should go to charity, and the rest is the student’s to keep.
Other kids seem to have chosen to make muffins, cookies, or drinks. Well, except for the kids who made candles. Andrew on the other hand had a think, and decided to ask me to teach him to make wood turned pens. This was exciting to me as Andrew hasn’t previously shown a particular interest in wood craft.
Continue reading Pen making with my eldest son, or how to win at the $20 boss
The kids at coding club have decided that we should write an implementation of pong in python. I took a look at some options, and decided tkinter was the way to go. Thus, I present a pong game broken up into stages which are hopefully understandable to an 11 year old: Operation Terrible Pong.
The launchpad API docs are OMG terrible, and it took me way too long to work out how to do this, so I thought I’d document it for later. Here’s how you list all the open bugs in a launchpad project using the API:
from launchpadlib import launchpad
LP_INSTANCE = 'production'
CACHE_DIR = os.path.expanduser('~/.launchpadlib/cache/')
def main(username, project):
lp = launchpad.Launchpad.login_with(username, LP_INSTANCE, CACHE_DIR)
for bug in lp.projects[project].searchTasks(status=["New",
if __name__ == '__main__':
parser = argparse.ArgumentParser(description='Fetch bugs from launchpad')
args = parser.parse_args()