# 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 740
# self = https://watcher.sour.is?uri=https://ferengi.one/twtxt.txt&offset=40
# next = https://watcher.sour.is?uri=https://ferengi.one/twtxt.txt&offset=140
@movq I remember that time. I built my own mess, then used someone else's mess (WordPress). I then switched to Jekyll when Tom released it, then to Hugo, which I use today. I also love static web stuff!
@lyse That is the way it should be! 😊
@movq This is my env, on language:

LANGUAGE=en_US.UTF-8

LANG=en_US.UTF-8

LC_ALL=en_US.UTF-8

I had to explicitly set it on the cron job to make jenny work.=
@movq This is my env, on language:\n\nLANGUAGE=en_US.UTF-8\n\nLANG=en_US.UTF-8\n\nLC_ALL=en_US.UTF-8\n\nI had to explicitly set it on the cron job to make jenny work.=
@movq Yup. Added all the language ones, and bam, working like a charm!
@movq But it makes sense, right? I spend way too much time trying to figure out who replied to whom. I treat twts replies as emails, pretty much.
@movq I would not mind keeping a diff, if you tell me where to make the changes! I know nothing of Python, and I have spent already a couple of hours trying to make sense. I know it is there, in front of me, if only I knew Python. 😩
@movq Is there a way to make it take single returns, @movq, or is that a technical infeasibility?
@movq I no longer see dups! πŸŽ‰ πŸ₯³
@quark And don't miss its song. You will be in for a treat!
OpenBSD 7.0, get it while is hot, folks! 🐑
@adi iOS. Give it a try, and you will not come back. πŸ‘ŒπŸ»
Everybody is building one because, you know, why not? Why I built my own static site generator.
@lyse ... It's the cloud. ☺️
Testing... breaking things?
- One - Two - Three
Testing... breaking things?\n- One - Two - Three
@adi Nothing shows, mate. It is all broken. πŸ™
@quark If so, @movq, not quite https://www.uninformativ.de/git/jenny/commit/4a02eeec58317107c07e759733312d168e319f17.html#h0-0-5... Markdown needs single new lines for many things. Bulleted, numbered, code, etc. need them.
@lyse Yup, I did. I setup the three of them: LC_ALL, LANGUAGE, and LANG. Working as intended now, beautifully! Thank you!
@lyse I think that was it, mate! πŸŽ‰ I was calling . $HOME/.bashrc on the cron job line, but was missing some extra LANG ones. Let's see how it goes now.
@quark I mean, if LANG=en_US.UTF-8 were a problem, it wouldn't run manually, right? Or is it that the variable isn't defined under cron?
@lyse Yes, I have LANG=en_US.UTF-8 on my system. So, it is not that it can't find the config?
@quark This doesn't occurs when run manually. What could it be?
@movq I am getting this when I run it on cron (extra lines in between becuase otherwise jenny will make them a mash):\n\nTraceback (most recent call last):\n\nFile "/home/quark/jenny/jenny", line 565, in \n\nif not retrieve_all(config):\n\nFile "/home/quark/jenny/jenny", line 373, in retrieve_all\n\nrefresh_self(config)\n\nFile "/home/quark/jenny/jenny", line 294, in refresh_self\n\nprocess_feed(config, config['self_nick'], config['self_url'], content)\n\nFile "/home/quark/jenny/jenny", line 280, in process_feed\n\nfp.write(mail_body)\n\nFile "/usr/lib/python3.8/encodings/iso8859_15.py", line 19, in encode\n\nreturn codecs.charmap_encode(input,self.errors,encoding_table)[0]
\nUnicodeEncodeError: 'charmap' codec can't encode character '\\U0001f4e3' in position 31: character maps to
@movq I am getting this when I run it on cron (extra lines in between becuase otherwise jenny will make them a mash):

Traceback (most recent call last):

File "/home/quark/jenny/jenny", line 565, in

if not retrieve_all(config):

File "/home/quark/jenny/jenny", line 373, in retrieve_all

refresh_self(config)

File "/home/quark/jenny/jenny", line 294, in refresh_self

process_feed(config, config['self_nick'], config['self_url'], content)

File "/home/quark/jenny/jenny", line 280, in process_feed

fp.write(mail_body)

File "/usr/lib/python3.8/encodings/iso8859_15.py", line 19, in encode

return codecs.charmap_encode(input,self.errors,encoding_table)[0]

UnicodeEncodeError: 'charmap' codec can't encode character '\U0001f4e3' in position 31: character maps to
@movq I am getting this when I run it on cron (extra lines in between becuase otherwise jenny will make them a mash):

Traceback (most recent call last):

File "/home/quark/jenny/jenny", line 565, in

if not retrieve_all(config):

File "/home/quark/jenny/jenny", line 373, in retrieve_all

refresh_self(config)

File "/home/quark/jenny/jenny", line 294, in refresh_self

process_feed(config, config\n, config\n, content)

File "/home/quark/jenny/jenny", line 280, in process_feed

fp.write(mail_body)

File "/usr/lib/python3.8/encodings/iso8859_15.py", line 19, in encode

return codecs.charmap_encode(input,self.errors,encoding_table)\n

UnicodeEncodeError: 'charmap' codec can't encode character '\\U0001f4e3' in position 31: character maps to
@lyse Hmm, weird, it loads fine for me. Not logged in, "anonymous" upload, no cookies.
@quark Hmm, new messages are not duplicated, because cron is every 5 minutes.
@movq So, yes, see: https://ibb.co/wrcCXDD
Test to generate more logging.
@quark Aha! @movq, there has to be a blank line in between?
So, first multi-line test, because I coudn't wait. πŸ˜„

- One line - Two lines - Three lines

And:

1. One line 2. Two lines 3. Three lines
So, first multi-line test, because I coudn't wait. πŸ˜„\n\n- One line - Two lines - Three lines\n\nAnd:\n\n1. One line 2. Two lines 3. Three lines
@movq OK, will work on it tonight. Thank you!
@movq OMG! OMG! Getting it, where, where, how? πŸ˜‚
@movq Yup, that is exactly what I experienced. Well, I still have plenty of space. LOL.
@movq 12,342 twts, totalling 6.2 MB. Would deleting help, or will they come back? I guess there is one way to find out! πŸ˜„
@adi How very odd!
@adi Are you sure? You mean, it will not compile, or something else?
@movq I hear you. I am *very* selective of who to follow. I mean, I would drop @prologic, which is the noisiest one, but he is the boss, and if I want to interact--even once or twice a week--I must follow him. 🀣
@movq, how do you handle twts in Mutt? I mean, how do you organise, or manage the inmense amount that comes throught? Do you delete/trim? Move things to folders? Or simply keep that huge (12,000+ for me now) list?
@prologic Also: https://twitter.com/luthvarian/status/1439216862924058624 😜
@prologic You linked to the German version. 🀣
@adi It is on, alright. πŸ™‚
@prologic Excellent, nothing broke. I think what happened was you replied to a twt that I was in the process of editing.
@prologic, please reply to this, to test something.
@quark By the way, you reply did not showed as a reply to a conversation on jenny this time. I wonder is something broke with the latest changes.
@prologic Works permit, I will probably be twting about it. I try not to miss one single event. ο£Ώ
"Join us for a special event." Unleashed 😯
@adi You do not. See: https://stackoverflow.com/questions/67446317/why-are-executables-installed-with-homebrew-trusted-on-macos
@movq Sure thing, mate! I do not discount that it could be something stupid I am doing. My list of those is large, and rich. 🀣
Is it Friday yet? I feel this week is as slow as a drying paint on wall, and it is only Tuesday! I know I should not want time to pass quick, as that get us closer to the inevitable, but geez!
@lyse That is correct, you can unfollow/unsubscribe it.
@prologic Would that allow screensharing? The idea is to screenshare.
@lyse Oooooh! The makes sense on the mentioning of her being Romanian. πŸ™‚ Thanks for clarifying that, I would have never gotten it.
@movq @movq, if you want/can I can send you a Zoom link to test it interactively!
@prologic You got it! πŸ‘πŸ» Yarn is truly getting there!
@prologic Yup, the other one is simply legacy, gone, finito. 🀣
@prologic This is messy. @prologic, you are replying to quark@ferengi.one but using @quark@twtxt.netbros.com instead. I know part of it is my fault, but there has to be a better way to avoid all this.
@laz I think on Yarn you can block. That would be the only viable option here. Not that elegant, but I don't see any other way.
@laz You can delete quark, and rename/refollow quark2 as quark. The other isn't coming back. I am the only Ferengi around here... for now. We are always expanding, following our very wise "Rules of Acquisition". πŸ˜‚
@adi I don't remember. I knew about twtxt for a long time. I often seek information about microblogs, and I believe I came across Yarn while browsing the Tubes.
What to watch tonight? "Squid Game" completed. "Seinfeld" just made it in a couple of days ago, maybe I will reminisce old memories and watch it. I first watched it in 1995-ish.
@prologic I changed base URL (like, completely), but I am still honouring the old one, pointing it to the new one with 301. Maybe that's what's happening with the older posts. I could drop out the 301 completely, but that will break following, right?
I wonder how can I set, on Mutt, a shorter subject (elipsed) on the status bar, while reading a email (or a twt).
@adi Yes, it did---at least I don't see the same issue as before on twtxt.net. Weird, as it was never an issue on other pods. πŸ€·πŸ»β€β™‚οΈ
@prologic Hopefully this URL change fixes things. Otherwise I am lost; don't know what's going on. 😩
Well, I have changed URLs, so this post might not get through, or break follows, or break everything. So, yeah.
@jlj LOL, thanks! I have always been a fan of the Ferengi, and Quark, in particular. I think only Rom gets closer to him.
@movq Awesome! πŸ™‡πŸ»β€β™‚οΈ
@quark Answering to myself: it doesn't. @movq, would that be something that it could be added?
How would jenny handle multiline twts? Let's find out! - One - Two - Three And: 1. One 2. Two 3. Three
@prologic This is what I have been trying to tell you. The issue doesn't occurr on https://tt.vltra.plus (which is now down), nor did it show on my own Yarn pod (now down too). It is only happening on https://twtxt.net.
@movq Perfect! Setting the display_filter did the trick. I have come across that SE yesterday while looking for answers, but I wanted to make sure there was nothing else I was missing to notice. Thanks! @quark (#spngeda) Hmm, that’s mostly an issue of how mutt displays the Date header. The *index* should already display local time, only the *pager* shows the raw header: https://movq.de/v/8c92fff081/s.png To be honest, I’d like to keep it that way (i.e., Date stores the original stamp as it occured in the twtxt feed). To convince mutt to show local time here, you’d probably have to use display_filter: https://unix.stackexchange.com/a/516101
@movq I will re-enable the cron job, test again, and provide the information. The twts that were showing duplicated are those I have sent. When it occurred, I noticed the Message-Ids were different.
@movq πŸŽ‰ Happy anniversary!
Upgrading load balancers. This is always done with extreme care, but also with fingers crossed while wearing my lucky undergarment. πŸ˜‚
@movq, what will I need to do so that the timestamp for twts reflects local time. Right now it is UTC. Can it be done, or is that something from the twtxt spec?
@quark I have removed the cron job, and added jenny -f to the small script that starts mutt with the .muttrc-jenny file. That way when I open, it refresh the feed before. Let's see how it goes.
Seeing repeated twts again. Only thing I am doing different is running jenny every 5 minutes on a cron job. I really don't know what to think.
Oh, crap, the weekend is gone---and it was a three days weekend for me! Tomorrow back to the hammer, while wife enjoys her Columbus Day off. 😀
@movq I got it! I had jenny under my ~/.local/bin/, and didn't realised the one on the repo changed. D'oh! I am symlinking it now, so this doesn't happen again. I love autocomplete!~
@movq I am on the South East US.
@movq I did a git pull but that isn't pulling jenny-posting.eml. Am I missing something?
@movq I followed the README instructions.
@movq "Option completefunc is not set" is the exact message I am getting.
@movq I am getting an error with "completfunc" as being undefined. What could it be?
Hmm... "completefunc" is not set.
@movq This is awesome! Your server/connection is slow, thought. It took ages to load the GIF! Off topic, what font are you using on that screenshot?
@movq I noticed that if I ran jenny -f on a cron job, and kept mutt open, messages will get duplicated (same message, time, different message-id). I run it now on a small script before opening mutt.
@movq Ah, I see. I mean, it is not biggie, as normally I just reply to people, so that part works beautifully. A vi/vim script would work, but it is not universal. What if I use joe, or Emacs, or nano? Meh, jenny is awesome as is, thank you for it! ☺️
@adi Hi there! πŸ‘‹πŸ»You are the first one replying to twt on this feed, thank you! I shall reward you with season's symbols: πŸπŸ‚
@adi Good morning! πŸ‘‹πŸ»
Trying to troubleshoot twtxt. On twtxt.net, discovery shows my follows linked to https://twtxt.netbros.com/, which is nothing (not even an index.html running there), while on arrakis.netbros.com shows my follows linked to https://twtxt.netbros.com/twtxt.txt (using yarns links too) which is right.
@prologic how can you keep up with that inmense "follow" list you carry? πŸ₯΅
It looks like @movq isn't too active these days. This little piece of software is pretty neat!
I need someone with a nice, and clean twtxt.txt feed. One that doesn't include much--if any--images, and in which twts have more content. Just looking to see how formatting is handled in jenny and how to tweak it to my liking.
I might have figure out what was causing duplicated entries here. I think running jenny -f while mutt is open was causing it. I have disabled the cron job, and it doesn't seem to be happening anymore. Let's see how accurate my theory is. πŸ˜‚
πŸ‘‹πŸ» hello world... again!
@movq is there a better way to mention others while using jenny?