# 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 196322
# self = https://watcher.sour.is?offset=150525
# next = https://watcher.sour.is?offset=150625
# prev = https://watcher.sour.is?offset=150425
@lyse Time for those damn temperatures to catch up!
@lyse Time for those damn temperatures to catch up!
@eapl.me Got a demo of what this is like to use? 🤔
@eapl.me Got a demo of what this is like to use? 🤔
@eapl.me Got a demo of what this is like to use? 🤔
Glad to see that this Wayland protocol exists:
https://wayland.app/protocols/virtual-keyboard-unstable-v1
At least my password manager can do auto-typing now. That has been a major deal-breaker for me.
I still won’t be able to reimplement multipass on Wayland, though. 😞 Meh. It’s an important tool in my workflows and I’d hate to give up on it.
Glad to see that this Wayland protocol exists:
https://wayland.app/protocols/virtual-keyboard-unstable-v1
At least my password manager can do auto-typing now. That has been a major deal-breaker for me.
I still won’t be able to reimplement multipass on Wayland, though. 😞 Meh. It’s an important tool in my workflows and I’d hate to give up on it.
Glad to see that this Wayland protocol exists:
https://wayland.app/protocols/virtual-keyboard-unstable-v1
At least my password manager can do auto-typing now. That has been a major deal-breaker for me.
I still won’t be able to reimplement multipass on Wayland, though. 😞 Meh. It’s an important tool in my workflows and I’d hate to give up on it.
day to declutter, too much stuff everywhere
day to declutter, too much stuff everywhere
[47°09′22″S, 126°43′03″W] Transponder malfunction
[47°09′31″S, 126°43′28″W] Saalmi, retransmit, please
🧮 USERS:1 FEEDS:2 TWTS:719 ARCHIVED:66838 CACHE:2309 FOLLOWERS:14 FOLLOWING:14
@darch I'm gone from twtxt for less than a year and I still see broken feeds I no longer have? lol
@mckinley Dog walking, and my son started with organized football this week, so he's going on a tournament tomorrow (3 matches).
Been working a lot as well (from home).. So busy weekend for sure. How about you?
Playing ping pong with my wife on the dining room table
[47°09′08″S, 126°43′18″W] Raw reading: 0x64FCC0B1, offset +/-5
[47°09′55″S, 126°43′04″W] Wind speed: 84kph -- batteries low
@prologic Hmmm. Not so sure about that: https://lyse.isobeef.org/tmp/htmlresponsewriter.png Do I like it or not? I mean it's cool to be able to write quick helpers directly in Go. Another benefit is that the HTML form field names are directly visible and thus can be quickly connected to the incoming request. But it's still a bit awkward. An escape helper with a very short name would be a bit nicer to be used "inline". But I actually would go the other way around and mark everything explicitly safe and apply auto-escaping to all unmarked strings. This way it cannot be forgotten. But this then gets a bit lengthy in the Go code I reckon.
@ionores I heard about it, but my view is severly obstructed in that direction. 😒 I’d have to drive out onto the fields with my car and I’m too lazy for that. 😅
@ionores I heard about it, but my view is severly obstructed in that direction. 😒 I’d have to drive out onto the fields with my car and I’m too lazy for that. 😅
@ionores I heard about it, but my view is severly obstructed in that direction. 😒 I’d have to drive out onto the fields with my car and I’m too lazy for that. 😅
@ionores How, cool! :-) I will attempt that tomorrow morning if it's actually feasible. They forecast it to be cloudy and foggy.
@prologic Yeah, I kind of agree. But having separate template files helps in the developing process. Just think of the syntax highlighting alone instead of large monotone strings in your Go code. :-) Also, depending on the permissions of the viewer, one certainly needs a bunch of conditionals to show or hide certain things in the output. Also, auto-escaping is something I don't want to miss. Inheriting is also at least needed for the layout stuff. Maybe Go code alone is the way to go for smaller code bases. Especially if there is no dedicated designer who just wants to work on HTML & CSS and doesn't touch the programming side. I'm doing everything myself here, so, it might work. I would definitely need a set of some helpers to make quick use of my rendering inside Go in order to not go totally insane.
I don't like the additional parentheses in jet. Also a bunch of yields for invocation and the weird mix of content and actual parameters for custom "functions". Doesn't directly appeal to me. A custom loader for the go:embed file system could easily be added, though. Didn't actually try out anything, just looking at the examples in the docs and the code itself. Now investigating pongo2. Very promising looking so far.
Maybe I just pause and experiment with my own "engine" in pure Go. Again, missing syntax highlighting is gonna be my worst enemy I reckon.
@lyse Sometimes I tend to think we "do too much"in templates and templating engines. I honestly think all "logic" should be done in Go, and templates should be nothing more than variable "fill-ins". 😅
@lyse Sometimes I tend to think we "do too much"in templates and templating engines. I honestly think all "logic" should be done in Go, and templates should be nothing more than variable "fill-ins". 😅
@lyse Sometimes I tend to think we "do too much"in templates and templating engines. I honestly think all "logic" should be done in Go, and templates should be nothing more than variable "fill-ins". 😅
@prologic Too bad, extemplate doesn't work with Go-embedded file systems, just the regular host file system. I could patch it and then proceed, but I guess I just move on and look at jet.
We have another heat wave here in Germany. And with it the ghost images came back. So, I think it’s the temperature. 🤔
We have another heat wave here in Germany. And with it the ghost images came back. So, I think it’s the temperature. 🤔
We have another heat wave here in Germany. And with it the ghost images came back. So, I think it’s the temperature. 🤔
[47°09′46″S, 126°43′19″W] Working impossible due to heavy rain
@lyse I'm just saying that in my stupidness and blindness, I would have hit NETEr and went "oh fuck" 😅
@lyse I'm just saying that in my stupidness and blindness, I would have hit NETEr and went "oh fuck" 😅
@lyse I'm just saying that in my stupidness and blindness, I would have hit NETEr and went "oh fuck" 😅
#bomdia ciberlandia, hoje ouvi o meu mais velho a trautear "é natal, é natal, canhões prontos a disparar"
#bomdia ciberlandia, hoje ouvi o meu mais velho a trautear "é natal, é natal, canhões prontos a disparar"
@mckinley @abucci @movq I'm glad that you all have similar habits. :-) I also have the ls sickness. @prologic Submitting the command would not have been desastrous as it did not match any filename, but still, very scary nontheless.
8am. I need to plan this day.
8am. I need to plan this day.
[47°09′52″S, 126°43′08″W] Wind speed: 68kph -- batteries low
@prologic I'm coming from the Tornado world, so Tornado templates would be really great. Or Jinja, they'e quite close, although I like Tornado more. It's been a while, though, that I heavily worked with them.
Looking around I found a few candiates that might be worth looking into. Haven't tried any of them so far, though. I just looked at their dependencies, syntax and features.
I came across https://git.sr.ht/~dvko/extemplate which I believe is a must if one sticks to the standard library. It adds the extends concept, which is heaps more natural to me instead of of keeping track of the relations and reparsing them manually myself. The template.ParseFS(…) seems to be rather useless I have found. It doesn't really work all that great. Or I was holding things wrong. I will give extemplate a shot today regardless whether I stick with the default templates. extemplates doesn't have any other dependencies which is always a big plus in my book.
https://github.com/CloudyKit/jet/blob/master/docs/syntax.md looks fairly useable. It only uses one additional small third-party library which has no dependencies itself.
Zero dependencies for https://github.com/flosch/pongo2, a Django-inspired template engine. This is also close to Jinja templates.
https://github.com/valyala/quicktemplate is interesting as it compiles it into native Go code and claims to be very fast. Adds a bunch of dependencies.
A Jina-inspired template engine, that adds heaps of dependencies: https://github.com/noirbizarre/gonja I guess I have to compare Jinja and Djano before I know which syntax I generally like more. Probably would go with pongo2 over gonja, just of the number of deps. But more investigation is needed.
Another Jinja2 with an even larger number of third party libraries is https://github.com/kluctl/go-jinja2. Seems to work on invoking Python under the hood eventually. So, yeah, most likely not this one.
[47°09′51″S, 126°43′22″W] Weather forecast alert -- storm from E
@mckinley I punch in ls all the darn time. 😂 Maybe it’s not even a bad habit. At the shell, you better make sure you’re operating on the correct set of files before issuing rm * (or grep -r, for that matter 😅). But I admit that I do it a bit compulsively, yeah.
@mckinley I punch in ls all the darn time. 😂 Maybe it’s not even a bad habit. At the shell, you better make sure you’re operating on the correct set of files before issuing rm * (or grep -r, for that matter 😅). But I admit that I do it a bit compulsively, yeah.
@mckinley I punch in ls all the darn time. 😂 Maybe it’s not even a bad habit. At the shell, you better make sure you’re operating on the correct set of files before issuing rm * (or grep -r, for that matter 😅). But I admit that I do it a bit compulsively, yeah.
@abucci Happy birthday! 🥳
> I feel like I've finally earned my curmudgeonly personality 😆
Wait, that’s how I feel about 40. Don’t tell me I have to wait until 50! 😂
@abucci Happy birthday! 🥳
> I feel like I've finally earned my curmudgeonly personality 😆
Wait, that’s how I feel about 40. Don’t tell me I have to wait until 50! 😂
@abucci Happy birthday! 🥳
> I feel like I've finally earned my curmudgeonly personality 😆
Wait, that’s how I feel about 40. Don’t tell me I have to wait until 50! 😂
I would have pressed ENTER 🤣
I would have pressed ENTER 🤣
I would have pressed ENTEr 🤣
I would have pressed ENTER 🤣
@prologic thank you! Yup, a full half century. Quite weird feeling. I feel like I've finally earned my curmudgeonly personality 😆
@mckinley I do the ls thing regularly. I even do it after I've already lsed the directory but have run some other command afterwards. I tend to think of it like the LOOK command in text adventures.
🧮 USERS:1 FEEDS:2 TWTS:718 ARCHIVED:66819 CACHE:2292 FOLLOWERS:14 FOLLOWING:14
@eapl.me Yeah it's an interesting idea for sure. I mean you're basically trying to eliminate the need for passwords as such right? 🤔
@eapl.me Yeah it's an interesting idea for sure. I mean you're basically trying to eliminate the need for passwords as such right? 🤔
@eapl.me Yeah it's an interesting idea for sure. I mean you're basically trying to eliminate the need for passwords as such right? 🤔
@abucci Half a century you say eh?! 🤣 Happy birthday ya 'ol fart 😅 That'll be me in ~8 years 🤦♂️~
@abucci Half a century you say eh?! 🤣 Happy birthday ya 'ol fart 😅 That'll be me in ~8 years 🤦♂️~
@abucci Half a century you say eh?! 🤣 Happy birthday ya 'ol fart 😅 That'll be me in ~8 years 🤦♂️~
I guess I'm read for bed. Instead of grep -rin foo I just typed rm -rf foo. What the heck, brain!? O_o Luckily, I just caught it before hitting Enter.
@ionores thank you, thank you. Hoping to make it to a decent fraction of a century.
[47°09′20″S, 126°43′53″W] Storm recedes -- back to normal work
@abucci Happy birthday, old man! 🎉🍻🙂
I had dinner al fresco out in the garden
I had dinner al fresco out in the garden
Turned half a century old today. Boy I'm tired.
#birthday
@lyse I haven't found a better Go templating engine tbh, I've just gotten used to the one in the std lib 😅
@lyse I haven't found a better Go templating engine tbh, I've just gotten used to the one in the std lib 😅
@lyse I haven't found a better Go templating engine tbh, I've just gotten used to the one in the std lib 😅
[47°09′21″S, 126°43′36″W] Wind speed: N/A -- Cannot comunicate
These comparisons are no operators but functions, hence, the solution is: {{ if ne (len .Events) 1 }} However, it makes absolutely no sense to generate utter bullshit instead of producing a syntax error. Any useable template engines to recommend that do not pull in a metric shitton of dependencies?
What kind of fucking bullshit is this horrible Go template garbage!? What the hell is wrong with my template? https://lyse.isobeef.org/tmp/wtf_test.go.txt I rip it all out and replace it with some other template engine that doesn't suck balls. Holy fuck. What a giant waste of time, every fucking time I deal with this shit. End of rage. :-)
@movq Baha that's funny 🤣
@movq Baha that's funny 🤣
@movq Baha that's funny 🤣
@movq I had nothing remotely close to this. But I also was never much into the maths world anyways.
This is a pretty cool project that I forked and stood up an instance of hostyoself that lets you serve files from your own machine 😅 Have a play over at https://serve.mills.io/ 👌
This is a pretty cool project that I forked and stood up an instance of hostyoself that lets you serve files from your own machine 😅 Have a play over at https://serve.mills.io/ 👌
This is a pretty cool project that I forked and stood up an instance of hostyoself that lets you serve files from your own machine 😅 Have a play over at https://serve.mills.io/ 👌
@movq It's there for years. :-( I don't know it any other way.
@lyse Oh my god. 🤢 I hope there’s another explanation …
@lyse Oh my god. 🤢 I hope there’s another explanation …
@lyse Oh my god. 🤢 I hope there’s another explanation …
@lyse Stuff like this is why I loved doing the Computer Graphics courses at University. 😃 That and interactive physics simulations. So much fun!
@lyse Stuff like this is why I loved doing the Computer Graphics courses at University. 😃 That and interactive physics simulations. So much fun!
@lyse Stuff like this is why I loved doing the Computer Graphics courses at University. 😃 That and interactive physics simulations. So much fun!