lyse

lyse.isobeef.org

No description provided.

Recent twts from lyse
In-reply-to » @lyse gron does something very similar with JSON. I used to use it more, but these days I just reach for jq instead.

@mckinley@twtxt.net Woah, how cool is that!? :-D Thank you! Iā€™m sure gron will come in very handy some day, now that I have it in my tool bag. My jq skills are pretty much non-existent, though. I donā€™t use it often enough.

ā¤‹ Read More
In-reply-to » Yeah, the lack of comments makes regular JSON not a good configuration format in my view. Also, putting all keys in quotes and the use of commas is annoying. The big upside is that's in lots of standard libraries.

@xuu Cool! I particularly like the idea of converting it into a grep-able version, thatā€™s very neat. Interesting choice of aligning the colons at the values and not the keys, I think I never came across this.

ā¤‹ Read More
In-reply-to » @lyse Lack of comments are definitely a shortcoming of JSON. I don't like TOML because it lets you have nested categories ([foo] [foo.bar] [foo.baz]) and it just feels confusing to me, even with indentation. Simple INI files are okay.

@mckinley@twtxt.net Same here. Reading the spec I came across some confusing or not inherently logical things. Maybe they turn out not so bad in practice.

Being also a Python programmer, I wish there would be more indentation-based stuff. I do like that part with YAML.

Oh no! :-( Thatā€™s bad to hear. I configured ejabberd years ago and it just is Erlang if I remember correctly. Quite a cool choice for that software.

ā¤‹ Read More
In-reply-to » @lyse Regarding YAML's readability, I miss the - for list items constantly when reading YAML files. I'll get confused because I think I'm not in a list or I'm in the previous list item, then I have to go back. List items are all on the same indentation column and one tiny character is the only thing defining a new one. I don't know if others have this problem.

@mckinley@twtxt.net I hear you, thatā€™s why I prefer * as the bullet point wherever possible, e.g. markdown and RST. Not sure if YAML has it, too. I just know at work we use - for lists as well. But then use blank lines to separate list items that are spanning multiple lines. That helps a bit.

ā¤‹ Read More
In-reply-to » Question of the day: What configuration file formats do you all like and use?

Yeah, the lack of comments makes regular JSON not a good configuration format in my view. Also, putting all keys in quotes and the use of commas is annoying. The big upside is thatā€™s in lots of standard libraries.

I think the appeal with YAML is that is has comments, is kind of easy to write and read and also provides unlimited nesting levels. But it has all its drawbacks, no question. Forbidding tabs, thousands of different string flavors, having so many boolean options (poor Norwegians) etc. I use it, but I donā€™t particularly enjoy it.

Among simple key value pairs, I like INI files, but with # for comments, not ;. I never used TOML, read up on it yesteray before writing this question, but it looks a bit weird and has some strange rules. I guess I have to give it a try one day.

And yes, as mentioned by several of you, it always depends on the complexity of the configuration at hand.

Iā€™m developing something for the scouts at the moment with rather simple requirements on the config. Currently, there are just four settings. Even INI would be overkill with its section. I selected JSON for now, because thatā€™s readily available with Goā€™s std lib. But I do not like it.

Btw. whatā€™s your own config format, @xuu?

ā¤‹ Read More
In-reply-to » @lyse Thatā€™s the definition of a dumpster fire, isnā€™t it? šŸ˜‚

@movq@www.uninformativ.de Exactly. But I fear you just donā€™t learn these kind of skills for real life in school. I think overall I was pretty lucky with mine, but I donā€™t have the feeling that school particularly prepared me all that well for reality out there. I would give my social environment much more credit. But itā€™s very hard to say, maybe subconsciously school had a larger effect than I think. :-?

Anyway, they definitely should teach that, I fully agree! :-)

ā¤‹ Read More

Looking out the window I saw a buzzard sitting in a tree, so I wanted to take a photo. But then its two bodyguard ravens attac^Wsaved it from me and it took off. :-(

ā¤‹ Read More
In-reply-to » I finally found the NASM assembler.

Delphi at school, later Java and an own teaching assembler. Uni started out with Ada and then added Java as well. Here and there a few other languages, like Prolog (that I knew from school, though), I think C, the hardware guys brought us VHDL and some assembler that I donā€™t recall anymore.

ā¤‹ Read More

When dealing with unsigned integer, I always write e.g. unit8 instead of uint8. Every. Single Time. And this is usually only noticed by the compiler. I would blame the auto-correction, but I ā€“ luckily ā€“ donā€™t have any.

ā¤‹ Read More
In-reply-to » Go 1.22.0 introduces a new experiment for range functions. Have you tried them out? What do you think it can make easier to accomplish?

@xuu Oh, I wasnā€™t aware of this! Thanks for bringing it to my attention.

I do like that they move away from one shared variable per loop to an own one per iteration. That makes sooo much more sense. I donā€™t hit that often, but it happened a few times in the past and getting this figured out is not the easiest thing in the world.

I have to read up on the yield functions. From your examples I fear iterators would have been more useful. Letā€™s see.

ā¤‹ Read More
In-reply-to » @lyse Iā€™m having a hard time as well. šŸ˜… Theyā€™re very, very similar to me. Here, he says ā€œa ten year rebuildā€, which sounds like ā€œtin yearā€:

@movq@www.uninformativ.de I just listened ten (lol) times very carefully, but itā€™s much closer to ā€œtenā€ than ā€œtinā€ I think. Hahahaha, the dickheads video is fantastic! :-D Canā€™t tell if I would have understood that correctly if I werenā€™t reading the subtitles.

ā¤‹ Read More
In-reply-to » The local supermarket is now demanding to look into customersā€™ personal bags, as in ā€œmy backpackā€. Makes you feel really unwelcome. šŸ«¤ One older man said ā€œnoā€ and they made him wait for ā€¦ I donā€™t know for what, the police maybe? I didnā€™t stay long enough to see the end of it.

@movq@www.uninformativ.de Oh dear, you should probably switch shops. At least the Verbraucherzentrale backs us up here.

ā¤‹ Read More
In-reply-to » Something is wrong with me. My eyes fell on the onions and I thought, mmmmm, those apples look delicious. But I'm now eating a real apple.

ARGH! All tests passed, but once I ran the exact same scenario in the real application, numbers didnā€™t line up anymore. What the heck, how in the world is this even possible!? Turns out I havenā€™t committed the changes to the database, thatā€™s why I still could see them perfectly fine in my debug session, but the applicationā€™s session of course didnā€™t. Took me four (!) hours to figure this out. Yeah, I really have to go to bed now. Good night.

ā¤‹ Read More
In-reply-to » Getting stuff done today.. Bought more fencing, so that the dog can stay outside on the terrace without jumping over to our neighbor, so I'll get that up soon. He has usually been in the garden, but that has been dug into a mudhole by the dog, so when it's rainy\wet etc he can now stay on the terrace. Other then that I'll probably do some coding on my multiplayer game today, since our kids are busy with friends etc.

@stigatle@yarn.stigatle.no Cool. I was coding today all day long.

@prologic@twtxt.net Are you already sick of your fast internet? :-D Enjoy your holidays!

ā¤‹ Read More
In-reply-to » The local supermarket is now demanding to look into customersā€™ personal bags, as in ā€œmy backpackā€. Makes you feel really unwelcome. šŸ«¤ One older man said ā€œnoā€ and they made him wait for ā€¦ I donā€™t know for what, the police maybe? I didnā€™t stay long enough to see the end of it.

@movq@www.uninformativ.de Wow, when entering or leaving?

ā¤‹ Read More
In-reply-to » QOTD: What are your thoughts on nostr?

@mckinley@twtxt.net Brings up a few interesting points. But I fear itā€™s a rather complicated protocol. I read through a few pages on that site, but I havenā€™t seen a real specification for it. I immediately thought that you canā€™t really change your keys without losing your identity. Basically the same as with changing feed URLs over here. Maybe slightly better, but not much.

ā¤‹ Read More
In-reply-to » If you like to suffer, you can read a report about trying out Matrix: https://blog.koehntopp.info/2024/02/13/the-matrix-trashfire.html I'm surprised that he didn't abort.

@movq@www.uninformativ.de Yeah, the visual emoji thing is silly. Picking letters or words only would have been way too easyā€¦ So oldschool! But thatā€™s what you get with todayā€™s kids, theyā€™re all emoji power users.

Luckily, my terminal font shows all the same seven squares in the correct order. :-D

I think I see a water pistol in Firefox.

ā¤‹ Read More
In-reply-to » KTeaTime: A customizable tea steeping timer application from the KDE project: https://apps.kde.org/kteatime/

Thank you! Sure, go on, @mckinley@twtxt.net, please help yourself! :-) It took me some time to simplify the magic spell to a single sed invocation.

Actually, @movq@www.uninformativ.de, I couldnā€™t live without a bell in my prompt either. Itā€™s so neat in combination with URxvt.urgentOnBell: true in my ~/.Xdefaults. Comes in handy every single day.

My self-winding watch just shows me the time.

ā¤‹ Read More

I noticed this afternoon that we currently have Carnival vacations this week. So many people outdoors.

Iā€™ve seen three great spotted woodpeckers and heard dozens more hammering the trees. But the photos turned out to be rubbish.

It was very windy at the summit, but I sat on the castle wall and enjoyed the sun beating on me. I would have loved to just relax there half an hour longer, but I had to be back in time. :-(

09 looks like itā€™s straight from an AI, but the moss was actually on top of a smaller tree. I fell down from a giant moss-covered tree next to it.

Quite cool how much reach the liftā€™s outriggers have to level it on that steep street.

29-32 show the reason for closing the forest road for one and a half months. A tree fell over and got hung up in the telephone cable in a 45Ā° angle. Only the wire prevented it from crashing down on the road. I find it astonishing that the cable did not rip apart. After all, the tree was quite substantial. No idea why it took them so long to get it removed, though.

The entire meadow in 36 was totally covered with mouse holes. Sick!

https://lyse.isobeef.org/waldspaziergang-2024-02-13/

Action shot of a brown squirrel
Download

Action shot of a brown squirrel

ā¤‹ Read More
In-reply-to » KTeaTime: A customizable tea steeping timer application from the KDE project: https://apps.kde.org/kteatime/

Haha, @bender@twtxt.net! :-D

@mckinley@twtxt.net Usually, I get away with sleep 5m; echo -e "\aSomething, something". For longer waiting periods (checking on laundry, cake, etc.) I often want to know how much time is left, so I built this lengthy shell script: https://git.isobeef.org/lyse/gelbariab/-/blob/master/srem/srem?ref_type=heads

Unfortunately, I donā€™t remember where I got ringring.ogg from. Maybe it was shipped with KAlarm in KDE 3.5. I think it had the option to ring an alarm clock. Thatā€™s useful when watching a video in fullscreen.

ā¤‹ Read More

I went to the dairy farm and back in 50Ā minutes. It was suprisingly dark. Luckily, I walked the forest paths a hundred times, otherwise it would have been very hard to find my bearings a few times. On the way home I wanted to shortcut over the meadow, but then realized that there were grazing sheep. I took a detour to not wake them up. This quick walk was very well needed to blow the cobwebs away.

ā¤‹ Read More
In-reply-to » Iā€™m thinking about moving my blog/page from uninformativ.de over to movq.de (because the name ā€œuninformativ.deā€ really isnā€™t great, never has been). How much in the twtxt/Yarn world will that break? šŸ˜‚ Iā€™ll obviously install redirects, so it should be relatively painless, right?

One last thing, @movq@www.uninformativ.de. I really do like that interesting stuff is hosted at uninformativ.de. Not only is this great irony, but it suggests that you donā€™t take yourself too seriously. I love that. When I first encountered your domain I thought ā€“ and still do ā€“ that it is a funny name. Anyway, donā€™t wanna push you.

ā¤‹ Read More
In-reply-to » Righto, I hand-planed seven crossbars, two uprights and cut the first crossbar to length and sawed/chiseled the first mortise for it. Just have to plane 14Ā more uprights and 25Ā crossbeams, cut 31 crossbars to final length and make 61 more mortises. And then the ladders for the laundry shelves are already done.

The first ladder is glued up. The second one only needs its eight mortises cut and itā€™s ready for assembly, too. Six more to go then.

ā¤‹ Read More