It occurred to me the other day that if your diet is mostly made up of things that "can be part of a healthy lifestyle" then you must have a very unhealthy diet indeed.
The personal blog of Matt Buckley-Golder. Almost everything on this blog is wrong, but it's usually my best attempt at expressing the truth as I know it at the point in time I write it.
Sunday, July 18, 2021
How quickly the ways to listen to music have changed: Luka Bloom, etc.
I recently went to look up an artist to whom I listened to quite enthusiastically when I was in University, but to whom I haven't listened to in some time.
I don't like to bucket musicians into genres because, whether true or not, I secretly suspect that they hate it. But, Luka Bloom was the artist I went to look up, and he would fall roughly into the "Irish folk singer-songwriter" genre. I first heard Mr. Bloom on one of those Windham Hill collections that were popular in the 1990s, and went on to admire his back catalogue.
I was happy to find that he was still active and had released some new material. But, I could not believe that it was not on Spotify.
I pretty much listen to everything on Spotify now. I have muscles that have memorized how to listen to music in any given situation and they have only been fully-trained on Spotify.
Back in the day, I was one of those people who amassed stacks and stacks of CDs organized into multitudes of CD towers. As time went on and I moved from place to place, it got to the point where I didn't get them out of the moving boxes anymore, and they stayed in storage.
Initially, the reason they stayed in situ was because I had converted the purchased CDs into MP3 files as soon as I added them to my collection. Over time, the CDs had been mostly been for display. For many years, I listened to most of my music digitally using the Squeezebox line of digital music players, many of which were scattered around the house. Squeezebox eventually got discontinued, though I still have a number in use.
But, then came Spotify. In most cases, it became easier to listen to all of my music - purchased or not - through Spotify.
So, coming back to Luka Bloom, I was surprised to find that he'd made an executive decision to not release his latest music on Spotify and to make it available only on his website, where all of the money goes directly to the people that made the whole package possible.
I fully respect with and agree with this decision. I don't understand how great artists with loyal but modest followings manage to make any money off the platform. It seems optimized for superstars with millions of plays each month. Beyond just respecting this decision, I like it a lot. But it nonetheless threw me a curveball: I've mostly forgotten how to listen to MP3 files that I own in all the places I listen to Spotify.
I've figured it out, of course, and found a way to make it accessible wherever I am - I'm one of those technical people - but the point is that there must be many people out there who have no idea how to listen to music that's not on Spotify (or Apple Music, YouTube Music, etc.), and people who risk their visibility and income by not using that platform may be shut out of an audience altogether.
Regardless, I bought the albums blind. Another moment of discomfort occurred when I couldn't actually listen to them before I bought them. I used to visit record stores regularly and buy albums unheard, but now it feels like a huge risk even as I spend less money than ever on music.
Anyway, the albums are great and I highly recommend them:
- Spotify is a discovery and convenience tool, not a replacement for buying music.
- I still buy a fair amount of music, but it is mostly digital now, via iTunes.
- After I've purchased music, I still tend to listen to it on Spotify for convenience.
- In my mind, that supports the artists twice (to the extent that you can call Spotify streams "support").
- During the pandemic, I bought a number of concert livestreams to support artists I like.
Tuesday, August 04, 2020
Homemade (and grown!) English-style pickled onions
Monday, August 03, 2020
PowerShell and passing command-line arguments to external scripts
import sys
for i in range(len(sys.argv)): print("my_script args: " + str(i) + ": " + str(sys.argv[i]))# Put Python command-line arguments into an array
$cmd_args = @("c:\temp\my_script.py", "-f", "c:\myfile.txt", "-t", "5")
# Call the Python executable, supplying arguments using the Splat operator
& python.exe @cmd_args
my_script args: 0: c:\temp\my_script.pymy_script args: 1: -fmy_script args: 2: c:\myfile.txtmy_script args: 3: -tmy_script args: 4: 5Splunk and the self-signed certificate on port 8089
Problem
Solution
- Generate a Certificate Signing Request (CSR) and private key.
- Use the CSR to obtain a signed certificate from a Certificate Authority (CA)
- Obtain the Root CA certificate chain for the organization that provided the signed certificate
- Combined outputs of steps 1-3 as required by Splunk
- Configure Splunk to use the items in step 4
- Restart Splunk
[httpServer]
disableDefaultPort = trueStep 1: Generate a Certificate Signing Request (CSR) and private key.
Linux
openssl req -out server_conf.csr -new -newkey rsa:2048 -keyout server_conf.key
Windows
REM SPLUNK_HOME is the root of your Splunk Enterprise installation
set SPLUNK_HOME="C:\Program Files\Splunk"
REM TMP will hold the generated private key and CSR filesset TMP=C:\TEMP
REM Generate the private key for the certificate.
%SPLUNK_HOME%\bin\splunk cmd openssl genrsa -des3 -out %TMP%\server_conf.key 2048
REM Generate the CSR request file%SPLUNK_HOME%\bin\splunk cmd openssl req -new -key %TMP%\server_conf.key -out %TMP%
\server_conf.csr- CSR file
- Private key
Step 2: Use the CSR to obtain a signed certificate from a Certificate Authority (CA)
Step 3: Obtain the Root CA certificate chain for the organization that provided the signed certificate
- CA-signed certificate provided by your CA
- Root CA and Intermediate CA certificates provided by your CA
Step 4: Combine outputs of steps 1-3 as required by Splunk
- Root CA and Intermediate CA certificates combined into a single file (example: server_conf_root.pem)
- CA-signed certificate and private key (example: server_conf.pem)
- $SPLUNK_HOME/etc/auth/mycerts/server_conf_root.pem
- $SPLUNK_HOME/etc/auth/mycerts/server_conf.pem
Step 5: Configure Splunk to use the items in step 4
[sslConfig]enableSplunkdSSL = trueserverCert = /opt/splunk/etc/auth/mycerts/server_conf.pemsslRootCAPath = /opt/splunk/etc/auth/mycerts/server_conf_root.pemsslPassword = <key password entered during CSR creation>Step 6: Restart Splunk
Wednesday, June 17, 2020
Real estate and the 5-year outlook
If you were to ask them today what the housing market will be like in 5 or 10 years' time, they may hum and haw about pros and cons but tell you that there's no way of knowing what conditions will be like in 5 years' time.
However, I have never - ever - heard a standard real estate agent say that now is not a good time to buy a house.
So, really, they do know what the market will be like in 5 years' time: it will be a great time to buy or sell a house.
Monday, May 25, 2020
While politicians regain control of the COVID-19 narrative, a void...
At first I perceived this to be an issue with our leaders and a lack of planning or vision. After all, most leaders simply look at what other people are doing and copy it within their own fiefdom. And there's no-one to copy in this situation. But, lately, I'm becoming convinced that this recent void is intentional.
I think what we are seeing is a weeks-long transition from a strategy led by medical advice based on data, testing, and targets, focused solely on virus case management, to one that is led by politicians who are accountable for the longer-term health of the economy of which all other goods (including the healthcare system) depend.
I think it has become increasingly apparent that we can't afford to have the recovery led solely by medical advice. It seemed prudent at the beginning when there was so little information about how the virus would spread, but it's now emerging that their concerns are very solitary and, really, the models were overly pessimistic. This mirrors the public's own reaction - very cautious at the beginning, but increasingly relaxed as they see no or very little impact within their sphere and are emboldened by each inconsequential, tentative step outside The Village.
What we are doing in lockdown isn't "scientific". It's likely good advice, and the advice comes from scientists, but it's not science because it has never been tried before, there are too many variables, and there is a strong cultural component to outcomes. There's no "if you do X then Y will happen". It's a hypothesis that we can't afford to complete controlled tests on at the scale required. Scientists aren't elected, and they don't have to consider the broad variety of concerns that politicians do, yet politicians are the ones that will take fire when the results take too long to materialize.
So, I think what we may be seeing is a void while the deckchairs are reorganized and the politicians regain control of the narrative. I don't think it's a coincidence that we are seeing exposés in the international media of politicians that didn't follow their own advice. Months ago they'd have been expected to resign, but now they are defended. They're just like everyone else, wanting to get on with their lives. Soon, I think we'll start seeing things that go against the medical advice given out weeks ago. We can't afford to follow it. And hopefully people will forget what that advice was... and as long as new cases don't start to surge in any significant way, they will.
This is the way it should be.


