Decoding HEIF/HEIC on Kodi/Raspberry Pi

I lost track of when Apple started using the High Efficiency Image Format (HEIF/HEIC) for iPhone photos. In my house, we typically look at our photos on a TV connected to a Raspberry Pi running the Kodi (Formerly XBMC) media center which doesn't natively support HEIF images. After some digging, I discovered that you can install the HEIF image decoder add-on from the command line:

MacPorts

After all these years (can't really remember when I first discovered it), I'm still using MacPorts. It's actually become more useful on my aging (obsolete?) MacBook Pro 2012, which is frozen in time running MacOS 10.15 Catalina. I'm now using macports to run both apache2 and php 7.4 on this development machine, and I sometimes forget how much I rely on it, even though it's such a PITA when upgrading the OS. In addition to php itself, I need to use macports to install libraries & dependencies as well. Here are those that I'm currently using.

phpMyAdmin

As a Mac user, my primary client for mysql database management (when I'm not using command-line tools) has been Sequel Pro (formerly Cocoa MySQL). Now that Sequel Pro has been abandoned, I figured I might as well try out PHPMyAdmin, especially considering that's what most web hosting portals use.

This guide assumes you already have a functional apache2/mysql server running.

Installation on my Ubuntu web server via the command line was trivial. First, ensure that all repositories and packages are up-to-date:

RaspBerry Pi Tools

Just saw that the new Raspberry Pi Zero 2 W (2nd generation, Wireless) has been released. It's equipped with a quad-core CPU, but the RAM is still limited to 512MB. I began to wonder if it may be time to start migrating all of my Kodi-equipped Raspberry Pi 4 models to the zero, but the RAM could be a bit of an issue. Digging into the benchmark tests, I realized I don't have a central record of useful RasPi tools, so here it is.

First off, it's useful to know what you're Pi is running. The following command will provide details of about the CPU.

Touch Time

The touch command allows custom modification of file access and modification times. I can never remember the syntax, so here it is. Here's the format:

$ touch -t YYYYDDDDHHMM

Where "YYYY" is the four digit year, "DDDD" is the two digit month and two-digit day of month, and so on. For example, to set the modification date to June 30, 2011 at 2:16 pm, you would enter:

$ touch -t 201106301416

Note that 1416 is the 24-hour notation for 2:16 pm.

Drupal 7.82 Server Error 500

I've been stuck on PHP 7.1 for my Drupal-based sites because, for some unknown reason, upgrading to PHP 7.4 results in a server Error 500. This problem stumped me for a while, but I've recently found a work-around. I wouldn't exactly call this a "fix", but I'm hoping to upgrade to Drupal 8 (or 9, or 10), so I'm willing to live with a patch or workaround. Anyway, it turns out that the error was being caused by the following line in the settings.php file:

MacOS Update Breaks Apache... Again

Many things irritate me, so take this post with a grain of salt, but I hate the fact every significant MacOS update breaks my development environment. The latest was a security update to Catalina, MacOS 10.15.7. I have learned to test things out (Apache/PHP/MySQL) immediately after these updates, and I discovered (again), that Apache was broken. Now, admittedly, this is because I am using a different version of Apache from the one distributed by Apple, and installed using MacPorts. So I guess this is just something I have to live with.

Drupal and Beyond

My love-hate relationship with Drupal continues. Really neither love nor hate, just a sort of mild loathing. I've never really been thrilled with Drupal, but it's a fast framework. Anyway, the latest upgrade (7.82) dredged up more loathing. The Garland theme wasn't rendering properly, maybe due to a permission issue or missing files that I forgot to restore after the upgrade. But really? I also manage a WordPress site (don't get me started), and after a rocky beginning and all manner of security issues, the site has settled down and remains calm.

WSL - Windows Subsystem for Linux

Since this blog is focused on the Darwin kernel of MacOS, I don't make many Windows-related posts. A couple of years ago, however, a friend pointed me to the Windows Subsystem for Linux, a Linux environment which can be installed on Windows 10 systems. You even have a choice of distros. I installed WSL on all of my lab computers, but the process is still a bit involved, so I thought I'd document it here.

Drupal and PHP

I've had a rocky relationship with blogging frameworks. I've had Wordpress vulerabilities exploited, and Drupal's upgrade process has always been tedious. So why bother? Because It's fun learning and comes in handy when I need to help other people setup a blog.

Pages

Subscribe to The Other Wax Drum RSS