# 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 196336
# self = https://watcher.sour.is?offset=150499
# next = https://watcher.sour.is?offset=150599
# prev = https://watcher.sour.is?offset=150399
@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!
Anyone know of any decent self-hostable software that has a few features like:
- Shared Inbox -- So that customers/users can email a "shared" inbox and multiple support personnel or staff can respond
- Send emails to customers/users -- So you can send email to customers from a "Shared Inbox" like a sales/marketing inbox, but never really a "personal email"
That sort of thing? 🤔
Anyone know of any decent self-hostable software that has a few features like:
- Shared Inbox -- So that customers/users can email a "shared" inbox and multiple support personnel or staff can respond
- Send emails to customers/users -- So you can send email to customers from a "Shared Inbox" like a sales/marketing inbox, but never really a "personal email"
That sort of thing? 🤔
Anyone know of any decent self-hostable software that has a few features like:
- Shared Inbox -- So that customers/users can email a "shared" inbox and multiple support personnel or staff can respond
- Send emails to customers/users -- So you can send email to customers from a "Shared Inbox" like a sales/marketing inbox, but never really a "personal email"
That sort of thing? 🤔
[47°09′57″S, 126°43′55″W] Wind speed: 46kph -- batteries low
Pinellas County - Base: 6.39 miles, 00:09:48 average pace, 01:02:34 duration
felt a weird sharp pain (like a nail) in the bottom of my left heel right towards the in. as soon as i started walking no pain but didn't want to pick it back up again. missed out on just about 3 minutes of the planned run.
#running
@osnews Oh really?! 🤔 So we can use CoPilot to steal the work of other's and when they come to sue; Microsoft will take full responsibility?! 😱 🤦♂️
@osnews Oh really?! 🤔 So we can use CoPilot to steal the work of other's and when they come to sue; Microsoft will take full responsibility?! 😱 🤦♂️
@osnews Oh really?! 🤔 So we can use CoPilot to steal the work of other's and when they come to sue; Microsoft will take full responsibility?! 😱 🤦♂️
@movq custom mapping and geospatial stuff 🤣
@movq custom mapping and geospatial stuff 🤣
@movq custom mapping and geospatial stuff 🤣
@eapl.me Hmmm interesting 🤔 Your trying to use 2FA as passwords? 🤔
@eapl.me Hmmm interesting 🤔 Your trying to use 2FA as passwords? 🤔
@eapl.me Hmmm interesting 🤔 Your trying to use 2FA as passwords? 🤔
[47°09′20″S, 126°43′58″W] Wind speed: 50kph -- batteries low