A Virtual Homehttps://blog.avirtualhome.com/All about Python, Django, and infrastructureWed, 28 Mar 2018 09:03:00 -0400Replace 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 generatorPelicanAdding SSL certificates to Google Chrome Linux (Ubuntu)https://blog.avirtualhome.com/adding-ssl-certificates-to-google-chrome-linux-ubuntu/<p>Google Chrome in Linux doesn&rsquo;t have a <span class="caps">SSL</span> certificate manager, it relies on the <span class="caps">NSS</span> Shared <span class="caps">DB</span>. In order to add <span class="caps">SSL</span> certificates to the database you will have to use the command line. I will explain how you can add the CAcert certificates and a very easy way to add self-signed&nbsp;certificates.</p>Peter van der DoesTue, 02 Feb 2010 20:36:00 -0500tag:blog.avirtualhome.com,2010-02-02:/adding-ssl-certificates-to-google-chrome-linux-ubuntu/chromelinuxHow to create nested forms.https://blog.avirtualhome.com/how-to-create-nested-forms/<p>Even though I write this article with the perspective on a plugin for WordPress the solution can used anywhere. The example I&rsquo;ll use to explain how to create a form within a form, aka nested forms, will have no direct links to WordPress but will merely show how to create a form within a&nbsp;form.</p>Peter van der DoesWed, 01 Oct 2008 13:13:00 -0400tag:blog.avirtualhome.com,2008-10-01:/how-to-create-nested-forms/AJAXexampleformHTMLjavascriptjQuerynested formssolutionhtml nested forms