Still alive.
Today: Removing YouTube embedding. I saw something cool in the AAMSX web,
so I decided to copy that. The idea was to use
Lite YouTube,
however… I got many errors regarding the CSP (Content Security Policy), as it
is set to null
and it was, again, including JavaScript. So fuck it.
So instead I did this Hugo shortcode:
{{- $videoId := trim (.Get 0) " " -}}
<youtube-thumb videoid="{{ $videoId }}">
<a href="https://www.youtube.com/watch?v={{ $videoId }}" target="_blank"><img
src="https://i.ytimg.com/vi/{{ $videoId }}/hqdefault.jpg" alt="YouTube
Link" style="border: #FFFFFF 4px double;"></a>
<p><center><small>Click to watch in YouTube (New tab)</small></center></p>
</youtube-thumb>
And if you put this in layouts/shortcodes/youtube-thumb.html
, you’ll be able
to use it as {{< youtube-thumb VIDEO_ID >}} and you’ll get the video thumbnail
in JPG and be able to click on it to watch it. The target="_blank"
makes it to
open a new tab. I kind of like it. It’s less functional compared to lite youtube
, but it works and it does not add JavaScript on our side.
Broken piano jazz for you
Click to watch in YouTube (New tab)
No comments needed
Click to watch in YouTube (New tab)
CREATE MACHINES
CREATE MACHINES
CREATE MACHINES
CREATE MACHINES
CREATE MACHINES
CREATE MACHINES
CREATE MACHINES
CREATE MACHINES
Click to watch in YouTube (New tab)
Brilliant
Click to watch in YouTube (New tab)
Found Phantasia by chance. I wanted to buy the CD. Hard to find a 1981, right?
It looked pretty obscure.
Click to watch in YouTube (New tab)
Then I read the description:
This project is a heartfelt tribute to the golden age of Japanese jazz fusion.
Through storytelling, music and AI, we aim to reimagine a lost era and evoke
the timeless beauty of this genre.
Next song is older than the previous:
Click to watch in YouTube (New tab)
One of my two smart feeders (the newest) was bumping and having problems putting
the feed to my cats. After a lot of time, I went up online and found a Reddit
post
that had very valuable information.
Some users had good luck removing the rubber bands from the spinning part of the
feeder, but the user Set-Condition-5 wrote the following:
Team, while removing the rubber guards helped, it turned out our jamming
problem was caused by the screw that connects the white main gear you see when
you remove the top housing ( the half with the food) to the motor being
completely loose. If you remove the small white cap on the gear you can access
the screw and tighten. This stops the gear from raising up which was causing our
jamming.
This screw is this one (click on the image to get a color one ;)):