# 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=642
# next = https://watcher.sour.is?uri=https://twtxt.net/user/adi/twtxt.txt&offset=742
# prev = https://watcher.sour.is?uri=https://twtxt.net/user/adi/twtxt.txt&offset=542
@prologic @eldersnake @xuu

> I hope to see more pods

What's preventing you from getting more pods?
@eldersnake Depends on what you understand by Suckless.
@lobste_rs Nice!
@adi (#hvygjbq) @eldersnake Check this out ^ Of course you can install the dependencies on the server also but it's not always viable as there is no package.json or requirements.txt or something similar.
I'm getting lots of 404 page not found, what's the deal?
The recommended way to distribute dependencies with your mkws websites is to bundle them as static binaries so you don't have to run any package manager on the server side either. So, if your website uses smu, distribute a statically compiled smu in your website's ./bin directory. The recommended way of doing this is to do a make install PREFIX=/path/to/mkws/website/root. Make sure the -static flag is set. That way you will also get the man pages installed in the ./share/man directory.
@eldersnake @adi Take a look at https://imagemagick.org/script/command-line-processing.php for image processing.
Btw, you can shellcheck your pp templates via pp -d docs.upphtml | shellcheck -s sh -.
@eldersnake Yeah, that awk script is a thing of beauty. 😁
@adi @eldersnake I wonder how mkws would handle 217 articles. 😀
@eldersnake What's the format of the articles? Markdown?
@adi @eldersnake You could use https://forestry.io/ as a frontend. I personally don't believe I would do it but it fits a blog well.
@adi @eldersnake I guess the _correct_ name is mkws the site's name is mkws.sh.
@eldersnake \n\n> I hope to convert it over to something like mkws.sh\n\nAnd what's preventing you?
@eldersnake

> I hope to convert it over to something like mkws.sh

And what's preventing you?
@eldersnake I'm not that good at writing so not sure if good or bad idea, not sure if the first paragraph would fit as a description and also read "normally" within the text.
@eldersnake But you can parse either the filename or the file itself to get titles for instance without a meta file and maybe use my first paragraph as description suggestion?
@darch Not bad! Is that the same CSS framework?
@niplav Makes sense, probably because of the of male inclination for tech also, men are a lot more seen as explorers, risk takers (<-- one of the reasons I believe they live less 😛)
@prologic Sounds good! How can I get one? 😄
@prologic Awesome! How can I get one? 😄
@niplav @jlj What suffering?
@bml Yeah, read that also and believed it's pretty interesting. That format is a little bit weird tho.
> Covid: Japan asks China to stop anal tests on its citizens

https://www.bbc.com/news/world-asia-56245404

Wasn't aware this was a thing.
> Covid: Japan asks China to stop anal tests on its citizens\n\nhttps://www.bbc.com/news/world-asia-56245404\n\nWasn't aware this was a thing.
@prologic @movq It's Duke Nukem 3D.
@adi @prologic @movq How about https://www.webmproject.org/ a file format?
@prologic @movq Video plays well, played little Duke Nukem myself at a class mate's house. I got a computer "later".
@adi @eldersnake I get the updated field with lmt https://mkws.sh/lts.html wherever it's a good idea to have. (sitemap, atom feed)
@eldersnake


<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>


I have yet to come up with a solution for the description meta but I might formulate the first paragraph to be a good description, I'd rather not use any front matter.
@eldersnake \n\n
\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
\n\nI have yet to come up with a solution for the description meta but I might formulate the first paragraph to be a good description, I'd rather not use any front matter.
@adi @eldersnake Nvm, I missed your answer, they're good for generating links.
@bml I sometimes watch https://www.youtube.com/user/marquesbrownlee, https://www.youtube.com/user/LinusTechTips, https://www.youtube.com/channel/UCeeFfhMcJa1kjtfZAGskOCA, https://www.youtube.com/user/Techquickie.
@eldersnake Did you check those url encoding utilities?
@eldersnake Thanks! @bml Yeah, please check it out, let me know if you have any questions.
@darch @lyse @antonio @jlj @prologic Thanks for the invite but I'll have to skip, I prefer text these days, I'll comment on your documents if it's the case.
This is how I store my blog posts:


$ ls -1
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
This is how I store my blog posts:\n\n
\n$ ls -1\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\n
@gr0k @darch Cool site indeed, might be interested in my static site generator http://mkws.sh/. There was a twtxt integration floating around, I'll post it if you're interested.
@gr0k @darch Cool site indeed, might be interested in my static site generator http://mkws.sh/.
@prologic You didn't answer, if you have your zoom level set to 50% by default on your iPhone, resetting it would not be a good idea, right?
@eldersnake @jlj You might use these somewhere pe.c https://clbin.com/X1GkA (percent encode) and pd.c https://clbin.com/8Ewrn (percent decode) https://tools.ietf.org/html/rfc3986#section-2.1. I'll have to publish them somewhere sometime.
@niplav I usually seen the opposite. Women are more interested in longevity and happy that studies show that they live more than men.
@jlj @eldersnake @adi And working on it was pretty satisfying as opposed to configuring a Wordpress.
@adi @jlj @eldersnake Took me only a day to implement that blog.
@adi @jlj @eldersnake And maybe some other stuff I have laying around in my ~/src and ~/bin directories.
@jlj I still have to add some tips on rendering Markdown, @eldersnake wrote about that here https://www.thelinuxrain.org/articles/mkws-static-site-generation-with-the-shell and how to get a development server going and live reload.
@adi There https://mkws.sh/blog.html.
Ok, I'm adding a blog to https://mkws.sh/ for news and tips, stay tuned.
@prologic \n\n> A container built from an OCI image might behave the same as an OS using the same underlying root file system they do not operate the same at all\n\nUhmm...
@prologic

> A container built from an OCI image might behave the same as an OS using the same underlying root file system they do not operate the same at all

Uhmm...
@prologic By persistent I mean storing files inside the container.
@prologic Had no idea containers weren't persistent.
@prologic A persistent ulinux vm.
@anth Did you work at Bell Labs, did I read correctly?
@lazarus (#754vgwa) @prologic Don't you have something like this already configured for ulinux?
@lazarus @prologic Don't you have something like already configured for ulinux?
@lazarus @prologic I wonder why I find qemu more convenient.
@lyse What do you do at your day job?
@eldersnake Chickenshit Minimalism resonated with me, seen a few examples that included bootstrap for minimalist sites: https://themes.gohugo.io/theme/minimal-bootstrap-hugo-theme/.
@prologic So in your case resetting the zoom level would be a bad idea.
@prologic How can I make docker run -i -t prologic/ulinux persistent?
@adi @prologic \n\n> The initial-scale property controls the zoom level when the page is first loaded.\n\nI'd rather not reset the initial zoom level? Do mobile browsers have weird initial zoom levels?
@adi @prologic

> The initial-scale property controls the zoom level when the page is first loaded.

I'd rather not reset the initial zoom level? Do mobile browsers have weird initial zoom levels?
@prologic What about initial-scale? Tbh, I'd rather not reset the zoom.
@eldersnake I see you have \n\n
\n<meta name=viewport content='width=device-width, initial-scale=1, maximum-scale=1'>\n
\n\nI'm not sure, but for me this works\n\n
\n<meta name=viewport content='width=device-width'>\n
\n\nIsn't this enough?
@eldersnake I see you have


<meta name=viewport content='width=device-width, initial-scale=1, maximum-scale=1'>


I'm not sure, but for me this works


<meta name=viewport content='width=device-width'>


Isn't this enough?
@lyse I'd rather not have the Haskell dependency, but the tool is very good.
@lyse I use https://github.com/koalaman/shellcheck/ btw.
@prologic Just skill man!
@lyse I believe *$ is more appropriate?
https://github.com/tomnomnom/anew\n\n> A tool for adding new lines to files, skipping duplicates
https://github.com/tomnomnom/anew

> A tool for adding new lines to files, skipping duplicates
@prologic @tfurrows Tbh I didn't ever questioned the "utility" of "yarn.social" 😛, it just fits me as a concept and people here share the same interests and values.
@prologic @tfurrows Tbh I didn't ever questioned the "utility" of "yarn.social" 😛, it just fits me as a concept and people here share the same interests.
@prologic @tfurrows Well I guess Facebook is/was a way to keep in touch with friends? and to show off your life, your public image mostly? Instagram same?
@adi @darch @lyse pp version:


#!/usr/local/bin/pp
#!
t="$*"
#!
<!DOCTYPE html>
<meta charset=utf-8>
<title>${t:=$(basename "$PWD")}</title>
<style>*{font-family:sans-serif}</style>
<h1>$t</h1>
#!
for img in ??.jpg
do
#!
<a href=$img style=cursor:zoom-in><img src=$(basename "$img" .jpg)-vorschau.jpg alt='$t'></a>
#!
done
#!
@adi @darch @lyse pp version:\n\n
\n#!/usr/local/bin/pp\n#!\nt="$*"\n#!\n<!DOCTYPE html>\n<meta charset=utf-8 />\n<title>${t:=$(basename "$PWD")}</title>\n<style>*{font-family:sans-serif}</style>\n<h1>$t</h1>\n#!\nfor img in ??.jpg; do\n#!\n<a href=$img style=cursor:zoom-in><img src=$(basename "$img" .jpg)-vorschau.jpg alt='$t' /></a>\n#!\ndone\n#!\n
@adi @darch @lyse pp version:\n\n
\n#!/usr/local/bin/pp\n#!\nt="$*"\n#!\n<!DOCTYPE html>\n<meta charset=utf-8>\n<title>${t:=$(basename "$PWD")}</title>\n<style>*{font-family:sans-serif}</style>\n<h1>$t</h1>\n#!\nfor img in ??.jpg\ndo\n#!\n<a href=$img style=cursor:zoom-in><img src=$(basename "$img" .jpg)-vorschau.jpg alt='$t'></a>\n#!\ndone\n#!\n
@adi @darch @lyse pp version:\n\n
\n#!/usr/local/bin/pp\n#!\nt="$*"\n#!\n<!DOCTYPE html>\n<meta charset=utf-8>\n<title>${t:=$(basename "$PWD")}</title>\n<style>*{font-family:sans-serif}</style>\n<h1>$t</h1>\n#!\nfor img in ??.jpg; do\n#!\n<a href=$img style=cursor:zoom-in><img src=$(basename "$img" .jpg)-vorschau.jpg alt='$t'></a>\n#!\ndone\n#!\n
@lyse @darch Why "$@"? Support for spaces?
@lobste_rs Interesting...
@will Yeah, unlikely you'll do them! 😛
@eldersnake Have no idea, I probably would play around with some select boxes or text inputs and server side validation?
@prologic Exactly!
I'm watching this https://www.youtube.com/watch?v=0fBhad-_zN8 and I find it weird that nobody is wearing masks, haha!
@jlj Commissioned? What do you mean? Spoke with a designer? Hmmm... What kind of transition? What themes? I agree, the current one is super cool!
@lyse @darch Ah, awesome HTML, agree!
@lyse @movq Nice hobby!
@mckinley What site?
@will Do you really _need_ to?
@prologic What was that docker command to run ulinux?
@movq I agree man, it's getting to me also, my patience is stretched to the max. And we still have almost an year to go at least in Romania.
@jlj Nice logo on your pod!
https://develop.cafe/category/website-generators.html
@adi @movq The idea is that people will pop up in your view and you'll get the a chance to review their twts and decide whether to follow or not. Decide if they're a "fit" naturally.
@movq People!
@eldersnake Agree! <--- Speaking of "Likes"
@movq Don't search!
@adi @eldersnake @prologic Bad idea, in general, to force them to anything tbh.