Python Monthly from Hourly Cost Calulator

A short script to calculate the daily/monthly/annual costs from an hourly cost value (Useful for AWS bill calculation!) printing the resulting cost in GBP. #!/usr/bin/python # -*- coding: utf-8 -*- # Ask for Hourly Cost cost = float(input(“What is the Hourly cost? “)) # Calculate Costing daily=float(cost*24) annually=float(daily*365) monthly=float(annually/12) # Print Results print “Costing based Read more about Python Monthly from Hourly Cost Calulator[…]

Adding Jupyter Notes to your Python Training Environment

Udemy advise to install Jupyter notes for learning Python as it is geared specifically towards learning and writing Python. On top of being able to use the Notebook function for writing scripts – There is also a Terminal window which you can use for writing Python in your favourite terminal based text editor. This assumes Read more about Adding Jupyter Notes to your Python Training Environment[…]

Setting up a Python Training Environment

I have recently started a crash course in Learning Python to brush up on my technical knowledge of the Language. I have made the following notes to help anybody starting out: The first thing that I did before starting the course was to set up a docker container to learn the language in to be Read more about Setting up a Python Training Environment[…]

Repairing a Transactional error on a Plone ZODB

NOTE: THIS PROCESS IS DESTRUCTIVE – USE AT YOUR OWN RISK. A nightmare for any Plone administrator.. When restoring your server from a backup or after an unexpected server failure – You receive a message such as below when trying to start your instance: ZODB.FileStorage.FileStorage.CorruptedTransactionError: /opt/plone/zinstance/var/filestorage/Data.fs data record exceeds transaction record at 20055859 This is Read more about Repairing a Transactional error on a Plone ZODB[…]