drew diver // tired, since 1985

Listening to "" by from the album (via last.fm)

I love moof IT’s set of Automator services which let me quickly un-sign configuration profiles I pull from Jamf, convert a binary plist to XML1 as well as integrating Tim Sutton’s mcxToProfile to convert plists to mobileconfig.

Why convert these to Shortcuts? I could say it’s “the way forward” or “modern” but it comes down to laziness. Having these as Shortcuts means they automatically sync on all my work Macs requiring minimal setup.

The only caveat is the mcxToProfile-based Shortcuts. These require the PyObjC bindings and either Python 2 or Python 3 and the fork of mcxToProfile.py with Python 3 compatibility via this repo. I’ve pointed the python script to /usr/local/bin which can obviously be modified in the Shortcut.

Note: These are available via right-click -> “Quick Actions.” You might have to click “Customize” and enable each.

I like jwz’s occasional “Here’s what I’ve recently watched” posts as they’ve provided some great tips on the old and new, especially in areas I may not have noticed. So, here’s what I’ve watched (or can remember watching) from August through now.

  • (2022) Prey

    What a perfect time and place to toss in a Predator, I really enjoyed this.

  • (1987) Predator

    Arnold flex, Arnold shoot.

  • (1976) Network

    Watch a media company and their viewersheep eat themselves alive to the very end.

  • (1987) Running Man

    A similar offshoot of Network in ways, somehow I had missed this Arnold film. I could see evangelical ‘murcans really getting down on this form of television in the near future as they continue to erode democracy and our society.

  • (1984) Terminator

    All these Arnold films naturally led me here. I don’t remember the last time I watched the original Terminator. It still has a great vibe, though in some parts the effects do not hold up, but maybe give it that realism creepiness?

  • (1991) Terminator 2: Judgement Day

    These special effects still look better that anything Marvel & co. has put out in the last two decades. Also, I now want an Atari Portfolio

  • (1982) Star Trek II

    I have to say, I never have seen any of the “classic” Kirk Star Trek films. This took two attempts to watch but I just let go of my prejudices and wow, I got hooked.

  • (1984) Star Trek III

    Not “fun” in the same way as II, but a good follow-up in the recovery of Spock.

  • (1986) Star Trek IV

    What a bizarre and fun concept, sending the crew back in time to bring back a pair of humpback whales to save the planet.

  • (1989) Star Trek V

    For all the hate this film received, I didn’t find it that terrible. I guess it was aiming higher than it could actually achieve in a 2 hour window. But honestly, “what does God need with a spaceship?”

  • (1991) Star Trek VI

    Out with the old and onward with the Next Generation. This was a great wrap-up to the Kirk-era. It was also fitting with the moronic Neo-Nazi party taking #2 in this recent election here in Sweden. This fear of the “Undiscovered Country” where such different groups can work towards peace while those who can’t see past their prejudices want to keep things status-quo through violence and conspiracy.

  • (2022) Vengeance

    I enjoyed the first ~%70 or so of this film? But it fails to deliver at the end.

  • (2022) South Park: The 25th Anniversary Concert

    Primus! This was AWESOME.

I recently purchased the IQaudio DAC+ to get “24‑bit 192kHz high-resolution digital audio” for use with ShairPort-Sync to have a nice AirPlay receiver alongside my turntable.

This took a few hours to get going because the unit is billed as plug and play which it definitely was not. My assumption is if you run the Raspbian desktop GUI you can select the audio source from the menu bar. For our use case we want the Raspbian Lite installer running headless.

Initial Pi Setup

Be sure to run the raspi-config wizard after installing the Raspbian Lite image to setup the correct locale, expand the file system to use the entire microSD card, set the correct timezone, etc.

Next we update our apt repo and install the necessary packages for ShairPort-Sync.

sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install autoconf automake avahi-daemon build-essential git libasound2-dev libavahi-client-dev libconfig-dev libdaemon-dev libpopt-dev libssl-dev libtool xmltoman -y

ShairPort-Sync Install

Clone the ShairPort-Sync repo to the Pi and enter the directory.

git clone https://github.com/mikebrady/shairport-sync.git
cd shairport-sync
autoreconf -i -f
./configure --with-alsa --with-avahi --with-ssl=openssl --with-systemd --with-metadata
make && sudo make install
sudo service shairport-sync start
sudo systemctl enable shairport-sync
cd ..
git clone https://github.com/mikebrady/shairport-sync-metadata-reader.git
cd shairport-sync-metadata-reader
autoreconf -i -f
./configure
make
sudo make install

DAC+ Setup

Via pinout.xyx the board communicates over I2C.

I believe this can be handled one of two ways, either uncomment dtparam=i2c_arm=on in the /boot/config.txt or via the raspi-config you can enable P5 I2C under the Interface Options.

From the DAC+ documentation, let’s adjust the /boot/config.txt settings.

We comment out the dtparam option to disable the built-in audio and add in our newly attached DAC+:

# Enable audio (loads snd_bcm2835)
# dtparam=audio=on
dtoverlay=iqaudio-dacplus

ShairPort-Sync Configuration

Here’s where it got tricky, I eventually found an unrelated forum post regarding an application called “Raspotify” with a similar issue. Adapting that idea and combing the ShairPort-Sync GitHub repo I discovered a similar conf file where I could manually enter the hardware info.

Run aplay -l

card 2: IQaudIODAC [IQaudIODAC], device 0: IQaudIO DAC HiFi pcm512x-hifi-0 [IQaudIO DAC HiFi pcm512x-hifi-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

So, card 2 at device 0.

Edit /usr/local/etc/shairport-sync.conf and find the alsa settings:

alsa =
{
    output_device = "hw:2,0";
    mixer_control_name = "PCM";
    mixer_device = "hw:2";
}

Then run sudo systemctl reload shairport-sync for the changes to take effect.

Apple Music is slow… Spotify sucks…

Recently I’ve been re-discovering and pruning my “old” digital music collection. It definitely was a snapshot of my tastes around 2015 or so before I started using any various streaming service full time.

The CD drive on my old Mac Pro has never been worked so hard. I’ve begun ripping all my old CD’s to FLAC and placing on my Plex server, Plex’s “Plexamp” app is awesome. No ads, no albums randomly disappearing or all of a sudden alerting me that I am “Not authorized in this region.”

My listening habits are now slower, no longer do I have that feeling of an endless void in music (most of which) I don’t care about or will only listen once and forget amongst the daily onslaught of new releases. Honestly, we are all creatures of habit and just paying for the album or song is cheaper than renting. Bandcamp, word of mouth, second-hand CD sales (practically free in this medium) and following some specific labels I trust has been refreshing. Not to mention revisiting a lot of old label samplers and albums I’d long forgotten about and are not available via streaming.

Hello! My own Hugo blog and design from scratch! Or should I say “piecemealed?”

tags: testing