Completed my third soccer officiating assignment tonight… STC middle school girls and boys doubleheader, plus two B-games, vs. Williamsburg. Another 2.5 hours total play, but again, not too bad. I still have so much to learn!
Engaging `s3cmd` to Download and Resize Images from DO Spaces
Earlier in this blog there’s a micropost that lays out the problem at hand. In a nutshell, most of the photos I saved in DigitalOcean Spaces are too big to be effective in this blog. They suck up lots of time and bandwidth every time this blog gets rebuilt, and then they are rendered at a fraction of their original size. This is exceptionall wasteful and unnecessary.
So, my task this morning is to install, configure, and engage the s3cmd tools to help get this done. There’s DigitalOcean-specific guidance provided in Setting Up s3cmd 2.x with DigitalOcean Spaces so that’s where I will begin. Here goes…
Continue Reading »Ok, I get the sense that constantly pulling enormous digital images from DigitalOcean Spaces to rebuild this blog is unnecessarily chewing up lots of bandwidth. Today I’d like to begin fixing that by creating a utility, probably in Python, to grab all those images one-by-one, make a smaller copy of each, and put those copies back into a web-ready subdirectory in Spaces, or something like that.
There’s a wealth of probably pertinent information to be had in https://docs.digitalocean.com/reference/api/spaces-api/. Unfortunately, Spaces isn’t compatible with DO’s own command line utility, doctl, but it is compatible with s3cmd and the link I’ve provided documents how to get started with that. 🙂
Update: See Engaging s3cmd to Download and Resize Images from DO Spaces for my solution.
Last evening I rode my bike to/from soccer so this morning I wanted to “merge” those two track logs before publishing them to https://hikes.SummittDweller.com. So, I found and forked https://github.com/locked-fg/gpxmerger to https://github.com/SummittDweller/gpxmerger and after tweaking my own code IT WORKS!
The command I ran to make my first “merge” was: python3 gpxmerger.py "/Users/mark/Downloads/2023-04-14 16:32 - 3m 11s.gpx" "/Users/mark/Downloads/2023-04-14 20:40 - 3m 27s.gpx". I think I might tweak the script soon to just pull all of the .gpx files from a specified directory.
Update: My fork of the project now accepts a single target_directory argument and uses “glob” to grab all the .gpx files in that directory.
My knees and back are definitely feeling better than 2 weeks ago. Tonight I was AR2 for a varsity women’s match with Independence at STC. Final score was 11-2 on a very windy night, and it showed. The crew of TJ and Dustin did a great job and I feel like I learned a lot from them tonight. Thank you, gentlemen.
Tonight is the night we file our 2022 income taxes. Got nice little refunds from both Federal and Iowa, but all of my Fed refund is going toward first quarter estimated payments for 2023. 😕
Today’s income tax prep adventures has me believing that I need a new instance of Paperless, maybe Paperless-NGX this time? Now if I can just get Mackenzie to stand up and configure a new bare-metal Linux server. 🙃
Completed my first soccer officiating assignment tonight… STC middle school girls and boys doubleheader, plus two B-games, vs. Mt. Vernon. 2.5 hours total play, but not too bad. I still have a LOT to learn!
I pushed some Rootstalk updates into production (https://Rootstalk.Grinnell.edu) this morning and am making note of that here since I don’t have this slick micropost capability on my professional blog. 🙃
Time for an Easter Sunday post-feast nap! Nice dinner here with me, Chris, Mackenzie, Morgan, Justin, Leonard, Barb, Deb, Doug, Mason and Michael.