Category Archive: python

Jul 12

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 …

Continue reading »

Permanent link to this article: http://blog.curioussystem.com/2017/07/python-and-xml-validation/

Jul 09

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 »

Permanent link to this article: http://blog.curioussystem.com/2013/07/nyquist-signal-expansion-with-python/

Feb 04

Multithreading, Python and passed arguments

Recently I’ve had a project that required precompiling the firmware for a device so that the end user could program the device, but not have the source code. We’re not talking about a few versions of the code, but almost 1000. This is something that no person would want to do, especially since it would …

Continue reading »

Permanent link to this article: http://blog.curioussystem.com/2012/02/multithreading-python-and-passed-arguments/

Jan 07

Cleaning up filenames for transfer to windows

For those of you run multiple operating systems, you may have run across the problem where the filenames on one are not valid on the other. Specifically I’ve had that problem when using NTFS filesystems between Linux and Windows. The NTFS3G drivers on Linux will allow characters in the file names that windows doesn’t like. …

Continue reading »

Permanent link to this article: http://blog.curioussystem.com/2012/01/cleaning-up-filenames-for-transfer-to-windows/

Jul 07

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 …

Continue reading »

Permanent link to this article: http://blog.curioussystem.com/2011/07/using-the-python-htmlparser-library/

Jul 05

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.  …

Continue reading »

Permanent link to this article: http://blog.curioussystem.com/2011/07/automating-dreamhost-backups/

Jun 18

Downsampling PDFs to save space

One of the best things since sliced bread, IMHO, is automatic scan to email/pdf functionality on the multi-function copier/printer/scanner/fax.  This makes copying print articles easy so that you can send them to friends, or keep an article out of something you borrowed.  My personal philosophy is “scan once, process as needed.”  That means I scan …

Continue reading »

Permanent link to this article: http://blog.curioussystem.com/2010/06/downsampling-pdfs-to-save-space/

Jun 08

Concatenating IEEE E-Book PDFs

For those of you who are IEEE members, they now offer some of their “classic” ebooks as a free download off IEEE Xplore. The only problem is that they come in multi-part PDF files and are not named in a rational fashion. So… if you have linux, pdftk installed, and a mass download extension on …

Continue reading »

Permanent link to this article: http://blog.curioussystem.com/2010/06/concatenating-ieee-e-book-pdfs/