summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--assets/ytcovers/9bren_zvQwE.jpgbin0 -> 9460 bytes
-rw-r--r--assets/ytcovers/9bren_zvQwEb.jpg0
-rw-r--r--content-org/blog.org32
-rw-r--r--content/2022/#music_server.md#132
l---------content/2022/.#music_server.md1
-rw-r--r--content/blog/2024/owl-song-1.md30
-rwxr-xr-xextract_covers.sh4
-rw-r--r--layouts/shortcodes/yt.html22
-rw-r--r--resources/_gen/images/9bren_zvQwE_huecccdabf96631e8cb574d7c2779a9cd1_9460_0x300_resize_q90_h2_box.webpbin0 -> 11610 bytes
-rw-r--r--resources/_gen/images/9bren_zvQwE_huecccdabf96631e8cb574d7c2779a9cd1_9460_0x600_resize_q90_h2_box.webpbin0 -> 30712 bytes
10 files changed, 85 insertions, 136 deletions
diff --git a/assets/ytcovers/9bren_zvQwE.jpg b/assets/ytcovers/9bren_zvQwE.jpg
new file mode 100644
index 0000000..540aff1
--- /dev/null
+++ b/assets/ytcovers/9bren_zvQwE.jpg
Binary files differ
diff --git a/assets/ytcovers/9bren_zvQwEb.jpg b/assets/ytcovers/9bren_zvQwEb.jpg
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/assets/ytcovers/9bren_zvQwEb.jpg
diff --git a/content-org/blog.org b/content-org/blog.org
index 848c690..7acf2f6 100644
--- a/content-org/blog.org
+++ b/content-org/blog.org
@@ -7,10 +7,40 @@
#+HUGO_WEIGHT: auto
#+HUGO_SECTION: blog
-* 2024 [7/7] :@blog:
+* 2024 [8/8] :@blog:
:PROPERTIES:
:EXPORT_HUGO_SECTION: blog/2024
:END:
+** DONE Music Monday: Owl Song 1 by Ambrose Akinmusire
+CLOSED: [2024-02-08 Thu 21:11]
+:PROPERTIES:
+:EXPORT_FILE_NAME: owl-song-1
+:EXPORT_HUGO_CUSTOM_FRONT_MATTER: abstract An amazing new jazz release
+:EXPORT_HUGO_PAIRED_SHORTCODES: yt
+:END:
+
+*Every Monday I will try to post some music, just to brighten up someone's day.*
+*I stole this idea from [Ruben](https://rubenerd.com/tag/music-monday/).*
+
+/Yes, it's Thursday./
+And yes, it's been a while.
+
+A lot of new Jazz releases add some drum machines, rapping and so on.
+I am all for progress, but I don't like this particular route.
+
+[[https://www.ambroseakinmusire.com][Ambrose Akinmusire]] goes a different route.
+I am not an expert (far from it), but what I hear are **amazing** harmonies and trumpet in the mellow style of Tomasz Stanko.
+It's unapologetically modern without jumping onto pop music.
+I love it!
+
+#+attr_shortcode: "9bren_zvQwE"
+#+begin_yt
+Owl Song 1
+#+end_yt
+
+You can buy the full album on [[https://ambroseakinmusire.bandcamp.com/album/owl-song][Band Camp]].
+You can also check their [[https://daily.bandcamp.com/best-jazz/the-best-jazz-on-bandcamp-january-2024][best of January releases list]].
+
** DONE Books and their sizes
CLOSED: [2024-02-06 Tue 19:25]
:PROPERTIES:
diff --git a/content/2022/#music_server.md# b/content/2022/#music_server.md#
deleted file mode 100644
index d3d2519..0000000
--- a/content/2022/#music_server.md#
+++ /dev/null
@@ -1,132 +0,0 @@
----
-date: 2022-05-25T20:17:00+02:00
-draft: false
-category: engineering
-year: 2022
-title: Adding simple music server to my network
-tags:
-- music
-- DYI
-- Linux
-- XLD
-- cmus
-abstract: A short tutorial.
----
-One of my goals for 2022 is to not pay for music subscriptions anymore. Nowadays, it's really easy and cheap to actually own my music.
-
-## Getting music
-Internet is full of cheap, used CDs and new music is ready for purchase on sites like Bandcamp. Since I mostly listen to dead people, CDs are my primary source.
-
-The first problem is having something to put a disc in. I've gotten myself a cheap USB-CD/DVD drive. It's very loud, but since I use it only for getting the data to my computer, it's not a problem.
-
-I rip (a word that I have not seen in a long time) on MacBook using XLD app. I plan to move this step to Linux soon.
-
-[XLD homepage](https://tmkk.undo.jp/xld/index_e.html)
-
-I rip the music to FLAC, which seems to be standard. It's lossless and most file-based players have no problems with it. Of course, not everywhere. iOS is always problematic, but I don't listen to music on the go very often, so it's a problem for future me.
-
-A single album in FLAC takes about 200-300 MB. I still remember MP3 days, where it would go down to 60 MB or less, but back then storage and transfer were actually expensive. I don't hear any noticeable difference between FLAC and good compressed file, but again - storage and transfer is cheap, Furthermore I have a single high-res album where half an hour takes 750 MBMB and there is zero difference. Well, now I know, and I won't buy-high res ever again :)
-
-## Storing and serving music
-
-The music will be accessed by multiple devices on local network, so putting it on the Home Server makes perfect sense. I now have a dedicated share "music" which is shared via Samba and NFS.
-
-Samba seems better than NFS, but then NFS on Linux is simpler to set up.
-
-For Samba, I need to add read+write access to Music share for each user from Synology web UI.
-
-NFS on the other hand doesn't support users, but devices instead. The first step is to set static IP for my devices (which is always a good idea). How exactly this should be approached depends on the setup, but I use UniFi Dream Machine and forcing IP for a device is very straight forward. After I have static IPs, I can add read/write access for those addresses, also via Synology web UI.
-
-Served music is so small, that this does not add any noticeable overhead for the server.
-
-## Accessing the music on Linux
-
-First, I needed to install NFS support. I use Arch, so:
-
-{{< highlight shell>}}
-# pacman -S nfs-utils
-{{</highlight>}}
-
-Then I checked if the share actually exists. My server's address is 10.0.1.200.
-
-{{< highlight shell>}}
-$ showmount -e 10.0.1.200
-------------------
-Export list for 10.0.1.200:
-/volume2/music 10.0.1.10
-{{</highlight>}}
-
-Voilà! Next step: check if it works
-
-{{< highlight shell>}}
-# mkdir /mnt/music
-# mount 10.0.1.200:/volume2/music /mnt/music/
-# cd /mnt/music
-# ls
-{{</highlight>}}
-
-And listing worked. Noice. To automate it for future, and to allow non-root users to actually mount the drive I added a new mount to /etc/fstab:
-
-{{< highlight shell>}}
-10.0.1.200:/volume2/music /mnt/music nfs _netdev,noauto,x-systemd.automount,x-systemd.mount-timeout=10,timeo=14,users,x-systemd.idle-timeout=1min 0 0
-{{</highlight>}}
-
-
-After the first user accesses /mnt/music, the drive will be mounted.
-
-## Playing the music using CMUS
-
-We have access to the files, let's play it. Every modern music player for Linux should work with Flac, but I've chosen CMUS. It's fast, it's terminal based, and it supports VIM keybindings.
-
-
-[CMUS webpage](https://cmus.github.io/)
-
-{{< highlight shell>}}
-# pacman -S cmus
-{{</highlight>}}
-
-After we open cmus, we need to add music. It's done similarly to VIM, via an ex command.
-
-{{< highlight shell>}}
-:add /mnt/music/
-{{</highlight>}}
-
-
-And a few seconds later, the music is visible in the player. Using CMUS requires reading the manual
-
-{{< highlight shell>}}
-$ man cmus-tutorial
-{{</highlight>}}=
-
-but the basics I needed to play something from Artist/Album view were:
-
-```
-j go up
-k go down
-tab change active window (artists/tracks)
-space expand artist to album list
-c play track / pause track
-e add track to queue
-q exit
-```
-
-Extra bonus: after first configuring system I had some problems with audio not working from time to time. Moving from Pulse to Pipewire solved them all.
-
-[Pipewire webpage](https://pipewire.org/)
-
-## Listening on Mac via CMUS
-
-I have no idea how to auto mount a server on MacOS, so after every reboot or network change, I need access the Samba share via Finder. After it's mounted, I can access it under /Volumes/music.
-
-On Mac I also use CMUS, so all of the above apply as well. One difference is adding the files due to different location
-
-{{< highlight shell>}}
-:add /Volumes/music
-{{</highlight>}}
-
-## Next up
-
-This doesn't solve all my needs. In the future I need to find out how to:
-
-- access the music outside my home network
-- how to marry this setup with my multiroom system (Sonos + Homepods)
diff --git a/content/2022/.#music_server.md b/content/2022/.#music_server.md
deleted file mode 120000
index 889bc77..0000000
--- a/content/2022/.#music_server.md
+++ /dev/null
@@ -1 +0,0 @@
-mms@voyager.88136:1703067878 \ No newline at end of file
diff --git a/content/blog/2024/owl-song-1.md b/content/blog/2024/owl-song-1.md
new file mode 100644
index 0000000..506748e
--- /dev/null
+++ b/content/blog/2024/owl-song-1.md
@@ -0,0 +1,30 @@
++++
+title = "Music Monday: Owl Song 1 by Ambrose Akinmusire"
+author = ["Michał Sapka"]
+date = 2024-02-08T21:11:00+01:00
+categories = ["blog"]
+draft = false
+weight = 2001
+abstract = "An amazing new jazz release"
++++
+
+**Every Monday I will try to post some music, just to brighten up someone's day.**
+**I stole this idea from [Ruben](<https://rubenerd.com/tag/music-monday/>).**
+
+_Yes, it's Thursday._
+And yes, it's been a while.
+
+A lot of new Jazz releases add some drum machines, rapping and so on.
+I am all for progress, but I don't like this particular route.
+
+[Ambrose Akinmusire](https://www.ambroseakinmusire.com) goes a different route.
+I am not an expert (far from it), but what I hear are ****amazing**** harmonies and trumpet in the mellow style of Tomasz Stanko.
+It's unapologetically modern without jumping onto pop music.
+I love it!
+
+{{< yt "9bren_zvQwE" >}}
+Owl Song 1
+{{< /yt >}}
+
+You can buy the full album on [Band Camp](https://ambroseakinmusire.bandcamp.com/album/owl-song).
+You can also check their [best of January releases list](https://daily.bandcamp.com/best-jazz/the-best-jazz-on-bandcamp-january-2024).
diff --git a/extract_covers.sh b/extract_covers.sh
index a48fea6..b83f731 100755
--- a/extract_covers.sh
+++ b/extract_covers.sh
@@ -1,10 +1,10 @@
#!/bin/sh
echo "Extracting used YT ids..."
-for id in `grep -r "<youtube" content/. | grep -o "\".*\"" | tr -d '"' | cut -d " " -f1 `
+for id in `grep -r "< yt" content/. | grep -o "\".*\"" | tr -d '"' | cut -d " " -f1 `
do
echo "Processing $id"...
- wget --output-document "assets/ytcovers/$id.jpg" "https://img.youtube.com/vi/$id/hqdefault.jpg"
+ wget --output-document "assets/ytcovers/$id.jpg" "https://i.ytimg.com/vi/$id/hqdefault.jpg"
convert "assets/ytcovers/$id.jpg" "assets/partials/play-button.png" -gravity center -geometry 150x150+5+5 -composite "assets/ytcovers/$id.jpg"
done
diff --git a/layouts/shortcodes/yt.html b/layouts/shortcodes/yt.html
new file mode 100644
index 0000000..3c5837f
--- /dev/null
+++ b/layouts/shortcodes/yt.html
@@ -0,0 +1,22 @@
+{{- $id := .Get 0 }}
+{{- $title := .Inner }}
+{{- $path := printf "ytcovers/%s.jpg" $id}}
+{{- $img := resources.Get $path }}
+{{- $img1x := $img.Resize "x300 webp q90" }}
+{{- $img2x := $img.Resize "x600 webp q90" }}
+
+<figure>
+ <a href="https://www.youtube.com/watch?v={{$id}}" target="_blank">
+ <img
+ class="center"
+ src="{{ $img1x.Permalink }}"
+ srcset="
+ {{ $img1x.RelPermalink }} 1x,
+ {{ $img2x.RelPermalink }} 2x
+ "
+ width="{{ $img1x.Width }}"
+ height="{{ $img1x.Height }}"
+ alt="{{$title}} on Youtube"
+ >
+ </a>
+</figure>
diff --git a/resources/_gen/images/9bren_zvQwE_huecccdabf96631e8cb574d7c2779a9cd1_9460_0x300_resize_q90_h2_box.webp b/resources/_gen/images/9bren_zvQwE_huecccdabf96631e8cb574d7c2779a9cd1_9460_0x300_resize_q90_h2_box.webp
new file mode 100644
index 0000000..bab7f85
--- /dev/null
+++ b/resources/_gen/images/9bren_zvQwE_huecccdabf96631e8cb574d7c2779a9cd1_9460_0x300_resize_q90_h2_box.webp
Binary files differ
diff --git a/resources/_gen/images/9bren_zvQwE_huecccdabf96631e8cb574d7c2779a9cd1_9460_0x600_resize_q90_h2_box.webp b/resources/_gen/images/9bren_zvQwE_huecccdabf96631e8cb574d7c2779a9cd1_9460_0x600_resize_q90_h2_box.webp
new file mode 100644
index 0000000..1999ff9
--- /dev/null
+++ b/resources/_gen/images/9bren_zvQwE_huecccdabf96631e8cb574d7c2779a9cd1_9460_0x600_resize_q90_h2_box.webp
Binary files differ