# 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 2642
# self = https://watcher.sour.is?uri=https://twtxt.net/user/adi/twtxt.txt&offset=942
# next = https://watcher.sour.is?uri=https://twtxt.net/user/adi/twtxt.txt&offset=1042
# prev = https://watcher.sour.is?uri=https://twtxt.net/user/adi/twtxt.txt&offset=842
@adi @prologic I see you haven't rebranded yet, what happened with that?
@prologic Been doing pretty well, took a vacation, made some new friends, went partying, yesterday was in the mood for working and decided to get the site back up at least. I still have to rebuild the server but at least the site is up.
I have some backups on http://mega.nz/ but at least now, they _seem_ impossible to recover.
Ok, got the site back up at least https://www.mkws.sh/. The long delay wasn't caused by technical difficulties but by me feeling tired.
@prologic I’ve been going out a lot these days, guess a vacation. I don’t feel like working, but I guess right now I’ll have to start again.
@antonio Yeah, I don't have backups for everything, but still, it's enough.
https://mkws.sh/ server was wiped clean due to an OpenBSD upgrade error. lol. I have backups but it's gonna take a while.
@lyse What hope? Didn't get any side effects from the shot, however I really don't feel like working, I'm going out mostly these days.
Got my first shot two days ago. Next one is on the 24th. Been hanging out outside lately. Prolonging my break I guess.
@jlj @antonio I'm 1000 something on the waiting list. Missed an appointment and made another one.
@prologic What wants for greed of power? Why would you want to lose them?
This sounds very good https://www.youtube.com/watch?v=FG2PgVl0Nlc
@prologic @will What desires?
@maya Wonder where the youth are going to move next, assuming your parents are not young. twtxt/yarn @prologic😋
@maya I'm neither for nor against so no
@mckinley @jlj @lobste_rs Looks cool, not something I would use tho, mtm fits me better. This is pretty cool also https://github.com/martanne/abduco.
@adi @jlj @mckinley @lobste_rs Yeah, just gave mtm a shot, pretty cool!
@jlj @mckinley @lobste_rs I believe I seen twin before, screenshots anywhere?
@jlj @lobste_rs Yup, check the comment as well https://github.com/deadpixi/mtm
@lobste_rs This is an awesome tmux alternative.
I'm writing a blog post on how to set up a development environment with mkws.
@alebcay Recently called mkws

> refreshingly lightweight

I agree. 😊
@alebcay Recently called mkws\n\n> refreshingly lightweight\n\nI agree. 😊
@adi @type_v Also, if you feel satisfied with my work, please consider donating here https://www.buymeacoffee.com/adriangrigore 😊
Ok, took a few days off from work.
@prologic @maya What suffering?
@readfog @prologic @jlj I haven't expressed my preferrered application structure yet.
@readfog @jlj @prologic What hope?
> My dick is stuck in my fly\n\nhttps://explosm.net/comics/5834/?fbclid=IwAR1O9xeZgasj_o5zbzEHybxLkuiCzSKnES2q6WR-ogZ9szYwTw94cjg4-8A
> My dick is stuck in my fly

https://explosm.net/comics/5834/?fbclid=IwAR1O9xeZgasj_o5zbzEHybxLkuiCzSKnES2q6WR-ogZ9szYwTw94cjg4-8A
@prologic Thanks, working fine!
@prologic Thanks! When is the deploy? 😋
@prologic When will DMs be fixed! :p
@lyse @movq I then _hope_ to become at least prime minister, seems like I have a shot. 😋
@prologic No need to feel sorry.
@prologic Well that's her solution, it's a legally and health wise risky solution. Me sleeping at my parents is not great for my general well being either, but that's the current situation.
@prologic \n\n> Yeah I get it 🤗 Breakups are hard. But we were talking about breaking lockdown to go to a party?\n\nIt's not an easy situation. I understand how it might sound bad and I understand why and how it might *be* bad.
@prologic

> Yeah I get it 🤗 Breakups are hard. But we were talking about breaking lockdown to go to a party?

It's not an easy situation. I understand how it might sound bad and I understand why and how it might *be* bad.
@prologic How would you solve her problem?
@prologic @adi I recently been through a breakup myself, but I'm sleeping at my parents.
@prologic \n\n> We have things like video and telephone or voip for this though …\n\nDoes it help with her feeling abandoned?
@prologic

> We have things like video and telephone or voip for this though …

Does it help with her feeling abandoned?
@prologic There are some _rare_ cases.
@prologic @movq \n\n> IMHO going to parties during a lockdown is reckless and selfish.\n\nDepends on a number of factors. I would have said that myself at the start of the pandemic.\n\n> For instance I have a friend who’s going through a breakup this period. If breakups were bad outside the pandemic, they’re way worse now that you can’t go out.\n\nShe can't go out with friends, she's just at home feeling abandoned. I'm visiting her but I'm just a friend.
@prologic @movq

> IMHO going to parties during a lockdown is reckless and selfish.

Depends on a number of factors. I would have said that myself at the start of the pandemic.

> For instance I have a friend who’s going through a breakup this period. If breakups were bad outside the pandemic, they’re way worse now that you can’t go out.

She can't go out with friends, she's just at home feeling abandoned. I'm visiting her but I'm just a friend.
@movq @adi For instance I have a friend who's going through a breakup this period. If breakups were bad outside the pandemic, they're way worse now that you can't go out.
@movq

> Let’s try to reduce it as much as we can.

That's a better "goal". We still have, very rare, true, cases of bubonic plague tbh.

> And why do you go to parties?

Guess lockdown got me a little bit and I went out a few times.
@movq \n\n> Let’s try to reduce it as much as we can.\n\nThat's a better "goal". We still have, very rare, true, cases of bubonic plague tbh.\n\n> And why do you go to parties?\n\nGuess lockdown got me a little bit and I went out a few times.
@adi @movq @lyse @prologic I personally have broken the restrictions and actually went to parties a few times, I don't feel bad about it. I'm not encouraging anyone to do that.
@adi @movq @lyse @prologic I personally have broken the restrictions and actually went to parties a few times, I don't feel bad about it. I'm not encouraging anyone to do that due to health and legal implications.
@movq @lyse @adi @prologic Depends on what you understand by "frustrating". 😋
@prologic @movq @lyse 0 as a goal _seems_ kinda silly.
@eldersnake I agree with most of what you said.

> And mobs pushing to put others down or “cancel” them based on something they once online said eons ago is a bad path

As long as the "bad" opinion has changed in the meantime, I see no reason to "cancel" them.

> Most of this smells of software corporates wanting to get rid of a very outspoken opponent and some SJWs jumping on for the ride.

Why get rid of him?
@eldersnake I agree with most of what you said.\n\n> And mobs pushing to put others down or “cancel” them based on something they once online said eons ago is a bad path\n\nAs long as the "bad" opinion has changed in the meantime, I see no reason to "cancel" them.\n\n> Most of this smells of software corporates wanting to get rid of a very outspoken opponent and some SJWs jumping on for the ride.\n\nWhy get rid of him?
@type_v I'm not that old either, I've been using Linux one way or another for some 20 years, but only started learning UNIX as properly as I can for about 5-6 years.
@type_v Please post your website :p
@niplav If I were to create mistresses 👩‍❤️‍👩 🥰 they would be neither for nor against me. 😋
@niplav Your reasoning is that if Zeus would create mistresses he would create _too many_ people?
@ionores I'm not saying anything about "the nipple". 😋
@adi Imagine that, going to a strip club with no cash in your pocket and having the dancers pay for your drinks. 😁
I recently went to a strip club with a friend, we had no cash in our pockets. She was kinda friends with the DJ. We landed there, she chatted with the DJ a little bit, the DJ left and we were left there with the girls and 2 customers. We got some dances, a short lap dance, and the bartender served us topless "on the house". 😁
@niplav 😉
@niplav There are no expectations where you're honest. Expectations and honesty don't mix.
@niplav There are no expectations when you're honest. Expectations and honesty don't mix.
@adi @type_v You could delete the ifs there and just render the Markdown if all you're building is a blog.
@adi @type_v Ah, and


$ cat share/l.upphtml
...
<main>
#!
if test "${1%/*}" == "./p"
then
#!
<article>
#!
cmark "$1" | \
sed "s/\
\(<h1>.*<\/h1>\)/\
\1<time>$(echo "${1##*/}" | cut -c1-10 )<\/time>/g"
#!
</article>
#!
else
pp "$1"
fi
#!
</main>
...
@adi @type_v Ah, and\n\n
\n$ cat share/l.upphtml\n...\n<main>\n#!\nif test "${1%/*}" == "./p"\nthen\n#!\n<article>\n#!\ncmark "$1" | \\\nsed "s/\\\n\\(<h1>.*<\\/h1>\\)/\\\n\\1<time>$(echo "${1##*/}" | cut -c1-10 )<\\/time>/g"\n#!\n</article>\n#!\nelse\npp "$1"\nfi\n#!\n</main>\n...\n
@adi @type_v Ah, and\n\n
\n$ cat share/l.upphtml\n...\n<main>\n#!\nif test "${1%/*}" == "./p"\nthen\n#!\n<article>\n#!\ncmark "$1" | \\\nsed "s/\\\n\\(<h1>.*<\\/h1>\\)/\\\n\\1<time>$(echo "${1##*/}" | cut -c1-10 )<\\/time>/g"\n#!\n</article>\n#!\nelse\npp "$1"\nfi\n#!\n</main>\n
@movq But that peach suit... So cool!!!! 😎
@type_v @adi pe is pe.c https://clbin.com/X1GkA, an utility for percent encoding strings.
@adi @type_v Might be a good blog post in itself. 😁
@adi @type_v


cat share/f.upp

https://clbin.com/XiMw4


cat bin/mkws
...
echo "Making feed"
pp "$sharedir"/f.upp "$1" > f
...
@adi @type_v \n\n
\ncat share/f.upp\n
\ f\n...\n```">nhttps://clbin.com/XiMw4\n\n```\ncat bin/mkws\n...\necho "Making feed"\npp "$sharedir"/f.upp "$1" > f\n...\n```
@adi @type_v


$  cat blog.upphtml
<h1>Blog</h1>
<h2>News and a collection of tips and tricks for <code>mkws</code></h2>
<ol id=i>
#!
find p -mindepth 1 | sort -r | while read -r f
do
test "${f##*.}" == "html" && continue;
t=$(echo "${f##*/}" | cut -c21-)
#!
<li>
<h2><a href=p/$(echo "$t" | pe).html>$t</a></h2>
<time>$(echo "${f##*/}" | cut -c1-10 )</time>
</li>
#!
done
#!
</ol>
@adi @type_v \n\n
\n$  cat blog.upphtml\n<h1>Blog</h1>\n<h2>News and a collection of tips and tricks for <code>mkws</code></h2>\n<ol id=i>\n#!\nfind p -mindepth 1 | sort -r | while read -r f\ndo\ntest "${f##*.}" == "html" && continue;\nt=$(echo "${f##*/}" | cut -c21-)\n#!\n<li>\n<h2><a href=p/$(echo "$t" | pe).html>$t</a></h2>\n<time>$(echo "${f##*/}" | cut -c1-10 )</time>\n</li>\n#!\ndone\n#!\n</ol>\n
@adi @type_v \n\n
\ncat bin/mkws\n...\nfor p in "$srcdir"/p/*\ndo\n        test "${p##*.}" == "html" && continue\n        echo "Making p/$(echo "${p##*/}" | cut -c21-).html"\n        pp "$sharedir"/l.upphtml "$p" "$1" > "p/$(echo "${p##*/}" | cut -c21-).html"\n\ndone\n...\n
@adi @type_v


cat bin/mkws
...
for p in "$srcdir"/p/*
do
        test "${p##*.}" == "html" && continue
        echo "Making p/$(echo "${p##*/}" | cut -c21-).html"
        pp "$sharedir"/l.upphtml "$p" "$1" > "p/$(echo "${p##*/}" | cut -c21-).html"

done
...
@type_v\n\nThis is how I render the blog\n\n
\n$ ls -1 p\n2021-02-28 15:34:42 Welcome\n2021-02-28 15:35:21 How to add a navigation menu\n2021-02-28 15:35:39 How to add custom titles\n2021-03-09 19:45:23 How to render 
Markdown\nHow to add a navigation menu.html\nHow to add custom titles.html\nHow to render Markdown.html\nWelcome.html\n
@type_v

This is how I render the blog


$ ls -1 p
2021-02-28 15:34:42 Welcome
2021-02-28 15:35:21 How to add a navigation menu
2021-02-28 15:35:39 How to add custom titles
2021-03-09 19:45:23 How to render 
Markdown How to add a navigation menu.html How to add custom titles.html How to render Markdowntml Welcome.html
@movq His voice is borderline unfit for the song but still sounds good, the other two guys are nice I agree.
@eldersnake What kind of flawed? Depends on what you understand by "mistake"?
I was never on the Justin Bieber hate train but not a fan either but this is a cool song https://www.youtube.com/watch?v=tQ0yjYUFKAE
@type_v Can you ask your question here, I can't read DMs?
Forgot to add a link to `smu` here https://mkws.sh/p/How%20to%20render%20%60Markdown%60.html.
@movq\n\n> But grep knows best which parts of the output should be colored.\n\nI would go with a _good enough_ coloring.\n\n> grep ... | colorize | less\n\nExactly!\n\n> That would potentially expose the same problem.\n\nIt's only a problem for _you_ I guess, it seems they agree on that solution with advantages and disadvantages listed in the comments? Yeah, maybe go with another pager?
@movq

> But grep knows best which parts of the output should be colored.

I would go with a _good enough_ coloring.

> grep ... | colorize | less

Exactly!

> That would potentially expose the same problem.

It's only a problem for _you_ I guess, it seems they agree on that solution with advantages and disadvantages listed in the comments? Yeah, maybe go with another pager?
@adi @prologic
@prologic For some reason, I can't read private messages, I can only see the first line. Also, I don't see the notifications on my laptop, but only on my mobile phone.
@adi @movq

> Doing the coloring in a second step using a second program feels like a hack to me as well.

I don't believe it's hack a all, but true to the unix philosophy of a program that does just the highlighting for other programs.

> (Maybe we just shouldn’t be passing flat plain text, but structured objects …)

Just whip out a parser, it's not that hard, just saying. 😋
@adi @movq \n\n> Doing the coloring in a second step using a second program feels like a hack to me as well.\n\nI don't believe it's hack a all, but true to the unix philosophy of a program that does just the highlighting for other programs.\n\n> (Maybe we just shouldn’t be passing flat plain text, but structured objects …)\n\nJust whip out a parser, it's not that hard, just saying. 😋
@movq I disagree with _should_ or _shouldn't_.
@movq There's no place for --color=always on grep imo. I was considering building a generic syntax highlighter for the CLI with various lexers, for ls, diff, grep, find, etc...
https://www.youtube.com/watch?v=WXBHCQYxwr0 Morning! 🤩
Morning! ☕
@movq What hope?
@prologic Haha! 😁
Morning! ☕
Morning! 😃
@movq Depends on what you understand by death. I have to study the Plan 9 display system better.
@mckinley I was talking about the line in the page's content. 😁