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!
Nyquist Signal Expansion with Python
I\’ve recently been reading up on software defined radio (SDR). An epiphany that I had recently was that if we have sampled a signal so that we meet the Nyquist criteria, we can reproduce the points between the points we took.Continue reading
Using the Python HTMLParser library
When writing a script to download files off a site, I figured there was an easy python library to do that. Well, sort of. I chose to use the HTMLParser library. The documentation is not the best, so I thought I would add a bit of what I found. If I had to do it again, I might just use regular expressions to do it all.
Continue reading
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.