# I am the Watcher. I am your guide through this vast new twtiverse.
#
# Usage:
# https://watcher.sour.is/api/plain/users View list of users and latest twt date.
# https://watcher.sour.is/api/plain/twt View all twts.
# https://watcher.sour.is/api/plain/mentions?uri=:uri View all mentions for uri.
# https://watcher.sour.is/api/plain/conv/:hash View all twts for a conversation subject.
#
# Options:
# uri Filter to show a specific users twts.
# offset Start index for quey.
# limit Count of items to return (going back in time).
#
# twt range = 1 235518
# self = https://watcher.sour.is?offset=229336
# next = https://watcher.sour.is?offset=229436
# prev = https://watcher.sour.is?offset=229236
@lyse ahhh thank you so so much!!!! i've heard of shellcheck but haven't checked it out properly - will try it for my scripts :D i really appreciate it
@lyse ahhh thank you so so much!!!! i've heard of shellcheck but haven't checked it out properly - will try it for my scripts :D i really appreciate it
That's a well done mapping of computer time scale to human time scale: https://youtu.be/PpaQrzoDW2I Matt Godbolt is also a guy that I just enjoy listening to.
@movq Hmm yeah, you're right. I should have checked for our location prior to getting too excited.
@aelaraji Yeah, a sore neck is always a win. :-P Here's nothing really to see, all cloudy. And also a bit cold at -2°C. I don't feel like standing still all that long outside at the moment. :-D
@lyse Hmm, their illustration looks pretty optimistic. 🤔 When I look at it in Stellarium, the cluster around Saturn is pretty close to the Sun. Not sure you can see them. 🤔 Saturn is even closer to the Sun than Mercury – and Mercury is notoriously hard to observe.
@lyse Hmm, their illustration looks pretty optimistic. 🤔 When I look at it in Stellarium, the cluster around Saturn is pretty close to the Sun. Not sure you can see them. 🤔 Saturn is even closer to the Sun than Mercury – and Mercury is notoriously hard to observe.
@lyse Hmm, their illustration looks pretty optimistic. 🤔 When I look at it in Stellarium, the cluster around Saturn is pretty close to the Sun. Not sure you can see them. 🤔 Saturn is even closer to the Sun than Mercury – and Mercury is notoriously hard to observe.
@lyse Hmm, their illustration looks pretty optimistic. 🤔 When I look at it in Stellarium, the cluster around Saturn is pretty close to the Sun. Not sure you can see them. 🤔 Saturn is even closer to the Sun than Mercury – and Mercury is notoriously hard to observe.
Heck yeah, that's really cool! Let's hope for a clear sky: "On the evening of 28 February 2025, all seven of the other planets in the Solar System will appear in the night sky at the same time, with Saturn, Mercury, Neptune, Venus, Uranus, Jupiter, and Mars all lining up in a neat row – a magnificent sky feast for the eyes known as a great planetary alignment." https://www.sciencealert.com/a-rare-alignment-of-7-planets-is-about-to-take-place-in-the-sky
Your code apparently works just fine. Until it @doesnm't. ;-) The shell languages are weird and having some strange properties that one is just not used to when coming from other languages.
@kat To improve you shell programming skills, I highly recommend to check out shellcheck: https://github.com/koalaman/shellcheck It points out common errors and gives some suggestions on how to improve the code. Some details in shell scripting are very tricky to get right at first. Even after decades of shell programming, I run into "corner cases" every now and then.
E.g. in getlyr's line 7 it warns:
echo -e $(gum style --italic --foreground "#f4b8e4" "'$artist', '$song'") ^-- SC2046: Quote this to prevent word splitting.
Most likely not all that problematic in this application, but it's good to know about this underlying concept. Word splitting is basically splitting tokens on whitespace, this can lead to interesting consequences as illustrated by this little code:
$ echo $(echo "Hello World") Hello World
$ echo "$(echo "Hello World")" Hello World
In the first case the shells sees two whitespace-separated tokens or arguments for the echo command. This basically becomes echo Hello World. So, echo joins them by a single space. In the second one it sees one argument for the echo command, so echo simply echos this single argument that contains three spaces.
After I stripped off my clothes and turned around, I came to the conclusion that the plan to shower was cancelled at this moment. The faucet had broken right off and was laying in the tub. I noticed that the diameters of the hot and cold water pipes were surprisingly small, didn't expect that. Since the pipes were broken flush with the wall, I couldn't even determine if I had to remove the inner our outer threads, well, remains thereof, in order to attempt to repair this mess. Luckily, I was going to see a plumber mate at the christmas tree collection later anyway.
The first thing that came to mind when I woke up was that I didn't catch the logical flaw in my dream: absolutely no water was coming out of the burst pipes. The whole scenario took place in summer, so the water couldn't be frozen either.
Pinellas County - Long Run: 8.50 miles, 00:09:50 average pace, 01:23:31 duration garmin gps really fucked this one up. it thought i ran a half marathon at like a 7:00 pace or something.
the run was okay. it was a bit warmer and humid this morning, but really i am just a bit worn out i think. it was a bit boring so i turned on the podcast "telepathy tapes" and that was at least background noise. #running
Pinellas County - Long Run: 8.50 miles, 00:09:50 average pace, 01:23:31 duration garmin gps really fucked this one up. it thought i ran a half marathon at like a 7:00 pace or something.
the run was okay. it was a bit warmer and humid this morning, but really i am just a bit worn out i think. it was a bit boring so i turned on the podcast "telepathy tapes" and that was at least background noise. #running
Pinellas County - Long Run: 8.50 miles, 00:09:50 average pace, 01:23:31 duration garmin gps really fucked this one up. it thought i ran a half marathon at like a 7:00 pace or something.
the run was okay. it was a bit warmer and humid this morning, but really i am just a bit worn out i think. it was a bit boring so i turned on the podcast "telepathy tapes" and that was at least background noise. #running
Need to summary all of these logic. So:\\u2028 1. If file named twtxt.txt then grab parent directory name or hostname if file in root (and maybe delete ~?) \\u2028 2. If file named nick.txt then grab filename~
Need to summary all of these logic. So:\u2028 1. If file named twtxt.txt then grab parent directory name or hostname if file in root (and maybe delete ~?) \u2028 2. If file named nick.txt then grab filename~
@kat definitely a fun way to get better at bash scripting by hand (AKA learn how it works besides the extreme basics i know) and use gum to make them cute too
@kat definitely a fun way to get better at bash scripting by hand (AKA learn how it works besides the extreme basics i know) and use gum to make them cute too
been playing with making fun scripts using charm CLI's gum library :P
one that gets lyrics from an open lyrics database's API and accepts input for artist & song names: https://asciinema.org/a/697860
and one that uses a user-provided last.fm API key to pull what's currently playing or what last played on your account :) https://asciinema.org/a/697874
been playing with making fun scripts using charm CLI's gum library :P
one that gets lyrics from an open lyrics database's API and accepts input for artist & song names: https://asciinema.org/a/697860
and one that uses a user-provided last.fm API key to pull what's currently playing or what last played on your account :) https://asciinema.org/a/697874
@prologic ah that's good lol! i once pulled from main for a huge web app that i deployed and it haunts me because it will make upgrading so much harder lol
@prologic ah that's good lol! i once pulled from main for a huge web app that i deployed and it haunts me because it will make upgrading so much harder lol