Python and XML Validation

While recently working on a project where we had included, nested, embedded, or inherited XSDs, I had errors while getting the XML to validate using LXML.  The solution ended up being that when you give LXML the schema location, the included XSD files must be in the working directory for it to find them.  There you go.  I didn\’t find it anywhere on the internet.  Enjoy!

Automating Dreamhost backups

We here at Curious System Solutions use dreamhost as our hosting provider.  One of the nice things they give us is a nice, tidy, backup every month, if we ask for it.  It may take a few days if you ask at the beginning of the month, and it is easy to forget to download.  So, we have a handy python script that will check an imap4 email server to see if the backup is ready, and if so, download it.  The script is designed to be a cron job that can be ran every night so you don\’t have to worry about remembering to download things.

Continue reading