Posts by Matthew Pressly
Add a Custom Field to Prevent Placing an Order in WooCommerce
Recently a client needed a checkbox field added to the checkout page on a WordPress + WooCommerce website. The button needed to be placed directly above the “Place Order” field so that it would be very visible when someone gets ready to place their order. It also needed to prevent the person from placing their…
Read MoreBatch Resize Images Using ImageMagick
For your website, often you need to resize a directory full of images to an appropriate size before uploading them. If you’re using Linux and have ImageMagick installed, one of the easiest ways to do this is with the command: mogrify -resize 1200×1200 -format jpg *.JPG Or some variation.
Read MoreRead-only Filesystem on Raspberry PI
This is the most useful guide that I’ve found on how to set up a read only filesystem on the raspberry PI: http://blog.pi3g.com/2014/04/make-raspbian-system-read-only/ Once you’ve done this, if you need to modify files under /etc, such as /etc/network/interfaces, here’s how to do that (as root): mount -o remount,rw / mount -o remount,rw /etc_rw cd /etc_org/network…
Read More