A Virtual Homehttps://blog.avirtualhome.com/All about Python, Django, and infrastructureSun, 19 Aug 2018 15:08:00 -0400Memory problems with MozJPEG and Pillowhttps://blog.avirtualhome.com/memory-problems-with-jpg-files-and-pillow/<p>After implementing MozJPEG to create smaller files we noticed it would not always work as we got the message &ldquo;I/O suspension not supported in scan&nbsp;optimization&rdquo;</p>Peter van der DoesSun, 19 Aug 2018 15:08:00 -0400tag:blog.avirtualhome.com,2018-08-19:/memory-problems-with-jpg-files-and-pillow/PillowjpegMozJPEGReplace JPEG libraries with MozJPEGhttps://blog.avirtualhome.com/replace-jpeg-libraries-with-mozjpeg/<p>For a project in Python we had to squeeze more bytes out of <span class="caps">JPG</span> files using Pillow. Currently MozJPEG fits that bill but there isn&rsquo;t a repository available to install it on&nbsp;Ubuntu.</p>Peter van der DoesWed, 28 Mar 2018 09:03:00 -0400tag:blog.avirtualhome.com,2018-03-28:/replace-jpeg-libraries-with-mozjpeg/jpegMozJPEGUbuntuPillowCreate a custom 410 error page in NGINXhttps://blog.avirtualhome.com/create-custom-410-error-page-nginx/<p>I had a need to create a 410 page for a whole bunch pages. As it turns out it was not as easy as it&nbsp;sounds</p>Peter van der DoesFri, 23 Mar 2018 08:03:00 -0400tag:blog.avirtualhome.com,2018-03-23:/create-custom-410-error-page-nginx/nginxMove from WordPress to Pelicanhttps://blog.avirtualhome.com/move-from-wordpress-to-pelican/<p>I have been playing with the thought of moving my blog from WordPress to a static website generator for years and I finally pulled the&nbsp;trigger.</p>Peter van der DoesSun, 11 Mar 2018 22:15:24 -0400tag:blog.avirtualhome.com,2018-03-11:/move-from-wordpress-to-pelican/pythonstatic site generatorPelican