lyse

lyse.isobeef.org

No description provided.

Recent twts from lyse
In-reply-to » Uploaded some photos from my recent trip to Iceland and New York doing an artist residency coding shaders: http://darch.dk/fotos/

@darch! Man! These are some cool pictures! The Iceland gallery was the most beautiful in total to me. How else can it be, right?! ;-) Very beautiful scenery and lovely colors overall. I’d love to see that with my own eyes one day. Very hard to choose, but I have to highlight the following pics:

Additional nature shoutouts go to:

The latter one perfectly fits this sign: http://darch.dk/fotos/media/images/2023-08-aln/IMG_20230807_140853.jpg (probably a sunset, though ;-))

I had to chuckle at this one: http://darch.dk/fotos/media/images/2023-07-iceland/IMG_20230802_112551.jpg

Which brings me to the art pictures. Interesting museum visits. Mostly funny and neat ideas, but also some weird ones. I immediately liked that one (again, obviously): http://darch.dk/fotos/media/images/2023-08-aln/IMG_20230825_200517.jpg All these chairs look really cool, great photo, mate! Perfectly fits into the art category itself: http://darch.dk/fotos/media/images/2023-09-nyc/IMG_20230829_162111_HDR.jpg

That one is a good mix of nature and art combined, with a touch of ugliness, that brings its own beauty, though. It’s a bit hard to describe, but I hope you get what I mean: http://darch.dk/fotos/media/images/2023-08-aln/IMG_20230827_114645_HDR.jpg

NY has some really ugly spots, that’s quite a contrast. I especially get that feeling when looking at this brilliant shot: http://darch.dk/fotos/media/images/2023-09-nyc/IMG_20230830_114320_HDR.jpg It portraits the shabbiness perfectly. I’m very glad I don’t live in a concrete and glass desert but rather a town. However, I have to admit, the views from the skyscrapers aren’t so bad.

Thank you very much for sharing all of them! I certainly had a blast going through them.

⤋ Read More
In-reply-to » QOTD: Aside from work, what technology related events do you attend in the real world? Are you part of any social clubs dedicated to technology, e.g. user groups?

@mckinley@twtxt.net Some mates and I run a server and I’m a (rather passive) member of some club. But that’s about it. I used to attend the yarn calls every now and then when that was a thing. :-) So mostly online stuff, rarely on-site anymore. How about you?

⤋ Read More

We made a bike tour in the heat of the day. The sun was brutal with 27°C in the shade. Man, this one section was suuuuper steep and you couldn’t hill-start anymore once stopped for a quick rest, because you just spun out the tire in the loose gravel. No chance. So we had to push (I didn’t mind that, though). My mate’s battery then flattened, so he had no other choice anyways. Luckily, I have an old-school bicycle with no electronics (if you don’t count the lights). So the rest of the hills weren’t too bad for me, but he was huffing and puffing badly.

We had waffles with apple sauce for lunch at a closed ski hut out in nature. It was very peaceful, nobody around, just birds and critters. After resting a bit we tried out the scout camera. Today’s mission was to get a bit familiar with that equipment. All the pictures were taken with that DSLR, a Nikon D5200 with a 18-105mm lense. Quite a heavy rig compared to my small digicam. Looking at the pics on a big screen, we gotta keep practicing. This lense is certainly not made for macro shots. We have another one that’s probably suited for that, but I didn’t want to bring the whole bag. And more zoom would also be nice for all the birds. But we don’t have a larger zoom lense.

Ödenturm

Finally, we encountered an old train from the Märklintage (Märklin days). This weekend they pulled out old locomotives and wagons and had extra tours between Göppingen (where Märklin, the model train manufacturer, has its headquarter) and Geislingen/Steige. Tons of people all along the tracks everywhere.

German crocodile pulling old wagons

⤋ Read More
In-reply-to » Cool UI! 😮

Agreed, @eapl.me@eapl.me, that looks fairly clean. Much more tidied than the default theme. Good job, @darch, I like it. If you see some garbage requests in your access log, do not worry, they’re coming from me. You gotta do some input validation and error handling. :-) (E.g. see ?list=twtxt.txt_.)

⤋ Read More
In-reply-to » Had a very surreal experience the other day.

@movq@www.uninformativ.de Lucky you, we didn’t have any thunderstorms lately. But temps were somewhat passable. These storm chasers are a fun species. Taking it right to the next level. :-) I mean it is probably cool to see the thunderstorm from above or the inside. But better don’t crash into the windows of other people.

⤋ Read More
In-reply-to » In the german language, we have the word “Gewaltphantasie”. If you don’t know what it means, here’s a demonstration: https://imgur.com/gallery/LhsjMKM Notice how you’re feeling after watching this? Yep, congratulations, you now have Gewaltphantasien!

@movq@www.uninformativ.de Da geht mir auch sofort das Messer im Hosensack auf.

⤋ Read More
In-reply-to » 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. :-)

I ran into an issue with the scoping of variables in pongo2. The modifications in the loop are not visible to the outside. That’s a bummer. Exactly this: https://github.com/flosch/pongo2/issues/163

⤋ Read More
In-reply-to » Hmm noting that yarnd password change function is insecure by design and should be fixed 🤔

@prologic@twtxt.net Ah, ok. But you actually have to be logged in. It doesn’t just assume it. At least it tried it in the web UI. It would be nice to confirm the password by retyping it into a second field, so typos are caught.

⤋ Read More

My mate made me five adapters for my welding table clamp. No, I don’t have a welding table, that’s the whole point for these adapters. The clamp’s foot is 28 mm in diameter but my bench dog holes are only 20 mm wide. So now I can use the one clamp with this large foot, too. Works like a treat, I’m super happy! Since I only needed one adapter there’s room for future expansion of my inventory. :-)

Welding table clamp in the adatper in my saw board

⤋ Read More
In-reply-to » 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. :-)

@prologic@twtxt.net 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.

⤋ Read More
In-reply-to » 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. :-)

@prologic@twtxt.net 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.

⤋ Read More
In-reply-to » 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. :-)

@prologic@twtxt.net 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.

⤋ Read More
In-reply-to » 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.

@mckinley@twtxt.net @abucci@anthony.buc.ci @movq@www.uninformativ.de I’m glad that you all have similar habits. :-) I also have the ls sickness. @prologic@twtxt.net Submitting the command would not have been desastrous as it did not match any filename, but still, very scary nontheless.

⤋ Read More
In-reply-to » 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. :-)

@prologic@twtxt.net 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.

⤋ Read More
In-reply-to » 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. :-)

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?

⤋ Read More
In-reply-to » Great hike today. Absolutely no clouds, nice smell of freshly cut grass and dropping temperatures in the evening. The oil film in the tad pole lake keeps expanding. :-( We saw a fox in the dark sneaking around on a paddock in the distance.

Thanks, @movq@www.uninformativ.de! I don’t know but reckon the oil originates from farmer and lumberjack vehicles and then just concentrates here. :-(

⤋ Read More