Jan-Lukas Else

Thoughts of an IT expert

2020-03-06


Careless neighbors

Published on in 💭 Thoughts

I live in an apartment building with neighbors in all directions. But some neighbors don’t seem to care at all whether they disturb their neighbors with very loud music. At the moment I don’t have to study, but with this noise I couldn’t study at all. It’s not an exaggeration, but I hear the neighbors’ music as loud as if I were listening to music myself either through speakers or headphones. By now I have come to terms with the almost daily nightly screaming of their child, which wakes me up as a result. Maybe the child is in pain or something? But I find this loud music simply outrageous.

View

Published on in 💬 Micro

I use BunnyCDN as storage for my Micropub media endpoint, where I upload all the photos and other media files I publish on my blog. When I upload a new photo the media endpoint first uploads the original file with the name of it’s SHA-256 hash value (so when I upload the same file multiple times, it doesn’t create multiple files). When I upload an image (JPEG or PNG) it also gets optimized and resized to a maximum width of 2000 pixels using the Tinify API (and then uploaded to BunnyCDN too), doing that significantly reduces the file size of the images displayed on my blog.

It would be probably awesome to also serve different formats based on the Accept HTTP header (WebP for browsers that support it) or different sizes, but I decided I want to hold my perfectionism (and the complexity) in check and settle for using just one optimized file version in the original file format. If at some point all browsers support WebP, I might consider using only WebP files, but until then it still takes time.

At the moment I don’t backup the files from BunnyCDN (I trust that they - or I - don’t accidentally delete them), but I could probably setup a cron job to regularly copy new files via FTP from their storage to another storage.

View

Jan-Lukas Else