# 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 2159
# self = https://watcher.sour.is?uri=https://f.adi.onl/user/adi/twtxt.txt&offset=459
# next = https://watcher.sour.is?uri=https://f.adi.onl/user/adi/twtxt.txt&offset=559
# prev = https://watcher.sour.is?uri=https://f.adi.onl/user/adi/twtxt.txt&offset=359
@movq I get my reading from lobste.rs exclusively as of lately I observe.
@adi I host my development script in a ../bin/d file.
@adi https.go http://ix.io/2PWA, maybe you can give me some tips on that.
@adi https is a simple https server in go, and entr is http://eradman.com/entrproject/, couple that with https://livejs.com/ that gives me a live reload environment.
My development script for https://mkws.sh:\n\n
\n#!/bin/sh\n\nexport DEV=1\nexport PACK=0\n\ntrap "exit" INT TERM\ntrap "kill 0" EXIT\n\nhttps &\n\nfind . -type f -name '*.upp*' | entr ./bin/mkws https://mkws.sh\n
Morning! ☕
@lyse @darch @eldersnake @prologic Not sure if it fits the https://mkws.sh website theme. It's not exactly security focused but rather building focused.
@darch @eldersnake @lyse @movq @prologic Any "must read" HTML CSS books?
@darch @eldersnake @lyse @movq @prologic https://mkws.sh/docs.html
@eldersnake @darch @lyse @movq @prologic Recommended books on http://46.23.94.13:9000/docs.html.
@prologic Not familiar with it. I don't visit many sites with ads I guess.
@prologic @eldersnake @lyse @movq @darch and anybody else can you recommend other books?
@prologic Regarding the blocking? Do you believe your filter might be too aggressive?
@prologic What's your opinion?
@eldersnake Might remove the supplied images and replace them with no tracking ones. Also, have some minor work to do on the layout.
@eldersnake What's your opinion on the book afiliate links? I believe they fit the docs page quite well.
@eldersnake Thanks man, I feel grateful!
@prologic Yeah, I derailed!
@prologic @xjix By capitalism I ment "forced" work.
@prologic @markwylde He may!
What I was actually saying is that it's impossible for a SPA not to eat resources like a sieve because of the stack behind it.
> should not eat resources like a sieve.\n\nIt's impossible, desire for progress is instatiable like any desire, it's an ideal, by definition not real.
@adi @prologic Problems are not solved by force, it's called software!
@adi @prologic Hence "never done" software, we're constatly plugging holes while in the boat! It's never done, the boat is sinking and constantly getting new holes. People call that "advancing".
@adi (#qrq326q)
@adi @prologic I blame your definition of capitalism for that! SPAs are a forced tech. Abstractions just don't fit. It's fighting windmills!
@prologic But it *seems*, all do!
@adi I would prefer good hardware, but not for SPAs.
From my experience SPAs hog on any computer!
The reason I rarely use 2-3-4 SPAs is because they hog my computer. I put 2 more there just in case I forgot any. I don't believe buying better hardware that still hogs is an option.
@adi @prologic Ok, I *rarely* use SPAs and not a fan of the experience.
@prologic I use GMail, and visit Facebook sometimes, not a big fan of the experience.
@prologic I don't!
@adi @lyse Maybe I can remove the tracked images and replace them with untracked ones.
@lyse Interesting, good to be aware of that.
@prologic I agree the web doesn't suck but I do have a problem with SPAs hogging my computer.
@prologic I also believe courage is not running away from "hard" stuff, also I believe, once understood, "hard" stuff is not "hard" anymore.
@prologic I didn't say it's easy.
Added some affiliate recommended books to https://mkws.sh/docs.html, what's your opinion?
@adi @movq I would write one in C.
@movq Their team is pretty small, I don't believe it's impossible.
@mckinley The way I run them is grep 16/Feb/2021 /var/www/logs/mkws.shaccess.log | grep -vf /home/adi/share/bots | flvu | wc -l where /home/adi/share/bots is a list of bot user agents.
@mckinley You might be interested in my log tools https://adi.tilde.institute/cbl/.
@adi @eldersnake As for real pagination a combination of head and tail I guess?
This recently caught my eye. https://www.ekioh.com/flow-browser/
This really caught my eye https://www.ekioh.com/flow-browser/, new browser engine, don't have a Raspberry PI to try.
@adi @eldersnake Agree with _latest_ N.
lobste_rs (#zxo5xaa) I toyed with sam a little, would really like to use it a little bit more at some point.
@eldersnake It wasn't a technical question, it was philosophical regarding effortlessness. By definition an action is effortless no more no less.
@vain How are you still using sudo, did you pkg_add it? Or?
@lyse @thewismit Awesome design on https://thewismit.com/, regarding Mastodon, not a big fan.
@eldersnake Can effortlessness be more or less? 😛
@prologic golang_news Will it allow twtd to be go get-able?
@eldersnake You can run date inside awk http://onetipperday.sterding.com/2015/08/use-getline-to-capture-system-command.html
Morning!
@prologic Nope! Did it now, doesn't work.
@adi @eldersnake Just run ./twtmd < ./twtxt.txt | smu > t.html
@prologic Pasting this in the post form? https://pastebin.com/UtGXjG9k. Btw! It converts twtxt to Markdown.
@adi @eldersnake https://pastebin.com/UtGXjG9k. You have the date in the "$1" variable. tail -r is BSD specific, you could use tac or awk also I believe for reversing the lines.
@adi Weird, I got an "You've been blocked" screen a few seconds ago!
hello, test!
@eldersnake Ah, I understand, I would probably convert the whole twxt to Markdown in one go via awk if possible and rerun through another awk to add wrapper divs but probably those would be better represented as lis so no need for the wrapping part.
@darch @eldersnake I guess a better idea would be to just convert the twtxt file to Markdown via an awk script and then run the whole output through smu?
@eldersnake My opinion is that installing Node.Js and a JavaScript framework to develop a simple static site is incredibly weird.
@bml @adi @eldersnake https://lobste.rs/s/l40c33/write_html_not_javascript
@eldersnake @bml 👏 Good read! I believe you expressed my feelings exactly!
@prologic I personally would contribute to https://git.suckless.org/sbase/.
@prologic Was aware of the tutorial, might step through it at some point. Thx!
@eldersnake Not necessarily JavaScript, but "more serious" programing languages.
@prologic It's at least a good learning exercise.
@antonio Thanks for the recommendation! Looks good but French puts me off a little bit, although it might make it more interesting.
Interesting shell https://github.com/NeowayLabs/nash
@prologic Good read: https://poolp.org/posts/2019-09-14/setting-up-a-mail-server-with-opensmtpd-dovecot-and-rspamd/
@vain Agree!
Speaking of "never done in software" I believe mkws is done. I also believe chasing progress is a trap, that's why people believe software is "never done".
@prologic Good night!
@jlj Cool song!
@adi @prologic What's your opinion on buying computer parts? 😀
@prologic Thanks! I linked to https://twtxt.net/ for questions!
@prologic Yeah, removed it!
Ok, enabled donations, please let me know your opinions https://mkws.sh/docs.html ! 💻😋
@eldersnake What's nice is that you can memorize them if they're less.
@prologic Very good!
@adi Lots of time gained!
Btw, since I started with mkws I started Googling less and less. Less abstractions.
@jlj @eldersnake What post?
@prologic I'm not familiar with how Linux namespaces work.
@prologic I believe a chroot is enough? thttpd supports chroot.
@adi @eldersnake Here's an example of parsing GET/POST variables in a CGI https://stackoverflow.com/questions/3919755/how-to-parse-query-string-from-a-bash-cgi-script, now that's not a great piece of code.
@eldersnake I'm not satisfied about the way GET and POST input is parsed, my idea is to preparse the GET/POST input in a special CGI pp and dump the variables in the global scope of the execve(3) sh. The security issue lays in overwriting any other variable already present in the global scope.
@eldersnake I have some testimonials but I'd rather not "ruin" the homepage with them.
@adi @eldersnake Also a webmail client using https://github.com/leahneukirchen/mblaze and pp. I believe this is a sane way to build dynamic websites, parsing GET and POST variables in CGI is still a problem tho. I personally prefer interpreted languages for developing websites due to no compile time and in place debugging.
@eldersnake I believe in progressive enhancement, I believe it's a good idea for some websites to be HTML interfaces to CLI tools. For instance I would like to create an HTML interface for the log analytics tools on adi.tilde.institute, cl, cbl, fl, using pp.
@adi The logo I made myself, it's a shell prompt and a set of HTML tags.
What are your opinions of the branding of https://mkws.sh/?
Ah, regarding Facebook, I believe it's a "like" market.
\n> I’ve played around with various web frameworks and tools, and like you I imagine, really just got sick of all the bloat and unnecessary complexity.\n\nExactly!
@prologic @will @eldersnake I personally disagree with the concept of "like" exactly because of the endorphin effect, I don't vote for instance, although many people do, on the basis of liking or disliking but on the basis on arguments, proof. I believe the term "agree" or "upvote" is more appropriate. I agree with just twt-ing a reply rather than adding "likes".
@eldersnake Yeah, also built with mkws, not pleased with the design tho, I'll keep it as close as possible to plain text as an homage to UNIX and tilde.institute which are an awesome group. I _personally_ believe all tiny scripts there are at least decent, I believe the linters are nice and the log analytics scripts are nice although, both of them may be rewritten in C even tho awk fits so well for the log analytics. And default.css is nice. I've incorporated the linters in my mkws build process.
@adi @will @eldersnake Thanks for the pizzas @eldersnake!!! 🍕🍕🍕🎉